content
stringlengths
7
1.05M
def read_matrix(): (rows, columns) = map(int, input().split(" ")) matrix = [] for r in range(rows): row = input().split(" ") matrix.append(row) return matrix, rows, columns def subsqares_count(matrix,subsquare, rows, columns): count = 0 for r in range(rows - (subsquare - 1)): for c in range(columns - (subsquare - 1)): data = set() for r2 in range(0, subsquare): for c2 in range(0, subsquare): data.add(matrix[r + r2][c + c2]) if len(data) == 1: count += 1 return count matrix, rows, columns = read_matrix() subsquare = 2 print(subsqares_count(matrix, subsquare, rows, columns))
DEBUG = True APP_DIR = '/home/harish/django_projects/cinepura/' STATIC_MEDIA_PREFIX = '/static_media/cinepura'
""" 'pass' or '...' (ellipsis) works as a placeholder for the programmer to write something later """ valor = True if valor: pass else: print('Bye') print() if valor: ... else: print('Bye')
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:104 ms, 在所有 Python3 提交中击败了64.10% 的用户 内存消耗:14.4 MB, 在所有 Python3 提交中击败了79.35% 的用户 解题思路: 具体实现见代码注释 """ class Solution: def mergeTrees(self, t1: TreeNode, t2: TreeNode) -> TreeNode: def find(root1, root2): # 两棵树的对应节点 if root1 and root2: # 如果节点都存在 node = TreeNode(root1.val + root2.val) # 合并后的当前节点为两树节点和 node.left = find(root1.left, root2.left) # 处理两树的对应左子树, 返回的节点为当前合并子树的左子树 node.right = find(root1.right, root2.right) # 处理两树的对应右子树 elif root1 or root2: # 只存在一个节点 node = TreeNode(root1.val if root1 else root2.val) # 当前节点等于存在节点值 node.left = find(root1.left if root1 else None, root2.left if root2 else None) # 遍历存在节点的左子树 node.right = find(root1.right if root1 else None, root2.right if root2 else None) # 遍历存在节点的右子树 else: return None # 均不存在返回None return node t = find(t1, t2) return t """ 执行用时:100 ms, 在所有 Python3 提交中击败了91.61% 的用户 内存消耗:14.5 MB, 在所有 Python3 提交中击败了46.33% 的用户 解题思路: 同上,但不新建树 """ class Solution: def mergeTrees(self, t1: TreeNode, t2: TreeNode) -> TreeNode: def find(root1, root2): # 两棵树的对应节点 if root1 and root2: # 如果节点都存在 root1.val = root1.val + root2.val # 合并后的当前节点为两树节点和 root1.left = find(root1.left, root2.left) # 处理两树的对应左子树, 返回的节点为当前合并子树的左子树 root1.right = find(root1.right, root2.right) # 处理两树的对应右子树 elif root1 or root2: # 只存在一个节点, 直接返回存在的节点即可 return root1 if root1 else root2 else: return None # 均不存在返回None return root1 t = find(t1, t2) return t
# MYSQL数据库配置 # 通常在不同环境下配置是不一样的,根据实际情况进行修改 MYSQL_CFG = { 'HOST': '172.17.0.1', 'PORT': 3306, 'USERNAME': 'username', 'PASSWORD': 'password', 'DATABASE': 'database_name' }
def reverse_num(x: int) -> int : if x == 0: return 0 else: num_temp = str(x) tam = len(num_temp) num_zeros = 0 if num_temp[0] == "-": if num_temp[tam - 1] == "0": dici = {"0": 0} for value in num_temp[:1:-1]: if value in dici: dici[value] += 1 num_zeros += 1 else: break num_temp = num_temp[tam-num_zeros:0:-1] x = (int(num_temp)) * -1 else: num_temp = num_temp[:0:-1] x = (int(num_temp)) * -1 else: if num_temp[tam - 1] == "0": dici = {"0": 0} for value in num_temp[::-1]: if value in dici: dici[value] += 1 num_zeros += 1 else: break num_temp = num_temp[tam-num_zeros::-1] x = (int(num_temp)) else: x = int(num_temp[::-1]) if x > (2 ** 31 - 1) or x < (-2 ** 31): return 0 else: return x if __name__ == "__main__": print(reverse_num(65090))
class BasicPagination: items_per_page = 1 max_items_per_page = 100 def __init__(self, pagination: dict = None, items_per_page: int = None, max_items_per_page: int = None): pagination = pagination or {} self.page = pagination.get('page', 0) self.max_items_per_page = max_items_per_page self.items_per_page = min( pagination.get('items_per_page', items_per_page), self.max_items_per_page ) self.limit = (self.page + 1) * self.items_per_page self.offset = self.page * self.items_per_page self.next = False def paginate(self, query): return query.limit(self.limit).offset(self.offset) @property def result(self): # TODO next page return { 'page': self.page }
''' This problem was recently asked by Apple: You are given two singly linked lists. The lists intersect at some node. Find, and return the node. Note: the lists are non-cyclical. Example: A = 1 -> 2 -> 3 -> 4 B = 6 -> 3 -> 4 This should return 3 (you may assume that any nodes with the same value are the same node). ''' def intersection(a, b): def findlength(node): if not node: return 0 return findlength(node.next) + 1 if not a or not b: return None asize, bsize = findlength(a), findlength(b) diffsize = abs(asize - bsize) while diffsize > 0: if asize > bsize: a = a.next else: b = b.next diffsize -= 1 while a: if a == b: return a a = a.next b = b.next return None class Node(object): def __init__(self, val): self.val = val self.next = None def prettyPrint(self): c = self while c: print(c.val,) c = c.next a = Node(1) a.next = Node(2) a.next.next = Node(3) a.next.next.next = Node(4) b = Node(6) b.next = a.next.next c = intersection(a, b) c.prettyPrint() # 3 4
class Solution: def climbStairs(self, n: int) -> int: if n == 0: return 0 if n == 1: return 1 if n == 2: return 2 """ Approach #1: - use a dp array and a helper function - pretty intuitive """ dp = [-1 for _ in range(n+1)] dp[0] = 0 dp[1] = 1 dp[2] = 2 return self.climb_stairs(n, dp) def climb_stairs(self, n, dp): if dp[n] != -1: return dp[n] else: dp[n] = self.climb_stairs(n-1, dp) + self.climb_stairs(n-2, dp) return dp[n] """ Approach #2 Two step variables - very intuitive as well """ # one_step = 1 # two_step = 2 # new = 0 # for each in range(2,n): # new = one_step + two_step # one_step = two_step # two_step = new # return new
WELCOME_DIALOG_TEXT = ( "Welcome to NVDA dialog Welcome to NVDA! Most commands for controlling NVDA require you to hold " "down the NVDA key while pressing other keys. By default, the numpad Insert and main Insert keys " "may both be used as the NVDA key. You can also configure NVDA to use the Caps Lock as the NVDA " "key. Press NVDA plus n at any time to activate the NVDA menu. From this menu, you can configure " "NVDA, get help and access other NVDA functions. \n" "Options grouping \n" "Keyboard layout: combo box desktop collapsed Alt plus k" ) QUIT_DIALOG_TEXT = ( "Exit NVDA dialog \n" "What would you like to do? combo box Exit collapsed Alt plus d" )
# -*- coding: utf-8 -*- # @Author: Zengjq # @Date: 2019-02-21 10:16:00 # @Last Modified by: Zengjq # @Last Modified time: 2019-02-21 10:40:43 # 93% # 教程 https://time.geekbang.org/course/detail/130-42708 class Solution: def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode': if (root == None or root == p or root == q): return root left = self.lowestCommonAncestor(root.left, p, q) right = self.lowestCommonAncestor(root.right, p, q) if left == None: return right if right == None: return left if left != None and right != None: return root
__author__ = "NuoDB, Inc." __copyright__ = "(C) Copyright NuoDB, Inc. 2019" __license__ = "MIT" __version__ = "1.0" __maintainer__ = "NuoDB Drivers" __email__ = "drivers@nuodb.com" __status__ = "Production"
class CurrentChangedEventManager(WeakEventManager): """ Provides a System.Windows.WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the System.ComponentModel.ICollectionView.CurrentChanged event. """ @staticmethod def AddHandler(source,handler): """ AddHandler(source: ICollectionView,handler: EventHandler[EventArgs]) """ pass @staticmethod def AddListener(source,listener): """ AddListener(source: ICollectionView,listener: IWeakEventListener) Adds the specified listener to the System.ComponentModel.ICollectionView.CurrentChanged event of the specified source. source: The object with the event. listener: The object to add as a listener. """ pass @staticmethod def RemoveHandler(source,handler): """ RemoveHandler(source: ICollectionView,handler: EventHandler[EventArgs]) """ pass @staticmethod def RemoveListener(source,listener): """ RemoveListener(source: ICollectionView,listener: IWeakEventListener) Removes the specified listener from the System.ComponentModel.ICollectionView.CurrentChanged event of the specified source. source: The object with the event. listener: The listener to remove. """ pass ReadLock=property(lambda self: object(),lambda self,v: None,lambda self: None) """Establishes a read-lock on the underlying data table,and returns an System.IDisposable. """ WriteLock=property(lambda self: object(),lambda self,v: None,lambda self: None) """Establishes a write-lock on the underlying data table,and returns an System.IDisposable. """
class Color(object): """ Represents an ARGB (alpha,red,green,blue) color. """ def Equals(self,obj): """ Equals(self: Color,obj: object) -> bool Tests whether the specified object is a System.Drawing.Color structure and is equivalent to this System.Drawing.Color structure. obj: The object to test. Returns: true if obj is a System.Drawing.Color structure equivalent to this System.Drawing.Color structure; otherwise,false. """ pass @staticmethod def FromArgb(*__args): """ FromArgb(alpha: int,baseColor: Color) -> Color Creates a System.Drawing.Color structure from the specified System.Drawing.Color structure,but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value,the value is limited to 8 bits. alpha: The alpha value for the new System.Drawing.Color. Valid values are 0 through 255. baseColor: The System.Drawing.Color from which to create the new System.Drawing.Color. Returns: The System.Drawing.Color that this method creates. FromArgb(red: int,green: int,blue: int) -> Color Creates a System.Drawing.Color structure from the specified 8-bit color values (red,green,and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component,the value of each component is limited to 8 bits. red: The red component value for the new System.Drawing.Color. Valid values are 0 through 255. green: The green component value for the new System.Drawing.Color. Valid values are 0 through 255. blue: The blue component value for the new System.Drawing.Color. Valid values are 0 through 255. Returns: The System.Drawing.Color that this method creates. FromArgb(argb: int) -> Color Creates a System.Drawing.Color structure from a 32-bit ARGB value. argb: A value specifying the 32-bit ARGB value. Returns: The System.Drawing.Color structure that this method creates. FromArgb(alpha: int,red: int,green: int,blue: int) -> Color Creates a System.Drawing.Color structure from the four ARGB component (alpha,red,green,and blue) values. Although this method allows a 32-bit value to be passed for each component,the value of each component is limited to 8 bits. alpha: The alpha component. Valid values are 0 through 255. red: The red component. Valid values are 0 through 255. green: The green component. Valid values are 0 through 255. blue: The blue component. Valid values are 0 through 255. Returns: The System.Drawing.Color that this method creates. """ pass @staticmethod def FromKnownColor(color): """ FromKnownColor(color: KnownColor) -> Color Creates a System.Drawing.Color structure from the specified predefined color. color: An element of the System.Drawing.KnownColor enumeration. Returns: The System.Drawing.Color that this method creates. """ pass @staticmethod def FromName(name): """ FromName(name: str) -> Color Creates a System.Drawing.Color structure from the specified name of a predefined color. name: A string that is the name of a predefined color. Valid names are the same as the names of the elements of the System.Drawing.KnownColor enumeration. Returns: The System.Drawing.Color that this method creates. """ pass def GetBrightness(self): """ GetBrightness(self: Color) -> Single Gets the hue-saturation-brightness (HSB) brightness value for this System.Drawing.Color structure. Returns: The brightness of this System.Drawing.Color. The brightness ranges from 0.0 through 1.0,where 0.0 represents black and 1.0 represents white. """ pass def GetHashCode(self): """ GetHashCode(self: Color) -> int Returns a hash code for this System.Drawing.Color structure. Returns: An integer value that specifies the hash code for this System.Drawing.Color. """ pass def GetHue(self): """ GetHue(self: Color) -> Single Gets the hue-saturation-brightness (HSB) hue value,in degrees,for this System.Drawing.Color structure. Returns: The hue,in degrees,of this System.Drawing.Color. The hue is measured in degrees,ranging from 0.0 through 360.0,in HSB color space. """ pass def GetSaturation(self): """ GetSaturation(self: Color) -> Single Gets the hue-saturation-brightness (HSB) saturation value for this System.Drawing.Color structure. Returns: The saturation of this System.Drawing.Color. The saturation ranges from 0.0 through 1.0,where 0.0 is grayscale and 1.0 is the most saturated. """ pass def ToArgb(self): """ ToArgb(self: Color) -> int Gets the 32-bit ARGB value of this System.Drawing.Color structure. Returns: The 32-bit ARGB value of this System.Drawing.Color. """ pass def ToKnownColor(self): """ ToKnownColor(self: Color) -> KnownColor Gets the System.Drawing.KnownColor value of this System.Drawing.Color structure. Returns: An element of the System.Drawing.KnownColor enumeration,if the System.Drawing.Color is created from a predefined color by using either the System.Drawing.Color.FromName(System.String) method or the System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise,0. """ pass def ToString(self): """ ToString(self: Color) -> str Converts this System.Drawing.Color structure to a human-readable string. Returns: A string that is the name of this System.Drawing.Color,if the System.Drawing.Color is created from a predefined color by using either the System.Drawing.Color.FromName(System.String) method or the System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise,a string that consists of the ARGB component names and their values. """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __ne__(self,*args): pass A=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the alpha component value of this System.Drawing.Color structure. Get: A(self: Color) -> Byte """ B=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the blue component value of this System.Drawing.Color structure. Get: B(self: Color) -> Byte """ G=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the green component value of this System.Drawing.Color structure. Get: G(self: Color) -> Byte """ IsEmpty=property(lambda self: object(),lambda self,v: None,lambda self: None) """Specifies whether this System.Drawing.Color structure is uninitialized. Get: IsEmpty(self: Color) -> bool """ IsKnownColor=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether this System.Drawing.Color structure is a predefined color. Predefined colors are represented by the elements of the System.Drawing.KnownColor enumeration. Get: IsKnownColor(self: Color) -> bool """ IsNamedColor=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether this System.Drawing.Color structure is a named color or a member of the System.Drawing.KnownColor enumeration. Get: IsNamedColor(self: Color) -> bool """ IsSystemColor=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value indicating whether this System.Drawing.Color structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the System.Drawing.KnownColor enumeration. Get: IsSystemColor(self: Color) -> bool """ Name=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the name of this System.Drawing.Color. Get: Name(self: Color) -> str """ R=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the red component value of this System.Drawing.Color structure. Get: R(self: Color) -> Byte """ AliceBlue=None AntiqueWhite=None Aqua=None Aquamarine=None Azure=None Beige=None Bisque=None Black=None BlanchedAlmond=None Blue=None BlueViolet=None Brown=None BurlyWood=None CadetBlue=None Chartreuse=None Chocolate=None Coral=None CornflowerBlue=None Cornsilk=None Crimson=None Cyan=None DarkBlue=None DarkCyan=None DarkGoldenrod=None DarkGray=None DarkGreen=None DarkKhaki=None DarkMagenta=None DarkOliveGreen=None DarkOrange=None DarkOrchid=None DarkRed=None DarkSalmon=None DarkSeaGreen=None DarkSlateBlue=None DarkSlateGray=None DarkTurquoise=None DarkViolet=None DeepPink=None DeepSkyBlue=None DimGray=None DodgerBlue=None Empty=None Firebrick=None FloralWhite=None ForestGreen=None Fuchsia=None Gainsboro=None GhostWhite=None Gold=None Goldenrod=None Gray=None Green=None GreenYellow=None Honeydew=None HotPink=None IndianRed=None Indigo=None Ivory=None Khaki=None Lavender=None LavenderBlush=None LawnGreen=None LemonChiffon=None LightBlue=None LightCoral=None LightCyan=None LightGoldenrodYellow=None LightGray=None LightGreen=None LightPink=None LightSalmon=None LightSeaGreen=None LightSkyBlue=None LightSlateGray=None LightSteelBlue=None LightYellow=None Lime=None LimeGreen=None Linen=None Magenta=None Maroon=None MediumAquamarine=None MediumBlue=None MediumOrchid=None MediumPurple=None MediumSeaGreen=None MediumSlateBlue=None MediumSpringGreen=None MediumTurquoise=None MediumVioletRed=None MidnightBlue=None MintCream=None MistyRose=None Moccasin=None NavajoWhite=None Navy=None OldLace=None Olive=None OliveDrab=None Orange=None OrangeRed=None Orchid=None PaleGoldenrod=None PaleGreen=None PaleTurquoise=None PaleVioletRed=None PapayaWhip=None PeachPuff=None Peru=None Pink=None Plum=None PowderBlue=None Purple=None Red=None RosyBrown=None RoyalBlue=None SaddleBrown=None Salmon=None SandyBrown=None SeaGreen=None SeaShell=None Sienna=None Silver=None SkyBlue=None SlateBlue=None SlateGray=None Snow=None SpringGreen=None SteelBlue=None Tan=None Teal=None Thistle=None Tomato=None Transparent=None Turquoise=None Violet=None Wheat=None White=None WhiteSmoke=None Yellow=None YellowGreen=None
class Jaro: def similarity(self, s, t): if not s and not t: return 1 if not s or not t: return 0 if len(s) > len(t): s, t = t, s max_dist = (len(t) // 2) - 1 s_matched = [] t_matched = [] matches = 0 for i, c in enumerate(s): for j in range(max(0, i-max_dist), min(len(t), i+max_dist+1)): if c == t[j]: matches += 1 s_matched.append(c) t_matched.insert(j, c) break transpositions = 0 for m in range(0, len(s_matched)): if(s_matched[m] != t_matched[m]): transpositions += 1 return (matches/len(s) + matches / len(t) + (matches-(transpositions//2)) / matches) / 3 def dissimilarity(self, s, t): return 1 - self.similarity(s, t) def __repr__(self): return 'Jaro'
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Escribe un programa que solicite dos números enteros al usuario y muestre por pantalla la suma de todos los números enteros que hay entre los dos números (ambos números incluidos). Ejemplo: Introduce el número de inicio: 4 Introduce el número de fin: 8 El resusltado es: 30 """ inicio = int(input("Introduce el número de inicio: ")) fin = int(input("Introduce el número de fin: ")) if inicio > fin: inicio, fin = fin, inicio print(f"El resusltado es: {sum(range(inicio, fin + 1))}")
class Smartphone: def gallary(self): print("Gallary") def browser(self): print("Browser") def app_store(self): print("App Store") x = Smartphone() x.gallary() x.browser() x.gallary()
class Solution: """ @param nums: The number array @return: Return the single number """ def getSingleNumber(self, nums): n = len(nums) if n == 1: return nums[0] if nums[n // 2] == nums[n - n // 2]: if n // 2 % 2 == 0: return self.getSingleNumber(nums[n - n // 2 + 1:]) else: return self.getSingleNumber(nums[: n // 2]) else: if n // 2 % 2 == 0: if nums[n // 2] == nums[n // 2 - 1]: return self.getSingleNumber(nums[: n // 2 - 1]) else: print(nums[n // 2 % 2:]) return self.getSingleNumber(nums[n // 2:]) else: if nums[n // 2] == nums[n // 2- 1]: return self.getSingleNumber(nums[n // 2 + 1:]) else: return self.getSingleNumber(nums[: n // 2])
''' @file ion/core/__init__.py @mainpage Overview @section intro Introduction This is the repository that defines the COI services. @note Initially, all ION services are defined here and later moved to subsystem repositories. COI services are intended to be deployed as part of the ION system launch. Services are deployed in pyon capability containers. @see Architecture page at https://confluence.oceanobservatories.org/display/syseng/CIAD+COI+Common+Operating+Infrastructure @see COI Services definition at https://confluence.oceanobservatories.org/display/syseng/CIAD+OV+Services ''' __author__ = 'mmeisinger'
PATH_IMAGE = "img" BACKGROUND_IMAGE = 'background' LOOT_IMAGE = 'point_5' GHOST_RED_IMAGE = 'ghost_red_30' GHOST_BLUE_IMAGE = 'ghost_blue_30' GHOST_PINK_IMAGE = 'ghost_pink_30' GHOST_ORANGE_IMAGE = 'ghost_orange_30' FONT_REGULAR = 'couriernew_regular.ttf' FONT_BOLD = 'couriernew_bold.ttf' PACMAN_SIZE = (30, 30) GHOST_SIZE = (30, 30) LOOT_VERTICAL_SPACE = 18 LOOT_HORIZONTAL_SPACE = 22.5 SCREEN_SIZE = (700, 700)
'''ESTRUTURA DE REPETIÇÃO WHILE, LAÇOS DE REPETIÇÃO (PARTE 2)''' print('*' * 40, '\nEquanto c < 10 faça:') c = 0 while c < 10: #Enquanto c < 10 faça: print(c, end=' ') c += 1 print('END') print('*' * 40, '\nEnquanto o valor digitado NÃO for 0 faça:') n = 1 while n != 0: #condição de PARADA n = int(input('Digite um valor: ')) print('END') print('*' * 40, '\n:Enquanto não for digitado ZERO(0), conte quantos números são pares e ímpares, e informe no final.') n = 1 par = impar = 0 while n != 0: n = int(input('Digite um valor: ')) if n != 0: if n % 2 == 0: par += 1 else: impar += 1 print('Foram digitados {} números pares, e {} números ímpares.'.format(par, impar))
""" # @Time : 2020/9/17 # @Author : Jimou Chen """ def T(n): if n == 1: return 4 elif n > 1: return 3 * T(n - 1) def T(n): if n == 1: return 1 elif n > 1: return 2 * T(n // 3) + n print(T(5))
def v1(ss): """ soma de variavel, mas já está declarada """ ss += 1 if ss == 100: try: input(f"Atingiu {ss} vez!") # yield ss return 0 except KeyboardInterrupt: print('\nObrigado por usar nosso programa teste!') return -1 return ss def main(): vari = 0 while vari != -1: vari = v1(vari) main()
''' Created on Sat 04/04/2020 11:55:38 99 Bottles of Beer @author: MarsCandyBars ''' class BottlesOfBeer(): def __init__(self): ''' Description: This method provides attributes for the main lyrics of the song to make looping cleaner. Args: None. Returns: Attributes for the lyrics of '99 Bottles of Beer' up to the last bottle. ''' lyric1 = ('bottles of beer on the wall,') self.lyric1 = lyric1 lyric2 = ('bottles of beer. Take one down and pass it around,') self.lyric2 = lyric2 lyric3 = ('bottles of beer on the wall.\n') self.lyric3 = lyric3 def lyric_print(): ''' Description: This function provides looping for the main song and adds the last 2 lines. Args: None. Returns: Prints the lyrics for the entire song. ''' #Calling class BottlesOfBeer() call = BottlesOfBeer() #Setting counter for loop beer_count = 99 for i in range(99, -1, -1): if beer_count > 1: print(beer_count, call.lyric1, beer_count, call.lyric2, (beer_count - 1), call.lyric3) beer_count -= 1 #Exits if-statement in order to provide the last two lines of the song, whose format #is different from the rest of the song. else: print(beer_count, 'bottle of beer on the wall,', beer_count, 'bottle of beer.', 'Take one down and pass it around, no more bottles of beer on the wall.\n') beer_count = 99 print('No more bottles of beer on the wall, no more bottles of beer. Go to the', 'store and buy some more,', beer_count, 'bottles of beer on the wall.') #Breaks from the loop at the end of the song. break #Calling lyric_print() function. lyric_print()
class Library: def __init__(self, id, books, signup_days, book_p_day): self.id = id self.books = books self.signup_days = signup_days self.book_p_day = book_p_day def score(self, books_so_far): possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far]) return possible_reward * self.book_p_day / self.signup_days def score4(self, books_so_far): possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far]) return possible_reward * self.book_p_day / self.signup_days**3 def score2(self, books_so_far, days_left): books = sorted(self.books.items(), key=lambda x: x[1], reverse=True) n_books = int(days_left / self.book_p_day) selected = [] i = 0 while n_books > 0 and i < len(books): if books[i][0] not in books_so_far: selected.append(books[i][1]) n_books -= 1 i += 1 return sum(selected) * self.book_p_day / self.signup_days def score3(self, books_so_far): possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far]) return possible_reward * self.book_p_day / self.signup_days**6 def score5(self, books_so_far): scores = [self.books[id] for id in self.books.keys() if id not in books_so_far] possible_reward = sum(scores) return 0 if len(scores)==0 else possible_reward * (len(scores) - self.signup_days) / len(scores)
#Write a program that prompts for a file name, then opens that file and reads through the file, looking for lines of the form: #X-DSPAM-Confidence: 0.8475 #Count these lines and extract the floating point values from each of the lines and compute the average of those values #and produce an output as shown below. Do not use the sum() function or a variable named sum in your solution. #You can download the sample data at http://www.py4e.com/code3/mbox-short.txt when you are testing below enter mbox-short.txt as the file name # Use the file name mbox-short.txt as the file name fname = input("Enter file name: ") fh = open(fname) count = 0 add = 0 for line in fh: if not line.startswith("X-DSPAM-Confidence:") : continue bnpos = line.find('0') host = line[bnpos:] fhost = float(host) count = count +1 add = add + fhost print("Average spam confidence",add/count)
''' ''' __version__ = '0.1-dev' device_config_name = 'Devices' exp_config_name = 'experiment'
# # Copyright 2015 Tickle Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # class LocalizedString(object): def __init__(self, source, localized=None, comment=None): """ :type source: str :type localized: str :type comment: str :rtype: LocalizedString """ assert source, 'Source could not be none' self.source = source """:type: str""" self._localized = localized or '' """:type: str""" self.comment = comment """:type: str""" @property def localized(self): """ :rtype: str """ return self._localized or self.source @localized.setter def localized(self, new_localized): """ :type new_localized: str """ self._localized = new_localized @property def stored_localized(self): """ :rtype: str """ return self._localized def __str__(self): return repr(self) def __repr__(self): escaped_source = self.source.replace('"', r'\"') escaped_localized = self._localized.replace('"', r'\"') if self._localized else '' result = '"{escaped_source}" = "{escaped_localized}";'.format(**locals()) if self.comment: result = '/* {} */\n{}'.format(self.comment, result) return result def __eq__(self, other): if not isinstance(other, LocalizedString): return False else: return self.source == other.source and self._localized == other._localized and self.comment == other.comment
# Python code to demonstrate naive # method to compute gcd ( Euclidean algo ) def computeGCD(x, y): while(y): x, y = y, x % y return x a = 60 b= 48 # prints 12 print ("The gcd of 60 and 48 is : ",end="") print (computeGCD(60,48))
__all__ = ['LEAGUE_IDS'] LEAGUE_IDS ={ "BSA": 444, "PL": 445, "ELC": 446, "EL1": 447, "EL2": 448, "DED": 449, "FL1": 450, "FL2": 451, "BL1": 452, "BL2": 453, "PD": 455, "SA": 456, "PPL": 457, "DFB": 458, "SB": 459, "CL": 464, "AAL": 466 } """ 更新当前赛季联赛序号 import requests import json __all__ = ['LEAGUE_IDS'] res = requests.get('http://api.football-data.org/v1/competitions') competitions = json.loads(res.content.decode('utf-8')) LEAGUE_IDS = {} for cpt in competitions: LEAGUE_IDS[cpt['league']] = cpt['id'] """
#criando uma classe "Pessoa", que posteriormente será importada ,no #arquivo "main" #aonde tem o if deve ser usado soemnte o retun e msg que está escrita #pois deve haver um método #get para os outros métoods que vão conter ações ou valores class Pessoa: #cridndo método connstrutor,e passando parametros para ele e utilizando o "self" #para poder charmar essas variaveis que contém os valores ,dentro de outros #métodos dentro dentro dessa classe. def __init__(self,nome,idade,comendo=False,falando=False): self.nome = nome self.idade = idade self.comendo = comendo self.falando = falando #criando o método comer,que tem o,self,por convenção para fazer a ligação #passando o parametro "alimento",que recebera o nome de uma comida #esse parametro "alimento",receberá um valor no arquivo "main". #lembrando que aonde contém o print deve ser um return,para poder ver #a msg deve ter um método get, que será criado. def comer(self,alimento): if self.comendo: return f'{self.nome} já está comendo' self.comendo = True return (f'{self.nome} está comendo {alimento}')
#1.soru print("katma deger ciro hesaplama") tsm=int(input("toplam satis miktarinizi giriniz:")) hm=int(input("hammadde maliyetinizi giriniz:")) bog=int(input("bakim onarim maliyetinizi giriniz:")) sg=int(input("sevkiyat giderlerinizi giriniz:")) sahg=int(input("satin alinan hizmet giderlerinizi giriniz:")) def kdc(tsm,hm,bog,sg,sahg): kdc=tsm-(hm+bog+sg+sahg) if (kdc)>1000: print("işletme katma değer cirosu yüksektir.") elif (kdc)<500: print("işletme katma değer cirosu düşüktür.") else: print("işletme katma değer cirosu normaldir.") print(kdc) kdc(tsm,hm,bog,sg,sahg) #2.soru def mcs(cs,tms): global muscs muscs=cs/tms return muscs def mcsü(cas,tmus): global mucasu mucasu=cas/tmus return mucasu def fark(mucasu,muscs): calısmasurefark=mucasu-muscs print("çalışma süreleri arasındaki fark",calısmasurefark) muscs=int(input("yılınızı giriniz")) cs=int(input("calısan süresini giriniz:")) tms=int(input("toplam musteri sayısını giriniz:")) mucasu=int(input("farkını almak istediğiniz yılı giriniz:")) cas=int(input("calısan süresini giriniz:")) tmus=int(input("toplam musteri sayısını giriniz:")) musterilerlecalismasuresi=mcs(cs,tms) musterilerlecalismasuresii=mcsü(cas,tmus) fark(musterilerlecalismasuresi,musterilerlecalismasuresii) #3.SORU print("ilk altı aylık gelir kalemleri") yg=int(input("yazılım gelirinizi giriniz:")) fg=int(input("finansman gelirinizi giriniz:")) usg=int(input("ürün satış gelirinizi giriniz:")) print("ilk altı aylık gider kalemleri") cm=int(input("calısan maaslarını giriniz:")) kg=int(input("kira gelirinizi giriniz:")) dm=int(input("donanım maliyetlerinizi giriniz:")) print("son altı aylık gelir kalemleri") yage=int(input("yazılım gelirinizi giriniz")) sg=int(input("sponsorluk gelirinizi giriniz:")) eg=int(input("e ticaret gelirinizi giriniz:")) usage=int(input("ürün satış gelirinizi giriniz:")) print("son altı aylık gider kalemleri") cama=int(input("calısan maaslarını giriniz:")) kigi=int(input("kira giderinizi giriniz:")) bm=int(input("bakım maliyetinizi giriniz:")) def gelir(yg,fg,usg): global ilkGelir ilkGelir=yg+fg+usg return ilkGelir def gider(cm,kg,dm): global ilkGider ilkGider=cm+kg+dm return ilkGider def gelir2(yage,sg,eg,usage): global ikinciGelir ikinciGelir=yage+sg+eg+usage return ikinciGelir def gider2(cama,kigi,bm): global ikinciGider ikinciGider=cama+kigi+bm return ikinciGider def karHesapla(ilkGelir,ilkGider,ikinciGelir,ikinciGider): kar=(ilkGelir-ilkGider)-(ikinciGelir-ikinciGider) if (kar>5000): print("işletme çok karlı") elif (kar<1000): print("işletme yeterince karlı degil") else: print("işletme karı normal") ilkGelirimiz=gelir(yg,fg,usg) ilkGiderimiz=gider(cm,kg,dm) ikinciGelirimiz=gelir2(yage,sg,eg,usage) ikinciGiderimiz=gider2(cama,kigi,bm) karHesapla(ilkGelirimiz,ilkGiderimiz,ikinciGelirimiz,ikinciGiderimiz) #4.SORU print("dönem sonu stok") ks=int(input("koltuk sayınızı giriniz:")) ys=int(input("yatak sayınızı giriniz:")) ds=int(input("dolap sayınızı giriniz:")) print("dönem bası stok") ksa=int(input("koltuk sayınızı giriniz:")) ysa=int(input("yatak sayınızı giriniz:")) dsa=int(input("dolap sayınızı giriniz:")) def dönemBasi(ks,ys,ds): global dönemBasiStok dönemBasiStok=ks+ys+ds return dönemBasiStok def dönemSonu (ksa,ysa,dsa): global dönemSonuStok dönemSonuStok=ksa+ysa+dsa return dönemSonuStok def ortalama(dönemSonuStok,dönemBasiStok): ortalamaStok=(dönemSonuStok+dönemBasiStok)/2 print("ortalama stok miktarı",ortalamaStok) dönemBasiStokMiktari=dönemBasi(ks,ys,ds) dönemSonuStokMiktari=dönemSonu(ksa,ysa,dsa) ortalama(dönemBasiStokMiktari,dönemSonuStokMiktari)
class Solution: def intersection(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ return list(set(nums1) & set(nums2)) if __name__ == '__main__': solution = Solution() print(solution.intersection([1, 2, 2, 1], [2, 2])) else: pass
#Programa que diz se ano é bissexto ou não: ano = int(input('Digite um ano: ')) if ano // 400 and ano % 4 == 0 and ano % 100 != 0 : print('{} é bissexto'.format(ano)) else: print('{} não é ano bissexto.'.format(ano))
"""Blank file for Python transversal. This can be deleted or renamed to store the source code of your project. """
# URI Online Judge 2787 L = int(input()) C = int(input()) if L % 2 == 0: if C % 2 == 0: print(1) else: print(0) else: if C % 2 == 0: print(0) else: print(1)
''' Clase que modela una entidad de recomendación, contiene la informacion de automoviles y perfil ''' class Recommendation: def __init__(self, id, arrAutomobiles, profile): self.__id=id self.__arrAutomobiles=arrAutomobiles self.__profile=profile def get_recommendation(self): dataA=[] for automobile in self.__arrAutomobiles: dataA.append(automobile.get_automobile()) data={"idRecommendation":self.__id, "results":dataA, "profile":self.__profile.get_profile()} return data def getId(self): return self.__id def setId(self, id): self.__id=id def getArrAutomobiles(self): return self.__arrAutomobiles def setResults(self, arrAutomobiles): self.__arrAutomobiles=arrAutomobiles def getProfile(self): return self.__profile def setProfile(self, profile): self.__profile=profile
def convert_string_to_int(list_a): new_list = [] for item in list_a: num = int(item) new_list.append(num) return new_list str_num_list = input().split(",") rotate_times = int(input()) int_list = convert_string_to_int(str_num_list) len_of_list = len(int_list) val = rotate_times % len_of_list first_part = int_list[0:val] second_part = int_list[val:] second_part.extend(first_part) print(second_part)
class User(): """存储用户信息""" def __init__(self,first_name,last_name): self.first_name = first_name self.last_name = last_name def describe_user(self): print("Hi Welcome "+self.first_name+self.last_name) def greet_user(self): print('Welcome ') my_user = User('he','mm') my_user.describe_user() my_user.greet_user() my_seconduser = User('wang','fei') my_seconduser.describe_user() my_seconduser.greet_user() my_thirduser = User('qin','shihuang') my_thirduser.describe_user() my_thirduser.greet_user() class Admin(User): """添加属性""" def __init__(self,first_name,last_name): super().__init__(first_name,last_name) self.privileges = Privileges() #self.privileges = ['can add post','can delete post','can ban user','can grent owner'] #def show_privileges(self): #for item in self.privileges: #print("Admin grent is like"+self.privileges) def describe_user(self): print('This is your special_user admin!!!') class Privileges(): def __init__(self): self.privileges = ['can add post','can delete post','can ban user','can grent owner'] def show_privileges(self): for item in self.privileges: print("Admin grent is like"+item) special_user= Admin('he','mm') special_user.privileges.show_privileges() #special_user.describe_user()
class Publisher: def __init__(self): self.observers = [] def add(self, observer): if observer not in self.observers: self.observers.append(observer) else: print('Failed to add: {}'.format(observer)) def remove(self, observer): try: self.observers.remove(observer) except ValueError: print('Failed to remove: {}'.format(observer)) def notify(self): [o.notify(self) for o in self.observers] class DefaultFormatter(Publisher): def __init__(self, name): Publisher.__init__(self) self.name = name self._data = 0 def __str__(self): return "{}: '{}' has data = {}".format(type(self).__name__, self.name, self._data) @property def data(self): return self._data @data.setter def data(self, new_value): try: self._data = int(new_value) except ValueError as e: print('Error: {}'.format(e)) self.notify() class HexFormatter: def notify(self, publisher): print("{}: '{}' has now hex data = {}".format(type(self).__name__, publisher.name, hex(publisher.data))) class BinaryFormatter: def notify(self, publisher): print("{}: '{}' has now bin data = {}".format(type(self).__name__, publisher.name, bin(publisher.data))) def main(): df = DefaultFormatter('test1') print(df) print() hf = HexFormatter() df.add(hf) df.data = 3 print(df) print() bf = BinaryFormatter() df.add(bf) df.data = 21 print(df) print() df.remove(hf) df.data = 40 print(df) print() df.remove(hf) df.add(bf) df.data = 'hello' print(df) print() df.data = 15.8 print(df) if __name__ == '__main__': main()
Version = "5.6.5" if __name__ == "__main__": print (Version)
a = int(input('Digite um número para saber sua tabuada :')) n1 = a*1 n2 = a*2 n3 = a*3 n4 = a*4 n5 = a*5 n6 = a*6 n7 = a*7 n8 = a*8 n9 = a*9 n10 = a*10 print('A sua tabuada é') print('{} x 1 = {}'.format(a, n1)) print('{} x 2 = {}'.format(a, n2)) print('{} x 3 = {}'.format(a, n3)) print('{} x 4 = {}'.format(a, n4)) print('{} x 5 = {}'.format(a, n5)) print('{} x 6 = {}'.format(a, n6)) print('{} x 7 = {}'.format(a, n7)) print('{} x 8 = {}'.format(a, n8)) print('{} x 9 = {}'.format(a, n9)) print('{} x 10 = {}'.format(a, n10))
'''Implements /src/Resource/index.ts''' class Resource: ''' Enum implemenation ''' class Types: WOOD = 'wood' COAL = 'coal' URANIUM = 'uranium' def __init__(self, type, amount) -> None: self.type = type self.amount = amount
class RNNConfig(object): """ Holds logistic regression model hyperparams. :param height: image height :type heights: int :param width: image width :type width: int :param channels: image channels :type channels: int :param batch_size: batch size for training :type batch_size: int :param epochs: number of epochs :type epochs: int :param save_step: when step % save_step == 0, the model parameters are saved. :type save_step: int :param learning_rate: learning rate for the optimizer :type learning_rate: float :param momentum: momentum param :type momentum: float """ def __init__(self, vocab_size=25000, batch_size=32, embedding_dim=100, rnn_dim=100, output_dim=2, layers=1, epochs=8, learning_rate=0.01, momentum=0.2, bidirectional=False, opt="sgd", drop=0): self.vocab_size = vocab_size self.batch_size = batch_size self.embedding_dim = embedding_dim self.rnn_dim = rnn_dim self.layers = layers self.output_dim = output_dim self.epochs = epochs self.learning_rate = learning_rate self.momentum = momentum self.bidirectional = bidirectional self.opt = opt self.drop = drop def __str__(self): """ Get all attributs values. :return: all hyperparams as a string :rtype: str """ status = "vocab_size = {}\n".format(self.vocab_size) status += "batch_size = {}\n".format(self.batch_size) status += "embedding_dim = {}\n".format(self.embedding_dim) status += "rnn_dim = {}\n".format(self.rnn_dim) status += "layers = {}\n".format(self.layers) status += "output_dim = {}\n".format(self.output_dim) status += "epochs = {}\n".format(self.epochs) status += "learning_rate = {}\n".format(self.learning_rate) status += "momentum = {}\n".format(self.momentum) status += "bidirectional = {}\n".format(self.bidirectional) status += "opt = {}\n".format(self.opt) status += "drop = {}\n".format(self.drop) return status
t = int(input()) i=0 while i < t: st = str(input()) length = len(st) j = 0 cnt = 0 while j < length: num = int(st[j]) #print(num) if num == 4: cnt = cnt + 1 j=j+1 print(cnt) i=i+1
# # @lc app=leetcode id=693 lang=python3 # # [693] Binary Number with Alternating Bits # # https://leetcode.com/problems/binary-number-with-alternating-bits/description/ # # algorithms # Easy (58.47%) # Likes: 359 # Dislikes: 74 # Total Accepted: 52.4K # Total Submissions: 89.1K # Testcase Example: '5' # # Given a positive integer, check whether it has alternating bits: namely, if # two adjacent bits will always have different values. # # Example 1: # # Input: 5 # Output: True # Explanation: # The binary representation of 5 is: 101 # # # # Example 2: # # Input: 7 # Output: False # Explanation: # The binary representation of 7 is: 111. # # # # Example 3: # # Input: 11 # Output: False # Explanation: # The binary representation of 11 is: 1011. # # # # Example 4: # # Input: 10 # Output: True # Explanation: # The binary representation of 10 is: 1010. # # # # @lc code=start class Solution: def hasAlternatingBits(self, n: int) -> bool: b = list(bin(n)[2:]) if len(b)<2: return True else: return b[0]!=b[1] and len(set(b[::2]))==1 and len(set(b[1::2]))==1 # @lc code=end
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'memconsumer', 'type': 'none', 'dependencies': [ 'memconsumer_apk', ], }, { 'target_name': 'memconsumer_apk', 'type': 'none', 'variables': { 'apk_name': 'MemConsumer', 'java_in_dir': 'java', 'resource_dir': 'java/res', 'native_lib_target': 'libmemconsumer', }, 'dependencies': [ 'libmemconsumer', ], 'includes': [ '../../../build/java_apk.gypi' ], }, { 'target_name': 'libmemconsumer', 'type': 'shared_library', 'sources': [ 'memconsumer_hook.cc', ], 'libraries': [ '-llog', ], }, ], }
# https://leetcode.com/problems/contains-duplicate class Solution: def containsDuplicate(self, nums): hs = set() for num in nums: hs.add(num) return len(hs) != len(nums)
class Emitter: """This class implements a simple event emitter. Args: emitterIsEnabled: enable callbacks execution? Example usage:: callback = lambda message: print(message) event = Emitter() event.on('ready', callback) event.emit('ready', 'Finished!') """ def __init__(self, emitterIsEnabled: bool = True, *args, **kwargs): self.callbacks = None self.emitterIsEnabled = emitterIsEnabled def on(self, eventName: str = "", callback=None): """It sets the callback functions. Args: eventName: name of the event callback: function """ if self.callbacks is None: self.callbacks = {} if eventName in self.callbacks: self.callbacks[eventName].append(callback) else: self.callbacks[eventName] = [callback] def emit(self, eventName: str = "", *args, **kwargs): """It emits an event, and calls the corresponding callback function. Args: eventName: name of the event. """ if self.emitterIsEnabled: if self.callbacks is not None and len(eventName) > 0: if eventName in self.callbacks: for callback in self.callbacks[eventName]: if callback.__code__.co_argcount > 0: callback(*args, **kwargs) else: callback() def clearEvent(self, eventName: str): """It clears the callbacks associated to a specific event name. Args: eventName: name of the event. """ if eventName in self.callbacks: del self.callbacks[eventName] def clearAllEvents(self): """It clears all events.""" self.callbacks = None def disableEvents(self): """It disables emit function.""" self.emitterIsEnabled = False def enableEvents(self): """It enables emit function.""" self.emitterIsEnabled = True
""" Class to count the inversion count using merge sort""" class InversionCount: def count(self, A: [int]) -> [int]: """ Count and return the array containing the count of each element """ index_array = [] rc_arr = [] for ind in range(0, len(A)): index_array.append(ind) rc_arr.append(0) self.sort(A, index_array, 0, len(index_array) - 1, rc_arr) return rc_arr def merge(self, A, ind, p, q, r, rc_array): """ This method does the same work as mergeSort but we will be checking for the inversion and increase the count """ left = ind[p:q + 1] right = ind[q + 1:r + 1] i = 0 j = 0 ic = 0 k = p while i < len(left) and j < len(right): if A[left[i]] > A[right[j]]: ind[k] = right[j] ic += 1 k += 1 j += 1 else: rc_array[left[i]] = rc_array[left[i]] + ic ind[k] = left[i] i += 1 k += 1 while i < len(left): rc_array[left[i]] = rc_array[left[i]] + ic ind[k] = left[i] k += 1 i += 1 while j < len(right): ind[k] = right[j] k += 1 j += 1 def sort(self, A, index, p, r, rc_arr): """Function to Divide the input Array into equal sub-arrays""" if p < r: q = (p + r) // 2 self.sort(A, index, p, q, rc_arr) self.sort(A, index, q + 1, r, rc_arr) self.merge(A, index, p, q, r, rc_arr) if __name__ == "__main__": A = [5, 10, 4, 7, 9, 2, 1, 0] print(InversionCount().count(A))
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # class CommentStreamA: def __init__(self): self.data = None @staticmethod def parse(dir, buff): csa = CommentStreamA() buff.seek(dir.Location.Rva) csa.data = buff.read(dir.Location.DataSize).decode() return csa def __str__(self): return 'CommentA: %s' % self.data
# # PySNMP MIB module Nortel-MsCarrier-MscPassport-DataCollectionMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-DataCollectionMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:20:12 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, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection") DisplayString, Integer32, RowStatus, Gauge32, Counter32, Unsigned32, StorageType = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-StandardTextualConventionsMIB", "DisplayString", "Integer32", "RowStatus", "Gauge32", "Counter32", "Unsigned32", "StorageType") AsciiString, EnterpriseDateAndTime, NonReplicated = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-TextualConventionsMIB", "AsciiString", "EnterpriseDateAndTime", "NonReplicated") mscPassportMIBs, mscComponents = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-UsefulDefinitionsMIB", "mscPassportMIBs", "mscComponents") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, Counter64, MibIdentifier, NotificationType, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ModuleIdentity, IpAddress, iso, Gauge32, Counter32, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Counter64", "MibIdentifier", "NotificationType", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ModuleIdentity", "IpAddress", "iso", "Gauge32", "Counter32", "Bits", "Unsigned32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") dataCollectionMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14)) mscCol = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21)) mscColRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1), ) if mibBuilder.loadTexts: mscColRowStatusTable.setStatus('mandatory') mscColRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex")) if mibBuilder.loadTexts: mscColRowStatusEntry.setStatus('mandatory') mscColRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscColRowStatus.setStatus('mandatory') mscColComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColComponentName.setStatus('mandatory') mscColStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColStorageType.setStatus('mandatory') mscColIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("accounting", 0), ("alarm", 1), ("log", 2), ("debug", 3), ("scn", 4), ("trap", 5), ("stats", 6)))) if mibBuilder.loadTexts: mscColIndex.setStatus('mandatory') mscColProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10), ) if mibBuilder.loadTexts: mscColProvTable.setStatus('mandatory') mscColProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex")) if mibBuilder.loadTexts: mscColProvEntry.setStatus('mandatory') mscColAgentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(20, 10000), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscColAgentQueueSize.setStatus('obsolete') mscColStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11), ) if mibBuilder.loadTexts: mscColStatsTable.setStatus('mandatory') mscColStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex")) if mibBuilder.loadTexts: mscColStatsEntry.setStatus('mandatory') mscColCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColCurrentQueueSize.setStatus('mandatory') mscColRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColRecordsRx.setStatus('mandatory') mscColRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColRecordsDiscarded.setStatus('mandatory') mscColTimesTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266), ) if mibBuilder.loadTexts: mscColTimesTable.setStatus('mandatory') mscColTimesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColTimesValue")) if mibBuilder.loadTexts: mscColTimesEntry.setStatus('mandatory') mscColTimesValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1, 1), EnterpriseDateAndTime().subtype(subtypeSpec=ValueSizeConstraint(5, 5)).setFixedLength(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscColTimesValue.setStatus('mandatory') mscColTimesRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: mscColTimesRowStatus.setStatus('mandatory') mscColLastTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275), ) if mibBuilder.loadTexts: mscColLastTable.setStatus('obsolete') mscColLastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColLastValue")) if mibBuilder.loadTexts: mscColLastEntry.setStatus('obsolete') mscColLastValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275, 1, 1), EnterpriseDateAndTime().subtype(subtypeSpec=ValueSizeConstraint(19, 19)).setFixedLength(19)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColLastValue.setStatus('obsolete') mscColPeakTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279), ) if mibBuilder.loadTexts: mscColPeakTable.setStatus('mandatory') mscColPeakEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColPeakValue")) if mibBuilder.loadTexts: mscColPeakEntry.setStatus('mandatory') mscColPeakValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscColPeakValue.setStatus('mandatory') mscColPeakRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: mscColPeakRowStatus.setStatus('mandatory') mscColSp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2)) mscColSpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1), ) if mibBuilder.loadTexts: mscColSpRowStatusTable.setStatus('mandatory') mscColSpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex")) if mibBuilder.loadTexts: mscColSpRowStatusEntry.setStatus('mandatory') mscColSpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpRowStatus.setStatus('mandatory') mscColSpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpComponentName.setStatus('mandatory') mscColSpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpStorageType.setStatus('mandatory') mscColSpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: mscColSpIndex.setStatus('mandatory') mscColSpProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10), ) if mibBuilder.loadTexts: mscColSpProvTable.setStatus('mandatory') mscColSpProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex")) if mibBuilder.loadTexts: mscColSpProvEntry.setStatus('mandatory') mscColSpSpooling = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("off", 0), ("on", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscColSpSpooling.setStatus('mandatory') mscColSpMaximumNumberOfFiles = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: mscColSpMaximumNumberOfFiles.setStatus('mandatory') mscColSpStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11), ) if mibBuilder.loadTexts: mscColSpStateTable.setStatus('mandatory') mscColSpStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex")) if mibBuilder.loadTexts: mscColSpStateEntry.setStatus('mandatory') mscColSpAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpAdminState.setStatus('mandatory') mscColSpOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpOperationalState.setStatus('mandatory') mscColSpUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpUsageState.setStatus('mandatory') mscColSpAvailabilityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpAvailabilityStatus.setStatus('mandatory') mscColSpProceduralStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpProceduralStatus.setStatus('mandatory') mscColSpControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpControlStatus.setStatus('mandatory') mscColSpAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpAlarmStatus.setStatus('mandatory') mscColSpStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 15))).clone(namedValues=NamedValues(("hotStandby", 0), ("coldStandby", 1), ("providingService", 2), ("notSet", 15))).clone('notSet')).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpStandbyStatus.setStatus('mandatory') mscColSpUnknownStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpUnknownStatus.setStatus('mandatory') mscColSpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12), ) if mibBuilder.loadTexts: mscColSpOperTable.setStatus('mandatory') mscColSpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex")) if mibBuilder.loadTexts: mscColSpOperEntry.setStatus('mandatory') mscColSpSpoolingFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpSpoolingFileName.setStatus('mandatory') mscColSpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13), ) if mibBuilder.loadTexts: mscColSpStatsTable.setStatus('mandatory') mscColSpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex")) if mibBuilder.loadTexts: mscColSpStatsEntry.setStatus('mandatory') mscColSpCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpCurrentQueueSize.setStatus('mandatory') mscColSpRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpRecordsRx.setStatus('mandatory') mscColSpRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColSpRecordsDiscarded.setStatus('mandatory') mscColAg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3)) mscColAgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1), ) if mibBuilder.loadTexts: mscColAgRowStatusTable.setStatus('mandatory') mscColAgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColAgIndex")) if mibBuilder.loadTexts: mscColAgRowStatusEntry.setStatus('mandatory') mscColAgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgRowStatus.setStatus('mandatory') mscColAgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgComponentName.setStatus('mandatory') mscColAgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgStorageType.setStatus('mandatory') mscColAgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))) if mibBuilder.loadTexts: mscColAgIndex.setStatus('mandatory') mscColAgStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10), ) if mibBuilder.loadTexts: mscColAgStatsTable.setStatus('mandatory') mscColAgStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColAgIndex")) if mibBuilder.loadTexts: mscColAgStatsEntry.setStatus('mandatory') mscColAgCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgCurrentQueueSize.setStatus('mandatory') mscColAgRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgRecordsRx.setStatus('mandatory') mscColAgRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgRecordsDiscarded.setStatus('mandatory') mscColAgAgentStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11), ) if mibBuilder.loadTexts: mscColAgAgentStatsTable.setStatus('mandatory') mscColAgAgentStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColAgIndex")) if mibBuilder.loadTexts: mscColAgAgentStatsEntry.setStatus('mandatory') mscColAgRecordsNotGenerated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mscColAgRecordsNotGenerated.setStatus('mandatory') dataCollectionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1)) dataCollectionGroupCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1)) dataCollectionGroupCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1, 3)) dataCollectionGroupCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1, 3, 2)) dataCollectionCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3)) dataCollectionCapabilitiesCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1)) dataCollectionCapabilitiesCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1, 3)) dataCollectionCapabilitiesCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1, 3, 2)) mibBuilder.exportSymbols("Nortel-MsCarrier-MscPassport-DataCollectionMIB", mscColProvEntry=mscColProvEntry, mscColSpUsageState=mscColSpUsageState, mscColAgRowStatus=mscColAgRowStatus, mscColIndex=mscColIndex, mscColSpProvEntry=mscColSpProvEntry, mscColSpStandbyStatus=mscColSpStandbyStatus, mscColAgComponentName=mscColAgComponentName, mscColCurrentQueueSize=mscColCurrentQueueSize, mscColAgCurrentQueueSize=mscColAgCurrentQueueSize, mscColStatsEntry=mscColStatsEntry, mscColStatsTable=mscColStatsTable, mscColSpSpoolingFileName=mscColSpSpoolingFileName, mscColAgStorageType=mscColAgStorageType, mscColAgRecordsRx=mscColAgRecordsRx, mscColPeakTable=mscColPeakTable, mscColSpRecordsDiscarded=mscColSpRecordsDiscarded, mscColSpControlStatus=mscColSpControlStatus, dataCollectionGroupCA02=dataCollectionGroupCA02, dataCollectionCapabilitiesCA02A=dataCollectionCapabilitiesCA02A, mscColAgAgentStatsEntry=mscColAgAgentStatsEntry, mscColSpOperTable=mscColSpOperTable, mscColSpOperationalState=mscColSpOperationalState, mscColAgRowStatusTable=mscColAgRowStatusTable, dataCollectionMIB=dataCollectionMIB, mscColAgRowStatusEntry=mscColAgRowStatusEntry, mscColAgRecordsDiscarded=mscColAgRecordsDiscarded, mscColSpAdminState=mscColSpAdminState, mscColAgStatsTable=mscColAgStatsTable, mscColSpAlarmStatus=mscColSpAlarmStatus, mscColTimesValue=mscColTimesValue, mscColAgAgentStatsTable=mscColAgAgentStatsTable, mscColTimesRowStatus=mscColTimesRowStatus, mscColTimesTable=mscColTimesTable, mscColAgIndex=mscColAgIndex, mscColLastEntry=mscColLastEntry, mscColPeakValue=mscColPeakValue, dataCollectionGroupCA=dataCollectionGroupCA, mscColSpSpooling=mscColSpSpooling, dataCollectionCapabilitiesCA02=dataCollectionCapabilitiesCA02, mscColSpMaximumNumberOfFiles=mscColSpMaximumNumberOfFiles, mscColSpProvTable=mscColSpProvTable, mscColSpAvailabilityStatus=mscColSpAvailabilityStatus, mscColSpCurrentQueueSize=mscColSpCurrentQueueSize, mscColSpStorageType=mscColSpStorageType, dataCollectionGroupCA02A=dataCollectionGroupCA02A, mscColAg=mscColAg, mscColSpUnknownStatus=mscColSpUnknownStatus, mscColAgStatsEntry=mscColAgStatsEntry, dataCollectionGroup=dataCollectionGroup, mscCol=mscCol, mscColSpOperEntry=mscColSpOperEntry, mscColSpRowStatusEntry=mscColSpRowStatusEntry, mscColSpStateEntry=mscColSpStateEntry, mscColAgRecordsNotGenerated=mscColAgRecordsNotGenerated, mscColSpStateTable=mscColSpStateTable, mscColSpRecordsRx=mscColSpRecordsRx, mscColSpRowStatusTable=mscColSpRowStatusTable, mscColSpComponentName=mscColSpComponentName, mscColSpProceduralStatus=mscColSpProceduralStatus, mscColRowStatusTable=mscColRowStatusTable, mscColPeakEntry=mscColPeakEntry, mscColLastValue=mscColLastValue, mscColRowStatusEntry=mscColRowStatusEntry, mscColAgentQueueSize=mscColAgentQueueSize, mscColLastTable=mscColLastTable, mscColRowStatus=mscColRowStatus, mscColTimesEntry=mscColTimesEntry, mscColSp=mscColSp, mscColPeakRowStatus=mscColPeakRowStatus, mscColStorageType=mscColStorageType, dataCollectionCapabilitiesCA=dataCollectionCapabilitiesCA, mscColSpRowStatus=mscColSpRowStatus, mscColComponentName=mscColComponentName, mscColSpIndex=mscColSpIndex, mscColRecordsRx=mscColRecordsRx, mscColSpStatsTable=mscColSpStatsTable, mscColProvTable=mscColProvTable, mscColSpStatsEntry=mscColSpStatsEntry, dataCollectionCapabilities=dataCollectionCapabilities, mscColRecordsDiscarded=mscColRecordsDiscarded)
for i in range(1,101) : if(i % 2 != 0): pass else: print(i,"is even number")
class PriorityQueueBase: ''' abstract base class for a priority queue ''' class _Item: __slots_ = '_key', '_value' def __init__(self, k, v): self._key = k self._value = v def __lt__(self, other): return self._key < other._key def is_empty(self): return len(self) == 0 class UnsortedPriorityQueue(PriorityQueueBase): ''' a min-oriented priority queue implemented with unsorted list ''' def _find_min(self): ''' private function. Finds position holding smallest element in the queue''' if self.is_empty(): raise ValueError('priority queue is empty') small = self._data.first() walk = self._data.after(small) while walk is not None: if walk.element() < small.element(): small = walk walk = self._data.after(walk) return small def __init__(self): self._data = PositionalList() def __len__(self): return len(self._data) def add(self, key, value): ''' adds a key-value pair ''' self._data.add_last(self._Item(key, value)) def min(self): ''' inspect min key-value pair ''' if self.is_empty(): raise ValueError('empty') p = self._find_min() item = p.element() return (item._key, item._value) def remove_min(self): ''' remove and return min key-value pair ''' if self.is_empty(): raise ValueError('empty') p = self._find_min() item = self._data.delete(p) return (item._key, item._value) class SortedPriorityQueue(PriorityQueueBase): def __init__(self): self._data = PositionalList() def __len__(self): return len(self._data) def add(self, key, value): ''' add a key-value pair ''' newest = self._Item(key, value) walk = self._data.last() while walk is not None and newest < walk.element(): walk = self._data.before(walk) if walk is None: self._data.add_first(newest) else: self._data.add_after(newest, walk) def min(self): ''' inspects minimum key-value pair ''' if self.is_empty(): raise ValueError('empty') item = self._data.first().element() return (item._key, item._value) def remove_min(self): ''' removes and returns min key-value pair ''' if self.is_empty(): raise ValueError('empty') p = self._data.first() item = self._data.delete(p) return (item._key, item._value) class MaxPriorityQueue(PriorityQueueBase): def _left(self, j): return 2 * j + 1 def _right(self, j): return 2 * j + 2 def _parent(self, j): return (j - 1) // 2 def _swap(self, i, j): self._data[i], self._data[j] = self._data[j], self._data[i] def _upheap(self, j): parent = self._parent(j) if parent >= 0 and self._data[j] > self._data[parent]: self._swap(j, parent) self._upheap(parent) def _downheap(self, j): left = self._left(j) if left < len(self._data): big = left right = self._right(j) if right < len(self._data) and self._data[right] > self._data[left]: big = right if self._data[big] > self._data[j]: self._swap(big, j) self._downheap(big) def __len__(self): return len(self._data) def __init__(self, contents=()): self._data = [self._Item(k, v) for k, v in contents] if len(self._data) > 1: self._heapify() def _heapify(self): ''' private function. Finds first non-leaf element and performs down heap for each element from first non-leaf to root ''' first_non_leaf = self._parent(len(self._data) - 1) for i in range(first_non_leaf, -1, -1): self._downheap(i) def add(self, key, value): ''' adds key-value pair''' self._data.append(self._Item(key, value)) self._upheap(len(self._data) - 1) def max(self): ''' inspects head of the queue Head of the queue is the minimum element heap ''' if self.is_empty(): raise ValueError('empty') item = self._data[0] return (item._key, item._value) def remove_max(self): ''' removes and returns head of the queue head of the queue is the minimum element in the heap ''' if self.is_empty(): raise ValueError('empty') self._swap(0, len(self._data) - 1) item = self._data.pop() self._downheap(0) return (item._key, item._value) class MinPriorityQueue(PriorityQueueBase): def _left(self, j): return 2 * j + 1 def _right(self, j): return 2 * j + 2 def _parent(self, j): return (j - 1) // 2 def _swap(self, i, j): self._data[i], self._data[j] = self._data[j], self._data[i] def _upheap(self, j): parent = self._parent(j) if parent >= 0 and self._data[j] < self._data[parent]: self._swap(j, parent) self._upheap(parent) def _downheap(self, j): left = self._left(j) if left < len(self._data): small = left right = self._right(j) if right < len(self._data) and self._data[right] < self._data[left]: small = right if self._data[small] < self._data[j]: self._swap(small, j) self._downheap(small) def __len__(self): return len(self._data) def __init__(self, contents=()): self._data = [self._Item(k, v) for k, v in contents] if len(self._data) > 1: self._heapify() def _heapify(self): ''' private function. Finds first non-leaf element and performs down heap for each element from first non-leaf to root ''' first_non_leaf = self._parent(len(self._data) - 1) for i in range(first_non_leaf, -1, -1): self._downheap(i) def add(self, key, value): ''' adds key-value pair''' self._data.append(self._Item(key, value)) self._upheap(len(self._data) - 1) def min(self): ''' inspects head of the queue Head of the queue is the minimum element heap ''' if self.is_empty(): raise ValueError('empty') item = self._data[0] return (item._key, item._value) def remove_min(self): ''' removes and returns head of the queue head of the queue is the minimum element in the heap ''' if self.is_empty(): raise ValueError('empty') self._swap(0, len(self._data) - 1) item = self._data.pop() self._downheap(0) return (item._key, item._value) class AdaptableMinPriorityQueue(MinPriorityQueue): class Locator(MinPriorityQueue._Item): __slots_ = '_index' def __init__(self, k, v, j): super().__init__(k, v) self._index = j def _swap(self, i, j): super()._swap(i, j) self._data[i]._index = i # reset locator index, post-swap self._data[j]._index = j # reset locator index, post-swap def _validate_loc(self, loc): if not type(loc) is self.Locator: raise TypeError('not locator') j = loc._index if not (0 <= j < len(self._data) and self._data[j] is loc): raise ValueError('invalid locator') return j def _bubble(self, j): if j > 0 and self._data[j] < self._data[self._parent(j)]: self._upheap(j) else: self._downheap(j) def add(self, key, value): ''' Add a key,value pair and returns Locator for new entry ''' token = self.Locator(key, value, len(self._data)) self._data.append(token) self._upheap(len(self._data) - 1) return token def update(self, loc, newkey, newvalue): ''' Updates key and value for the entry identified by Locator loc ''' j = self._validate_loc(loc) loc._key = newkey loc._value = newvalue self._bubble(j) def remove(self, loc): ''' Remove and return (k,v) pair identified by Locator loc ''' j = self._validate_loc(loc) if j == len(self._data) - 1: self._data.pop() else: self._swap(j, len(self._data) - 1) self._data.pop() self._bubble(j) return (loc._key, loc._value) class AdaptableMaxPriorityQueue(MaxPriorityQueue): class Locator(MaxPriorityQueue._Item): __slots_ = '_index' def __init__(self, k, v, j): super().__init__(k, v) self._index = j def _swap(self, i, j): super()._swap(i, j) self._data[i]._index = i # reset locator index, post-swap self._data[j]._index = j # reset locator index, post-swap def _validate_loc(self, loc): if not type(loc) is self.Locator: raise TypeError('not locator') j = loc._index if not (0 <= j < len(self._data) and self._data[j] is loc): raise ValueError('invalid locator') return j def _bubble(self, j): if j > 0 and self._data[j] > self._data[self._parent(j)]: self._upheap(j) else: self._downheap(j) def add(self, key, value): ''' Add a key,value pair and returns Locator for new entry ''' token = self.Locator(key, value, len(self._data)) self._data.append(token) self._upheap(len(self._data) - 1) return token def update(self, loc, newkey, newvalue): ''' Updates key and value for the entry identified by Locator loc ''' j = self._validate_loc(loc) loc._key = newkey loc._value = newvalue self._bubble(j) def remove(self, loc): ''' Remove and return (k,v) pair identified by Locator loc ''' j = self._validate_loc(loc) if j == len(self._data) - 1: self._data.pop() else: self._swap(j, len(self._data) - 1) self._data.pop() self._bubble(j) return (loc._key, loc._value) class Graph: ''' representation of simple graph ( no self cycles and parallel edges ) using and adjacency map ''' def __init__(self, directed=False): self._outgoing = {} self._incoming = {} if directed else self._outgoing def is_directed(self): ''' return True if graph is directed, False otherwise ''' return self._incoming is not self._outgoing def vertex_count(self): ''' return count of all vertices in the graph ''' return len(self._outgoing) def vertices(self): ''' return iteration over all vertices in the graph ''' return self._outgoing.keys() def edge_count(self): ''' return count of all edges off the graph ''' total = sum(len(self._outgoing[v]) for v in self._outgoing) return total if self.is_directed() else total // 2 def edges(self): ''' return a set of all edges of the graph ''' result = set() for secondary_map in self._outgoing.values(): result.update(secondary_map.values()) return result def get_edge(self, u, v): ''' return the edge from u to v, or None if not adjacent. ''' return self._outgoing[u].get(v) # returns None if not adjacent def degree(self, v, outgoing=True): ''' Return number of (outgoing) edges incident to vertex v in the graph If graph is directed, optional paramter used to count incoming edges ''' adj = self._outgoing if outgoing else self._incoming return len(adj[v]) def incident_edges(self, v, outgoing=True): ''' Return all (outgoing) edges incident to vertex v in the graph. If graph is directed, optional parameter used to request incoming edges. ''' adj = self._outgoing if outgoing else self._incoming for vertex in adj[v]: yield vertex def insert_edge(self, u, v, x): ''' insert and return new edge from u to v with auxiliary element x ''' if u not in self._outgoing: self._outgoing[u] = {} if v not in self._outgoing: self._outgoing[v] = {} if u not in self._incoming: self._incoming[u] = {} if v not in self._incoming: self._incoming[v] = {} self._outgoing[u][v] = x self._incoming[v][u] = x def remove_node(self, x): del self._incoming[x] for v in self.vertices(): if x in self._outgoing[v]: del self._outgoing[v][x] def farthest(self, s): d = {} cloud = {} pq = AdaptableMaxPriorityQueue() pqlocator = {} for v in self.vertices(): if v is s: d[v] = 0 else: d[v] = -1 pqlocator[v] = pq.add(d[v], v) while not pq.is_empty(): key, u = pq.remove_max() cloud[u] = key del pqlocator[u] for v in self.incident_edges(u): if v not in cloud: wgt = self._outgoing[u][v] if d[u] + wgt > d[v]: d[v] = d[u] + wgt pq.update(pqlocator[v], d[v], v) max = 0 retnode = None for node, cost in cloud.items(): if max < cost: max = cost retnode = node return retnode def distance(self, s, y): d = {} cloud = {} pq = AdaptableMinPriorityQueue() pqlocator = {} for v in self.vertices(): if v is s: d[v] = 0 else: d[v] = float('inf') pqlocator[v] = pq.add(d[v], v) while not pq.is_empty(): key, u = pq.remove_min() cloud[u] = key del pqlocator[u] for v in self.incident_edges(u): if v not in cloud: wgt = self._outgoing[u][v] if d[u] + wgt < d[v]: d[v] = d[u] + wgt pq.update(pqlocator[v], d[v], v) return cloud[y] def dijkstra(g, s): d = {} cloud = {} pq = AdaptableMinPriorityQueue() pqlocator = {} for v in g.vertices(): if v is s: d[v] = 0 else: d[v] = float('inf') pqlocator[v] = pq.add(d[v], v) while not pq.is_empty(): key, u = pq.remove_min() cloud[u] = key del pqlocator[u] for e in g.incident_edges(u): v = e.opposite(u) if v not in cloud: wgt = e.element() if d[u] + wgt < d[v]: d[v] = d[u] + wgt pq.update(pqlocator[v], d[v], v) return cloud def query_one(g, x, w): y = g.farthest(x) n = g.vertex_count() g.insert_edge(y, n+1, w) def query_two(g, x, w): n = g.vertex_count() g.insert_edge(x, n+1, w) def query_three(g, x): y = g.farthest(x) g.remove_node(y) def query_four(g, x): y = g.farthest(x) return g.distance(x, y) def cyclicalQueries(w, m): g = Graph(directed=True) n = len(w) for i in range(n): g.insert_edge((i+1) % n+1, (i+2) % n+1, w[i]) queries = [] for _ in range(m): query = list(map(int, input().rstrip().split())) queries.append(query) result = [] for query in queries: qtype = query[0] if qtype == 1: query_one(g, query[1], query[2]) elif qtype == 2: query_two(g, query[1], query[2]) elif qtype == 3: query_three(g, query[1]) elif qtype == 4: result.append(query_four(g, query[1])) else: raise ValueError('input error') return result if __name__ == '__main__': n = int(input()) w = list(map(int, input().rstrip().split())) m = int(input()) result = cyclicalQueries(w, m) print('\n'.join(map(str, result)))
## Added by Brian Blaylock ## September 30, 2021 """ ! Experimental This is a special case template for GRIB2 model data that is stored on your local machine rather than retrieving data from remote sources. Index files are assumed to be in the same directory as the file with ".idx" appended to the file name. If you don't have these, you will need to generate them with wgrib2 (required for xarray subsetting). Only one item is allowed in the SOURCES dict, and the key is "local". Since Herbie accepts kwargs and passes them to self, you can template the local file path with any parameter, just remember to pass that parameter to the Herbie class 😋 To ask Herbie to find files with the template below you would type ..code-block:: python Herbie('2021-9-21', model="my_model", fxx=0, ...) Herbie('2021-9-21', model="my_second_model", fxx=0, ...) """ class my_model: def template(self): self.DESCRIPTION = "Local GRIB Files" self.DETAILS = { "local": "These GRIB2 files are from a locally-stored modeling experiments." } self.PRODUCTS = { # UPDATE THIS "prs": "3D pressure level fields", } self.SOURCES = { "local": f"/path/to/your/model/templated/with/{self.model}/gribfiles/{self.date:%Y%m%d%H}/nest{self.nest}/the_file.t{self.date:%H}z.{self.product}.f{self.fxx:02d}.grib2", } self.LOCALFILE = f"{self.get_remoteFileName}" class my_second_model: def template(self): self.DESCRIPTION = "Local GRIB Files" self.DETAILS = { "local": "These GRIB2 files are from a locally-stored modeling experiments." } self.PRODUCTS = { # UPDATE THIS "prs": "3D pressure level fields", } self.SOURCES = { "local": f"/path/to/your/second/model/templated/with/{self.model}/gribfiles/{self.date:%Y%m%d%H}/nest{self.nest}/the_file.t{self.date:%H}z.{self.product}.f{self.fxx:02d}.grib2", } self.LOCALFILE = f"{self.get_remoteFileName}"
class Solution: """ @param A : a list of integers @param target : an integer to be inserted @return : an integer """ def searchInsert(self, A, target): # write your code here l, r = 0, len(A) - 1 while l <= r: m = (l + r) / 2 if A[m] == target: return m elif A[m] > target: r = m - 1 else: l = m + 1 return l sl = Solution() A = [1, 3, 5, 6] target = [5, 2, 7, 0] for t in target: print sl.searchInsert(A, t)
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"example_func": "00_core.ipynb", "process_data": "01_cli.ipynb", "train": "01_cli.ipynb", "evaluate": "01_cli.ipynb", "reproduce": "01_cli.ipynb"} modules = ["core.py", "cli.py"] doc_url = "https://wm-semeru.github.io/mlproj_template/" git_url = "https://github.com/wm-semeru/mlproj_template/tree/main/" def custom_doc_links(name): return None
class RPGinfo(): author = 'BigBoi' def __init__(self,name): self.title = name def welcome(self): print("Welcome to " + self.title) @staticmethod def info(): print("Made using my amazing powers and Raseberry Pi's awesome team") @classmethod def credits(cls,name): print("Thanks for playing "+str(name)) print("Created by "+cls.author)
def previous_answer(): #1. num1 = int(input("Please enter your number!")) if num1 % 2 == 0: print("Your number is EVEN number!") else: print("Your number is ODD number!") #2. num2 = int(input("Please enter second number!")) num3 = int(input("Please enter third number!")) if num2 % num3 == 0: print("second number is divisible by third number perfectly!") else: print("Second number is not divisible by third number!") # Current answer starts here. num = int(input('Please enter your number')) if num % 2 == 0: if num % 4 == 0: print('It is an even number and also a multiple of 4') else: print('It is an even number') else: print('It is an odd number')
merge_tags = { "StudyDate": 0x00080020, "StudyTime": 0x00080030, "AccessionNumber": 0x00080050, "ReferringPhysicianName": 0x00080090, "StudyInstanceUID": 0x0020000D, "StudyID": 0x00200010, "Modality": 0x00080060, # "ModalitiesInStudy": , "SeriesInstanceUID": 0x0020000E, "SeriesNumber": 0x00200011, "SOPClassUID": 0x00080016, "SOPInstanceUID": 0x00080018, # "InstanceNumber": , "PatientAge": 0x00101010, "PatientName": 0x00100010, "PatientID": 0x00100020, "PatientSex": 0x00100040, "StudyDate": 0x00080020, "NumberOfStudyRelatedSeries": 0x00201206, "NumberOfStudyRelatedInstances": 0x00201208, "BodyPartExamined": 0x00180015, } class InstanceExistedException(Exception): pass
#!/usr/bin/env python # encoding: utf-8 """ entity_list.py Created by William Makley on 2008-04-02. Copyright (c) 2008 Tritanium Enterprises. All rights reserved. """ def compare_elist(e1, e2): """Comparison function for entities.""" sp1 = e1.sorting_priority sp2 = e2.sorting_priority if sp1 > sp2: return 1 elif sp1 == sp2: return 0 else: return -1 class EntityList(list): """A container for a bunch of entities. Keeps them sorted.""" def __init__(self): list.__init__(self) def add_entity(self, entity): """Add an entity to the list""" self.append(entity) if self.size() > 0: self.sort() def remove_entity(self, entity): """Remove an entity from the list""" return self.remove(entity) def sort(self): """Sorts the EntityList""" list.sort(self, compare_elist) def size(self): return len(self) def hasVisibleEntity(self): ret = False for e in self: if e.isVisible() == True: ret = True break return ret def topVisibleEntity(self): """Returns the entity at the top of the list that's visible""" if self.size() == 0: return None i = self.size() - 1 while i >= 0: e = self[i] if e.isVisible() == True: return e i = i - 1 return None def main(): print(EntityList.__doc__) if __name__ == '__main__': main()
class Solution: def find132pattern(self, nums: list) -> bool: self.nums = nums self.dp = [[0] * len(nums) for _ in range(len(nums))] for i in range(len(nums)): for j in range(len(nums)): if j >= i + 2: self.dp[i][j] = -1 return bool(self.f(0, len(nums) - 1)) def f(self, i, j) -> int: if self.dp[i][j] != -1: return self.dp[i][j] if self.f(i + 1, j) or self.f(i, j - 1) or self.f(i + 1, j - 1): self.dp[i][j] = 1 return 1 else: if self.nums[i] < self.nums[j] < max(self.nums[i + 1:j]): self.dp[i][j] = 1 return 1 else: self.dp[i][j] = 0 return 0 class Solution_2: def find132pattern(self, nums: list) -> bool: self.stack = [nums[-1]] max_k = float('-inf') for i in range(len(nums) - 2, -1, -1): # [)区间,步长为负数时,前大于后 if nums[i] < max_k: return True while self.stack and nums[i] > self.stack[-1]: max_k = self.stack.pop(-1) self.stack.append(nums[i]) return False def push(self, x: int) -> set: tmp = set() while self.stack and x >= self.stack[-1]: top = self.stack.pop(-1) tmp.update([top]) self.stack.insert(-1, x) return tmp if __name__ == '__main__': solution = Solution_2() nums = [3, 5, 0, 3, 4] print(solution.find132pattern(nums))
""" This module collects all solvent subclasses for python file and information management with gromos """ class Solvent(): """Solvent This class is giving the needed solvent infofmation for gromos in an obj. #TODO: CONFs & TOPO in data """ name:str = None coord_file_path:str = None def __init__(self, name:str=None, coord_file:str=None): if(name!=None): self.name = name self.coord_file_path = coord_file else: raise IOError("DID not get correct Constructor arguments in "+self.__class__.name) def _return_all_paths(self)->list: coll = [] if(self.coord_file_path != None): coll.append(self.coord_file_path) return coll class H2O(Solvent): def __init__(self, coord_file_path:str=None): if(coord_file_path!=None): super().__init__(name="H2O") self.coord_file_path = coord_file_path self.atomNum=3 else: raise IOError("DID not get correct Constructor arguments in "+self.__class__.name) class CHCL3(Solvent): def __init__(self, coord_file_path:str=None): if(coord_file_path!=None): super().__init__(name="CHCL3") self.coord_file_path = coord_file_path self.atomNum=5 else: raise IOError("DID not get correct Constructor arguments in "+self.__class__.name) class DMSO(Solvent): def __init__(self, coord_file_path:str=None): if(coord_file_path!=None): super().__init__(name="DMSO") self.coord_file_path = coord_file_path self.atomNum=4 else: raise IOError("DID not get correct Constructor arguments in "+self.__class__.name)
APP_V1 = '1.0' APP_V2 = '2.0' MAJOR_RELEASE_TO_VERSION = { "1": APP_V1, "2": APP_V2, } CAREPLAN_GOAL = 'careplan_goal' CAREPLAN_TASK = 'careplan_task' CAREPLAN_CASE_NAMES = { CAREPLAN_GOAL: 'Goal', CAREPLAN_TASK: 'Task' } CT_REQUISITION_MODE_3 = '3-step' CT_REQUISITION_MODE_4 = '4-step' CT_REQUISITION_MODES = [CT_REQUISITION_MODE_3, CT_REQUISITION_MODE_4] CT_LEDGER_PREFIX = 'ledger:' CT_LEDGER_STOCK = 'stock' CT_LEDGER_REQUESTED = 'ct-requested' CT_LEDGER_APPROVED = 'ct-approved' SCHEDULE_PHASE = 'current_schedule_phase' SCHEDULE_LAST_VISIT = 'last_visit_number_{}' SCHEDULE_LAST_VISIT_DATE = 'last_visit_date_{}' ATTACHMENT_PREFIX = 'attachment:'
'''4. Write a Python program to concatenate elements of a list. ''' num = ['1', '2', '3', '4', '5'] print('-'.join(num)) print(''.join(num))
print ("Hello World") n = int(input("numero: ")) print(type(n)) print(bin(3))
def f(arr, t): # print(t) N = len(arr) x0,v0 = arr[0] l,r = x0 - t*v0, x0 + t*v0 for i in range(1, N): xi,vi = arr[i] l1, r1 = xi - t*vi, xi + t*vi if l1 < l: (l,r), (l1,r1) = (l1,r1), (l,r) if l1 > r: return False l,r = max(l,l1), min(r,r1) return True def binary_search(arr): """ min (max (...)) min max | x - x[i] | /v[i] max | x - x[i]/v[i] | and be rewritten => | x - x[i]/v[i] | <= t min | x - x[i]/v[i] | <= t | x - x[i] | / v[i] <= t 1. +(x - x[i]) <= t*v[i] => x <= x[i] + t*v[i] 2. -(x - x[i]) <= t*v[i] => x - x[i] >= -t*v[i] => x >= x[i] -t*v[i] x[i] -t*v[i] <= x <= x[i] + t*v[i] L R -1 0 1 2 3 4 5 6 7 8 time F F F F F T T T T T f """ l = -1 r = 10**9+1 for i in range(60): t = (l + r) / 2 if f(arr, t): r = t else: l = t # return float("{:.6f}".format(r)) return r n = int(input()) arr = [] for _ in range(n): item = [int(x) for x in input().split()] arr.append(item) ans = binary_search(arr) print(ans)
d, m = map(int, input().split()) month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] days = ['Thursday', 'Friday', 'Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday'] sumOfMonths = 0 for i in range(m - 1): sumOfMonths += month[i] result = sumOfMonths + d - 1 print(days[result % 7])
# # PySNMP MIB module HM2-PLATFORM-SWITCHING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HM2-PLATFORM-SWITCHING-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:19:34 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, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint") dot1dBasePortEntry, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePortEntry") hm2PlatformMibs, HmEnabledStatus = mibBuilder.importSymbols("HM2-TC-MIB", "hm2PlatformMibs", "HmEnabledStatus") ifIndex, InterfaceIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndex", "InterfaceIndexOrZero") InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType") dot1dPortGmrpEntry, = mibBuilder.importSymbols("P-BRIDGE-MIB", "dot1dPortGmrpEntry") VlanId, PortList, dot1qPortVlanEntry, dot1qFdbId, VlanIndex, dot1qVlanIndex = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId", "PortList", "dot1qPortVlanEntry", "dot1qFdbId", "VlanIndex", "dot1qVlanIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") ObjectIdentity, Counter64, Gauge32, Bits, Unsigned32, TimeTicks, Integer32, MibIdentifier, IpAddress, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter64", "Gauge32", "Bits", "Unsigned32", "TimeTicks", "Integer32", "MibIdentifier", "IpAddress", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter32", "NotificationType") TruthValue, RowStatus, DisplayString, MacAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "RowStatus", "DisplayString", "MacAddress", "TextualConvention") hm2PlatformSwitching = ModuleIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1)) hm2PlatformSwitching.setRevisions(('2011-04-12 00:00',)) if mibBuilder.loadTexts: hm2PlatformSwitching.setLastUpdated('201104120000Z') if mibBuilder.loadTexts: hm2PlatformSwitching.setOrganization('Hirschmann Automation and Control GmbH') class Hm2AgentPortMask(TextualConvention, OctetString): status = 'current' class LagList(TextualConvention, OctetString): status = 'current' class VlanList(TextualConvention, OctetString): status = 'current' class Ipv6Address(TextualConvention, OctetString): status = 'current' displayHint = '2x:' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(16, 16) fixedLength = 16 class Ipv6AddressPrefix(TextualConvention, OctetString): status = 'current' displayHint = '2x:' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 16) class Ipv6AddressIfIdentifier(TextualConvention, OctetString): status = 'current' displayHint = '2x:' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 8) class Ipv6IfIndex(TextualConvention, Integer32): status = 'current' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 2147483647) class Ipv6IfIndexOrZero(TextualConvention, Integer32): status = 'current' displayHint = 'd' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647) hm2AgentConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2)) hm2AgentLagConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2)) hm2AgentLagConfigCreate = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 1), DisplayString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(1, 15), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentLagConfigCreate.setStatus('current') hm2AgentLagSummaryConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2), ) if mibBuilder.loadTexts: hm2AgentLagSummaryConfigTable.setStatus('current') hm2AgentLagSummaryConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentLagSummaryLagIndex")) if mibBuilder.loadTexts: hm2AgentLagSummaryConfigEntry.setStatus('current') hm2AgentLagSummaryLagIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagSummaryLagIndex.setStatus('current') hm2AgentLagSummaryName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryName.setStatus('current') hm2AgentLagSummaryFlushTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 3), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryFlushTimer.setStatus('obsolete') hm2AgentLagSummaryLinkTrap = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 4), HmEnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryLinkTrap.setStatus('current') hm2AgentLagSummaryAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 5), HmEnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryAdminMode.setStatus('current') hm2AgentLagSummaryStpMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 6), HmEnabledStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryStpMode.setStatus('current') hm2AgentLagSummaryAddPort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 7), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryAddPort.setStatus('current') hm2AgentLagSummaryDeletePort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 8), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryDeletePort.setStatus('current') hm2AgentLagSummaryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 9), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryStatus.setStatus('current') hm2AgentLagSummaryType = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("dynamic", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagSummaryType.setStatus('current') hm2AgentLagSummaryStaticCapability = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 11), HmEnabledStatus().clone('disable')).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryStaticCapability.setStatus('current') hm2AgentLagSummaryHashOption = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("sourceMacVlan", 1), ("destMacVlan", 2), ("sourceDestMacVlan", 3), ("sourceIPsourcePort", 4), ("destIPdestPort", 5), ("sourceDestIPPort", 6), ("enhanced", 7)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryHashOption.setStatus('current') hm2AgentLagSummaryMinimumActiveLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8)).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryMinimumActiveLinks.setStatus('current') hm2AgentLagSummaryMaxFrameSizeLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 248), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagSummaryMaxFrameSizeLimit.setStatus('current') hm2AgentLagSummaryMaxFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 249), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentLagSummaryMaxFrameSize.setStatus('current') hm2AgentLagDetailedConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3), ) if mibBuilder.loadTexts: hm2AgentLagDetailedConfigTable.setStatus('current') hm2AgentLagDetailedConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentLagDetailedLagIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentLagDetailedIfIndex")) if mibBuilder.loadTexts: hm2AgentLagDetailedConfigEntry.setStatus('current') hm2AgentLagDetailedLagIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagDetailedLagIndex.setStatus('current') hm2AgentLagDetailedIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagDetailedIfIndex.setStatus('current') hm2AgentLagDetailedPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 3), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagDetailedPortSpeed.setStatus('current') hm2AgentLagDetailedPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagDetailedPortStatus.setStatus('current') hm2AgentLagConfigStaticCapability = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 4), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentLagConfigStaticCapability.setStatus('obsolete') hm2AgentLagConfigGroupHashOption = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("sourceMacVlan", 1), ("destMacVlan", 2), ("sourceDestMacVlan", 3), ("sourceIPsourcePort", 4), ("destIPdestPort", 5), ("sourceDestIPPort", 6), ("enhanced", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentLagConfigGroupHashOption.setStatus('current') hm2AgentLagConfigGroupMaxNumPortsPerLag = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 248), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagConfigGroupMaxNumPortsPerLag.setStatus('current') hm2AgentLagConfigGroupMaxNumOfLags = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 249), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagConfigGroupMaxNumOfLags.setStatus('current') hm2AgentLagConfigGroupNumOfLagsConfigured = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 250), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagConfigGroupNumOfLagsConfigured.setStatus('current') hm2AgentLagConfigGroupLagsConfigured = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 251), LagList()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentLagConfigGroupLagsConfigured.setStatus('current') hm2AgentLagConfigSNMPExtensionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 260)) hm2AgentLagConfigGroupPortIsLagMemberErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 260, 1)) if mibBuilder.loadTexts: hm2AgentLagConfigGroupPortIsLagMemberErrorReturn.setStatus('current') hm2AgentLagMirrorProbePortLagMemberErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 260, 2)) if mibBuilder.loadTexts: hm2AgentLagMirrorProbePortLagMemberErrorReturn.setStatus('current') hm2AgentSwitchConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8)) hm2AgentSwitchAddressAgingTimeoutTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 4), ) if mibBuilder.loadTexts: hm2AgentSwitchAddressAgingTimeoutTable.setStatus('current') hm2AgentSwitchAddressAgingTimeoutEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 4, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qFdbId")) if mibBuilder.loadTexts: hm2AgentSwitchAddressAgingTimeoutEntry.setStatus('current') hm2AgentSwitchAddressAgingTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 500000)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchAddressAgingTimeout.setStatus('current') hm2AgentSwitchStaticMacFilteringTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5), ) if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringTable.setStatus('current') hm2AgentSwitchStaticMacFilteringEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchStaticMacFilteringVlanId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchStaticMacFilteringAddress")) if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringEntry.setStatus('current') hm2AgentSwitchStaticMacFilteringVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringVlanId.setStatus('current') hm2AgentSwitchStaticMacFilteringAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringAddress.setStatus('current') hm2AgentSwitchStaticMacFilteringSourcePortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 3), Hm2AgentPortMask()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringSourcePortMask.setStatus('current') hm2AgentSwitchStaticMacFilteringDestPortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 4), Hm2AgentPortMask()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringDestPortMask.setStatus('current') hm2AgentSwitchStaticMacFilteringStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringStatus.setStatus('current') hm2AgentSwitchSnoopingGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6)) hm2AgentSwitchSnoopingCfgTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingCfgTable.setStatus('current') hm2AgentSwitchSnoopingCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchSnoopingProtocol")) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingCfgEntry.setStatus('current') hm2AgentSwitchSnoopingProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 1), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingProtocol.setStatus('current') hm2AgentSwitchSnoopingAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 2), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingAdminMode.setStatus('current') hm2AgentSwitchSnoopingPortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 3), Hm2AgentPortMask().clone(hexValue="000000000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingPortMask.setStatus('current') hm2AgentSwitchSnoopingMulticastControlFramesProcessed = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingMulticastControlFramesProcessed.setStatus('current') hm2AgentSwitchSnoopingIntfGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7)) hm2AgentSwitchSnoopingIntfTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfTable.setStatus('current') hm2AgentSwitchSnoopingIntfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchSnoopingProtocol")) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfEntry.setStatus('current') hm2AgentSwitchSnoopingIntfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfIndex.setStatus('current') hm2AgentSwitchSnoopingIntfAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 2), HmEnabledStatus().clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfAdminMode.setStatus('current') hm2AgentSwitchSnoopingIntfGroupMembershipInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 3600)).clone(260)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfGroupMembershipInterval.setStatus('current') hm2AgentSwitchSnoopingIntfMaxResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 4), Integer32().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfMaxResponseTime.setStatus('current') hm2AgentSwitchSnoopingIntfMRPExpirationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600)).clone(260)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfMRPExpirationTime.setStatus('current') hm2AgentSwitchSnoopingIntfFastLeaveAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 6), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfFastLeaveAdminMode.setStatus('current') hm2AgentSwitchSnoopingIntfMulticastRouterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 7), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfMulticastRouterMode.setStatus('current') hm2AgentSwitchSnoopingIntfVlanIDs = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 8), VlanList()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfVlanIDs.setStatus('current') hm2AgentSwitchSnoopingVlanGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8)) hm2AgentSwitchSnoopingVlanTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanTable.setStatus('current') hm2AgentSwitchSnoopingVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchSnoopingProtocol")) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanEntry.setStatus('current') hm2AgentSwitchSnoopingVlanAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanAdminMode.setStatus('current') hm2AgentSwitchSnoopingVlanGroupMembershipInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 3600)).clone(260)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanGroupMembershipInterval.setStatus('current') hm2AgentSwitchSnoopingVlanMaxResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 3), Integer32().clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanMaxResponseTime.setStatus('current') hm2AgentSwitchSnoopingVlanFastLeaveAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 4), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanFastLeaveAdminMode.setStatus('current') hm2AgentSwitchSnoopingVlanMRPExpirationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 3600)).clone(260)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanMRPExpirationTime.setStatus('current') hm2AgentSwitchSnoopingVlanReportSuppMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 6), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanReportSuppMode.setStatus('current') hm2AgentSwitchVlanStaticMrouterGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9)) hm2AgentSwitchVlanStaticMrouterTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchVlanStaticMrouterTable.setStatus('current') hm2AgentSwitchVlanStaticMrouterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "Q-BRIDGE-MIB", "dot1qVlanIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchSnoopingProtocol")) if mibBuilder.loadTexts: hm2AgentSwitchVlanStaticMrouterEntry.setStatus('current') hm2AgentSwitchVlanStaticMrouterAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9, 1, 1, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchVlanStaticMrouterAdminMode.setStatus('current') hm2AgentSwitchMFDBGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10)) hm2AgentSwitchMFDBTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchMFDBTable.setStatus('current') hm2AgentSwitchMFDBEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchMFDBVlanId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchMFDBMacAddress"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchMFDBProtocolType")) if mibBuilder.loadTexts: hm2AgentSwitchMFDBEntry.setStatus('current') hm2AgentSwitchMFDBVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 1), VlanIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBVlanId.setStatus('current') hm2AgentSwitchMFDBMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBMacAddress.setStatus('current') hm2AgentSwitchMFDBProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 248))).clone(namedValues=NamedValues(("static", 1), ("gmrp", 2), ("igmp", 3), ("mld", 4), ("mrp-mmrp", 248)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBProtocolType.setStatus('current') hm2AgentSwitchMFDBType = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("dynamic", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBType.setStatus('current') hm2AgentSwitchMFDBDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBDescription.setStatus('current') hm2AgentSwitchMFDBForwardingPortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 6), Hm2AgentPortMask()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBForwardingPortMask.setStatus('current') hm2AgentSwitchMFDBFilteringPortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 7), Hm2AgentPortMask()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBFilteringPortMask.setStatus('current') hm2AgentSwitchMFDBSummaryTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2), ) if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryTable.setStatus('current') hm2AgentSwitchMFDBSummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchMFDBSummaryVlanId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchMFDBSummaryMacAddress")) if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryEntry.setStatus('current') hm2AgentSwitchMFDBSummaryVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1, 1), VlanIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryVlanId.setStatus('current') hm2AgentSwitchMFDBSummaryMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryMacAddress.setStatus('current') hm2AgentSwitchMFDBSummaryForwardingPortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1, 3), Hm2AgentPortMask()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryForwardingPortMask.setStatus('current') hm2AgentSwitchMFDBMaxTableEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBMaxTableEntries.setStatus('current') hm2AgentSwitchMFDBMostEntriesUsed = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBMostEntriesUsed.setStatus('current') hm2AgentSwitchMFDBCurrentEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchMFDBCurrentEntries.setStatus('current') hm2AgentSwitchStaticMacStatsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 248)) hm2AgentSwitchStaticMacEntries = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 248, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchStaticMacEntries.setStatus('current') hm2AgentSwitchGARPGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249)) hm2AgentSwitchGmrpUnknownMulticastFilterMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("flood", 1), ("discard", 2))).clone('flood')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchGmrpUnknownMulticastFilterMode.setStatus('current') hm2AgentSwitchGmrpPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10), ) if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortTable.setStatus('current') hm2AgentSwitchGmrpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10, 1), ) dot1dBasePortEntry.registerAugmentions(("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchGmrpPortEntry")) hm2AgentSwitchGmrpPortEntry.setIndexNames(*dot1dBasePortEntry.getIndexNames()) if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortEntry.setStatus('current') hm2AgentSwitchGmrpPortPktRx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortPktRx.setStatus('current') hm2AgentSwitchGmrpPortPktTx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortPktTx.setStatus('current') hm2AgentSwitchGvrpPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15), ) if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortTable.setStatus('current') hm2AgentSwitchGvrpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15, 1), ) dot1dBasePortEntry.registerAugmentions(("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchGvrpPortEntry")) hm2AgentSwitchGvrpPortEntry.setIndexNames(*dot1dBasePortEntry.getIndexNames()) if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortEntry.setStatus('current') hm2AgentSwitchGvrpPortPktRx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortPktRx.setStatus('current') hm2AgentSwitchGvrpPortPktTx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortPktTx.setStatus('current') hm2AgentSwitchVlanMacAssociationGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17)) hm2AgentSwitchVlanMacAssociationTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationTable.setStatus('current') hm2AgentSwitchVlanMacAssociationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVlanMacAssociationMacAddress"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVlanMacAssociationVlanId")) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationEntry.setStatus('current') hm2AgentSwitchVlanMacAssociationMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1, 1), MacAddress()) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationMacAddress.setStatus('current') hm2AgentSwitchVlanMacAssociationVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1, 2), VlanIndex()) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationVlanId.setStatus('current') hm2AgentSwitchVlanMacAssociationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationRowStatus.setStatus('current') hm2AgentSwitchProtectedPortConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18)) hm2AgentSwitchProtectedPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortTable.setStatus('current') hm2AgentSwitchProtectedPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchProtectedPortGroupId")) if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortEntry.setStatus('current') hm2AgentSwitchProtectedPortGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortGroupId.setStatus('current') hm2AgentSwitchProtectedPortGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortGroupName.setStatus('current') hm2AgentSwitchProtectedPortPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1, 3), PortList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortPortList.setStatus('current') hm2AgentSwitchVlanSubnetAssociationGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19)) hm2AgentSwitchVlanSubnetAssociationTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationTable.setStatus('current') hm2AgentSwitchVlanSubnetAssociationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVlanSubnetAssociationIPAddress"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVlanSubnetAssociationSubnetMask"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVlanSubnetAssociationVlanId")) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationEntry.setStatus('current') hm2AgentSwitchVlanSubnetAssociationIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 1), IpAddress()) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationIPAddress.setStatus('current') hm2AgentSwitchVlanSubnetAssociationSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 2), IpAddress()) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationSubnetMask.setStatus('current') hm2AgentSwitchVlanSubnetAssociationVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 3), VlanIndex()) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationVlanId.setStatus('current') hm2AgentSwitchVlanSubnetAssociationRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationRowStatus.setStatus('current') hm2AgentSwitchSnoopingQuerierGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20)) hm2AgentSwitchSnoopingQuerierCfgTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1), ) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierCfgTable.setStatus('current') hm2AgentSwitchSnoopingQuerierCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchSnoopingProtocol")) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierCfgEntry.setStatus('current') hm2AgentSwitchSnoopingQuerierAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierAdminMode.setStatus('current') hm2AgentSwitchSnoopingQuerierVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 2), Integer32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVersion.setStatus('current') hm2AgentSwitchSnoopingQuerierQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1800)).clone(60)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierQueryInterval.setStatus('current') hm2AgentSwitchSnoopingQuerierExpiryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 300)).clone(125)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierExpiryInterval.setStatus('current') hm2AgentSwitchSnoopingQuerierVlanTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2), ) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanTable.setStatus('current') hm2AgentSwitchSnoopingQuerierVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchSnoopingProtocol")) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanEntry.setStatus('current') hm2AgentSwitchSnoopingQuerierVlanAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanAdminMode.setStatus('current') hm2AgentSwitchSnoopingQuerierVlanOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disabled", 0), ("querier", 1), ("non-querier", 2))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanOperMode.setStatus('current') hm2AgentSwitchSnoopingQuerierElectionParticipateMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 3), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierElectionParticipateMode.setStatus('deprecated') hm2AgentSwitchSnoopingQuerierVlanAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 4), InetAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanAddress.setStatus('current') hm2AgentSwitchSnoopingQuerierOperVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierOperVersion.setStatus('current') hm2AgentSwitchSnoopingQuerierOperMaxResponseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 2147483647), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierOperMaxResponseTime.setStatus('current') hm2AgentSwitchSnoopingQuerierLastQuerierAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 7), InetAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierLastQuerierAddress.setStatus('current') hm2AgentSwitchSnoopingQuerierLastQuerierVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierLastQuerierVersion.setStatus('current') hm2AgentPortMirroringGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10)) hm2AgentPortMirrorTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4), ) if mibBuilder.loadTexts: hm2AgentPortMirrorTable.setStatus('current') hm2AgentPortMirrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentPortMirrorSessionNum")) if mibBuilder.loadTexts: hm2AgentPortMirrorEntry.setStatus('current') hm2AgentPortMirrorSessionNum = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hm2AgentPortMirrorSessionNum.setStatus('current') hm2AgentPortMirrorDestinationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 2), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorDestinationPort.setStatus('current') hm2AgentPortMirrorSourcePortMask = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 3), Hm2AgentPortMask()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorSourcePortMask.setStatus('current') hm2AgentPortMirrorAdminMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorAdminMode.setStatus('current') hm2AgentPortMirrorSourceVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4042))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorSourceVlan.setStatus('current') hm2AgentPortMirrorRemoteSourceVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 6), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2, 4042), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteSourceVlan.setStatus('current') hm2AgentPortMirrorRemoteDestinationVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2, 4042), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteDestinationVlan.setStatus('current') hm2AgentPortMirrorReflectorPort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 8), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorReflectorPort.setStatus('current') hm2AgentPortMirrorAllowMgmtMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 9), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorAllowMgmtMode.setStatus('current') hm2AgentPortMirrorReset = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 248), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorReset.setStatus('current') hm2AgentPortMirrorTypeTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5), ) if mibBuilder.loadTexts: hm2AgentPortMirrorTypeTable.setStatus('current') hm2AgentPortMirrorTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentPortMirrorSessionNum"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentPortMirrorTypeSourcePort")) if mibBuilder.loadTexts: hm2AgentPortMirrorTypeEntry.setStatus('current') hm2AgentPortMirrorTypeSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hm2AgentPortMirrorTypeSourcePort.setStatus('current') hm2AgentPortMirrorTypeType = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("tx", 1), ("rx", 2), ("txrx", 3))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorTypeType.setStatus('current') hm2AgentPortMirrorRemoteVlan = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 6), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteVlan.setStatus('current') hm2AgentPortMirrorSNMPExtensionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248)) hm2AgentPortMirrorVlanMirrorPortConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 1)) if mibBuilder.loadTexts: hm2AgentPortMirrorVlanMirrorPortConflict.setStatus('current') hm2AgentPortMirrorPortVlanMirrorConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 2)) if mibBuilder.loadTexts: hm2AgentPortMirrorPortVlanMirrorConflict.setStatus('current') hm2AgentPortMirrorProbePortAlreadySet = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 3)) if mibBuilder.loadTexts: hm2AgentPortMirrorProbePortAlreadySet.setStatus('current') hm2AgentPortMirrorProbePortVlanConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 4)) if mibBuilder.loadTexts: hm2AgentPortMirrorProbePortVlanConflict.setStatus('current') hm2AgentPortMirrorVlanNotCreated = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 5)) if mibBuilder.loadTexts: hm2AgentPortMirrorVlanNotCreated.setStatus('current') hm2AgentPortMirrorInvalidSourcePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 6)) if mibBuilder.loadTexts: hm2AgentPortMirrorInvalidSourcePort.setStatus('current') hm2AgentPortMirrorSourcePortDestinationPortConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 7)) if mibBuilder.loadTexts: hm2AgentPortMirrorSourcePortDestinationPortConflict.setStatus('current') hm2AgentPortMirrorDestinationPortInvalid = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 8)) if mibBuilder.loadTexts: hm2AgentPortMirrorDestinationPortInvalid.setStatus('current') hm2AgentPortMirrorVlanRspanVlanConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 9)) if mibBuilder.loadTexts: hm2AgentPortMirrorVlanRspanVlanConflict.setStatus('current') hm2AgentPortMirrorRemoteSourceRemoteDestinationConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 10)) if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteSourceRemoteDestinationConflict.setStatus('current') hm2AgentPortMirrorReflectorPortInvalid = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 11)) if mibBuilder.loadTexts: hm2AgentPortMirrorReflectorPortInvalid.setStatus('current') hm2AgentPortMirrorSourcePortReflectorPortConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 12)) if mibBuilder.loadTexts: hm2AgentPortMirrorSourcePortReflectorPortConflict.setStatus('current') hm2AgentPortMirrorReflectorPortVlanConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 13)) if mibBuilder.loadTexts: hm2AgentPortMirrorReflectorPortVlanConflict.setStatus('current') hm2AgentPortMirrorPrivateVlanConfigured = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 14)) if mibBuilder.loadTexts: hm2AgentPortMirrorPrivateVlanConfigured.setStatus('current') hm2AgentPortMirrorDestinationRemotePortNotSet = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 15)) if mibBuilder.loadTexts: hm2AgentPortMirrorDestinationRemotePortNotSet.setStatus('current') hm2AgentPortMirrorRspanVlanInconsistent = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 16)) if mibBuilder.loadTexts: hm2AgentPortMirrorRspanVlanInconsistent.setStatus('current') hm2AgentPortMirrorRspanVlanIdInvalid = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 17)) if mibBuilder.loadTexts: hm2AgentPortMirrorRspanVlanIdInvalid.setStatus('current') hm2AgentDot3adAggPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12), ) if mibBuilder.loadTexts: hm2AgentDot3adAggPortTable.setStatus('current') hm2AgentDot3adAggPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDot3adAggPort")) if mibBuilder.loadTexts: hm2AgentDot3adAggPortEntry.setStatus('current') hm2AgentDot3adAggPort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDot3adAggPort.setStatus('current') hm2AgentDot3adAggPortLACPMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12, 1, 2), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDot3adAggPortLACPMode.setStatus('current') hm2AgentPortConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13), ) if mibBuilder.loadTexts: hm2AgentPortConfigTable.setStatus('current') hm2AgentPortConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentPortDot1dBasePort")) if mibBuilder.loadTexts: hm2AgentPortConfigEntry.setStatus('current') hm2AgentPortDot1dBasePort = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentPortDot1dBasePort.setStatus('current') hm2AgentPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentPortIfIndex.setStatus('current') hm2AgentPortClearStats = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 10), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortClearStats.setStatus('current') hm2AgentPortDot3FlowControlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("symmetric", 1), ("asymmetric", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortDot3FlowControlMode.setStatus('current') hm2AgentPortMaxFrameSizeLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentPortMaxFrameSizeLimit.setStatus('current') hm2AgentPortMaxFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 19), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMaxFrameSize.setStatus('current') hm2AgentPortBroadcastControlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 20), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortBroadcastControlMode.setStatus('current') hm2AgentPortBroadcastControlThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 14880000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortBroadcastControlThreshold.setStatus('current') hm2AgentPortMulticastControlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 22), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMulticastControlMode.setStatus('current') hm2AgentPortMulticastControlThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 14880000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMulticastControlThreshold.setStatus('current') hm2AgentPortUnicastControlMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 24), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortUnicastControlMode.setStatus('current') hm2AgentPortUnicastControlThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 14880000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortUnicastControlThreshold.setStatus('current') hm2AgentPortBroadcastControlThresholdUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("percent", 1), ("pps", 2))).clone('percent')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortBroadcastControlThresholdUnit.setStatus('current') hm2AgentPortMulticastControlThresholdUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("percent", 1), ("pps", 2))).clone('percent')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortMulticastControlThresholdUnit.setStatus('current') hm2AgentPortUnicastControlThresholdUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("percent", 1), ("pps", 2))).clone('percent')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortUnicastControlThresholdUnit.setStatus('current') hm2AgentPortVoiceVlanMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("none", 1), ("vlanid", 2), ("dot1p", 3), ("vlanidanddot1p", 4), ("untagged", 5), ("disable", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanMode.setStatus('current') hm2AgentPortVoiceVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 30), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4093))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanID.setStatus('current') hm2AgentPortVoiceVlanPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), )).clone(255)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanPriority.setStatus('current') hm2AgentPortVoiceVlanDataPriorityMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("trust", 1), ("untrust", 2))).clone('trust')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanDataPriorityMode.setStatus('current') hm2AgentPortVoiceVlanOperationalStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanOperationalStatus.setStatus('current') hm2AgentPortVoiceVlanUntagged = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanUntagged.setStatus('current') hm2AgentPortVoiceVlanNoneMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanNoneMode.setStatus('current') hm2AgentPortVoiceVlanDSCP = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 36), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanDSCP.setStatus('current') hm2AgentPortVoiceVlanAuthMode = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 37), HmEnabledStatus().clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortVoiceVlanAuthMode.setStatus('current') hm2AgentPortDot3FlowControlOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentPortDot3FlowControlOperStatus.setStatus('current') hm2AgentPortSfpLinkLossAlert = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 248), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentPortSfpLinkLossAlert.setStatus('current') hm2AgentProtocolConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14)) hm2AgentProtocolGroupTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2), ) if mibBuilder.loadTexts: hm2AgentProtocolGroupTable.setStatus('current') hm2AgentProtocolGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentProtocolGroupId")) if mibBuilder.loadTexts: hm2AgentProtocolGroupEntry.setStatus('current') hm2AgentProtocolGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))) if mibBuilder.loadTexts: hm2AgentProtocolGroupId.setStatus('current') hm2AgentProtocolGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 2), DisplayString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(1, 16), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentProtocolGroupName.setStatus('current') hm2AgentProtocolGroupVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4093))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentProtocolGroupVlanId.setStatus('current') hm2AgentProtocolGroupStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentProtocolGroupStatus.setStatus('current') hm2AgentProtocolGroupPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3), ) if mibBuilder.loadTexts: hm2AgentProtocolGroupPortTable.setStatus('current') hm2AgentProtocolGroupPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentProtocolGroupId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentProtocolGroupPortIfIndex")) if mibBuilder.loadTexts: hm2AgentProtocolGroupPortEntry.setStatus('current') hm2AgentProtocolGroupPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentProtocolGroupPortIfIndex.setStatus('current') hm2AgentProtocolGroupPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentProtocolGroupPortStatus.setStatus('current') hm2AgentProtocolGroupProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4), ) if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolTable.setStatus('current') hm2AgentProtocolGroupProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentProtocolGroupId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentProtocolGroupProtocolID")) if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolEntry.setStatus('current') hm2AgentProtocolGroupProtocolID = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1536, 65535))) if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolID.setStatus('current') hm2AgentProtocolGroupProtocolStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolStatus.setStatus('current') hm2AgentStpSwitchConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15)) hm2AgentStpConfigDigestKey = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpConfigDigestKey.setStatus('current') hm2AgentStpConfigFormatSelector = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpConfigFormatSelector.setStatus('current') hm2AgentStpConfigName = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpConfigName.setStatus('current') hm2AgentStpConfigRevision = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpConfigRevision.setStatus('current') hm2AgentStpForceVersion = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("stp", 1), ("rstp", 2), ("mstp", 3))).clone('rstp')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpForceVersion.setStatus('current') hm2AgentStpAdminMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 6), HmEnabledStatus().clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpAdminMode.setStatus('current') hm2AgentStpPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7), ) if mibBuilder.loadTexts: hm2AgentStpPortTable.setStatus('current') hm2AgentStpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentStpPortEntry.setStatus('current') hm2AgentStpPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 1), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpPortState.setStatus('current') hm2AgentStpPortStatsMstpBpduRx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortStatsMstpBpduRx.setStatus('current') hm2AgentStpPortStatsMstpBpduTx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortStatsMstpBpduTx.setStatus('current') hm2AgentStpPortStatsRstpBpduRx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortStatsRstpBpduRx.setStatus('current') hm2AgentStpPortStatsRstpBpduTx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortStatsRstpBpduTx.setStatus('current') hm2AgentStpPortStatsStpBpduRx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortStatsStpBpduRx.setStatus('current') hm2AgentStpPortStatsStpBpduTx = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortStatsStpBpduTx.setStatus('current') hm2AgentStpPortUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 8), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpPortUpTime.setStatus('current') hm2AgentStpPortMigrationCheck = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpPortMigrationCheck.setStatus('current') hm2AgentStpCstConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8)) hm2AgentStpCstHelloTime = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstHelloTime.setStatus('current') hm2AgentStpCstMaxAge = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstMaxAge.setStatus('current') hm2AgentStpCstRegionalRootId = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstRegionalRootId.setStatus('current') hm2AgentStpCstRegionalRootPathCost = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstRegionalRootPathCost.setStatus('current') hm2AgentStpCstRootFwdDelay = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstRootFwdDelay.setStatus('current') hm2AgentStpCstBridgeFwdDelay = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(4, 30)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstBridgeFwdDelay.setStatus('current') hm2AgentStpCstBridgeHelloTime = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 2)).clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstBridgeHelloTime.setStatus('current') hm2AgentStpCstBridgeHoldTime = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstBridgeHoldTime.setStatus('current') hm2AgentStpCstBridgeMaxAge = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(6, 40)).clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstBridgeMaxAge.setStatus('current') hm2AgentStpCstBridgeMaxHops = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(6, 40)).clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstBridgeMaxHops.setStatus('current') hm2AgentStpCstBridgePriority = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 61440)).clone(32768)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstBridgePriority.setStatus('current') hm2AgentStpCstBridgeHoldCount = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 40)).clone(10)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstBridgeHoldCount.setStatus('current') hm2AgentStpCstPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9), ) if mibBuilder.loadTexts: hm2AgentStpCstPortTable.setStatus('current') hm2AgentStpCstPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentStpCstPortEntry.setStatus('current') hm2AgentStpCstPortOperEdge = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 1), HmEnabledStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstPortOperEdge.setStatus('current') hm2AgentStpCstPortOperPointToPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstPortOperPointToPoint.setStatus('current') hm2AgentStpCstPortTopologyChangeAck = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstPortTopologyChangeAck.setStatus('current') hm2AgentStpCstPortEdge = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 4), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortEdge.setStatus('current') hm2AgentStpCstPortForwardingState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("discarding", 1), ("learning", 2), ("forwarding", 3), ("disabled", 4), ("manualFwd", 5), ("notParticipate", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstPortForwardingState.setStatus('current') hm2AgentStpCstPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstPortId.setStatus('current') hm2AgentStpCstPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortPathCost.setStatus('current') hm2AgentStpCstPortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 240)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortPriority.setStatus('current') hm2AgentStpCstDesignatedBridgeId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstDesignatedBridgeId.setStatus('current') hm2AgentStpCstDesignatedCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstDesignatedCost.setStatus('current') hm2AgentStpCstDesignatedPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstDesignatedPortId.setStatus('current') hm2AgentStpCstExtPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstExtPortPathCost.setStatus('current') hm2AgentStpCstPortBpduGuardEffect = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 13), HmEnabledStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstPortBpduGuardEffect.setStatus('current') hm2AgentStpCstPortBpduFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 14), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortBpduFilter.setStatus('current') hm2AgentStpCstPortBpduFlood = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 15), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortBpduFlood.setStatus('current') hm2AgentStpCstPortAutoEdge = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 16), HmEnabledStatus().clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortAutoEdge.setStatus('current') hm2AgentStpCstPortRootGuard = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 17), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortRootGuard.setStatus('current') hm2AgentStpCstPortTCNGuard = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 18), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortTCNGuard.setStatus('current') hm2AgentStpCstPortLoopGuard = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 19), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpCstPortLoopGuard.setStatus('current') hm2AgentStpMstTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10), ) if mibBuilder.loadTexts: hm2AgentStpMstTable.setStatus('current') hm2AgentStpMstEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId")) if mibBuilder.loadTexts: hm2AgentStpMstEntry.setStatus('current') hm2AgentStpMstId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstId.setStatus('current') hm2AgentStpMstBridgePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 61440)).clone(32768)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpMstBridgePriority.setStatus('current') hm2AgentStpMstBridgeIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstBridgeIdentifier.setStatus('current') hm2AgentStpMstDesignatedRootId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstDesignatedRootId.setStatus('current') hm2AgentStpMstRootPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstRootPathCost.setStatus('current') hm2AgentStpMstRootPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstRootPortId.setStatus('current') hm2AgentStpMstTimeSinceTopologyChange = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 7), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstTimeSinceTopologyChange.setStatus('current') hm2AgentStpMstTopologyChangeCount = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstTopologyChangeCount.setStatus('current') hm2AgentStpMstTopologyChangeParm = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstTopologyChangeParm.setStatus('current') hm2AgentStpMstRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 10), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStpMstRowStatus.setStatus('current') hm2AgentStpMstPortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11), ) if mibBuilder.loadTexts: hm2AgentStpMstPortTable.setStatus('current') hm2AgentStpMstPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId"), (0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentStpMstPortEntry.setStatus('current') hm2AgentStpMstPortForwardingState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("discarding", 1), ("learning", 2), ("forwarding", 3), ("disabled", 4), ("manualFwd", 5), ("notParticipate", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortForwardingState.setStatus('current') hm2AgentStpMstPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortId.setStatus('current') hm2AgentStpMstPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 200000000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpMstPortPathCost.setStatus('current') hm2AgentStpMstPortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 240)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpMstPortPriority.setStatus('current') hm2AgentStpMstDesignatedBridgeId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstDesignatedBridgeId.setStatus('current') hm2AgentStpMstDesignatedCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstDesignatedCost.setStatus('current') hm2AgentStpMstDesignatedPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstDesignatedPortId.setStatus('current') hm2AgentStpMstPortLoopInconsistentState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortLoopInconsistentState.setStatus('current') hm2AgentStpMstPortTransitionsIntoLoopInconsistentState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortTransitionsIntoLoopInconsistentState.setStatus('current') hm2AgentStpMstPortTransitionsOutOfLoopInconsistentState = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortTransitionsOutOfLoopInconsistentState.setStatus('current') hm2AgentStpMstPortRole = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 248), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("root", 1), ("alternate", 2), ("designated", 3), ("backup", 4), ("master", 5), ("disabled", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortRole.setStatus('current') hm2AgentStpCstAutoPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 249), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpCstAutoPortPathCost.setStatus('current') hm2AgentStpMstPortReceivedBridgeId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 250), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedBridgeId.setStatus('current') hm2AgentStpMstPortReceivedRPC = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 251), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedRPC.setStatus('current') hm2AgentStpMstPortReceivedPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 252), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedPortId.setStatus('current') hm2AgentStpMstAutoPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 253), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstAutoPortPathCost.setStatus('current') hm2AgentStpMstPortReceivedRegionalRPC = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 254), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedRegionalRPC.setStatus('current') hm2AgentStpMstVlanTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 12), ) if mibBuilder.loadTexts: hm2AgentStpMstVlanTable.setStatus('current') hm2AgentStpMstVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 12, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId"), (0, "Q-BRIDGE-MIB", "dot1qVlanIndex")) if mibBuilder.loadTexts: hm2AgentStpMstVlanEntry.setStatus('current') hm2AgentStpMstVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 12, 1, 1), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStpMstVlanRowStatus.setStatus('current') hm2AgentStpBpduGuardMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 13), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpBpduGuardMode.setStatus('current') hm2AgentStpBpduFilterDefault = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 14), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpBpduFilterDefault.setStatus('current') hm2AgentStpRingOnlyMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 248), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpRingOnlyMode.setStatus('current') hm2AgentStpRingOnlyModeIntfOne = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 249), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpRingOnlyModeIntfOne.setStatus('current') hm2AgentStpRingOnlyModeIntfTwo = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 250), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentStpRingOnlyModeIntfTwo.setStatus('current') hm2AgentStpMstSNMPExtensionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260)) hm2AgentStpMstInstanceVlanErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260, 1)) if mibBuilder.loadTexts: hm2AgentStpMstInstanceVlanErrorReturn.setStatus('current') hm2AgentStpCstFwdDelayErrorReturn = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260, 2)) if mibBuilder.loadTexts: hm2AgentStpCstFwdDelayErrorReturn.setStatus('current') hm2AgentStpMstSwitchVersionConflict = ObjectIdentity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260, 3)) if mibBuilder.loadTexts: hm2AgentStpMstSwitchVersionConflict.setStatus('current') hm2AgentClassOfServiceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17)) hm2AgentClassOfServicePortTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1), ) if mibBuilder.loadTexts: hm2AgentClassOfServicePortTable.setStatus('current') hm2AgentClassOfServicePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentClassOfServicePortPriority")) if mibBuilder.loadTexts: hm2AgentClassOfServicePortEntry.setStatus('current') hm2AgentClassOfServicePortPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))) if mibBuilder.loadTexts: hm2AgentClassOfServicePortPriority.setStatus('current') hm2AgentClassOfServicePortClass = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentClassOfServicePortClass.setStatus('current') hm2AgentSystemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 3)) hm2AgentClearVlan = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 3, 9), HmEnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentClearVlan.setStatus('current') hm2AgentDaiConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21)) hm2AgentDaiSrcMacValidate = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiSrcMacValidate.setStatus('current') hm2AgentDaiDstMacValidate = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiDstMacValidate.setStatus('current') hm2AgentDaiIPValidate = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiIPValidate.setStatus('current') hm2AgentDaiVlanConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4), ) if mibBuilder.loadTexts: hm2AgentDaiVlanConfigTable.setStatus('current') hm2AgentDaiVlanConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDaiVlanIndex")) if mibBuilder.loadTexts: hm2AgentDaiVlanConfigEntry.setStatus('current') hm2AgentDaiVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 1), VlanIndex()) if mibBuilder.loadTexts: hm2AgentDaiVlanIndex.setStatus('current') hm2AgentDaiVlanDynArpInspEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiVlanDynArpInspEnable.setStatus('current') hm2AgentDaiVlanLoggingEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiVlanLoggingEnable.setStatus('current') hm2AgentDaiVlanArpAclName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiVlanArpAclName.setStatus('current') hm2AgentDaiVlanArpAclStaticFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiVlanArpAclStaticFlag.setStatus('current') hm2AgentDaiVlanBindingCheckEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 248), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiVlanBindingCheckEnable.setStatus('current') hm2AgentDaiStatsReset = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiStatsReset.setStatus('current') hm2AgentDaiVlanStatsTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6), ) if mibBuilder.loadTexts: hm2AgentDaiVlanStatsTable.setStatus('current') hm2AgentDaiVlanStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDaiVlanStatsIndex")) if mibBuilder.loadTexts: hm2AgentDaiVlanStatsEntry.setStatus('current') hm2AgentDaiVlanStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 1), VlanIndex()) if mibBuilder.loadTexts: hm2AgentDaiVlanStatsIndex.setStatus('current') hm2AgentDaiVlanPktsForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanPktsForwarded.setStatus('current') hm2AgentDaiVlanPktsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanPktsDropped.setStatus('current') hm2AgentDaiVlanDhcpDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanDhcpDrops.setStatus('current') hm2AgentDaiVlanDhcpPermits = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanDhcpPermits.setStatus('current') hm2AgentDaiVlanAclDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanAclDrops.setStatus('current') hm2AgentDaiVlanAclPermits = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanAclPermits.setStatus('current') hm2AgentDaiVlanSrcMacFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanSrcMacFailures.setStatus('current') hm2AgentDaiVlanDstMacFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanDstMacFailures.setStatus('current') hm2AgentDaiVlanIpValidFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDaiVlanIpValidFailures.setStatus('current') hm2AgentDaiIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7), ) if mibBuilder.loadTexts: hm2AgentDaiIfConfigTable.setStatus('current') hm2AgentDaiIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentDaiIfConfigEntry.setStatus('current') hm2AgentDaiIfTrustEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiIfTrustEnable.setStatus('current') hm2AgentDaiIfRateLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 300), )).clone(-1)).setUnits('packets per second').setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiIfRateLimit.setStatus('current') hm2AgentDaiIfBurstInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiIfBurstInterval.setStatus('current') hm2AgentDaiIfAutoDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 248), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDaiIfAutoDisable.setStatus('current') hm2AgentArpAclGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22)) hm2AgentArpAclTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1), ) if mibBuilder.loadTexts: hm2AgentArpAclTable.setStatus('current') hm2AgentArpAclEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentArpAclName")) if mibBuilder.loadTexts: hm2AgentArpAclEntry.setStatus('current') hm2AgentArpAclName = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentArpAclName.setStatus('current') hm2AgentArpAclRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentArpAclRowStatus.setStatus('current') hm2AgentArpAclRuleTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2), ) if mibBuilder.loadTexts: hm2AgentArpAclRuleTable.setStatus('current') hm2AgentArpAclRuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentArpAclName"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentArpAclRuleMatchSenderIpAddr"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentArpAclRuleMatchSenderMacAddr")) if mibBuilder.loadTexts: hm2AgentArpAclRuleEntry.setStatus('current') hm2AgentArpAclRuleMatchSenderIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1, 1), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentArpAclRuleMatchSenderIpAddr.setStatus('current') hm2AgentArpAclRuleMatchSenderMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1, 2), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentArpAclRuleMatchSenderMacAddr.setStatus('current') hm2AgentArpAclRuleRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentArpAclRuleRowStatus.setStatus('current') hm2AgentDhcpSnoopingConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23)) hm2AgentDhcpSnoopingAdminMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingAdminMode.setStatus('current') hm2AgentDhcpSnoopingVerifyMac = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVerifyMac.setStatus('current') hm2AgentDhcpSnoopingVlanConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3), ) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanConfigTable.setStatus('current') hm2AgentDhcpSnoopingVlanConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDhcpSnoopingVlanIndex")) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanConfigEntry.setStatus('current') hm2AgentDhcpSnoopingVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3, 1, 1), VlanIndex()) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanIndex.setStatus('current') hm2AgentDhcpSnoopingVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanEnable.setStatus('current') hm2AgentDhcpSnoopingIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4), ) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfConfigTable.setStatus('current') hm2AgentDhcpSnoopingIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfConfigEntry.setStatus('current') hm2AgentDhcpSnoopingIfTrustEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfTrustEnable.setStatus('current') hm2AgentDhcpSnoopingIfLogEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfLogEnable.setStatus('current') hm2AgentDhcpSnoopingIfRateLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(0, 150), )).clone(-1)).setUnits('packets per second').setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfRateLimit.setStatus('current') hm2AgentDhcpSnoopingIfBurstInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfBurstInterval.setStatus('current') hm2AgentDhcpSnoopingIfAutoDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 248), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfAutoDisable.setStatus('current') hm2AgentIpsgIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5), ) if mibBuilder.loadTexts: hm2AgentIpsgIfConfigTable.setStatus('current') hm2AgentIpsgIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentIpsgIfConfigEntry.setStatus('current') hm2AgentIpsgIfVerifySource = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentIpsgIfVerifySource.setStatus('current') hm2AgentIpsgIfPortSecurity = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentIpsgIfPortSecurity.setStatus('current') hm2AgentDhcpSnoopingStatsReset = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStatsReset.setStatus('current') hm2AgentDhcpSnoopingStatsTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7), ) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStatsTable.setStatus('current') hm2AgentDhcpSnoopingStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStatsEntry.setStatus('current') hm2AgentDhcpSnoopingMacVerifyFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingMacVerifyFailures.setStatus('current') hm2AgentDhcpSnoopingInvalidClientMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingInvalidClientMessages.setStatus('current') hm2AgentDhcpSnoopingInvalidServerMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingInvalidServerMessages.setStatus('current') hm2AgentStaticIpsgBindingTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8), ) if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingTable.setStatus('current') hm2AgentStaticIpsgBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStaticIpsgBindingIfIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStaticIpsgBindingVlanId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStaticIpsgBindingMacAddr"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStaticIpsgBindingIpAddr")) if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingEntry.setStatus('current') hm2AgentStaticIpsgBindingIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 1), InterfaceIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingIfIndex.setStatus('current') hm2AgentStaticIpsgBindingVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 2), VlanIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingVlanId.setStatus('current') hm2AgentStaticIpsgBindingMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 3), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingMacAddr.setStatus('current') hm2AgentStaticIpsgBindingIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 4), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingIpAddr.setStatus('current') hm2AgentStaticIpsgBindingRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingRowStatus.setStatus('current') hm2AgentStaticIpsgBindingHwStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 248), TruthValue().clone('false')).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingHwStatus.setStatus('current') hm2AgentDynamicIpsgBindingTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9), ) if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingTable.setStatus('current') hm2AgentDynamicIpsgBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDynamicIpsgBindingIfIndex"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDynamicIpsgBindingVlanId"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDynamicIpsgBindingMacAddr"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDynamicIpsgBindingIpAddr")) if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingEntry.setStatus('current') hm2AgentDynamicIpsgBindingIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingIfIndex.setStatus('current') hm2AgentDynamicIpsgBindingVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 2), VlanIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingVlanId.setStatus('current') hm2AgentDynamicIpsgBindingMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingMacAddr.setStatus('current') hm2AgentDynamicIpsgBindingIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingIpAddr.setStatus('current') hm2AgentDynamicIpsgBindingHwStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 248), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingHwStatus.setStatus('current') hm2AgentStaticDsBindingTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10), ) if mibBuilder.loadTexts: hm2AgentStaticDsBindingTable.setStatus('current') hm2AgentStaticDsBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStaticDsBindingMacAddr")) if mibBuilder.loadTexts: hm2AgentStaticDsBindingEntry.setStatus('current') hm2AgentStaticDsBindingIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 1), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticDsBindingIfIndex.setStatus('current') hm2AgentStaticDsBindingVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 2), VlanId().clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticDsBindingVlanId.setStatus('current') hm2AgentStaticDsBindingMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 3), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticDsBindingMacAddr.setStatus('current') hm2AgentStaticDsBindingIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 4), IpAddress().clone(hexValue="00000000")).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticDsBindingIpAddr.setStatus('current') hm2AgentStaticDsBindingRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hm2AgentStaticDsBindingRowStatus.setStatus('current') hm2AgentDynamicDsBindingTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11), ) if mibBuilder.loadTexts: hm2AgentDynamicDsBindingTable.setStatus('current') hm2AgentDynamicDsBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDynamicDsBindingMacAddr")) if mibBuilder.loadTexts: hm2AgentDynamicDsBindingEntry.setStatus('current') hm2AgentDynamicDsBindingIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicDsBindingIfIndex.setStatus('current') hm2AgentDynamicDsBindingVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 2), VlanIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicDsBindingVlanId.setStatus('current') hm2AgentDynamicDsBindingMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicDsBindingMacAddr.setStatus('current') hm2AgentDynamicDsBindingIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicDsBindingIpAddr.setStatus('current') hm2AgentDynamicDsBindingLeaseRemainingTime = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDynamicDsBindingLeaseRemainingTime.setStatus('current') hm2AgentDhcpSnoopingRemoteFileName = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingRemoteFileName.setStatus('current') hm2AgentDhcpSnoopingRemoteIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 13), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingRemoteIpAddr.setStatus('current') hm2AgentDhcpSnoopingStoreInterval = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(15, 86400)).clone(300)).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStoreInterval.setStatus('current') hm2AgentDhcpL2RelayConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24)) hm2AgentDhcpL2RelayAdminMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayAdminMode.setStatus('current') hm2AgentDhcpL2RelayIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2), ) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfConfigTable.setStatus('current') hm2AgentDhcpL2RelayIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfConfigEntry.setStatus('current') hm2AgentDhcpL2RelayIfEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfEnable.setStatus('current') hm2AgentDhcpL2RelayIfTrustEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfTrustEnable.setStatus('current') hm2AgentDhcpL2RelayVlanConfigTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3), ) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanConfigTable.setStatus('current') hm2AgentDhcpL2RelayVlanConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentDhcpL2RelayVlanIndex")) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanConfigEntry.setStatus('current') hm2AgentDhcpL2RelayVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 1), VlanIndex()) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanIndex.setStatus('current') hm2AgentDhcpL2RelayVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanEnable.setStatus('current') hm2AgentDhcpL2RelayCircuitIdVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayCircuitIdVlanEnable.setStatus('current') hm2AgentDhcpL2RelayRemoteIdVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayRemoteIdVlanEnable.setStatus('current') hm2AgentDhcpL2RelayVlanRemoteIdType = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 248), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("ip", 1), ("mac", 2), ("client-id", 3), ("other", 4))).clone('mac')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanRemoteIdType.setStatus('current') hm2AgentDhcpL2RelayStatsReset = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("reset", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayStatsReset.setStatus('current') hm2AgentDhcpL2RelayStatsTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7), ) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayStatsTable.setStatus('current') hm2AgentDhcpL2RelayStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayStatsEntry.setStatus('current') hm2AgentDhcpL2RelayUntrustedSrvrMsgsWithOptn82 = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayUntrustedSrvrMsgsWithOptn82.setStatus('current') hm2AgentDhcpL2RelayUntrustedClntMsgsWithOptn82 = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayUntrustedClntMsgsWithOptn82.setStatus('current') hm2AgentDhcpL2RelayTrustedSrvrMsgsWithoutOptn82 = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayTrustedSrvrMsgsWithoutOptn82.setStatus('current') hm2AgentDhcpL2RelayTrustedClntMsgsWithoutOptn82 = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentDhcpL2RelayTrustedClntMsgsWithoutOptn82.setStatus('current') hm2AgentSwitchVoiceVLANGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25)) hm2AgentSwitchVoiceVLANAdminMode = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 1), HmEnabledStatus().clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSwitchVoiceVLANAdminMode.setStatus('current') hm2AgentSwitchVoiceVlanDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2), ) if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanDeviceTable.setStatus('current') hm2AgentSwitchVoiceVlanDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVoiceVlanInterfaceNum"), (0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSwitchVoiceVlanDeviceMacAddress")) if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanDeviceEntry.setStatus('current') hm2AgentSwitchVoiceVlanInterfaceNum = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanInterfaceNum.setStatus('current') hm2AgentSwitchVoiceVlanDeviceMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanDeviceMacAddress.setStatus('current') hm2AgentSdmPreferConfigGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 27)) hm2AgentSdmPreferCurrentTemplate = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 27, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 10, 11))).clone(namedValues=NamedValues(("ipv4RoutingDefault", 2), ("ipv4DataCenter", 3), ("ipv4RoutingUnicast", 10), ("ipv4RoutingMulticast", 11)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentSdmPreferCurrentTemplate.setStatus('current') hm2AgentSdmPreferNextTemplate = MibScalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 27, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 2, 3, 10, 11))).clone(namedValues=NamedValues(("default", 0), ("ipv4RoutingDefault", 2), ("ipv4DataCenter", 3), ("ipv4RoutingUnicast", 10), ("ipv4RoutingMulticast", 11)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hm2AgentSdmPreferNextTemplate.setStatus('current') hm2AgentSdmTemplateSummaryTable = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28)) hm2AgentSdmTemplateTable = MibTable((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1), ) if mibBuilder.loadTexts: hm2AgentSdmTemplateTable.setStatus('current') hm2AgentSdmTemplateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1), ).setIndexNames((0, "HM2-PLATFORM-SWITCHING-MIB", "hm2AgentSdmTemplateId")) if mibBuilder.loadTexts: hm2AgentSdmTemplateEntry.setStatus('current') hm2AgentSdmTemplateId = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 10, 11))).clone(namedValues=NamedValues(("ipv4RoutingDefault", 2), ("ipv4DataCenter", 3), ("ipv4RoutingUnicast", 10), ("ipv4RoutingMulticast", 11)))) if mibBuilder.loadTexts: hm2AgentSdmTemplateId.setStatus('current') hm2AgentArpEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentArpEntries.setStatus('current') hm2AgentIPv4UnicastRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentIPv4UnicastRoutes.setStatus('current') hm2AgentIPv6NdpEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentIPv6NdpEntries.setStatus('current') hm2AgentIPv6UnicastRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentIPv6UnicastRoutes.setStatus('current') hm2AgentEcmpNextHops = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentEcmpNextHops.setStatus('current') hm2AgentIPv4MulticastRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentIPv4MulticastRoutes.setStatus('current') hm2AgentIPv6MulticastRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hm2AgentIPv6MulticastRoutes.setStatus('current') hm2PlatformSwitchingTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 0)) hm2PlatformStpInstanceNewRootTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 10)).setObjects(("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId")) if mibBuilder.loadTexts: hm2PlatformStpInstanceNewRootTrap.setStatus('current') hm2PlatformStpInstanceTopologyChangeTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 11)).setObjects(("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId")) if mibBuilder.loadTexts: hm2PlatformStpInstanceTopologyChangeTrap.setStatus('current') hm2PlatformDaiIntfErrorDisabledTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 15)).setObjects(("IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2PlatformDaiIntfErrorDisabledTrap.setStatus('current') hm2PlatformStpInstanceLoopInconsistentStartTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 16)).setObjects(("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId"), ("IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2PlatformStpInstanceLoopInconsistentStartTrap.setStatus('current') hm2PlatformStpInstanceLoopInconsistentEndTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 17)).setObjects(("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpMstId"), ("IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2PlatformStpInstanceLoopInconsistentEndTrap.setStatus('current') hm2PlatformDhcpSnoopingIntfErrorDisabledTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 18)).setObjects(("IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hm2PlatformDhcpSnoopingIntfErrorDisabledTrap.setStatus('current') hm2PlatformStpCstBpduGuardTrap = NotificationType((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 248)).setObjects(("IF-MIB", "ifIndex"), ("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpCstPortEdge"), ("HM2-PLATFORM-SWITCHING-MIB", "hm2AgentStpCstPortBpduGuardEffect")) if mibBuilder.loadTexts: hm2PlatformStpCstBpduGuardTrap.setStatus('current') mibBuilder.exportSymbols("HM2-PLATFORM-SWITCHING-MIB", hm2AgentStpSwitchConfigGroup=hm2AgentStpSwitchConfigGroup, Hm2AgentPortMask=Hm2AgentPortMask, hm2AgentProtocolGroupPortIfIndex=hm2AgentProtocolGroupPortIfIndex, hm2AgentSwitchProtectedPortGroupName=hm2AgentSwitchProtectedPortGroupName, hm2AgentSdmPreferConfigGroup=hm2AgentSdmPreferConfigGroup, hm2AgentDhcpL2RelayVlanRemoteIdType=hm2AgentDhcpL2RelayVlanRemoteIdType, hm2AgentSwitchSnoopingQuerierCfgTable=hm2AgentSwitchSnoopingQuerierCfgTable, hm2AgentStpMstTopologyChangeCount=hm2AgentStpMstTopologyChangeCount, hm2AgentDhcpL2RelayCircuitIdVlanEnable=hm2AgentDhcpL2RelayCircuitIdVlanEnable, hm2AgentSwitchMFDBType=hm2AgentSwitchMFDBType, hm2AgentSwitchProtectedPortPortList=hm2AgentSwitchProtectedPortPortList, hm2AgentDhcpSnoopingInvalidClientMessages=hm2AgentDhcpSnoopingInvalidClientMessages, hm2AgentClassOfServiceGroup=hm2AgentClassOfServiceGroup, hm2AgentProtocolGroupProtocolStatus=hm2AgentProtocolGroupProtocolStatus, hm2AgentPortMirrorRspanVlanIdInvalid=hm2AgentPortMirrorRspanVlanIdInvalid, hm2AgentIpsgIfPortSecurity=hm2AgentIpsgIfPortSecurity, hm2AgentSwitchSnoopingCfgEntry=hm2AgentSwitchSnoopingCfgEntry, hm2AgentDhcpSnoopingStatsReset=hm2AgentDhcpSnoopingStatsReset, hm2AgentSwitchStaticMacFilteringSourcePortMask=hm2AgentSwitchStaticMacFilteringSourcePortMask, hm2AgentStpPortStatsMstpBpduRx=hm2AgentStpPortStatsMstpBpduRx, hm2AgentDynamicDsBindingTable=hm2AgentDynamicDsBindingTable, hm2AgentSwitchMFDBGroup=hm2AgentSwitchMFDBGroup, hm2AgentDhcpL2RelayIfConfigTable=hm2AgentDhcpL2RelayIfConfigTable, hm2AgentSwitchMFDBFilteringPortMask=hm2AgentSwitchMFDBFilteringPortMask, hm2AgentDhcpL2RelayStatsEntry=hm2AgentDhcpL2RelayStatsEntry, hm2AgentStaticIpsgBindingIpAddr=hm2AgentStaticIpsgBindingIpAddr, hm2AgentStpMstTimeSinceTopologyChange=hm2AgentStpMstTimeSinceTopologyChange, hm2PlatformStpCstBpduGuardTrap=hm2PlatformStpCstBpduGuardTrap, hm2AgentDhcpSnoopingVlanIndex=hm2AgentDhcpSnoopingVlanIndex, hm2AgentPortMirrorTypeSourcePort=hm2AgentPortMirrorTypeSourcePort, hm2AgentProtocolGroupStatus=hm2AgentProtocolGroupStatus, hm2AgentPortMirrorInvalidSourcePort=hm2AgentPortMirrorInvalidSourcePort, hm2AgentSwitchMFDBCurrentEntries=hm2AgentSwitchMFDBCurrentEntries, hm2AgentDhcpL2RelayStatsReset=hm2AgentDhcpL2RelayStatsReset, hm2AgentLagSummaryAdminMode=hm2AgentLagSummaryAdminMode, hm2AgentStpCstPortForwardingState=hm2AgentStpCstPortForwardingState, hm2AgentPortMirrorProbePortAlreadySet=hm2AgentPortMirrorProbePortAlreadySet, hm2AgentClassOfServicePortTable=hm2AgentClassOfServicePortTable, hm2AgentStaticIpsgBindingVlanId=hm2AgentStaticIpsgBindingVlanId, hm2AgentArpAclRuleTable=hm2AgentArpAclRuleTable, hm2AgentArpEntries=hm2AgentArpEntries, hm2AgentLagConfigGroup=hm2AgentLagConfigGroup, hm2AgentStpConfigName=hm2AgentStpConfigName, hm2AgentStpRingOnlyModeIntfTwo=hm2AgentStpRingOnlyModeIntfTwo, hm2AgentStpMstPortReceivedRPC=hm2AgentStpMstPortReceivedRPC, hm2AgentDhcpSnoopingIfConfigEntry=hm2AgentDhcpSnoopingIfConfigEntry, hm2AgentDhcpL2RelayIfConfigEntry=hm2AgentDhcpL2RelayIfConfigEntry, hm2AgentLagSummaryDeletePort=hm2AgentLagSummaryDeletePort, hm2AgentSwitchVlanSubnetAssociationGroup=hm2AgentSwitchVlanSubnetAssociationGroup, hm2AgentStpMstSNMPExtensionGroup=hm2AgentStpMstSNMPExtensionGroup, hm2AgentStpCstBridgeHoldCount=hm2AgentStpCstBridgeHoldCount, hm2AgentPortMulticastControlThreshold=hm2AgentPortMulticastControlThreshold, hm2AgentDhcpSnoopingConfigGroup=hm2AgentDhcpSnoopingConfigGroup, hm2AgentSwitchProtectedPortEntry=hm2AgentSwitchProtectedPortEntry, hm2AgentSwitchStaticMacEntries=hm2AgentSwitchStaticMacEntries, hm2AgentDynamicDsBindingIfIndex=hm2AgentDynamicDsBindingIfIndex, hm2AgentStpCstPortEntry=hm2AgentStpCstPortEntry, hm2AgentLagSummaryStatus=hm2AgentLagSummaryStatus, hm2AgentSwitchProtectedPortGroupId=hm2AgentSwitchProtectedPortGroupId, hm2AgentLagSummaryConfigEntry=hm2AgentLagSummaryConfigEntry, hm2AgentSwitchVlanSubnetAssociationVlanId=hm2AgentSwitchVlanSubnetAssociationVlanId, hm2AgentStaticIpsgBindingEntry=hm2AgentStaticIpsgBindingEntry, hm2AgentArpAclGroup=hm2AgentArpAclGroup, hm2AgentDhcpSnoopingStoreInterval=hm2AgentDhcpSnoopingStoreInterval, hm2AgentSwitchSnoopingVlanMRPExpirationTime=hm2AgentSwitchSnoopingVlanMRPExpirationTime, hm2AgentSwitchMFDBSummaryTable=hm2AgentSwitchMFDBSummaryTable, hm2AgentStpCstPortBpduFilter=hm2AgentStpCstPortBpduFilter, hm2AgentPortMaxFrameSize=hm2AgentPortMaxFrameSize, hm2AgentSwitchStaticMacFilteringDestPortMask=hm2AgentSwitchStaticMacFilteringDestPortMask, hm2AgentDaiIfTrustEnable=hm2AgentDaiIfTrustEnable, hm2AgentLagDetailedConfigTable=hm2AgentLagDetailedConfigTable, hm2AgentSwitchAddressAgingTimeoutEntry=hm2AgentSwitchAddressAgingTimeoutEntry, hm2AgentStpMstPortReceivedBridgeId=hm2AgentStpMstPortReceivedBridgeId, hm2AgentDhcpL2RelayIfEnable=hm2AgentDhcpL2RelayIfEnable, hm2AgentDhcpL2RelayVlanIndex=hm2AgentDhcpL2RelayVlanIndex, hm2AgentSwitchSnoopingIntfMaxResponseTime=hm2AgentSwitchSnoopingIntfMaxResponseTime, hm2AgentSwitchProtectedPortConfigGroup=hm2AgentSwitchProtectedPortConfigGroup, hm2AgentDynamicIpsgBindingIpAddr=hm2AgentDynamicIpsgBindingIpAddr, hm2AgentStpMstPortPathCost=hm2AgentStpMstPortPathCost, hm2AgentSwitchSnoopingGroup=hm2AgentSwitchSnoopingGroup, hm2AgentStpConfigFormatSelector=hm2AgentStpConfigFormatSelector, hm2AgentStpCstBridgeMaxAge=hm2AgentStpCstBridgeMaxAge, hm2AgentDaiSrcMacValidate=hm2AgentDaiSrcMacValidate, hm2AgentSwitchSnoopingVlanTable=hm2AgentSwitchSnoopingVlanTable, hm2AgentSwitchGARPGroup=hm2AgentSwitchGARPGroup, hm2AgentArpAclRuleRowStatus=hm2AgentArpAclRuleRowStatus, hm2AgentDaiIfAutoDisable=hm2AgentDaiIfAutoDisable, hm2AgentStpMstPortTable=hm2AgentStpMstPortTable, hm2AgentLagDetailedLagIndex=hm2AgentLagDetailedLagIndex, hm2AgentSwitchMFDBProtocolType=hm2AgentSwitchMFDBProtocolType, hm2AgentLagDetailedPortSpeed=hm2AgentLagDetailedPortSpeed, hm2AgentStpCstPortTable=hm2AgentStpCstPortTable, hm2AgentStaticIpsgBindingIfIndex=hm2AgentStaticIpsgBindingIfIndex, hm2AgentSwitchSnoopingVlanEntry=hm2AgentSwitchSnoopingVlanEntry, hm2AgentSwitchStaticMacFilteringAddress=hm2AgentSwitchStaticMacFilteringAddress, hm2AgentStpForceVersion=hm2AgentStpForceVersion, hm2AgentDynamicIpsgBindingTable=hm2AgentDynamicIpsgBindingTable, hm2AgentClassOfServicePortEntry=hm2AgentClassOfServicePortEntry, hm2AgentDynamicIpsgBindingHwStatus=hm2AgentDynamicIpsgBindingHwStatus, hm2AgentPortVoiceVlanNoneMode=hm2AgentPortVoiceVlanNoneMode, hm2AgentPortMulticastControlMode=hm2AgentPortMulticastControlMode, hm2AgentStpCstAutoPortPathCost=hm2AgentStpCstAutoPortPathCost, hm2AgentPortMirrorTypeTable=hm2AgentPortMirrorTypeTable, hm2AgentDhcpSnoopingIfLogEnable=hm2AgentDhcpSnoopingIfLogEnable, hm2AgentStpPortStatsRstpBpduTx=hm2AgentStpPortStatsRstpBpduTx, hm2AgentDhcpSnoopingMacVerifyFailures=hm2AgentDhcpSnoopingMacVerifyFailures, Ipv6AddressPrefix=Ipv6AddressPrefix, hm2AgentSwitchSnoopingQuerierVlanEntry=hm2AgentSwitchSnoopingQuerierVlanEntry, hm2AgentProtocolConfigGroup=hm2AgentProtocolConfigGroup, hm2AgentStpMstRootPathCost=hm2AgentStpMstRootPathCost, hm2AgentSwitchVlanSubnetAssociationTable=hm2AgentSwitchVlanSubnetAssociationTable, hm2AgentStpCstRegionalRootId=hm2AgentStpCstRegionalRootId, hm2AgentSwitchSnoopingQuerierElectionParticipateMode=hm2AgentSwitchSnoopingQuerierElectionParticipateMode, hm2AgentStpCstBridgeFwdDelay=hm2AgentStpCstBridgeFwdDelay, hm2AgentPortMirrorReflectorPortInvalid=hm2AgentPortMirrorReflectorPortInvalid, hm2AgentPortMirrorSourcePortDestinationPortConflict=hm2AgentPortMirrorSourcePortDestinationPortConflict, hm2AgentPortDot3FlowControlMode=hm2AgentPortDot3FlowControlMode, hm2AgentStpMstDesignatedPortId=hm2AgentStpMstDesignatedPortId, hm2AgentProtocolGroupPortStatus=hm2AgentProtocolGroupPortStatus, hm2AgentProtocolGroupProtocolID=hm2AgentProtocolGroupProtocolID, hm2AgentSwitchVoiceVlanDeviceTable=hm2AgentSwitchVoiceVlanDeviceTable, hm2AgentDaiVlanLoggingEnable=hm2AgentDaiVlanLoggingEnable, hm2AgentSwitchSnoopingQuerierOperVersion=hm2AgentSwitchSnoopingQuerierOperVersion, hm2AgentDaiVlanSrcMacFailures=hm2AgentDaiVlanSrcMacFailures, hm2AgentPortIfIndex=hm2AgentPortIfIndex, hm2AgentStpMstPortLoopInconsistentState=hm2AgentStpMstPortLoopInconsistentState, hm2AgentSwitchMFDBMacAddress=hm2AgentSwitchMFDBMacAddress, hm2AgentSwitchSnoopingIntfIndex=hm2AgentSwitchSnoopingIntfIndex, hm2AgentDynamicDsBindingIpAddr=hm2AgentDynamicDsBindingIpAddr, hm2AgentPortVoiceVlanPriority=hm2AgentPortVoiceVlanPriority, hm2AgentPortConfigTable=hm2AgentPortConfigTable, hm2AgentSwitchStaticMacFilteringTable=hm2AgentSwitchStaticMacFilteringTable, hm2AgentSystemGroup=hm2AgentSystemGroup, hm2AgentSwitchSnoopingQuerierVlanOperMode=hm2AgentSwitchSnoopingQuerierVlanOperMode, hm2AgentSdmPreferNextTemplate=hm2AgentSdmPreferNextTemplate, hm2AgentSwitchSnoopingIntfVlanIDs=hm2AgentSwitchSnoopingIntfVlanIDs, hm2AgentSwitchSnoopingIntfTable=hm2AgentSwitchSnoopingIntfTable, hm2AgentDhcpL2RelayStatsTable=hm2AgentDhcpL2RelayStatsTable, hm2AgentStpMstId=hm2AgentStpMstId, hm2AgentStpCstPortLoopGuard=hm2AgentStpCstPortLoopGuard, hm2AgentProtocolGroupEntry=hm2AgentProtocolGroupEntry, hm2AgentPortMirrorSourcePortMask=hm2AgentPortMirrorSourcePortMask, hm2AgentDhcpSnoopingRemoteIpAddr=hm2AgentDhcpSnoopingRemoteIpAddr, hm2AgentDhcpSnoopingIfAutoDisable=hm2AgentDhcpSnoopingIfAutoDisable, hm2AgentStpMstRootPortId=hm2AgentStpMstRootPortId, hm2AgentStpMstPortPriority=hm2AgentStpMstPortPriority, hm2AgentPortMirrorPortVlanMirrorConflict=hm2AgentPortMirrorPortVlanMirrorConflict, hm2AgentPortVoiceVlanAuthMode=hm2AgentPortVoiceVlanAuthMode, hm2AgentSwitchVlanMacAssociationRowStatus=hm2AgentSwitchVlanMacAssociationRowStatus, hm2AgentDaiVlanPktsForwarded=hm2AgentDaiVlanPktsForwarded, hm2AgentSwitchSnoopingQuerierCfgEntry=hm2AgentSwitchSnoopingQuerierCfgEntry, hm2AgentSwitchSnoopingVlanAdminMode=hm2AgentSwitchSnoopingVlanAdminMode, hm2AgentStpCstPortTopologyChangeAck=hm2AgentStpCstPortTopologyChangeAck, hm2AgentPortMirrorReset=hm2AgentPortMirrorReset, hm2PlatformDaiIntfErrorDisabledTrap=hm2PlatformDaiIntfErrorDisabledTrap, hm2PlatformSwitchingTraps=hm2PlatformSwitchingTraps, hm2AgentArpAclRuleMatchSenderIpAddr=hm2AgentArpAclRuleMatchSenderIpAddr, hm2AgentPortMaxFrameSizeLimit=hm2AgentPortMaxFrameSizeLimit, hm2AgentStpMstPortId=hm2AgentStpMstPortId, hm2AgentStpCstDesignatedBridgeId=hm2AgentStpCstDesignatedBridgeId, hm2AgentDot3adAggPortEntry=hm2AgentDot3adAggPortEntry, hm2AgentSwitchSnoopingQuerierQueryInterval=hm2AgentSwitchSnoopingQuerierQueryInterval, hm2AgentStpCstPortId=hm2AgentStpCstPortId, hm2AgentPortMirrorAdminMode=hm2AgentPortMirrorAdminMode, hm2AgentSwitchSnoopingQuerierVlanAdminMode=hm2AgentSwitchSnoopingQuerierVlanAdminMode, hm2AgentArpAclRowStatus=hm2AgentArpAclRowStatus, hm2AgentSwitchGmrpPortPktRx=hm2AgentSwitchGmrpPortPktRx, hm2AgentStpMstAutoPortPathCost=hm2AgentStpMstAutoPortPathCost, hm2AgentPortVoiceVlanDSCP=hm2AgentPortVoiceVlanDSCP, hm2AgentStpPortMigrationCheck=hm2AgentStpPortMigrationCheck, hm2AgentDaiVlanDynArpInspEnable=hm2AgentDaiVlanDynArpInspEnable, hm2AgentSwitchVoiceVLANAdminMode=hm2AgentSwitchVoiceVLANAdminMode, hm2AgentStpCstBridgeHoldTime=hm2AgentStpCstBridgeHoldTime, hm2AgentStpConfigDigestKey=hm2AgentStpConfigDigestKey, hm2AgentSwitchGmrpUnknownMulticastFilterMode=hm2AgentSwitchGmrpUnknownMulticastFilterMode, Ipv6IfIndexOrZero=Ipv6IfIndexOrZero, hm2AgentDhcpL2RelayTrustedClntMsgsWithoutOptn82=hm2AgentDhcpL2RelayTrustedClntMsgsWithoutOptn82, hm2AgentSwitchSnoopingAdminMode=hm2AgentSwitchSnoopingAdminMode, hm2AgentSwitchVlanSubnetAssociationIPAddress=hm2AgentSwitchVlanSubnetAssociationIPAddress, hm2AgentPortSfpLinkLossAlert=hm2AgentPortSfpLinkLossAlert, hm2AgentStpConfigRevision=hm2AgentStpConfigRevision, hm2AgentStpMstTopologyChangeParm=hm2AgentStpMstTopologyChangeParm, hm2AgentPortVoiceVlanOperationalStatus=hm2AgentPortVoiceVlanOperationalStatus, hm2AgentDaiVlanDhcpDrops=hm2AgentDaiVlanDhcpDrops, hm2AgentSwitchSnoopingQuerierVlanAddress=hm2AgentSwitchSnoopingQuerierVlanAddress, hm2PlatformDhcpSnoopingIntfErrorDisabledTrap=hm2PlatformDhcpSnoopingIntfErrorDisabledTrap, hm2AgentPortVoiceVlanDataPriorityMode=hm2AgentPortVoiceVlanDataPriorityMode, hm2AgentStpMstPortRole=hm2AgentStpMstPortRole, hm2AgentSwitchVlanMacAssociationGroup=hm2AgentSwitchVlanMacAssociationGroup, hm2AgentSwitchAddressAgingTimeout=hm2AgentSwitchAddressAgingTimeout, hm2AgentDaiVlanArpAclStaticFlag=hm2AgentDaiVlanArpAclStaticFlag, hm2AgentDhcpSnoopingStatsEntry=hm2AgentDhcpSnoopingStatsEntry, hm2AgentStpPortState=hm2AgentStpPortState, hm2AgentPortMirrorSessionNum=hm2AgentPortMirrorSessionNum, hm2AgentDhcpL2RelayConfigGroup=hm2AgentDhcpL2RelayConfigGroup, hm2AgentSwitchSnoopingQuerierGroup=hm2AgentSwitchSnoopingQuerierGroup, hm2AgentSwitchMFDBTable=hm2AgentSwitchMFDBTable, hm2AgentPortMirrorDestinationPort=hm2AgentPortMirrorDestinationPort, hm2AgentDaiVlanPktsDropped=hm2AgentDaiVlanPktsDropped, hm2AgentPortMirrorSourcePortReflectorPortConflict=hm2AgentPortMirrorSourcePortReflectorPortConflict, hm2AgentDynamicIpsgBindingMacAddr=hm2AgentDynamicIpsgBindingMacAddr, hm2AgentSwitchVlanStaticMrouterTable=hm2AgentSwitchVlanStaticMrouterTable, hm2AgentStpMstPortEntry=hm2AgentStpMstPortEntry, hm2AgentSwitchMFDBSummaryVlanId=hm2AgentSwitchMFDBSummaryVlanId, hm2AgentDaiVlanAclDrops=hm2AgentDaiVlanAclDrops, hm2AgentStpMstPortReceivedPortId=hm2AgentStpMstPortReceivedPortId, hm2AgentPortBroadcastControlThresholdUnit=hm2AgentPortBroadcastControlThresholdUnit, hm2AgentSwitchVlanStaticMrouterAdminMode=hm2AgentSwitchVlanStaticMrouterAdminMode, hm2AgentStaticDsBindingEntry=hm2AgentStaticDsBindingEntry, hm2AgentLagDetailedIfIndex=hm2AgentLagDetailedIfIndex, hm2AgentArpAclRuleEntry=hm2AgentArpAclRuleEntry, hm2AgentSwitchSnoopingCfgTable=hm2AgentSwitchSnoopingCfgTable, hm2AgentSwitchSnoopingQuerierLastQuerierAddress=hm2AgentSwitchSnoopingQuerierLastQuerierAddress, LagList=LagList, hm2AgentSwitchMFDBEntry=hm2AgentSwitchMFDBEntry, hm2AgentIPv6NdpEntries=hm2AgentIPv6NdpEntries, hm2AgentStpCstPortOperPointToPoint=hm2AgentStpCstPortOperPointToPoint, hm2AgentStpMstRowStatus=hm2AgentStpMstRowStatus, Ipv6Address=Ipv6Address, hm2AgentStaticIpsgBindingRowStatus=hm2AgentStaticIpsgBindingRowStatus, hm2AgentPortMirrorEntry=hm2AgentPortMirrorEntry, hm2AgentStaticDsBindingRowStatus=hm2AgentStaticDsBindingRowStatus, hm2AgentSwitchSnoopingQuerierVlanTable=hm2AgentSwitchSnoopingQuerierVlanTable, hm2AgentSwitchSnoopingQuerierLastQuerierVersion=hm2AgentSwitchSnoopingQuerierLastQuerierVersion, hm2AgentStpCstRootFwdDelay=hm2AgentStpCstRootFwdDelay, hm2AgentStpCstDesignatedCost=hm2AgentStpCstDesignatedCost, hm2AgentProtocolGroupProtocolTable=hm2AgentProtocolGroupProtocolTable, hm2AgentLagSummaryConfigTable=hm2AgentLagSummaryConfigTable, hm2AgentSwitchSnoopingQuerierAdminMode=hm2AgentSwitchSnoopingQuerierAdminMode, hm2AgentSwitchSnoopingVlanGroup=hm2AgentSwitchSnoopingVlanGroup, VlanList=VlanList, hm2AgentSwitchVlanMacAssociationVlanId=hm2AgentSwitchVlanMacAssociationVlanId, hm2AgentSwitchVoiceVLANGroup=hm2AgentSwitchVoiceVLANGroup, hm2AgentSwitchGvrpPortPktTx=hm2AgentSwitchGvrpPortPktTx, hm2AgentSwitchSnoopingPortMask=hm2AgentSwitchSnoopingPortMask, hm2AgentPortVoiceVlanMode=hm2AgentPortVoiceVlanMode, hm2AgentStaticIpsgBindingMacAddr=hm2AgentStaticIpsgBindingMacAddr, hm2AgentPortBroadcastControlThreshold=hm2AgentPortBroadcastControlThreshold, hm2AgentSwitchSnoopingIntfMulticastRouterMode=hm2AgentSwitchSnoopingIntfMulticastRouterMode, hm2AgentSwitchStaticMacFilteringEntry=hm2AgentSwitchStaticMacFilteringEntry, hm2AgentSwitchMFDBSummaryForwardingPortMask=hm2AgentSwitchMFDBSummaryForwardingPortMask, hm2AgentDaiVlanStatsIndex=hm2AgentDaiVlanStatsIndex, hm2AgentStpCstPortTCNGuard=hm2AgentStpCstPortTCNGuard, hm2AgentSwitchSnoopingProtocol=hm2AgentSwitchSnoopingProtocol, hm2AgentPortMirrorVlanMirrorPortConflict=hm2AgentPortMirrorVlanMirrorPortConflict, hm2AgentDaiConfigGroup=hm2AgentDaiConfigGroup, hm2AgentLagSummaryStpMode=hm2AgentLagSummaryStpMode, hm2AgentDhcpSnoopingVlanConfigEntry=hm2AgentDhcpSnoopingVlanConfigEntry, hm2AgentIPv6MulticastRoutes=hm2AgentIPv6MulticastRoutes, hm2AgentLagConfigSNMPExtensionGroup=hm2AgentLagConfigSNMPExtensionGroup, hm2AgentClassOfServicePortPriority=hm2AgentClassOfServicePortPriority, hm2AgentSwitchSnoopingIntfAdminMode=hm2AgentSwitchSnoopingIntfAdminMode, hm2AgentSwitchGvrpPortPktRx=hm2AgentSwitchGvrpPortPktRx, hm2AgentStpMstPortForwardingState=hm2AgentStpMstPortForwardingState) mibBuilder.exportSymbols("HM2-PLATFORM-SWITCHING-MIB", hm2AgentStpMstVlanTable=hm2AgentStpMstVlanTable, hm2AgentSdmTemplateSummaryTable=hm2AgentSdmTemplateSummaryTable, hm2AgentPortUnicastControlMode=hm2AgentPortUnicastControlMode, hm2AgentSwitchMFDBSummaryEntry=hm2AgentSwitchMFDBSummaryEntry, hm2AgentStpMstPortReceivedRegionalRPC=hm2AgentStpMstPortReceivedRegionalRPC, hm2AgentStaticDsBindingIpAddr=hm2AgentStaticDsBindingIpAddr, hm2AgentStaticDsBindingVlanId=hm2AgentStaticDsBindingVlanId, hm2AgentSwitchMFDBForwardingPortMask=hm2AgentSwitchMFDBForwardingPortMask, hm2AgentIpsgIfConfigEntry=hm2AgentIpsgIfConfigEntry, hm2AgentDaiVlanAclPermits=hm2AgentDaiVlanAclPermits, hm2AgentSwitchSnoopingIntfGroupMembershipInterval=hm2AgentSwitchSnoopingIntfGroupMembershipInterval, hm2AgentDaiIfConfigTable=hm2AgentDaiIfConfigTable, hm2AgentStpMstTable=hm2AgentStpMstTable, hm2AgentArpAclEntry=hm2AgentArpAclEntry, hm2AgentSwitchSnoopingVlanMaxResponseTime=hm2AgentSwitchSnoopingVlanMaxResponseTime, hm2AgentSwitchMFDBVlanId=hm2AgentSwitchMFDBVlanId, hm2AgentDhcpSnoopingStatsTable=hm2AgentDhcpSnoopingStatsTable, hm2AgentLagSummaryFlushTimer=hm2AgentLagSummaryFlushTimer, hm2AgentSdmTemplateId=hm2AgentSdmTemplateId, hm2AgentSwitchVlanSubnetAssociationEntry=hm2AgentSwitchVlanSubnetAssociationEntry, hm2PlatformSwitching=hm2PlatformSwitching, hm2AgentLagSummaryMinimumActiveLinks=hm2AgentLagSummaryMinimumActiveLinks, hm2AgentPortMirrorDestinationPortInvalid=hm2AgentPortMirrorDestinationPortInvalid, hm2AgentStpCstHelloTime=hm2AgentStpCstHelloTime, hm2AgentPortConfigEntry=hm2AgentPortConfigEntry, hm2AgentStpMstSwitchVersionConflict=hm2AgentStpMstSwitchVersionConflict, hm2AgentDaiVlanBindingCheckEnable=hm2AgentDaiVlanBindingCheckEnable, hm2AgentStpMstVlanRowStatus=hm2AgentStpMstVlanRowStatus, hm2AgentStpPortTable=hm2AgentStpPortTable, hm2AgentStpCstPortOperEdge=hm2AgentStpCstPortOperEdge, hm2AgentDynamicDsBindingEntry=hm2AgentDynamicDsBindingEntry, hm2AgentSwitchVlanMacAssociationTable=hm2AgentSwitchVlanMacAssociationTable, hm2AgentDhcpSnoopingInvalidServerMessages=hm2AgentDhcpSnoopingInvalidServerMessages, hm2AgentPortClearStats=hm2AgentPortClearStats, hm2AgentDaiDstMacValidate=hm2AgentDaiDstMacValidate, hm2AgentLagConfigGroupPortIsLagMemberErrorReturn=hm2AgentLagConfigGroupPortIsLagMemberErrorReturn, hm2AgentDhcpL2RelayUntrustedSrvrMsgsWithOptn82=hm2AgentDhcpL2RelayUntrustedSrvrMsgsWithOptn82, hm2AgentStpBpduFilterDefault=hm2AgentStpBpduFilterDefault, hm2AgentDaiVlanStatsEntry=hm2AgentDaiVlanStatsEntry, hm2AgentDhcpSnoopingVlanConfigTable=hm2AgentDhcpSnoopingVlanConfigTable, hm2AgentPortDot3FlowControlOperStatus=hm2AgentPortDot3FlowControlOperStatus, hm2AgentSwitchConfigGroup=hm2AgentSwitchConfigGroup, hm2AgentDynamicIpsgBindingIfIndex=hm2AgentDynamicIpsgBindingIfIndex, hm2AgentLagConfigCreate=hm2AgentLagConfigCreate, hm2PlatformStpInstanceTopologyChangeTrap=hm2PlatformStpInstanceTopologyChangeTrap, hm2AgentDaiVlanDhcpPermits=hm2AgentDaiVlanDhcpPermits, hm2AgentSwitchSnoopingQuerierVersion=hm2AgentSwitchSnoopingQuerierVersion, hm2AgentSwitchMFDBSummaryMacAddress=hm2AgentSwitchMFDBSummaryMacAddress, hm2AgentDaiIPValidate=hm2AgentDaiIPValidate, hm2AgentSwitchVlanStaticMrouterEntry=hm2AgentSwitchVlanStaticMrouterEntry, hm2AgentDhcpSnoopingIfBurstInterval=hm2AgentDhcpSnoopingIfBurstInterval, hm2AgentDhcpL2RelayRemoteIdVlanEnable=hm2AgentDhcpL2RelayRemoteIdVlanEnable, hm2AgentProtocolGroupPortTable=hm2AgentProtocolGroupPortTable, hm2AgentLagSummaryMaxFrameSize=hm2AgentLagSummaryMaxFrameSize, hm2AgentLagConfigGroupMaxNumPortsPerLag=hm2AgentLagConfigGroupMaxNumPortsPerLag, hm2AgentSdmTemplateEntry=hm2AgentSdmTemplateEntry, hm2AgentLagConfigGroupHashOption=hm2AgentLagConfigGroupHashOption, hm2PlatformStpInstanceLoopInconsistentStartTrap=hm2PlatformStpInstanceLoopInconsistentStartTrap, hm2AgentStpCstPortAutoEdge=hm2AgentStpCstPortAutoEdge, hm2AgentProtocolGroupPortEntry=hm2AgentProtocolGroupPortEntry, hm2AgentDhcpSnoopingIfTrustEnable=hm2AgentDhcpSnoopingIfTrustEnable, hm2AgentConfigGroup=hm2AgentConfigGroup, hm2AgentSwitchGmrpPortEntry=hm2AgentSwitchGmrpPortEntry, hm2AgentSwitchVoiceVlanInterfaceNum=hm2AgentSwitchVoiceVlanInterfaceNum, hm2AgentStpMstPortTransitionsOutOfLoopInconsistentState=hm2AgentStpMstPortTransitionsOutOfLoopInconsistentState, hm2AgentSwitchSnoopingIntfFastLeaveAdminMode=hm2AgentSwitchSnoopingIntfFastLeaveAdminMode, hm2AgentDynamicDsBindingMacAddr=hm2AgentDynamicDsBindingMacAddr, hm2AgentDhcpL2RelayVlanConfigTable=hm2AgentDhcpL2RelayVlanConfigTable, hm2AgentDhcpSnoopingRemoteFileName=hm2AgentDhcpSnoopingRemoteFileName, hm2AgentStpCstPortEdge=hm2AgentStpCstPortEdge, hm2AgentStaticIpsgBindingTable=hm2AgentStaticIpsgBindingTable, PYSNMP_MODULE_ID=hm2PlatformSwitching, hm2AgentStpCstRegionalRootPathCost=hm2AgentStpCstRegionalRootPathCost, hm2AgentLagConfigGroupNumOfLagsConfigured=hm2AgentLagConfigGroupNumOfLagsConfigured, hm2AgentIPv4MulticastRoutes=hm2AgentIPv4MulticastRoutes, hm2AgentPortMirrorPrivateVlanConfigured=hm2AgentPortMirrorPrivateVlanConfigured, hm2AgentPortMirrorRemoteVlan=hm2AgentPortMirrorRemoteVlan, hm2AgentPortMirrorRemoteDestinationVlan=hm2AgentPortMirrorRemoteDestinationVlan, hm2AgentDot3adAggPortTable=hm2AgentDot3adAggPortTable, hm2AgentClearVlan=hm2AgentClearVlan, hm2AgentDaiIfConfigEntry=hm2AgentDaiIfConfigEntry, hm2AgentSwitchVoiceVlanDeviceMacAddress=hm2AgentSwitchVoiceVlanDeviceMacAddress, hm2AgentPortMirrorDestinationRemotePortNotSet=hm2AgentPortMirrorDestinationRemotePortNotSet, hm2AgentArpAclRuleMatchSenderMacAddr=hm2AgentArpAclRuleMatchSenderMacAddr, hm2AgentDaiVlanIndex=hm2AgentDaiVlanIndex, hm2AgentSwitchGmrpPortTable=hm2AgentSwitchGmrpPortTable, hm2AgentProtocolGroupName=hm2AgentProtocolGroupName, hm2AgentDhcpL2RelayVlanConfigEntry=hm2AgentDhcpL2RelayVlanConfigEntry, hm2AgentIPv6UnicastRoutes=hm2AgentIPv6UnicastRoutes, hm2AgentStpMstDesignatedRootId=hm2AgentStpMstDesignatedRootId, hm2AgentDaiStatsReset=hm2AgentDaiStatsReset, hm2AgentSwitchAddressAgingTimeoutTable=hm2AgentSwitchAddressAgingTimeoutTable, hm2AgentProtocolGroupTable=hm2AgentProtocolGroupTable, hm2AgentStpMstPortTransitionsIntoLoopInconsistentState=hm2AgentStpMstPortTransitionsIntoLoopInconsistentState, hm2PlatformStpInstanceLoopInconsistentEndTrap=hm2PlatformStpInstanceLoopInconsistentEndTrap, hm2AgentIpsgIfVerifySource=hm2AgentIpsgIfVerifySource, hm2AgentStaticDsBindingIfIndex=hm2AgentStaticDsBindingIfIndex, hm2AgentPortMirrorReflectorPortVlanConflict=hm2AgentPortMirrorReflectorPortVlanConflict, hm2AgentDynamicIpsgBindingEntry=hm2AgentDynamicIpsgBindingEntry, hm2AgentPortUnicastControlThreshold=hm2AgentPortUnicastControlThreshold, hm2AgentSwitchGmrpPortPktTx=hm2AgentSwitchGmrpPortPktTx, hm2AgentDhcpSnoopingIfConfigTable=hm2AgentDhcpSnoopingIfConfigTable, hm2AgentPortMirrorRemoteSourceVlan=hm2AgentPortMirrorRemoteSourceVlan, hm2AgentIPv4UnicastRoutes=hm2AgentIPv4UnicastRoutes, hm2AgentSwitchStaticMacFilteringVlanId=hm2AgentSwitchStaticMacFilteringVlanId, hm2AgentPortMirrorVlanNotCreated=hm2AgentPortMirrorVlanNotCreated, hm2AgentSwitchSnoopingVlanReportSuppMode=hm2AgentSwitchSnoopingVlanReportSuppMode, hm2AgentDaiVlanConfigTable=hm2AgentDaiVlanConfigTable, hm2AgentPortUnicastControlThresholdUnit=hm2AgentPortUnicastControlThresholdUnit, hm2AgentStpCstPortPathCost=hm2AgentStpCstPortPathCost, hm2AgentSwitchVoiceVlanDeviceEntry=hm2AgentSwitchVoiceVlanDeviceEntry, hm2AgentDhcpL2RelayAdminMode=hm2AgentDhcpL2RelayAdminMode, hm2AgentPortMirrorSourceVlan=hm2AgentPortMirrorSourceVlan, hm2AgentSwitchMFDBMostEntriesUsed=hm2AgentSwitchMFDBMostEntriesUsed, hm2AgentStpCstBridgeMaxHops=hm2AgentStpCstBridgeMaxHops, hm2AgentStpCstBridgeHelloTime=hm2AgentStpCstBridgeHelloTime, hm2AgentSwitchVlanMacAssociationEntry=hm2AgentSwitchVlanMacAssociationEntry, hm2AgentDaiIfRateLimit=hm2AgentDaiIfRateLimit, hm2AgentSwitchGvrpPortEntry=hm2AgentSwitchGvrpPortEntry, hm2AgentPortMirroringGroup=hm2AgentPortMirroringGroup, Ipv6AddressIfIdentifier=Ipv6AddressIfIdentifier, hm2AgentStpCstFwdDelayErrorReturn=hm2AgentStpCstFwdDelayErrorReturn, hm2AgentSwitchVlanStaticMrouterGroup=hm2AgentSwitchVlanStaticMrouterGroup, hm2AgentProtocolGroupVlanId=hm2AgentProtocolGroupVlanId, hm2AgentStpAdminMode=hm2AgentStpAdminMode, hm2AgentSdmPreferCurrentTemplate=hm2AgentSdmPreferCurrentTemplate, hm2AgentDaiVlanDstMacFailures=hm2AgentDaiVlanDstMacFailures, hm2AgentDynamicDsBindingVlanId=hm2AgentDynamicDsBindingVlanId, hm2AgentLagSummaryName=hm2AgentLagSummaryName, hm2AgentSwitchStaticMacStatsGroup=hm2AgentSwitchStaticMacStatsGroup, hm2AgentStpCstMaxAge=hm2AgentStpCstMaxAge, hm2AgentStaticDsBindingTable=hm2AgentStaticDsBindingTable, hm2AgentStpPortUpTime=hm2AgentStpPortUpTime, hm2AgentLagMirrorProbePortLagMemberErrorReturn=hm2AgentLagMirrorProbePortLagMemberErrorReturn, hm2AgentPortMirrorAllowMgmtMode=hm2AgentPortMirrorAllowMgmtMode, hm2AgentSwitchGvrpPortTable=hm2AgentSwitchGvrpPortTable, hm2AgentStpCstConfigGroup=hm2AgentStpCstConfigGroup, hm2AgentStpCstPortPriority=hm2AgentStpCstPortPriority, hm2AgentClassOfServicePortClass=hm2AgentClassOfServicePortClass, hm2AgentStpPortStatsStpBpduTx=hm2AgentStpPortStatsStpBpduTx, hm2AgentSwitchProtectedPortTable=hm2AgentSwitchProtectedPortTable, hm2AgentLagDetailedConfigEntry=hm2AgentLagDetailedConfigEntry, hm2AgentDaiIfBurstInterval=hm2AgentDaiIfBurstInterval, hm2AgentLagConfigStaticCapability=hm2AgentLagConfigStaticCapability, hm2AgentStaticIpsgBindingHwStatus=hm2AgentStaticIpsgBindingHwStatus, hm2AgentPortMirrorReflectorPort=hm2AgentPortMirrorReflectorPort, Ipv6IfIndex=Ipv6IfIndex, hm2AgentLagSummaryStaticCapability=hm2AgentLagSummaryStaticCapability, hm2AgentDynamicDsBindingLeaseRemainingTime=hm2AgentDynamicDsBindingLeaseRemainingTime, hm2AgentDaiVlanStatsTable=hm2AgentDaiVlanStatsTable, hm2AgentSwitchSnoopingVlanGroupMembershipInterval=hm2AgentSwitchSnoopingVlanGroupMembershipInterval, hm2AgentStpCstBridgePriority=hm2AgentStpCstBridgePriority, hm2AgentDaiVlanIpValidFailures=hm2AgentDaiVlanIpValidFailures, hm2AgentStpBpduGuardMode=hm2AgentStpBpduGuardMode, hm2AgentStpMstInstanceVlanErrorReturn=hm2AgentStpMstInstanceVlanErrorReturn, hm2AgentDhcpL2RelayUntrustedClntMsgsWithOptn82=hm2AgentDhcpL2RelayUntrustedClntMsgsWithOptn82, hm2AgentLagSummaryMaxFrameSizeLimit=hm2AgentLagSummaryMaxFrameSizeLimit, hm2AgentPortMirrorRspanVlanInconsistent=hm2AgentPortMirrorRspanVlanInconsistent, hm2AgentDot3adAggPort=hm2AgentDot3adAggPort, hm2AgentSwitchSnoopingIntfGroup=hm2AgentSwitchSnoopingIntfGroup, hm2AgentStpRingOnlyMode=hm2AgentStpRingOnlyMode, hm2AgentPortMirrorProbePortVlanConflict=hm2AgentPortMirrorProbePortVlanConflict, hm2AgentStpPortStatsRstpBpduRx=hm2AgentStpPortStatsRstpBpduRx, hm2AgentLagSummaryLagIndex=hm2AgentLagSummaryLagIndex, hm2AgentPortMirrorSNMPExtensionGroup=hm2AgentPortMirrorSNMPExtensionGroup, hm2AgentStpCstPortBpduFlood=hm2AgentStpCstPortBpduFlood, hm2AgentSwitchSnoopingIntfEntry=hm2AgentSwitchSnoopingIntfEntry, hm2AgentPortDot1dBasePort=hm2AgentPortDot1dBasePort, hm2AgentPortMirrorVlanRspanVlanConflict=hm2AgentPortMirrorVlanRspanVlanConflict, hm2AgentStpPortStatsStpBpduRx=hm2AgentStpPortStatsStpBpduRx, hm2AgentProtocolGroupProtocolEntry=hm2AgentProtocolGroupProtocolEntry, hm2AgentStpPortStatsMstpBpduTx=hm2AgentStpPortStatsMstpBpduTx, hm2AgentSwitchSnoopingMulticastControlFramesProcessed=hm2AgentSwitchSnoopingMulticastControlFramesProcessed, hm2AgentDhcpSnoopingIfRateLimit=hm2AgentDhcpSnoopingIfRateLimit, hm2AgentStpMstVlanEntry=hm2AgentStpMstVlanEntry, hm2AgentSwitchMFDBDescription=hm2AgentSwitchMFDBDescription, hm2AgentSwitchMFDBMaxTableEntries=hm2AgentSwitchMFDBMaxTableEntries, hm2AgentLagSummaryType=hm2AgentLagSummaryType, hm2AgentDot3adAggPortLACPMode=hm2AgentDot3adAggPortLACPMode, hm2AgentEcmpNextHops=hm2AgentEcmpNextHops, hm2AgentDhcpL2RelayIfTrustEnable=hm2AgentDhcpL2RelayIfTrustEnable, hm2AgentStaticDsBindingMacAddr=hm2AgentStaticDsBindingMacAddr, hm2AgentDynamicIpsgBindingVlanId=hm2AgentDynamicIpsgBindingVlanId, hm2AgentStpCstDesignatedPortId=hm2AgentStpCstDesignatedPortId, hm2AgentStpCstPortRootGuard=hm2AgentStpCstPortRootGuard, hm2AgentStpMstDesignatedCost=hm2AgentStpMstDesignatedCost, hm2AgentArpAclTable=hm2AgentArpAclTable, hm2AgentDaiVlanConfigEntry=hm2AgentDaiVlanConfigEntry, hm2AgentSwitchVlanSubnetAssociationSubnetMask=hm2AgentSwitchVlanSubnetAssociationSubnetMask, hm2AgentStpRingOnlyModeIntfOne=hm2AgentStpRingOnlyModeIntfOne, hm2AgentLagSummaryAddPort=hm2AgentLagSummaryAddPort, hm2AgentSdmTemplateTable=hm2AgentSdmTemplateTable, hm2AgentSwitchSnoopingVlanFastLeaveAdminMode=hm2AgentSwitchSnoopingVlanFastLeaveAdminMode, hm2AgentStpCstPortBpduGuardEffect=hm2AgentStpCstPortBpduGuardEffect, hm2AgentStpMstBridgeIdentifier=hm2AgentStpMstBridgeIdentifier, hm2AgentPortVoiceVlanUntagged=hm2AgentPortVoiceVlanUntagged, hm2AgentSwitchStaticMacFilteringStatus=hm2AgentSwitchStaticMacFilteringStatus, hm2AgentSwitchSnoopingQuerierOperMaxResponseTime=hm2AgentSwitchSnoopingQuerierOperMaxResponseTime, hm2AgentStpPortEntry=hm2AgentStpPortEntry, hm2AgentStpMstBridgePriority=hm2AgentStpMstBridgePriority, hm2AgentDaiVlanArpAclName=hm2AgentDaiVlanArpAclName, hm2AgentLagSummaryLinkTrap=hm2AgentLagSummaryLinkTrap, hm2AgentSwitchVlanMacAssociationMacAddress=hm2AgentSwitchVlanMacAssociationMacAddress, hm2AgentPortMirrorTypeType=hm2AgentPortMirrorTypeType, hm2AgentSwitchVlanSubnetAssociationRowStatus=hm2AgentSwitchVlanSubnetAssociationRowStatus, hm2AgentDhcpL2RelayTrustedSrvrMsgsWithoutOptn82=hm2AgentDhcpL2RelayTrustedSrvrMsgsWithoutOptn82, hm2AgentPortVoiceVlanID=hm2AgentPortVoiceVlanID, hm2AgentLagConfigGroupMaxNumOfLags=hm2AgentLagConfigGroupMaxNumOfLags, hm2AgentStpMstEntry=hm2AgentStpMstEntry, hm2AgentStpMstDesignatedBridgeId=hm2AgentStpMstDesignatedBridgeId, hm2AgentLagConfigGroupLagsConfigured=hm2AgentLagConfigGroupLagsConfigured, hm2AgentLagSummaryHashOption=hm2AgentLagSummaryHashOption, hm2AgentSwitchSnoopingQuerierExpiryInterval=hm2AgentSwitchSnoopingQuerierExpiryInterval, hm2AgentLagDetailedPortStatus=hm2AgentLagDetailedPortStatus, hm2AgentPortMirrorTable=hm2AgentPortMirrorTable, hm2AgentPortMirrorRemoteSourceRemoteDestinationConflict=hm2AgentPortMirrorRemoteSourceRemoteDestinationConflict, hm2AgentDhcpSnoopingAdminMode=hm2AgentDhcpSnoopingAdminMode, hm2AgentArpAclName=hm2AgentArpAclName, hm2AgentDhcpSnoopingVlanEnable=hm2AgentDhcpSnoopingVlanEnable, hm2AgentDhcpSnoopingVerifyMac=hm2AgentDhcpSnoopingVerifyMac, hm2AgentStpCstExtPortPathCost=hm2AgentStpCstExtPortPathCost, hm2AgentSwitchSnoopingIntfMRPExpirationTime=hm2AgentSwitchSnoopingIntfMRPExpirationTime, hm2PlatformStpInstanceNewRootTrap=hm2PlatformStpInstanceNewRootTrap, hm2AgentPortMulticastControlThresholdUnit=hm2AgentPortMulticastControlThresholdUnit, hm2AgentProtocolGroupId=hm2AgentProtocolGroupId, hm2AgentDhcpL2RelayVlanEnable=hm2AgentDhcpL2RelayVlanEnable, hm2AgentPortBroadcastControlMode=hm2AgentPortBroadcastControlMode, hm2AgentIpsgIfConfigTable=hm2AgentIpsgIfConfigTable, hm2AgentPortMirrorTypeEntry=hm2AgentPortMirrorTypeEntry)
"""3-1. Names: Store the names of a few of your friends in a list called names. Print each person’s name by accessing each element in the list, one at a time.""" names = ['Reynaldo', 'Horacio', 'Pablo', 'Genesis', 'Angelica'] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4])
def pytest_addoption(parser): # Where to find curl-impersonate's binaries parser.addoption("--install-dir", action="store", default="/usr/local") parser.addoption("--capture-interface", action="store", default="eth0")
#INPUT lines = open('input.txt').read().split() dummy = ['forward', '5', 'down', '5', 'forward', '8', 'up', '3', 'down', '8', 'forward', '2'] #FIRST PROBLEM def problemPart1(data): horizontal = 0 depth = 0 for i in range(0, len(data), 2): if data[i] == 'down': depth += int(data[i+1]) elif data[i] == 'up': depth -= int(data[i+1]) else: horizontal += int(data[i+1]) return(horizontal*depth) #SECOND PROBLEM def problemPart2(data): horizontal = 0 depth = 0 aim = 0 for i in range(0, len(data), 2): num = data[i+1] if data[i] == 'down': aim += int(num) elif data[i] == 'up': aim -= int(num) else: horizontal += int(num) depth = depth + (aim*int(num)) return(horizontal*depth) print(problemPart1(lines)) print(problemPart2(lines))
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. class HlsColor: def __init__(self, hue, luminance, saturation): self.hue = hue self.luminance = luminance self.saturation = saturation def Lighten(self, percent): self.luminance *= (1.0 + percent) if self.luminance > 1.0: self.luminance = 1.0 def Darken(self, percent): self.luminance *= (1.0 - percent) def ToHLS(self, red, green, blue): minval = min(red, min(green, blue)) maxval = max(red, max(green, blue)) mdiff = float(maxval - minval) msum = float(maxval + minval) self.luminance = msum / 510.0 if maxval == minval: self.saturation = 0.0 self.hue = 0.0 else: rnorm = (maxval - red) / mdiff gnorm = (maxval - green) / mdiff bnorm = (maxval - blue) / mdiff if self.luminance <= 0.5: self.saturation = mdiff / msum else: self.saturation = mdiff / (510.0 - msum) if red == maxval: self.hue = 60.0 * (6.0 + bnorm - gnorm) if green == maxval: self.hue = 60.0 * (2.0 + rnorm - bnorm) if blue == maxval: self.hue = 60.0 * (4.0 + gnorm - rnorm) if self.hue > 360.0: self.hue = self.hue - 360.0 def ToRGB(self): red = 0 green = 0 blue = 0 if self.saturation == 0.0: red = int(self.luminance * 255) green = red blue = red else: rm1 = 0.0 rm2 = 0.0 if self.luminance <= 0.5: rm2 = self.luminance + self.luminance * self.saturation else: rm2 = self.luminance + self.saturation - self.luminance * self.saturation rm1 = 2.0 * self.luminance - rm2 red = self.ToRGB1(rm1, rm2, self.hue + 120.0) green = self.ToRGB1(rm1, rm2, self.hue) blue = self.ToRGB1(rm1, rm2, self.hue - 120.0) return [red, green, blue] def ToRGB1(rm1, rm2, rh): if (rh > 360.0): rh -= 360.0 elif rh < 0.0: rh += 360.0 if rh < 60.0: rm1 = rm1 + (rm2 - rm1) * rh / 60.0 elif rh < 180.0: rm1 = rm2 elif rh < 240.0: rm1 = rm1 + (rm2 - rm1) * (240.0 - rh) / 60.0 return int(rm1 * 255)
class DataFile: def __init__(self, datetime, chart, datafile): self.Datetime = datetime self.Chart = chart self.Datafile = datafile return
# -*- coding: utf-8 -*- def test_get_billing_key(iamport): invalid_customer_uid = 'invalid_key' try: iamport.get_billing_key(invalid_customer_uid) except iamport.HttpError as e: assert e.code == 404 assert e.reason == 'Not Found' valid_customer_uid = 'customer_1234' res = iamport.get_billing_key(valid_customer_uid)[0] expected = { 'card_name': u'현대카드', 'card_number': '43302887****9512', 'customer_uid': valid_customer_uid } for key in expected: assert expected[key] == res[key] def test_make_billing_key(iamport): # Without 'card_number' payload_notEnough = { 'expiry': '2019-03', 'birth': '500203', 'pwd_2digit': '19' } test_customer_uid = 'test_customer_uid' try: iamport.make_billing_key(test_customer_uid, **payload_notEnough) except KeyError as e: assert "Essential parameter is missing!: card_number" in str(e) payload_full = { 'card_number': '4092-0230-1234-1234', 'expiry': '2019-03', 'birth': '500203', 'pwd_2digit': '19' } try: iamport.make_billing_key(test_customer_uid, **payload_full) except iamport.ResponseError as e: assert e.code == -1 assert u'유효기간 오류' in e.message def test_delete_billing_key(iamport): # Without 'card_number' test_customer_uid = 'test_customer_uid' try: iamport.delete_billing_key(test_customer_uid) except iamport.ResponseError as e: assert e.code == 1 assert u'등록된 정보를 찾을 수 없습니다' in e.message
entries = [ { 'env-title': 'atari-alien', 'env-variant': 'No-op start', 'score': 3166, }, { 'env-title': 'atari-amidar', 'env-variant': 'No-op start', 'score': 1735, }, { 'env-title': 'atari-assault', 'env-variant': 'No-op start', 'score': 7203, }, { 'env-title': 'atari-asterix', 'env-variant': 'No-op start', 'score': 406211, }, { 'env-title': 'atari-asteroids', 'env-variant': 'No-op start', 'score': 1516, }, { 'env-title': 'atari-atlantis', 'env-variant': 'No-op start', 'score': 841075, }, { 'env-title': 'atari-bank-heist', 'env-variant': 'No-op start', 'score': 976, }, { 'env-title': 'atari-battle-zone', 'env-variant': 'No-op start', 'score': 28742, }, { 'env-title': 'atari-beam-rider', 'env-variant': 'No-op start', 'score': 14074, }, { 'env-title': 'atari-berzerk', 'env-variant': 'No-op start', 'score': 1645, }, { 'env-title': 'atari-bowling', 'env-variant': 'No-op start', 'score': 81.8, }, { 'env-title': 'atari-boxing', 'env-variant': 'No-op start', 'score': 97.8, }, { 'env-title': 'atari-breakout', 'env-variant': 'No-op start', 'score': 748, }, { 'env-title': 'atari-centipede', 'env-variant': 'No-op start', 'score': 9646, }, { 'env-title': 'atari-chopper-command', 'env-variant': 'No-op start', 'score': 15600, }, { 'env-title': 'atari-crazy-climber', 'env-variant': 'No-op start', 'score': 179877, }, { 'env-title': 'atari-defender', 'env-variant': 'No-op start', 'score': 47092, }, { 'env-title': 'atari-demon-attack', 'env-variant': 'No-op start', 'score': 130955, }, { 'env-title': 'atari-double-dunk', 'env-variant': 'No-op start', 'score': 2.5, }, { 'env-title': 'atari-enduro', 'env-variant': 'No-op start', 'score': 3454, }, { 'env-title': 'atari-fishing-derby', 'env-variant': 'No-op start', 'score': 8.9, }, { 'env-title': 'atari-freeway', 'env-variant': 'No-op start', 'score': 33.9, }, { 'env-title': 'atari-frostbite', 'env-variant': 'No-op start', 'score': 3965, }, { 'env-title': 'atari-gopher', 'env-variant': 'No-op start', 'score': 33641, }, { 'env-title': 'atari-gravitar', 'env-variant': 'No-op start', 'score': 440, }, { 'env-title': 'atari-hero', 'env-variant': 'No-op start', 'score': 38874, }, { 'env-title': 'atari-ice-hockey', 'env-variant': 'No-op start', 'score': -3.5, }, { 'env-title': 'atari-jamesbond', 'env-variant': 'No-op start', 'score': 1909, }, { 'env-title': 'atari-kangaroo', 'env-variant': 'No-op start', 'score': 12853, }, { 'env-title': 'atari-krull', 'env-variant': 'No-op start', 'score': 9735, }, { 'env-title': 'atari-kung-fu-master', 'env-variant': 'No-op start', 'score': 48192, }, { 'env-title': 'atari-montezuma-revenge', 'env-variant': 'No-op start', 'score': 0.0, }, { 'env-title': 'atari-ms-pacman', 'env-variant': 'No-op start', 'score': 3415, }, { 'env-title': 'atari-name-this-game', 'env-variant': 'No-op start', 'score': 12542, }, { 'env-title': 'atari-phoenix', 'env-variant': 'No-op start', 'score': 17490, }, { 'env-title': 'atari-pitfall', 'env-variant': 'No-op start', 'score': 0.0, }, { 'env-title': 'atari-pong', 'env-variant': 'No-op start', 'score': 20.9, }, { 'env-title': 'atari-private-eye', 'env-variant': 'No-op start', 'score': 15095, }, { 'env-title': 'atari-qbert', 'env-variant': 'No-op start', 'score': 23784, }, { 'env-title': 'atari-riverraid', 'env-variant': 'No-op start', 'score': 17322, }, { 'env-title': 'atari-road-runner', 'env-variant': 'No-op start', 'score': 55839, }, { 'env-title': 'atari-robotank', 'env-variant': 'No-op start', 'score': 52.3, }, { 'env-title': 'atari-seaquest', 'env-variant': 'No-op start', 'score': 266434, }, { 'env-title': 'atari-skiing', 'env-variant': 'No-op start', 'score': -13901, }, { 'env-title': 'atari-solaris', 'env-variant': 'No-op start', 'score': 8342, }, { 'env-title': 'atari-space-invaders', 'env-variant': 'No-op start', 'score': 5747, }, { 'env-title': 'atari-star-gunner', 'env-variant': 'No-op start', 'score': 49095, }, { 'env-title': 'atari-surround', 'env-variant': 'No-op start', 'score': 6.8, }, { 'env-title': 'atari-tennis', 'env-variant': 'No-op start', 'score': 23.1, }, { 'env-title': 'atari-time-pilot', 'env-variant': 'No-op start', 'score': 8329, }, { 'env-title': 'atari-tutankham', 'env-variant': 'No-op start', 'score': 280, }, { 'env-title': 'atari-up-n-down', 'env-variant': 'No-op start', 'score': 15612, }, { 'env-title': 'atari-venture', 'env-variant': 'No-op start', 'score': 1520, }, { 'env-title': 'atari-video-pinball', 'env-variant': 'No-op start', 'score': 949604, }, { 'env-title': 'atari-wizard-of-wor', 'env-variant': 'No-op start', 'score': 9300, }, { 'env-title': 'atari-yars-revenge', 'env-variant': 'No-op start', 'score': 35050, }, { 'env-title': 'atari-zaxxon', 'env-variant': 'No-op start', 'score': 10513, }, ]
class XMLDeclStrip: """ Strip "<?xml" declarations from a stream of data. This is an ugly work around for several problems. 1. The XML stream comes over TCP, and may be arbitrarily broken up at any point in time. 2. The Android ATAK client sends every COT Event as a complete XML document with a declaration. 3. The lxml XMLPullParser does not like it when you send it more than one declaration, or more than one root element, and drops the rest of the input. 4. As far as I can tell, there's no way to disable this behavior, or turn the error into a warning. There are a few naive strategies to get around this. 1. Feed the document character by character to the parser, and let it discard the invalid data. read_events() will be a stream of event elements. 2. Instead of using a pull parser, try to parse the stream as a complete document and close the parser when the event is received. This is "more correct", but we have to be able to locate the end of the document. 3. Prime the pull parser with a fake <root> element, and filter out the XML declaratoins. read_events() will work again. 4. Switch to an XML parsing library that does this for us, or figure out a better way to use lxml. Strategy 4 is the best -- but lxml seems to be the heavyweight here, and I've given up my Google search. Apparently, COT will only have <event> as the root element, so strategy 2 may be safe. This code could be changed to look for "</event>" -- but closing XML elements has many edge cases. (For example, "</event >" is a valid way of closing an element.) The logic here is a bit obtuse, but should be fairly efficient, and a little more general purpose than looking for the end of a document. TODO: Make this entire process transparent, and monkeypatch / subclass the XMLPullParser """ def __init__(self, parser): # Keep the tail of the buffer if we don't have enough information to know # whether or not we should feed it to the client yet self.tail = b"" # Handle state between calls -- are we in an XML declaration right now? self.in_decl = False self.parser = parser def read_events(self): return self.parser.read_events() def feed(self, data): self.parser.feed(self.strip(data)) def strip(self, data): start_tag = b"<?xml " end_tag = b"?>" ret = bytes() data = self.tail + data while len(data) > 0: if not self.in_decl: # If we're not in a declaration, look for the start tag try: pos = data.index(start_tag) # We found it, consume everything up to that point self.in_decl = True ret += data[:pos] data = data[pos + len(start_tag) :] except ValueError: # We didn't find it. Let's check to see if we need to keep # any part of the tail. A '<' character could be the start # of an element, or the start of a declaration. We won't # know until we get the next few bytes. pos = data.rfind(b"<") if pos < 0: # We didn't find it, we can feed all of the buffer, # consume all self.tail = b"" ret += data elif len(data) - pos >= len(start_tag): # We found it, but far back enough that we know it's # not our start condition, consume all self.tail = b"" ret += data else: # We found something we're not sure about. Consume up # to that point, and leave the rest in the tail. self.tail = data[pos:] ret += data[:pos] return ret else: try: pos = data.index(end_tag) # We found the end tag, skip to it, trim the tail buffer, # and continue processing. self.in_decl = False data = data[pos + len(end_tag) :] self.tail = b"" continue except ValueError: # We didn't find our end tag... but the final characters # may be a part of it. (ie: a trailing '?') We have nothing # more to store, so return whatever we have left. self.tail = data[-1:] return ret # In the event we consumed everything cleanly! return ret
def first_last6(nums): if nums[0] == 6 or nums[-1] == 6: return True else: return False def same_first_last(nums): if len(nums) >= 1 and nums[0] == nums[-1]: return True else: return False def make_pi(): return [3, 1, 4] def common_end(a, b): if a[-1] == b[-1] or a[0] == b[0]: return True else: return False def sum3(a): return a[0] + a[1] + a[2] def rotate_left3(a): return [a[1], a[2], a[0]] def reverse3(nums): return [nums[2], nums[1], nums[0]] def max_end3(a): max = -1 if a[0] > a[2]: max = a[0] if a[2] >= a[0]: max = a[2] return [max, max, max] def sum2(nums): if len(nums) >=2: return nums[0] + nums[1] elif len(nums) == 1: return nums[0] else: return 0 def middle_way(a, b): return [a[1], b[1]] def make_ends(nums): return [nums[0], nums[-1]] def has23(nums): if nums[0] == 2 or nums[1] == 2 or nums[0] == 3 or nums[1] == 3: return True else: return False
# MenuTitle: Fix Component Order # -*- coding: utf-8 -*- __doc__ = """ Searches all glyphs for any component of type 'Mark' at index 0 in the components list, and moves it to the end if found. """ Glyphs.clearLog() Glyphs.font.disableUpdateInterface() def reportCorrectedComponents(gylyphName, layerName, componentName): print('Reordered {2} on layer {1} in glyph {0}'.format(gylyphName, layerName, componentName)) if Glyphs.font.selectedLayers is None: these_glyphs = Glyphs.font.glyphs else: these_glyphs = [x.parent for x in Glyphs.font.selectedLayers] for g in these_glyphs: for l in g.layers: if any(x.component.category != 'Mark' for x in l.components): while l.components[0].component.category == 'Mark': c = l.components[0] del l.components[0] l.components.append(c) reportCorrectedComponents(g.name, l.name, c.componentName) Glyphs.font.enableUpdateInterface() # Glyphs.showMacroWindow()
data_set = [] # UNix time stamp PHASE_1 = 1341214200 # before 02-07-2012 01:00:00 PM PHASE_2 = 1341253799 # After PHASE_1 till 02-07-2012 11:59:59 PM PHASE_3 = 1341368999 # After PHASE_2 till 04-07-2012 07:59:59 AM file1 = 0 file2 = 0 file3 = 0 file4 = 0 def extract_in_list(): with open("/home/darkmatter/Documents/Network/data/higgs-activity_time.txt") as data_file: for text in data_file: text = text.strip() data_set.append(text) def create_data_file(value): words = value.split() global file1 timestamp = int(float(words[2])) if timestamp < PHASE_1: file1.write(words[0] + " " + words[1] + " " + words[3] + "\n") elif PHASE_1 <= timestamp <= PHASE_2: file2.write(words[0] + " " + words[1] + " " + words[3] + "\n") elif PHASE_2 < timestamp <= PHASE_3: file3.write(words[0] + " " + words[1] + " " + words[3] + "\n") elif timestamp > PHASE_3: file4.write(words[0] + " " + words[1] + " " + words[3] + "\n") def main(): extract_in_list() global file1, file2, file3, file4 file1 = open("/home/darkmatter/Documents/Network/data/data_set_1.txt", "w") file2 = open("/home/darkmatter/Documents/Network/data/data_set_2.txt", "w") file3 = open("/home/darkmatter/Documents/Network/data/data_set_3.txt", "w") file4 = open("/home/darkmatter/Documents/Network/data/data_set_4.txt", "w") for value in data_set: create_data_file(value) file1.close() file2.close() file3.close() file4.close() if __name__ == '__main__': main()
class Solution: def oddCells(self, n, m, indices): rows, cols = {}, {} for r, c in indices: if r in rows: rows[r] += 1 else: rows[r] = 1 if c in cols: cols[c] += 1 else: cols[c] = 1 ans = 0 for i in range(n): for j in range(m): sm = 0 if i in rows: sm += rows[i] if j in cols: sm += cols[j] if sm % 2 == 1: ans += 1 return ans
class ZabbixError(Exception): """ Base zabbix error """ pass
# puzzle easy // https://www.codingame.com/ide/puzzle/object-insertion # needed values obj, grid, start, sol= [], [], [], [] count_star = 0 # game input() row_all, cal_all = [int(i) for i in input().split()] for i in range(row_all): obj.append(input()) c, d = [int(i) for i in input().split()] for i in range(c): grid.append(input()) # count stars in obj[] count_star = sum(_.count('*') for _ in obj) # needed functions def way(row_o, cal_o, row_g, cal_g): find = [] for row, _ in enumerate(obj): for cal, val in enumerate(_): if val == '*': # map cal from ojb[] to grid[] if cal_o > cal: cal_g -= abs(cal_o - cal) if cal_o < cal: cal_g += abs(cal_o - cal) # [row][cal] have to be on grid if row_g+row<c and row_g+row>=0 and cal_g<d and cal_g>=0: if grid[row_g + row][cal_g] == '.': # update cal_o = cal # sub solution founded find.append([row_g+row, cal_g]) else: return False # append possible solution if len(find) == count_star: sol.append(find) # game loop for row_o, ro in enumerate(obj): for cal_o, co in enumerate(ro): if co == '*': for row_g, rg in enumerate(grid): for cal_g, cg in enumerate(rg): # find possible start point if cg == '.' and [row_g, cal_g] not in start: start.append([row_g, cal_g]) # test start point of possible solution way(row_o, cal_o, row_g, cal_g) # print grind map if len(sol) == 1: for _ in sol: for t in _: u = [i for i in grid[t[0]]] u[t[1]] = '*' grid[t[0]] = ''.join(u) print(1) for _ in grid: print(_) # print value '0' elif sol == []: print(0) # print count of possible solutions else: print(len(sol))
def bfs(graph, s): explored = [] q = [s] while q: u = q.pop(0) for (v, w) in [(v, w) for (v, w) in graph if v == u and w not in explored]: explored.append(w) q.append(w) print(explored) if __name__ == '__main__': graph = [('s', 'a'), ('s', 'b'), ('a', 'c'), ('b', 'c'), ('c', 'd'), ('c', 'e'), ('d', 'e')] bfs(graph, s='s')
class Statistics: def __init__(self): self.stat={ 'python':0, 'sql': 0, 'django': 0, 'rest': 0, 'c++': 0, 'linux': 0, 'api': 0, 'http': 0, 'flask': 0, 'java': 0, 'git': 0, 'javascript': 0, 'pytest': 0, 'postgresql': 0, 'oracle': 0, 'mysql': 0, 'mssql': 0 } def go_seek( self, s ): n = 0 try: s = s.lower() k = self.stat.keys() for ki in k: i = s.find(ki) if i > 0: self.stat[ki] += 1 n += 1 except AttributeError: pass return n def get_stat( self ): sorted_tuple = sorted( self.stat.items(), key=lambda x: x[1], reverse=True ) return sorted_tuple def processing(self): #count = len( self.stat ) nMax = self.get_stat()[0][1] dic = {} for k,v in self.stat.items(): dic[ k ] = [ v, round( (v/nMax)*100 )] sorted_tuple = sorted( dic.items(), key=lambda x: x[1][1], reverse=True) lst = [] for k,v in sorted_tuple: lst.append( [k,str(v[1])+'%'] ) return lst
# 19) 역순 연결 리스트2 (P.237) - leetcode(92) # 인덱스 m에서 n까지를 역순으로 만들어라. 인덱스 m은 1부터 시작한다. # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: # 반복 구조로 노드 뒤집기 def reverseBetween(self, head: ListNode, left: int, right: int) -> ListNode: # 예외 처리 if not head or left == right: return head root = start = ListNode(None) root.next = head # start와 end 설정하기 for _ in range(left - 1): start = start.next end = start.next for _ in range(right-left): # 임시 변수를 start의 next로 설정 후, 지금 end 다음에 있는 것을 start도 가리키고, end는 end의 다다음에 있는 것을 가리킨다. # 마지막으로 start의 다음이 가리키는 값을 기존 start 다음에 있는 것으로 설정한다. tmp, start.next, end.next = start.next, end.next, end.next.next start.next.next = tmp return root.next
v1 = int(input('Digite um valor:')) v2 = int(input('Digite outro valor:')) re = (v1+v2) print ('O valor da soma entre {} e {} tem o resultado {}!'.format(v1,v2,re))
class Player(object): """ Base class for players """ def __init__(self, name): """ :param name: player's name (str) """ self.name = name def play(self, state): """ Human player is asked to choose a move, AI player decides which move to play. :param state: Current state of the game (GameState) """ raise NotImplementedError() class HumanPlayer(Player): """ Base class for human players """ def __init__(self, name, game_viewer): """ :param name: player's name (str) :param game_viewer: Game displayer class (GameViewer) """ Player.__init__(self, name) self.game_viewer = game_viewer def play(self, state): self.game_viewer.showState(state) return self.game_viewer.waitForAMove() class AiPlayer(Player): """ Base class for AI Player containing an algorithm to play. """ def __init__(self, name, algorithm): """ Create an AiPlayer @algorithm : Algorithm to be used by the class """ Player.__init__(self, name) self.algo = algorithm def play(self, state): return self.algo.getBestNextMove(state)
# Generate random rewards for each treatment if self.action["treatment"] == "1": self.reward["value"] = np.random.binomial(1,0.5) else: #Treatment = 2 self.reward["value"] = np.random.binomial(1,0.3)
def create_matrix(size): matrix = [] for _ in range(size): matrix.append([x for x in input().split()]) return matrix def find_start(matrix, size): for r in range(size): for c in range(size): if matrix[r][c] == 's': return r, c def get_coals_count(matrix, size): coals_count = 0 for r in range(size): for c in range(size): if matrix[r][c] == 'c': coals_count += 1 return coals_count def check_valid_cell(row, col, size): return 0 <= row < size and 0 <= col < size size = int(input()) commands = input().split() field = create_matrix(size) miner_r, miner_c = find_start(field, size) coals_count = get_coals_count(field, size) coals_collected = 0 is_done = True for command in commands: if command == 'up': next_r, next_c = miner_r - 1, miner_c elif command == 'down': next_r, next_c = miner_r + 1, miner_c elif command == 'left': next_r, next_c = miner_r, miner_c - 1 else: next_r, next_c = miner_r, miner_c + 1 if check_valid_cell(next_r, next_c, size): field[miner_r][miner_c] = '*' if field[next_r][next_c] == 'c': coals_collected += 1 if coals_collected == coals_count: print(f"You collected all coals! ({next_r}, {next_c})") is_done = False break elif field[next_r][next_c] == 'e': print(f"Game over! ({next_r}, {next_c})") is_done = False break miner_r, miner_c = next_r, next_c if is_done: print(f"{coals_count - coals_collected} coals left. ({miner_r}, {miner_c})")
"""09. Run an object detection model on your webcam ================================================== This article will shows how to play with pre-trained object detection models by running them directly on your webcam video stream. .. note:: - This tutorial has only been tested in a MacOS environment - Python packages required: cv2, matplotlib - You need a webcam :) - Python compatible with matplotlib rendering, installed as a framework in MacOS see guide `here <https://matplotlib.org/faq/osx_framework.html>`__ Loading the model and webcam ---------------------------- Finished preparation? Let's get started! First, import the necessary libraries into python. .. code-block:: python import time import cv2 import gluoncv as gcv import mxnet as mx In this tutorial we use ``ssd_512_mobilenet1.0_voc``, a snappy network with good accuracy that should be well above 1 frame per second on most laptops. Feel free to try a different model from the `Gluon Model Zoo <../../model_zoo/detection.html>`__ ! .. code-block:: python # Load the model net = gcv.model_zoo.get_model('ssd_512_mobilenet1.0_voc', pretrained=True) We create the webcam handler in opencv to be able to acquire the frames: .. code-block:: python # Load the webcam handler cap = cv2.VideoCapture(0) time.sleep(1) ### letting the camera autofocus Detection loop -------------- The detection loop consists of four phases: * loading the webcam frame * pre-processing the image * running the image through the network * updating the output with the resulting predictions .. code-block:: python axes = None NUM_FRAMES = 200 # you can change this for i in range(NUM_FRAMES): # Load frame from the camera ret, frame = cap.read() # Image pre-processing frame = mx.nd.array(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)).astype('uint8') rgb_nd, frame = gcv.data.transforms.presets.ssd.transform_test(frame, short=512, max_size=700) # Run frame through network class_IDs, scores, bounding_boxes = net(rgb_nd) # Display the result img = gcv.utils.viz.cv_plot_bbox(frame, bounding_boxes[0], scores[0], class_IDs[0], class_names=net.classes) gcv.utils.viz.cv_plot_image(img) cv2.waitKey(1) We release the webcam before exiting the script .. code-block:: python cap.release() cv2.destroyAllWindows() Results --------- Download the script to run the demo: :download:`Download demo_webcam_run.py<../../../scripts/detection/demo_webcam_run.py>` Run the script using `pythonw` on MacOS: .. code-block:: bash pythonw demo_webcam_run.py --num-frames 200 .. note:: On MacOS, to enable matplotlib rendering you need python installed as a framework, see guide `here <https://matplotlib.org/faq/osx_framework.html>`__ If all goes well you should be able to detect objects from the available classes of the VOC dataset. That includes persons, chairs and TV Screens! .. image:: https://media.giphy.com/media/9JvoKeUeCt4bdRf3Cv/giphy.gif """
# -*- coding: utf-8 -*- def main(): a, s = map(int, input().split()) if a >= s: print('Congratulations!') else: print('Enjoy another semester...') if __name__ == '__main__': main()
''' Edit the program provided so that it receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print: The sum of the numbers The average of the numbers An example of the program input and output is shown below: Enter a number or press Enter to quit: 1 Enter a number or press Enter to quit: 2 Enter a number or press Enter to quit: 3 Enter a number or press Enter to quit: The sum is 6.0 The average is 2.0 ''' iteration = 0 theSum = 0.0 data = input("Enter a number: ") while data != "": iteration += 1 number = float(data) theSum += number data = input("Enter the next number: ") print("The sum is", theSum) print("The average is", theSum/ iteration)
# you will learn more about superclass and subclass print("Hello let's start the class") class parents: var1 = "one" var2 = "two" class child(parents): # var1 = "one" # var2 = "two" var2 = "three" obj = parents() cobj = child() print(obj.var1) print(obj.var2) print(cobj.var1) print(cobj.var2)
def cal(n): k=0 while n>0: k+=(n%10)**5 n//=10 return k sum=0 for i in range(2,1000000): if cal(i)==i: sum+=i print(sum)
books_file = 'books.txt' def create_book_table(): with open(books_file, 'w') as file: pass # just to make sure the file is there def get_all_books(): with open(books_file, 'r') as file: lines = [line.strip().split(',') for line in file.readlines()] return [ {'name': line[0], 'author': line[1], 'read': line[2]} for line in lines ] def add_book(name, author): with open(books_file, 'a') as file: file.write(f'{name},{author},0\n') def _save_all_books(books): with open(books_file, 'w') as file: for book in books: file.write(f"{book['name']},{book['author']},{book['read']}\n") def mark_book_as_read(name): books = get_all_books() for book in books: if book['name'] == name: book['read'] = '1' _save_all_books(books) def delete_book(name): books = get_all_books() books = [book for book in books if book['name'] != name] _save_all_books(books) # def delete_book(name): # for book in books: # if book['name'] == name: # books.remove(book)
def entrance_light(payload): jval = json.loads(payload) if("click" in jval and jval["click"] == "single"): if(lights["Entrance White 1"].on): lights["Entrance White 1"].on = False lights["Entrance White 2"].on = False log.debug("entrance_light> off") else: #command so that it does not go to previous level before adjusting the brightness b.set_light("Entrance White 1", {'on' : True, 'bri' : 255}) b.set_light("Entrance White 2", {'on' : True, 'bri' : 255}) log.debug("entrance_light> on") elif("contact" in jval and jval["contact"] == False): #TODO check brightness here - and diff between coming or going away log.debug("entrance_door>open") else: log.debug("entrance_light>no click") return def double_steps_brightness(light,short_time_brightness,final): b.set_light(light, {'on' : True, 'bri' : short_time_brightness, 'hue':8101, 'sat':194, 'transitiontime' : 30}) log.debug("bedroom_sunrise> fast 3 sec to %d",short_time_brightness) #the rest souldshould catch in 10 min average from 0 to max if(short_time_brightness < 255): brightness_left = int(255 - short_time_brightness) time_left = int(brightness_left * 10 * 60 * 10 / 250) b.set_light(light, {'on' : True, 'bri' : final, 'hue':8101, 'sat':194, 'transitiontime' : time_left}) log.debug("bedroom_sunrise> slow till %d in %d sec",final,time_left/10) return def bedroom_sunrise(payload): jval = json.loads(payload) if("click" in jval and jval["click"] == "single"): if(not lights["Bed Leds Cupboard"].on): current_brightness = 0 short_time_brightness = 1 else: current_brightness = lights["Bed Leds Cupboard"].brightness if(current_brightness < 215): short_time_brightness = current_brightness + 40 else: short_time_brightness = 255 log.debug("beroom_sunrise>current brightness %d",current_brightness) double_steps_brightness("Bed Leds Cupboard",short_time_brightness,255) elif("click" in jval and jval["click"] == "double"): if(not lights["Bed Leds Cupboard"].on): b.set_light(light, {'on' : True, 'bri' : 255, 'hue':8101, 'sat':194}) else: lights["Bed Leds Cupboard"].on = False elif("action" in jval and jval["action"] == "hold"): if(not lights["Bed Leds Cupboard"].on): log.warn("beroom_sunrise>already off nothing to do") else: current_brightness = lights["Bed Leds Cupboard"].brightness if(current_brightness > 41): short_time_brightness = current_brightness - 40 elif(current_brightness > 3): short_time_brightness = 1 else: lights["Bed Leds Cupboard"].on = False log.debug("beroom_sunrise>current brightness %d",current_brightness) double_steps_brightness("Bed Leds Cupboard",short_time_brightness,0) else: log.debug("bedroom_sunrise>no click") return isLightOn = False def night_hunger(payload): global isLightOn sensor = json.loads(payload) if(sensor["occupancy"]): if(sensor["illuminance"] < 30): lights["printer light"].on = True isLightOn = True log.info("Kitchen_Move>switch lights on") else: log.debug("Kitchen_Move>bright no light needed") else: if(isLightOn): lights["printer light"].on = False log.info("Kitchen_Move>switch lights off") isLightOn = False else: log.debug("Kitchen_Move>light is already off") return def stairs_off_callback(): lights["Stairs Up Left"].on = False lights["Stairs Down Right"].on = False log.debug("Stairs - off_callback") return g_stairs_up_light = 0.0 g_stairs_down_light = 0.0 def stairs_up_move(payload): global g_stairs_up_light global g_stairs_down_light #log.debug("stairs_presence : %s"%payload) sensor = json.loads(payload) if("illuminance" in sensor): log.debug("light => %f"%sensor["illuminance"]) g_stairs_up_light = float(sensor["illuminance"]) log.debug("light => stairs up : %f"%g_stairs_up_light) if("occupancy" in sensor): log.debug("presence => %d"%sensor["occupancy"]) if(sensor["occupancy"]): if(g_stairs_up_light < 2): brightness = 254 elif(g_stairs_up_light < 12): brightness = 128 else: brightness = 10 log.debug(f"presence => MotionLight Up - brightness:{brightness}") b.set_light("Stairs Up Left", {'transitiontime' : 30, 'on' : True, 'bri' : brightness}) b.set_light("Stairs Down Right", {'transitiontime' : 10, 'on' : True, 'bri' : int(brightness)}) threading.Timer(60, stairs_off_callback).start() return def stairs_down_move(payload): global g_stairs_up_light global g_stairs_down_light #log.debug("stairs_presence : %s"%payload) sensor = json.loads(payload) if("illuminance" in sensor): log.debug("light => %f"%sensor["illuminance"]) g_stairs_down_light = float(sensor["illuminance"]) log.debug("light => MotionLightHue: %f"%g_stairs_down_light) if("occupancy" in sensor): log.debug("presence => %d"%sensor["occupancy"]) if(sensor["occupancy"]): if(g_stairs_up_light < 2): brightness = 254 elif(g_stairs_up_light < 12): brightness = 128 else: brightness = 10 log.debug(f"presence => MotionLight Down - brightness:{brightness}") b.set_light("Stairs Down Right", {'transitiontime' : 10, 'on' : True, 'bri' : brightness}) b.set_light("Stairs Up Left", {'transitiontime' : 30, 'on' : True, 'bri' : int(brightness)}) threading.Timer(60, stairs_off_callback).start() return def office_alive(payload): global office_last_seen report = json.loads(payload) if("rssi" in report): if(int(report["rssi"]) > -60): log.debug("Office> alive") office_last_seen = time.time() set_office_on() if(office_state): threading.Timer(5, office_off_check).start() return
class Solution: def maxWidthRamp(self, A): result = 0 if not A: return result stack = [] for i, num in enumerate(A): if not stack or A[stack[-1]] > num: stack.append(i) for j in reversed(range(len(A))): while stack and A[stack[-1]] <= A[j]: result = max(result, j - stack.pop()) return result
# my_list=['honda','honda','bmw','mercedes','bugatti'] # print(my_list.index('honda')) # print(my_list[0]) # print(my_list.count('honda')) # my_list.sort() # print(my_list) # my_list.pop() # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # copy_my_list=my_list.copy() # print(copy_my_list) # list1=[1,2,3] # list2=list1.copy() # del list1[0] # print(list2) # my_list=['honda','honda','bmw','mercedes','bugatti'] # # my_list.append('lexus') # # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # my_list.insert(1,'ford') # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # # extend_list=['hello','ghetto'] # my_list.extend('Hello') # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # my_list.remove('honda') # print(my_list) # my_list=['honda','honda','bmw','mercedes','bugatti'] # my_list.reverse() # print(my_list) # # my_list=['honda','honda','bmw','mercedes','bugatti'] # numbers=[1,2,3,4,5,6] # print(my_list[2:]) # print(my_list[:3]) # print(my_list[1:4]) # print(numbers[0:4]) # print(numbers[0:5:2]) # numbers=[1,2,3,4,5,6,7,8,9,10] # print(numbers[::3]) # numbers=[1,2,3,4,5,6,7,8,9,10] # print(numbers[::-2]) # data = ['Wt','Ht',342432423424324,5.996,5.77778,'Insurance_History_2',34243242342432124545312312534534534,'Insurance_History_4','Insurance_History_5', 'Insurance_History_7',234242049004328402384023849028402348203,55, 66, 11, 'Medical_Keyword_3','Medical_Keyword_4', 'Medical_Keyword_5', 'Medical_Keyword_6', 34243242342432124545312312534534534534503495345,'lalalalallalalalalalalalalalalala', 23409284028430928420483209482904380428, 'Medical_Keyword_10', 'Medical_Keyword_11',92384923849023849023842903482934324290, 93429423018319238192004829423482942, 'Medical_Keyword_14', 'Medical_Keyword_15','Medical_Keyword_16', 5.888, 'Medical_Keyword_18asfdasfdasfdasfdasdfasdfas','Medicagsfgsfgsfkgjsfkg',9.131, 0.978, 'Famidasdasdlasdlaspdlaspdlasp2948203948', 'Familygsdglksflg2849023840923;fksdkgsd234234234238409238490238','Family_Hist_4','Family_Hist_5', 9.19, 'Medical_History_2', 'Medical_History_3', 'Medical_History_4',13, 'Medical_History_6', 'Medical_History_7', 111, 'Medical_History_9',123.7773, 'Medical_History_41', 55823428882482374824828472348,'Product_Info_3',1111111111111111111111, 'Product_Info_5'] # # i=0 # while i<len(data): # obj = data[i] # if isinstance(obj ,float): # # if obj%1>=0.8 or obj%1<=0.2: # data[i] = round(obj) # else: # data[i]=int(obj) # # elif isinstance(obj,int): # str_1=str(obj) # if len(str_1)>20: # del data[i] # i-=1 # # elif isinstance(data[i],str): # if len(data[i])>50: # del data[i] # i-=1 # i+=1 # # print(data) data = ['Wt','Ht',342432423424324,5.996,5.77778,'Insurance_History_2',34243242342432124545312312534534534,'Insurance_History_4','Insurance_History_5', 'Insurance_History_7',234242049004328402384023849028402348203,55, 66, 11, 'Medical_Keyword_3','Medical_Keyword_4', 'Medical_Keyword_5', 'Medical_Keyword_6', 34243242342432124545312312534534534534503495345,'lalalalallalalalalalalalalalalala', 23409284028430928420483209482904380428, 'Medical_Keyword_10', 'Medical_Keyword_11',92384923849023849023842903482934324290, 93429423018319238192004829423482942, 'Medical_Keyword_14', 'Medical_Keyword_15','Medical_Keyword_16', 5.888, 'Medical_Keyword_18asfdasfdasfdasfdasdfasdfas','Medicagsfgsfgsfkgjsfkg',9.131, 0.978, 'Famidasdasdlasdlaspdlaspdlasp2948203948', 'Familygsdglksflg2849023840923;fksdkgsd234234234238409238490238','Family_Hist_4','Family_Hist_5', 9.19, 'Medical_History_2', 'Medical_History_3', 'Medical_History_4',13, 'Medical_History_6', 'Medical_History_7', 111, 'Medical_History_9',123.7773, 'Medical_History_41', 55823428882482374824828472348,'Product_Info_3',1111111111111111111111, 'Product_Info_5'] clear_data=[] i=0 while i<len(data): obj = data[i] if isinstance(obj ,float): if obj%1>=0.8 or obj%1<=0.2: clear_data.append(round(obj)) else: clear_data.append(int(obj)) elif isinstance(obj,int): str_1=str(obj) if len(str_1)<=20: clear_data.append(str_1) elif isinstance(obj,str): if len(obj)<=50: clear_data.append(obj) i+=1 print(clear_data)
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here s = input() points = [(0, 0)] x = y = 0 for move in s: if move == 'L': y -= 1 elif move == 'R': y += 1 elif move == 'U': x -= 1 else: x += 1 points.append((x, y)) print(len(points) - len(set(points)))