content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#!/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()
""" 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 has_visible_entity(self): ret = False for e in self: if e.isVisible() == True: ret = True break return ret def top_visible_entity(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()
""" 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)
""" 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 io_error('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 io_error('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 io_error('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 io_error('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:'
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))
"""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))
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)
def f(arr, 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 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])
(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'] sum_of_months = 0 for i in range(m - 1): sum_of_months += 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)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, constraints_intersection, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint') (dot1d_base_port_entry,) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dBasePortEntry') (hm2_platform_mibs, hm_enabled_status) = mibBuilder.importSymbols('HM2-TC-MIB', 'hm2PlatformMibs', 'HmEnabledStatus') (if_index, interface_index, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'InterfaceIndex', 'InterfaceIndexOrZero') (inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType') (dot1d_port_gmrp_entry,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'dot1dPortGmrpEntry') (vlan_id, port_list, dot1q_port_vlan_entry, dot1q_fdb_id, vlan_index, dot1q_vlan_index) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanId', 'PortList', 'dot1qPortVlanEntry', 'dot1qFdbId', 'VlanIndex', 'dot1qVlanIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (object_identity, counter64, gauge32, bits, unsigned32, time_ticks, integer32, mib_identifier, ip_address, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter64', 'Gauge32', 'Bits', 'Unsigned32', 'TimeTicks', 'Integer32', 'MibIdentifier', 'IpAddress', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter32', 'NotificationType') (truth_value, row_status, display_string, mac_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'RowStatus', 'DisplayString', 'MacAddress', 'TextualConvention') hm2_platform_switching = module_identity((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' display_hint = '2x:' subtype_spec = OctetString.subtypeSpec + value_size_constraint(16, 16) fixed_length = 16 class Ipv6Addressprefix(TextualConvention, OctetString): status = 'current' display_hint = '2x:' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 16) class Ipv6Addressifidentifier(TextualConvention, OctetString): status = 'current' display_hint = '2x:' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 8) class Ipv6Ifindex(TextualConvention, Integer32): status = 'current' display_hint = 'd' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 2147483647) class Ipv6Ifindexorzero(TextualConvention, Integer32): status = 'current' display_hint = 'd' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 2147483647) hm2_agent_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2)) hm2_agent_lag_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2)) hm2_agent_lag_config_create = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 1), display_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(1, 15)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentLagConfigCreate.setStatus('current') hm2_agent_lag_summary_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2)) if mibBuilder.loadTexts: hm2AgentLagSummaryConfigTable.setStatus('current') hm2_agent_lag_summary_config_entry = mib_table_row((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') hm2_agent_lag_summary_lag_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagSummaryLagIndex.setStatus('current') hm2_agent_lag_summary_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryName.setStatus('current') hm2_agent_lag_summary_flush_timer = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 3), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryFlushTimer.setStatus('obsolete') hm2_agent_lag_summary_link_trap = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 4), hm_enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryLinkTrap.setStatus('current') hm2_agent_lag_summary_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 5), hm_enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryAdminMode.setStatus('current') hm2_agent_lag_summary_stp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 6), hm_enabled_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryStpMode.setStatus('current') hm2_agent_lag_summary_add_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 7), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryAddPort.setStatus('current') hm2_agent_lag_summary_delete_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 8), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryDeletePort.setStatus('current') hm2_agent_lag_summary_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 9), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryStatus.setStatus('current') hm2_agent_lag_summary_type = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('dynamic', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagSummaryType.setStatus('current') hm2_agent_lag_summary_static_capability = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 11), hm_enabled_status().clone('disable')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryStaticCapability.setStatus('current') hm2_agent_lag_summary_hash_option = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('sourceMacVlan', 1), ('destMacVlan', 2), ('sourceDestMacVlan', 3), ('sourceIPsourcePort', 4), ('destIPdestPort', 5), ('sourceDestIPPort', 6), ('enhanced', 7)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryHashOption.setStatus('current') hm2_agent_lag_summary_minimum_active_links = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 8)).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryMinimumActiveLinks.setStatus('current') hm2_agent_lag_summary_max_frame_size_limit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 248), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagSummaryMaxFrameSizeLimit.setStatus('current') hm2_agent_lag_summary_max_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 2, 1, 249), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentLagSummaryMaxFrameSize.setStatus('current') hm2_agent_lag_detailed_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3)) if mibBuilder.loadTexts: hm2AgentLagDetailedConfigTable.setStatus('current') hm2_agent_lag_detailed_config_entry = mib_table_row((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') hm2_agent_lag_detailed_lag_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagDetailedLagIndex.setStatus('current') hm2_agent_lag_detailed_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagDetailedIfIndex.setStatus('current') hm2_agent_lag_detailed_port_speed = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 3), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagDetailedPortSpeed.setStatus('current') hm2_agent_lag_detailed_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagDetailedPortStatus.setStatus('current') hm2_agent_lag_config_static_capability = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 4), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentLagConfigStaticCapability.setStatus('obsolete') hm2_agent_lag_config_group_hash_option = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('sourceMacVlan', 1), ('destMacVlan', 2), ('sourceDestMacVlan', 3), ('sourceIPsourcePort', 4), ('destIPdestPort', 5), ('sourceDestIPPort', 6), ('enhanced', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentLagConfigGroupHashOption.setStatus('current') hm2_agent_lag_config_group_max_num_ports_per_lag = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 248), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagConfigGroupMaxNumPortsPerLag.setStatus('current') hm2_agent_lag_config_group_max_num_of_lags = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 249), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagConfigGroupMaxNumOfLags.setStatus('current') hm2_agent_lag_config_group_num_of_lags_configured = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 250), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagConfigGroupNumOfLagsConfigured.setStatus('current') hm2_agent_lag_config_group_lags_configured = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 251), lag_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentLagConfigGroupLagsConfigured.setStatus('current') hm2_agent_lag_config_snmp_extension_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 260)) hm2_agent_lag_config_group_port_is_lag_member_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 260, 1)) if mibBuilder.loadTexts: hm2AgentLagConfigGroupPortIsLagMemberErrorReturn.setStatus('current') hm2_agent_lag_mirror_probe_port_lag_member_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 2, 260, 2)) if mibBuilder.loadTexts: hm2AgentLagMirrorProbePortLagMemberErrorReturn.setStatus('current') hm2_agent_switch_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8)) hm2_agent_switch_address_aging_timeout_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 4)) if mibBuilder.loadTexts: hm2AgentSwitchAddressAgingTimeoutTable.setStatus('current') hm2_agent_switch_address_aging_timeout_entry = mib_table_row((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') hm2_agent_switch_address_aging_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(10, 500000)).clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchAddressAgingTimeout.setStatus('current') hm2_agent_switch_static_mac_filtering_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5)) if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringTable.setStatus('current') hm2_agent_switch_static_mac_filtering_entry = mib_table_row((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') hm2_agent_switch_static_mac_filtering_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringVlanId.setStatus('current') hm2_agent_switch_static_mac_filtering_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringAddress.setStatus('current') hm2_agent_switch_static_mac_filtering_source_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 3), hm2_agent_port_mask()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringSourcePortMask.setStatus('current') hm2_agent_switch_static_mac_filtering_dest_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 4), hm2_agent_port_mask()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringDestPortMask.setStatus('current') hm2_agent_switch_static_mac_filtering_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 5, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentSwitchStaticMacFilteringStatus.setStatus('current') hm2_agent_switch_snooping_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6)) hm2_agent_switch_snooping_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1)) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingCfgTable.setStatus('current') hm2_agent_switch_snooping_cfg_entry = mib_table_row((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') hm2_agent_switch_snooping_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 1), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingProtocol.setStatus('current') hm2_agent_switch_snooping_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 2), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingAdminMode.setStatus('current') hm2_agent_switch_snooping_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 3), hm2_agent_port_mask().clone(hexValue='000000000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingPortMask.setStatus('current') hm2_agent_switch_snooping_multicast_control_frames_processed = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 6, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingMulticastControlFramesProcessed.setStatus('current') hm2_agent_switch_snooping_intf_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7)) hm2_agent_switch_snooping_intf_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1)) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfTable.setStatus('current') hm2_agent_switch_snooping_intf_entry = mib_table_row((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') hm2_agent_switch_snooping_intf_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfIndex.setStatus('current') hm2_agent_switch_snooping_intf_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 2), hm_enabled_status().clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfAdminMode.setStatus('current') hm2_agent_switch_snooping_intf_group_membership_interval = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(2, 3600)).clone(260)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfGroupMembershipInterval.setStatus('current') hm2_agent_switch_snooping_intf_max_response_time = mib_table_column((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') hm2_agent_switch_snooping_intf_mrp_expiration_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600)).clone(260)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfMRPExpirationTime.setStatus('current') hm2_agent_switch_snooping_intf_fast_leave_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 6), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfFastLeaveAdminMode.setStatus('current') hm2_agent_switch_snooping_intf_multicast_router_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 7), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfMulticastRouterMode.setStatus('current') hm2_agent_switch_snooping_intf_vlan_i_ds = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 7, 1, 1, 8), vlan_list()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingIntfVlanIDs.setStatus('current') hm2_agent_switch_snooping_vlan_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8)) hm2_agent_switch_snooping_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1)) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanTable.setStatus('current') hm2_agent_switch_snooping_vlan_entry = mib_table_row((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') hm2_agent_switch_snooping_vlan_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanAdminMode.setStatus('current') hm2_agent_switch_snooping_vlan_group_membership_interval = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(2, 3600)).clone(260)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanGroupMembershipInterval.setStatus('current') hm2_agent_switch_snooping_vlan_max_response_time = mib_table_column((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') hm2_agent_switch_snooping_vlan_fast_leave_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 4), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanFastLeaveAdminMode.setStatus('current') hm2_agent_switch_snooping_vlan_mrp_expiration_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 3600)).clone(260)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanMRPExpirationTime.setStatus('current') hm2_agent_switch_snooping_vlan_report_supp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 8, 1, 1, 6), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingVlanReportSuppMode.setStatus('current') hm2_agent_switch_vlan_static_mrouter_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9)) hm2_agent_switch_vlan_static_mrouter_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9, 1)) if mibBuilder.loadTexts: hm2AgentSwitchVlanStaticMrouterTable.setStatus('current') hm2_agent_switch_vlan_static_mrouter_entry = mib_table_row((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') hm2_agent_switch_vlan_static_mrouter_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 9, 1, 1, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchVlanStaticMrouterAdminMode.setStatus('current') hm2_agent_switch_mfdb_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10)) hm2_agent_switch_mfdb_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1)) if mibBuilder.loadTexts: hm2AgentSwitchMFDBTable.setStatus('current') hm2_agent_switch_mfdb_entry = mib_table_row((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') hm2_agent_switch_mfdb_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 1), vlan_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBVlanId.setStatus('current') hm2_agent_switch_mfdb_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBMacAddress.setStatus('current') hm2_agent_switch_mfdb_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 248))).clone(namedValues=named_values(('static', 1), ('gmrp', 2), ('igmp', 3), ('mld', 4), ('mrp-mmrp', 248)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBProtocolType.setStatus('current') hm2_agent_switch_mfdb_type = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('dynamic', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBType.setStatus('current') hm2_agent_switch_mfdb_description = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBDescription.setStatus('current') hm2_agent_switch_mfdb_forwarding_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 6), hm2_agent_port_mask()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBForwardingPortMask.setStatus('current') hm2_agent_switch_mfdb_filtering_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 1, 1, 7), hm2_agent_port_mask()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBFilteringPortMask.setStatus('current') hm2_agent_switch_mfdb_summary_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2)) if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryTable.setStatus('current') hm2_agent_switch_mfdb_summary_entry = mib_table_row((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') hm2_agent_switch_mfdb_summary_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1, 1), vlan_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryVlanId.setStatus('current') hm2_agent_switch_mfdb_summary_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryMacAddress.setStatus('current') hm2_agent_switch_mfdb_summary_forwarding_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 2, 1, 3), hm2_agent_port_mask()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBSummaryForwardingPortMask.setStatus('current') hm2_agent_switch_mfdb_max_table_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBMaxTableEntries.setStatus('current') hm2_agent_switch_mfdb_most_entries_used = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBMostEntriesUsed.setStatus('current') hm2_agent_switch_mfdb_current_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 10, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchMFDBCurrentEntries.setStatus('current') hm2_agent_switch_static_mac_stats_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 248)) hm2_agent_switch_static_mac_entries = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 248, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchStaticMacEntries.setStatus('current') hm2_agent_switch_garp_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249)) hm2_agent_switch_gmrp_unknown_multicast_filter_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('flood', 1), ('discard', 2))).clone('flood')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchGmrpUnknownMulticastFilterMode.setStatus('current') hm2_agent_switch_gmrp_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10)) if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortTable.setStatus('current') hm2_agent_switch_gmrp_port_entry = mib_table_row((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') hm2_agent_switch_gmrp_port_pkt_rx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortPktRx.setStatus('current') hm2_agent_switch_gmrp_port_pkt_tx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 10, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchGmrpPortPktTx.setStatus('current') hm2_agent_switch_gvrp_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15)) if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortTable.setStatus('current') hm2_agent_switch_gvrp_port_entry = mib_table_row((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') hm2_agent_switch_gvrp_port_pkt_rx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortPktRx.setStatus('current') hm2_agent_switch_gvrp_port_pkt_tx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 249, 15, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchGvrpPortPktTx.setStatus('current') hm2_agent_switch_vlan_mac_association_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17)) hm2_agent_switch_vlan_mac_association_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1)) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationTable.setStatus('current') hm2_agent_switch_vlan_mac_association_entry = mib_table_row((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') hm2_agent_switch_vlan_mac_association_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1, 1), mac_address()) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationMacAddress.setStatus('current') hm2_agent_switch_vlan_mac_association_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1, 2), vlan_index()) if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationVlanId.setStatus('current') hm2_agent_switch_vlan_mac_association_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 17, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentSwitchVlanMacAssociationRowStatus.setStatus('current') hm2_agent_switch_protected_port_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18)) hm2_agent_switch_protected_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1)) if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortTable.setStatus('current') hm2_agent_switch_protected_port_entry = mib_table_row((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') hm2_agent_switch_protected_port_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortGroupId.setStatus('current') hm2_agent_switch_protected_port_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortGroupName.setStatus('current') hm2_agent_switch_protected_port_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 18, 1, 1, 3), port_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchProtectedPortPortList.setStatus('current') hm2_agent_switch_vlan_subnet_association_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19)) hm2_agent_switch_vlan_subnet_association_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1)) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationTable.setStatus('current') hm2_agent_switch_vlan_subnet_association_entry = mib_table_row((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') hm2_agent_switch_vlan_subnet_association_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 1), ip_address()) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationIPAddress.setStatus('current') hm2_agent_switch_vlan_subnet_association_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 2), ip_address()) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationSubnetMask.setStatus('current') hm2_agent_switch_vlan_subnet_association_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 3), vlan_index()) if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationVlanId.setStatus('current') hm2_agent_switch_vlan_subnet_association_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 19, 1, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentSwitchVlanSubnetAssociationRowStatus.setStatus('current') hm2_agent_switch_snooping_querier_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20)) hm2_agent_switch_snooping_querier_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1)) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierCfgTable.setStatus('current') hm2_agent_switch_snooping_querier_cfg_entry = mib_table_row((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') hm2_agent_switch_snooping_querier_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierAdminMode.setStatus('current') hm2_agent_switch_snooping_querier_version = mib_table_column((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') hm2_agent_switch_snooping_querier_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 1800)).clone(60)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierQueryInterval.setStatus('current') hm2_agent_switch_snooping_querier_expiry_interval = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(60, 300)).clone(125)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierExpiryInterval.setStatus('current') hm2_agent_switch_snooping_querier_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2)) if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanTable.setStatus('current') hm2_agent_switch_snooping_querier_vlan_entry = mib_table_row((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') hm2_agent_switch_snooping_querier_vlan_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanAdminMode.setStatus('current') hm2_agent_switch_snooping_querier_vlan_oper_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('disabled', 0), ('querier', 1), ('non-querier', 2))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanOperMode.setStatus('current') hm2_agent_switch_snooping_querier_election_participate_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 3), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierElectionParticipateMode.setStatus('deprecated') hm2_agent_switch_snooping_querier_vlan_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 4), inet_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierVlanAddress.setStatus('current') hm2_agent_switch_snooping_querier_oper_version = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierOperVersion.setStatus('current') hm2_agent_switch_snooping_querier_oper_max_response_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 2147483647)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierOperMaxResponseTime.setStatus('current') hm2_agent_switch_snooping_querier_last_querier_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 7), inet_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierLastQuerierAddress.setStatus('current') hm2_agent_switch_snooping_querier_last_querier_version = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 20, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchSnoopingQuerierLastQuerierVersion.setStatus('current') hm2_agent_port_mirroring_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10)) hm2_agent_port_mirror_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4)) if mibBuilder.loadTexts: hm2AgentPortMirrorTable.setStatus('current') hm2_agent_port_mirror_entry = mib_table_row((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') hm2_agent_port_mirror_session_num = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 1), unsigned32()) if mibBuilder.loadTexts: hm2AgentPortMirrorSessionNum.setStatus('current') hm2_agent_port_mirror_destination_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 2), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorDestinationPort.setStatus('current') hm2_agent_port_mirror_source_port_mask = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 3), hm2_agent_port_mask()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorSourcePortMask.setStatus('current') hm2_agent_port_mirror_admin_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorAdminMode.setStatus('current') hm2_agent_port_mirror_source_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4042))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorSourceVlan.setStatus('current') hm2_agent_port_mirror_remote_source_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 6), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2, 4042)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteSourceVlan.setStatus('current') hm2_agent_port_mirror_remote_destination_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 7), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2, 4042)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteDestinationVlan.setStatus('current') hm2_agent_port_mirror_reflector_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 8), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorReflectorPort.setStatus('current') hm2_agent_port_mirror_allow_mgmt_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 9), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorAllowMgmtMode.setStatus('current') hm2_agent_port_mirror_reset = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 4, 1, 248), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorReset.setStatus('current') hm2_agent_port_mirror_type_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5)) if mibBuilder.loadTexts: hm2AgentPortMirrorTypeTable.setStatus('current') hm2_agent_port_mirror_type_entry = mib_table_row((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') hm2_agent_port_mirror_type_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5, 1, 1), unsigned32()) if mibBuilder.loadTexts: hm2AgentPortMirrorTypeSourcePort.setStatus('current') hm2_agent_port_mirror_type_type = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('none', 0), ('tx', 1), ('rx', 2), ('txrx', 3))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorTypeType.setStatus('current') hm2_agent_port_mirror_remote_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 6), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteVlan.setStatus('current') hm2_agent_port_mirror_snmp_extension_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248)) hm2_agent_port_mirror_vlan_mirror_port_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 1)) if mibBuilder.loadTexts: hm2AgentPortMirrorVlanMirrorPortConflict.setStatus('current') hm2_agent_port_mirror_port_vlan_mirror_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 2)) if mibBuilder.loadTexts: hm2AgentPortMirrorPortVlanMirrorConflict.setStatus('current') hm2_agent_port_mirror_probe_port_already_set = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 3)) if mibBuilder.loadTexts: hm2AgentPortMirrorProbePortAlreadySet.setStatus('current') hm2_agent_port_mirror_probe_port_vlan_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 4)) if mibBuilder.loadTexts: hm2AgentPortMirrorProbePortVlanConflict.setStatus('current') hm2_agent_port_mirror_vlan_not_created = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 5)) if mibBuilder.loadTexts: hm2AgentPortMirrorVlanNotCreated.setStatus('current') hm2_agent_port_mirror_invalid_source_port = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 6)) if mibBuilder.loadTexts: hm2AgentPortMirrorInvalidSourcePort.setStatus('current') hm2_agent_port_mirror_source_port_destination_port_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 7)) if mibBuilder.loadTexts: hm2AgentPortMirrorSourcePortDestinationPortConflict.setStatus('current') hm2_agent_port_mirror_destination_port_invalid = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 8)) if mibBuilder.loadTexts: hm2AgentPortMirrorDestinationPortInvalid.setStatus('current') hm2_agent_port_mirror_vlan_rspan_vlan_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 9)) if mibBuilder.loadTexts: hm2AgentPortMirrorVlanRspanVlanConflict.setStatus('current') hm2_agent_port_mirror_remote_source_remote_destination_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 10)) if mibBuilder.loadTexts: hm2AgentPortMirrorRemoteSourceRemoteDestinationConflict.setStatus('current') hm2_agent_port_mirror_reflector_port_invalid = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 11)) if mibBuilder.loadTexts: hm2AgentPortMirrorReflectorPortInvalid.setStatus('current') hm2_agent_port_mirror_source_port_reflector_port_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 12)) if mibBuilder.loadTexts: hm2AgentPortMirrorSourcePortReflectorPortConflict.setStatus('current') hm2_agent_port_mirror_reflector_port_vlan_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 13)) if mibBuilder.loadTexts: hm2AgentPortMirrorReflectorPortVlanConflict.setStatus('current') hm2_agent_port_mirror_private_vlan_configured = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 14)) if mibBuilder.loadTexts: hm2AgentPortMirrorPrivateVlanConfigured.setStatus('current') hm2_agent_port_mirror_destination_remote_port_not_set = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 15)) if mibBuilder.loadTexts: hm2AgentPortMirrorDestinationRemotePortNotSet.setStatus('current') hm2_agent_port_mirror_rspan_vlan_inconsistent = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 16)) if mibBuilder.loadTexts: hm2AgentPortMirrorRspanVlanInconsistent.setStatus('current') hm2_agent_port_mirror_rspan_vlan_id_invalid = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 10, 248, 17)) if mibBuilder.loadTexts: hm2AgentPortMirrorRspanVlanIdInvalid.setStatus('current') hm2_agent_dot3ad_agg_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12)) if mibBuilder.loadTexts: hm2AgentDot3adAggPortTable.setStatus('current') hm2_agent_dot3ad_agg_port_entry = mib_table_row((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') hm2_agent_dot3ad_agg_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDot3adAggPort.setStatus('current') hm2_agent_dot3ad_agg_port_lacp_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 12, 1, 2), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDot3adAggPortLACPMode.setStatus('current') hm2_agent_port_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13)) if mibBuilder.loadTexts: hm2AgentPortConfigTable.setStatus('current') hm2_agent_port_config_entry = mib_table_row((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') hm2_agent_port_dot1d_base_port = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentPortDot1dBasePort.setStatus('current') hm2_agent_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentPortIfIndex.setStatus('current') hm2_agent_port_clear_stats = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 10), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortClearStats.setStatus('current') hm2_agent_port_dot3_flow_control_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('symmetric', 1), ('asymmetric', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortDot3FlowControlMode.setStatus('current') hm2_agent_port_max_frame_size_limit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentPortMaxFrameSizeLimit.setStatus('current') hm2_agent_port_max_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 19), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMaxFrameSize.setStatus('current') hm2_agent_port_broadcast_control_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 20), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortBroadcastControlMode.setStatus('current') hm2_agent_port_broadcast_control_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(0, 14880000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortBroadcastControlThreshold.setStatus('current') hm2_agent_port_multicast_control_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 22), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMulticastControlMode.setStatus('current') hm2_agent_port_multicast_control_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 14880000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMulticastControlThreshold.setStatus('current') hm2_agent_port_unicast_control_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 24), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortUnicastControlMode.setStatus('current') hm2_agent_port_unicast_control_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 14880000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortUnicastControlThreshold.setStatus('current') hm2_agent_port_broadcast_control_threshold_unit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('percent', 1), ('pps', 2))).clone('percent')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortBroadcastControlThresholdUnit.setStatus('current') hm2_agent_port_multicast_control_threshold_unit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('percent', 1), ('pps', 2))).clone('percent')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortMulticastControlThresholdUnit.setStatus('current') hm2_agent_port_unicast_control_threshold_unit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('percent', 1), ('pps', 2))).clone('percent')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortUnicastControlThresholdUnit.setStatus('current') hm2_agent_port_voice_vlan_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('none', 1), ('vlanid', 2), ('dot1p', 3), ('vlanidanddot1p', 4), ('untagged', 5), ('disable', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanMode.setStatus('current') hm2_agent_port_voice_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 30), integer32().subtype(subtypeSpec=value_range_constraint(0, 4093))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanID.setStatus('current') hm2_agent_port_voice_vlan_priority = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 31), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255))).clone(255)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanPriority.setStatus('current') hm2_agent_port_voice_vlan_data_priority_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('trust', 1), ('untrust', 2))).clone('trust')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanDataPriorityMode.setStatus('current') hm2_agent_port_voice_vlan_operational_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanOperationalStatus.setStatus('current') hm2_agent_port_voice_vlan_untagged = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1))).clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanUntagged.setStatus('current') hm2_agent_port_voice_vlan_none_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 35), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1))).clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanNoneMode.setStatus('current') hm2_agent_port_voice_vlan_dscp = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 36), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanDSCP.setStatus('current') hm2_agent_port_voice_vlan_auth_mode = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 37), hm_enabled_status().clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortVoiceVlanAuthMode.setStatus('current') hm2_agent_port_dot3_flow_control_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('inactive', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentPortDot3FlowControlOperStatus.setStatus('current') hm2_agent_port_sfp_link_loss_alert = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 13, 1, 248), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentPortSfpLinkLossAlert.setStatus('current') hm2_agent_protocol_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14)) hm2_agent_protocol_group_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2)) if mibBuilder.loadTexts: hm2AgentProtocolGroupTable.setStatus('current') hm2_agent_protocol_group_entry = mib_table_row((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') hm2_agent_protocol_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))) if mibBuilder.loadTexts: hm2AgentProtocolGroupId.setStatus('current') hm2_agent_protocol_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 2), display_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(1, 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentProtocolGroupName.setStatus('current') hm2_agent_protocol_group_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4093))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentProtocolGroupVlanId.setStatus('current') hm2_agent_protocol_group_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 2, 1, 7), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentProtocolGroupStatus.setStatus('current') hm2_agent_protocol_group_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3)) if mibBuilder.loadTexts: hm2AgentProtocolGroupPortTable.setStatus('current') hm2_agent_protocol_group_port_entry = mib_table_row((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') hm2_agent_protocol_group_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentProtocolGroupPortIfIndex.setStatus('current') hm2_agent_protocol_group_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 3, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentProtocolGroupPortStatus.setStatus('current') hm2_agent_protocol_group_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4)) if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolTable.setStatus('current') hm2_agent_protocol_group_protocol_entry = mib_table_row((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') hm2_agent_protocol_group_protocol_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1536, 65535))) if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolID.setStatus('current') hm2_agent_protocol_group_protocol_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 14, 4, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentProtocolGroupProtocolStatus.setStatus('current') hm2_agent_stp_switch_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15)) hm2_agent_stp_config_digest_key = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 1), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpConfigDigestKey.setStatus('current') hm2_agent_stp_config_format_selector = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpConfigFormatSelector.setStatus('current') hm2_agent_stp_config_name = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpConfigName.setStatus('current') hm2_agent_stp_config_revision = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpConfigRevision.setStatus('current') hm2_agent_stp_force_version = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('stp', 1), ('rstp', 2), ('mstp', 3))).clone('rstp')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpForceVersion.setStatus('current') hm2_agent_stp_admin_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 6), hm_enabled_status().clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpAdminMode.setStatus('current') hm2_agent_stp_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7)) if mibBuilder.loadTexts: hm2AgentStpPortTable.setStatus('current') hm2_agent_stp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hm2AgentStpPortEntry.setStatus('current') hm2_agent_stp_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 1), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpPortState.setStatus('current') hm2_agent_stp_port_stats_mstp_bpdu_rx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortStatsMstpBpduRx.setStatus('current') hm2_agent_stp_port_stats_mstp_bpdu_tx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortStatsMstpBpduTx.setStatus('current') hm2_agent_stp_port_stats_rstp_bpdu_rx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortStatsRstpBpduRx.setStatus('current') hm2_agent_stp_port_stats_rstp_bpdu_tx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortStatsRstpBpduTx.setStatus('current') hm2_agent_stp_port_stats_stp_bpdu_rx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortStatsStpBpduRx.setStatus('current') hm2_agent_stp_port_stats_stp_bpdu_tx = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortStatsStpBpduTx.setStatus('current') hm2_agent_stp_port_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 8), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpPortUpTime.setStatus('current') hm2_agent_stp_port_migration_check = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 7, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpPortMigrationCheck.setStatus('current') hm2_agent_stp_cst_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8)) hm2_agent_stp_cst_hello_time = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstHelloTime.setStatus('current') hm2_agent_stp_cst_max_age = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstMaxAge.setStatus('current') hm2_agent_stp_cst_regional_root_id = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 3), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstRegionalRootId.setStatus('current') hm2_agent_stp_cst_regional_root_path_cost = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstRegionalRootPathCost.setStatus('current') hm2_agent_stp_cst_root_fwd_delay = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstRootFwdDelay.setStatus('current') hm2_agent_stp_cst_bridge_fwd_delay = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(4, 30)).clone(15)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstBridgeFwdDelay.setStatus('current') hm2_agent_stp_cst_bridge_hello_time = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 2)).clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstBridgeHelloTime.setStatus('current') hm2_agent_stp_cst_bridge_hold_time = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstBridgeHoldTime.setStatus('current') hm2_agent_stp_cst_bridge_max_age = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(6, 40)).clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstBridgeMaxAge.setStatus('current') hm2_agent_stp_cst_bridge_max_hops = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(6, 40)).clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstBridgeMaxHops.setStatus('current') hm2_agent_stp_cst_bridge_priority = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 61440)).clone(32768)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstBridgePriority.setStatus('current') hm2_agent_stp_cst_bridge_hold_count = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 8, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 40)).clone(10)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstBridgeHoldCount.setStatus('current') hm2_agent_stp_cst_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9)) if mibBuilder.loadTexts: hm2AgentStpCstPortTable.setStatus('current') hm2_agent_stp_cst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hm2AgentStpCstPortEntry.setStatus('current') hm2_agent_stp_cst_port_oper_edge = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 1), hm_enabled_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstPortOperEdge.setStatus('current') hm2_agent_stp_cst_port_oper_point_to_point = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstPortOperPointToPoint.setStatus('current') hm2_agent_stp_cst_port_topology_change_ack = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstPortTopologyChangeAck.setStatus('current') hm2_agent_stp_cst_port_edge = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 4), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortEdge.setStatus('current') hm2_agent_stp_cst_port_forwarding_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('discarding', 1), ('learning', 2), ('forwarding', 3), ('disabled', 4), ('manualFwd', 5), ('notParticipate', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstPortForwardingState.setStatus('current') hm2_agent_stp_cst_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstPortId.setStatus('current') hm2_agent_stp_cst_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortPathCost.setStatus('current') hm2_agent_stp_cst_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 240)).clone(128)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortPriority.setStatus('current') hm2_agent_stp_cst_designated_bridge_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstDesignatedBridgeId.setStatus('current') hm2_agent_stp_cst_designated_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstDesignatedCost.setStatus('current') hm2_agent_stp_cst_designated_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstDesignatedPortId.setStatus('current') hm2_agent_stp_cst_ext_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstExtPortPathCost.setStatus('current') hm2_agent_stp_cst_port_bpdu_guard_effect = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 13), hm_enabled_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstPortBpduGuardEffect.setStatus('current') hm2_agent_stp_cst_port_bpdu_filter = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 14), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortBpduFilter.setStatus('current') hm2_agent_stp_cst_port_bpdu_flood = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 15), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortBpduFlood.setStatus('current') hm2_agent_stp_cst_port_auto_edge = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 16), hm_enabled_status().clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortAutoEdge.setStatus('current') hm2_agent_stp_cst_port_root_guard = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 17), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortRootGuard.setStatus('current') hm2_agent_stp_cst_port_tcn_guard = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 18), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortTCNGuard.setStatus('current') hm2_agent_stp_cst_port_loop_guard = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 9, 1, 19), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpCstPortLoopGuard.setStatus('current') hm2_agent_stp_mst_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10)) if mibBuilder.loadTexts: hm2AgentStpMstTable.setStatus('current') hm2_agent_stp_mst_entry = mib_table_row((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') hm2_agent_stp_mst_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstId.setStatus('current') hm2_agent_stp_mst_bridge_priority = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 61440)).clone(32768)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpMstBridgePriority.setStatus('current') hm2_agent_stp_mst_bridge_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstBridgeIdentifier.setStatus('current') hm2_agent_stp_mst_designated_root_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstDesignatedRootId.setStatus('current') hm2_agent_stp_mst_root_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstRootPathCost.setStatus('current') hm2_agent_stp_mst_root_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstRootPortId.setStatus('current') hm2_agent_stp_mst_time_since_topology_change = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 7), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstTimeSinceTopologyChange.setStatus('current') hm2_agent_stp_mst_topology_change_count = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstTopologyChangeCount.setStatus('current') hm2_agent_stp_mst_topology_change_parm = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstTopologyChangeParm.setStatus('current') hm2_agent_stp_mst_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 10, 1, 10), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStpMstRowStatus.setStatus('current') hm2_agent_stp_mst_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11)) if mibBuilder.loadTexts: hm2AgentStpMstPortTable.setStatus('current') hm2_agent_stp_mst_port_entry = mib_table_row((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') hm2_agent_stp_mst_port_forwarding_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('discarding', 1), ('learning', 2), ('forwarding', 3), ('disabled', 4), ('manualFwd', 5), ('notParticipate', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortForwardingState.setStatus('current') hm2_agent_stp_mst_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortId.setStatus('current') hm2_agent_stp_mst_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 200000000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpMstPortPathCost.setStatus('current') hm2_agent_stp_mst_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 240)).clone(128)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpMstPortPriority.setStatus('current') hm2_agent_stp_mst_designated_bridge_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstDesignatedBridgeId.setStatus('current') hm2_agent_stp_mst_designated_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstDesignatedCost.setStatus('current') hm2_agent_stp_mst_designated_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstDesignatedPortId.setStatus('current') hm2_agent_stp_mst_port_loop_inconsistent_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortLoopInconsistentState.setStatus('current') hm2_agent_stp_mst_port_transitions_into_loop_inconsistent_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortTransitionsIntoLoopInconsistentState.setStatus('current') hm2_agent_stp_mst_port_transitions_out_of_loop_inconsistent_state = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortTransitionsOutOfLoopInconsistentState.setStatus('current') hm2_agent_stp_mst_port_role = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 248), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('root', 1), ('alternate', 2), ('designated', 3), ('backup', 4), ('master', 5), ('disabled', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortRole.setStatus('current') hm2_agent_stp_cst_auto_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 249), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpCstAutoPortPathCost.setStatus('current') hm2_agent_stp_mst_port_received_bridge_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 250), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedBridgeId.setStatus('current') hm2_agent_stp_mst_port_received_rpc = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 251), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedRPC.setStatus('current') hm2_agent_stp_mst_port_received_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 252), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedPortId.setStatus('current') hm2_agent_stp_mst_auto_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 253), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstAutoPortPathCost.setStatus('current') hm2_agent_stp_mst_port_received_regional_rpc = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 11, 1, 254), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStpMstPortReceivedRegionalRPC.setStatus('current') hm2_agent_stp_mst_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 12)) if mibBuilder.loadTexts: hm2AgentStpMstVlanTable.setStatus('current') hm2_agent_stp_mst_vlan_entry = mib_table_row((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') hm2_agent_stp_mst_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 12, 1, 1), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStpMstVlanRowStatus.setStatus('current') hm2_agent_stp_bpdu_guard_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 13), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpBpduGuardMode.setStatus('current') hm2_agent_stp_bpdu_filter_default = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 14), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpBpduFilterDefault.setStatus('current') hm2_agent_stp_ring_only_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 248), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpRingOnlyMode.setStatus('current') hm2_agent_stp_ring_only_mode_intf_one = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 249), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpRingOnlyModeIntfOne.setStatus('current') hm2_agent_stp_ring_only_mode_intf_two = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 250), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentStpRingOnlyModeIntfTwo.setStatus('current') hm2_agent_stp_mst_snmp_extension_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260)) hm2_agent_stp_mst_instance_vlan_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260, 1)) if mibBuilder.loadTexts: hm2AgentStpMstInstanceVlanErrorReturn.setStatus('current') hm2_agent_stp_cst_fwd_delay_error_return = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260, 2)) if mibBuilder.loadTexts: hm2AgentStpCstFwdDelayErrorReturn.setStatus('current') hm2_agent_stp_mst_switch_version_conflict = object_identity((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 15, 260, 3)) if mibBuilder.loadTexts: hm2AgentStpMstSwitchVersionConflict.setStatus('current') hm2_agent_class_of_service_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17)) hm2_agent_class_of_service_port_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1)) if mibBuilder.loadTexts: hm2AgentClassOfServicePortTable.setStatus('current') hm2_agent_class_of_service_port_entry = mib_table_row((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') hm2_agent_class_of_service_port_priority = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))) if mibBuilder.loadTexts: hm2AgentClassOfServicePortPriority.setStatus('current') hm2_agent_class_of_service_port_class = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 17, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentClassOfServicePortClass.setStatus('current') hm2_agent_system_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 3)) hm2_agent_clear_vlan = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 3, 9), hm_enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentClearVlan.setStatus('current') hm2_agent_dai_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21)) hm2_agent_dai_src_mac_validate = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiSrcMacValidate.setStatus('current') hm2_agent_dai_dst_mac_validate = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiDstMacValidate.setStatus('current') hm2_agent_dai_ip_validate = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiIPValidate.setStatus('current') hm2_agent_dai_vlan_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4)) if mibBuilder.loadTexts: hm2AgentDaiVlanConfigTable.setStatus('current') hm2_agent_dai_vlan_config_entry = mib_table_row((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') hm2_agent_dai_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 1), vlan_index()) if mibBuilder.loadTexts: hm2AgentDaiVlanIndex.setStatus('current') hm2_agent_dai_vlan_dyn_arp_insp_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiVlanDynArpInspEnable.setStatus('current') hm2_agent_dai_vlan_logging_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiVlanLoggingEnable.setStatus('current') hm2_agent_dai_vlan_arp_acl_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiVlanArpAclName.setStatus('current') hm2_agent_dai_vlan_arp_acl_static_flag = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiVlanArpAclStaticFlag.setStatus('current') hm2_agent_dai_vlan_binding_check_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 4, 1, 248), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiVlanBindingCheckEnable.setStatus('current') hm2_agent_dai_stats_reset = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiStatsReset.setStatus('current') hm2_agent_dai_vlan_stats_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6)) if mibBuilder.loadTexts: hm2AgentDaiVlanStatsTable.setStatus('current') hm2_agent_dai_vlan_stats_entry = mib_table_row((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') hm2_agent_dai_vlan_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 1), vlan_index()) if mibBuilder.loadTexts: hm2AgentDaiVlanStatsIndex.setStatus('current') hm2_agent_dai_vlan_pkts_forwarded = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanPktsForwarded.setStatus('current') hm2_agent_dai_vlan_pkts_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanPktsDropped.setStatus('current') hm2_agent_dai_vlan_dhcp_drops = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanDhcpDrops.setStatus('current') hm2_agent_dai_vlan_dhcp_permits = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanDhcpPermits.setStatus('current') hm2_agent_dai_vlan_acl_drops = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanAclDrops.setStatus('current') hm2_agent_dai_vlan_acl_permits = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanAclPermits.setStatus('current') hm2_agent_dai_vlan_src_mac_failures = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanSrcMacFailures.setStatus('current') hm2_agent_dai_vlan_dst_mac_failures = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanDstMacFailures.setStatus('current') hm2_agent_dai_vlan_ip_valid_failures = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 6, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDaiVlanIpValidFailures.setStatus('current') hm2_agent_dai_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7)) if mibBuilder.loadTexts: hm2AgentDaiIfConfigTable.setStatus('current') hm2_agent_dai_if_config_entry = mib_table_row((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') hm2_agent_dai_if_trust_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiIfTrustEnable.setStatus('current') hm2_agent_dai_if_rate_limit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 2), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 300))).clone(-1)).setUnits('packets per second').setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiIfRateLimit.setStatus('current') hm2_agent_dai_if_burst_interval = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiIfBurstInterval.setStatus('current') hm2_agent_dai_if_auto_disable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 21, 7, 1, 248), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDaiIfAutoDisable.setStatus('current') hm2_agent_arp_acl_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22)) hm2_agent_arp_acl_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1)) if mibBuilder.loadTexts: hm2AgentArpAclTable.setStatus('current') hm2_agent_arp_acl_entry = mib_table_row((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') hm2_agent_arp_acl_name = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentArpAclName.setStatus('current') hm2_agent_arp_acl_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 1, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentArpAclRowStatus.setStatus('current') hm2_agent_arp_acl_rule_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2)) if mibBuilder.loadTexts: hm2AgentArpAclRuleTable.setStatus('current') hm2_agent_arp_acl_rule_entry = mib_table_row((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') hm2_agent_arp_acl_rule_match_sender_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1, 1), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentArpAclRuleMatchSenderIpAddr.setStatus('current') hm2_agent_arp_acl_rule_match_sender_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1, 2), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentArpAclRuleMatchSenderMacAddr.setStatus('current') hm2_agent_arp_acl_rule_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 22, 2, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentArpAclRuleRowStatus.setStatus('current') hm2_agent_dhcp_snooping_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23)) hm2_agent_dhcp_snooping_admin_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingAdminMode.setStatus('current') hm2_agent_dhcp_snooping_verify_mac = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVerifyMac.setStatus('current') hm2_agent_dhcp_snooping_vlan_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3)) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanConfigTable.setStatus('current') hm2_agent_dhcp_snooping_vlan_config_entry = mib_table_row((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') hm2_agent_dhcp_snooping_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3, 1, 1), vlan_index()) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanIndex.setStatus('current') hm2_agent_dhcp_snooping_vlan_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 3, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingVlanEnable.setStatus('current') hm2_agent_dhcp_snooping_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4)) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfConfigTable.setStatus('current') hm2_agent_dhcp_snooping_if_config_entry = mib_table_row((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') hm2_agent_dhcp_snooping_if_trust_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfTrustEnable.setStatus('current') hm2_agent_dhcp_snooping_if_log_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfLogEnable.setStatus('current') hm2_agent_dhcp_snooping_if_rate_limit = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(0, 150))).clone(-1)).setUnits('packets per second').setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfRateLimit.setStatus('current') hm2_agent_dhcp_snooping_if_burst_interval = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfBurstInterval.setStatus('current') hm2_agent_dhcp_snooping_if_auto_disable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 4, 1, 248), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingIfAutoDisable.setStatus('current') hm2_agent_ipsg_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5)) if mibBuilder.loadTexts: hm2AgentIpsgIfConfigTable.setStatus('current') hm2_agent_ipsg_if_config_entry = mib_table_row((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') hm2_agent_ipsg_if_verify_source = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentIpsgIfVerifySource.setStatus('current') hm2_agent_ipsg_if_port_security = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 5, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentIpsgIfPortSecurity.setStatus('current') hm2_agent_dhcp_snooping_stats_reset = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStatsReset.setStatus('current') hm2_agent_dhcp_snooping_stats_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7)) if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStatsTable.setStatus('current') hm2_agent_dhcp_snooping_stats_entry = mib_table_row((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') hm2_agent_dhcp_snooping_mac_verify_failures = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingMacVerifyFailures.setStatus('current') hm2_agent_dhcp_snooping_invalid_client_messages = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingInvalidClientMessages.setStatus('current') hm2_agent_dhcp_snooping_invalid_server_messages = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 7, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingInvalidServerMessages.setStatus('current') hm2_agent_static_ipsg_binding_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8)) if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingTable.setStatus('current') hm2_agent_static_ipsg_binding_entry = mib_table_row((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') hm2_agent_static_ipsg_binding_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 1), interface_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingIfIndex.setStatus('current') hm2_agent_static_ipsg_binding_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 2), vlan_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingVlanId.setStatus('current') hm2_agent_static_ipsg_binding_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 3), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingMacAddr.setStatus('current') hm2_agent_static_ipsg_binding_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 4), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingIpAddr.setStatus('current') hm2_agent_static_ipsg_binding_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingRowStatus.setStatus('current') hm2_agent_static_ipsg_binding_hw_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 8, 1, 248), truth_value().clone('false')).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentStaticIpsgBindingHwStatus.setStatus('current') hm2_agent_dynamic_ipsg_binding_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9)) if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingTable.setStatus('current') hm2_agent_dynamic_ipsg_binding_entry = mib_table_row((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') hm2_agent_dynamic_ipsg_binding_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingIfIndex.setStatus('current') hm2_agent_dynamic_ipsg_binding_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 2), vlan_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingVlanId.setStatus('current') hm2_agent_dynamic_ipsg_binding_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingMacAddr.setStatus('current') hm2_agent_dynamic_ipsg_binding_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingIpAddr.setStatus('current') hm2_agent_dynamic_ipsg_binding_hw_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 9, 1, 248), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicIpsgBindingHwStatus.setStatus('current') hm2_agent_static_ds_binding_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10)) if mibBuilder.loadTexts: hm2AgentStaticDsBindingTable.setStatus('current') hm2_agent_static_ds_binding_entry = mib_table_row((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') hm2_agent_static_ds_binding_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 1), interface_index_or_zero()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticDsBindingIfIndex.setStatus('current') hm2_agent_static_ds_binding_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 2), vlan_id().clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticDsBindingVlanId.setStatus('current') hm2_agent_static_ds_binding_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 3), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticDsBindingMacAddr.setStatus('current') hm2_agent_static_ds_binding_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 4), ip_address().clone(hexValue='00000000')).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticDsBindingIpAddr.setStatus('current') hm2_agent_static_ds_binding_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 10, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hm2AgentStaticDsBindingRowStatus.setStatus('current') hm2_agent_dynamic_ds_binding_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11)) if mibBuilder.loadTexts: hm2AgentDynamicDsBindingTable.setStatus('current') hm2_agent_dynamic_ds_binding_entry = mib_table_row((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') hm2_agent_dynamic_ds_binding_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicDsBindingIfIndex.setStatus('current') hm2_agent_dynamic_ds_binding_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 2), vlan_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicDsBindingVlanId.setStatus('current') hm2_agent_dynamic_ds_binding_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicDsBindingMacAddr.setStatus('current') hm2_agent_dynamic_ds_binding_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicDsBindingIpAddr.setStatus('current') hm2_agent_dynamic_ds_binding_lease_remaining_time = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 11, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDynamicDsBindingLeaseRemainingTime.setStatus('current') hm2_agent_dhcp_snooping_remote_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingRemoteFileName.setStatus('current') hm2_agent_dhcp_snooping_remote_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 13), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingRemoteIpAddr.setStatus('current') hm2_agent_dhcp_snooping_store_interval = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 23, 14), unsigned32().subtype(subtypeSpec=value_range_constraint(15, 86400)).clone(300)).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpSnoopingStoreInterval.setStatus('current') hm2_agent_dhcp_l2_relay_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24)) hm2_agent_dhcp_l2_relay_admin_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayAdminMode.setStatus('current') hm2_agent_dhcp_l2_relay_if_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2)) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfConfigTable.setStatus('current') hm2_agent_dhcp_l2_relay_if_config_entry = mib_table_row((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') hm2_agent_dhcp_l2_relay_if_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfEnable.setStatus('current') hm2_agent_dhcp_l2_relay_if_trust_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 2, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayIfTrustEnable.setStatus('current') hm2_agent_dhcp_l2_relay_vlan_config_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3)) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanConfigTable.setStatus('current') hm2_agent_dhcp_l2_relay_vlan_config_entry = mib_table_row((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') hm2_agent_dhcp_l2_relay_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 1), vlan_index()) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanIndex.setStatus('current') hm2_agent_dhcp_l2_relay_vlan_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanEnable.setStatus('current') hm2_agent_dhcp_l2_relay_circuit_id_vlan_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayCircuitIdVlanEnable.setStatus('current') hm2_agent_dhcp_l2_relay_remote_id_vlan_enable = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayRemoteIdVlanEnable.setStatus('current') hm2_agent_dhcp_l2_relay_vlan_remote_id_type = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 3, 1, 248), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('ip', 1), ('mac', 2), ('client-id', 3), ('other', 4))).clone('mac')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayVlanRemoteIdType.setStatus('current') hm2_agent_dhcp_l2_relay_stats_reset = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('reset', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayStatsReset.setStatus('current') hm2_agent_dhcp_l2_relay_stats_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7)) if mibBuilder.loadTexts: hm2AgentDhcpL2RelayStatsTable.setStatus('current') hm2_agent_dhcp_l2_relay_stats_entry = mib_table_row((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') hm2_agent_dhcp_l2_relay_untrusted_srvr_msgs_with_optn82 = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayUntrustedSrvrMsgsWithOptn82.setStatus('current') hm2_agent_dhcp_l2_relay_untrusted_clnt_msgs_with_optn82 = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayUntrustedClntMsgsWithOptn82.setStatus('current') hm2_agent_dhcp_l2_relay_trusted_srvr_msgs_without_optn82 = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayTrustedSrvrMsgsWithoutOptn82.setStatus('current') hm2_agent_dhcp_l2_relay_trusted_clnt_msgs_without_optn82 = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 24, 7, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentDhcpL2RelayTrustedClntMsgsWithoutOptn82.setStatus('current') hm2_agent_switch_voice_vlan_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25)) hm2_agent_switch_voice_vlan_admin_mode = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 1), hm_enabled_status().clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSwitchVoiceVLANAdminMode.setStatus('current') hm2_agent_switch_voice_vlan_device_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2)) if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanDeviceTable.setStatus('current') hm2_agent_switch_voice_vlan_device_entry = mib_table_row((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') hm2_agent_switch_voice_vlan_interface_num = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanInterfaceNum.setStatus('current') hm2_agent_switch_voice_vlan_device_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 25, 2, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSwitchVoiceVlanDeviceMacAddress.setStatus('current') hm2_agent_sdm_prefer_config_group = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 27)) hm2_agent_sdm_prefer_current_template = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 27, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 10, 11))).clone(namedValues=named_values(('ipv4RoutingDefault', 2), ('ipv4DataCenter', 3), ('ipv4RoutingUnicast', 10), ('ipv4RoutingMulticast', 11)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentSdmPreferCurrentTemplate.setStatus('current') hm2_agent_sdm_prefer_next_template = mib_scalar((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 27, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 2, 3, 10, 11))).clone(namedValues=named_values(('default', 0), ('ipv4RoutingDefault', 2), ('ipv4DataCenter', 3), ('ipv4RoutingUnicast', 10), ('ipv4RoutingMulticast', 11)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hm2AgentSdmPreferNextTemplate.setStatus('current') hm2_agent_sdm_template_summary_table = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28)) hm2_agent_sdm_template_table = mib_table((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1)) if mibBuilder.loadTexts: hm2AgentSdmTemplateTable.setStatus('current') hm2_agent_sdm_template_entry = mib_table_row((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') hm2_agent_sdm_template_id = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 10, 11))).clone(namedValues=named_values(('ipv4RoutingDefault', 2), ('ipv4DataCenter', 3), ('ipv4RoutingUnicast', 10), ('ipv4RoutingMulticast', 11)))) if mibBuilder.loadTexts: hm2AgentSdmTemplateId.setStatus('current') hm2_agent_arp_entries = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentArpEntries.setStatus('current') hm2_agent_i_pv4_unicast_routes = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentIPv4UnicastRoutes.setStatus('current') hm2_agent_i_pv6_ndp_entries = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentIPv6NdpEntries.setStatus('current') hm2_agent_i_pv6_unicast_routes = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentIPv6UnicastRoutes.setStatus('current') hm2_agent_ecmp_next_hops = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentEcmpNextHops.setStatus('current') hm2_agent_i_pv4_multicast_routes = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentIPv4MulticastRoutes.setStatus('current') hm2_agent_i_pv6_multicast_routes = mib_table_column((1, 3, 6, 1, 4, 1, 248, 12, 1, 2, 8, 28, 1, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hm2AgentIPv6MulticastRoutes.setStatus('current') hm2_platform_switching_traps = mib_identifier((1, 3, 6, 1, 4, 1, 248, 12, 1, 0)) hm2_platform_stp_instance_new_root_trap = notification_type((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 10)).setObjects(('HM2-PLATFORM-SWITCHING-MIB', 'hm2AgentStpMstId')) if mibBuilder.loadTexts: hm2PlatformStpInstanceNewRootTrap.setStatus('current') hm2_platform_stp_instance_topology_change_trap = notification_type((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 11)).setObjects(('HM2-PLATFORM-SWITCHING-MIB', 'hm2AgentStpMstId')) if mibBuilder.loadTexts: hm2PlatformStpInstanceTopologyChangeTrap.setStatus('current') hm2_platform_dai_intf_error_disabled_trap = notification_type((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 15)).setObjects(('IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hm2PlatformDaiIntfErrorDisabledTrap.setStatus('current') hm2_platform_stp_instance_loop_inconsistent_start_trap = notification_type((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') hm2_platform_stp_instance_loop_inconsistent_end_trap = notification_type((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') hm2_platform_dhcp_snooping_intf_error_disabled_trap = notification_type((1, 3, 6, 1, 4, 1, 248, 12, 1, 0, 18)).setObjects(('IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hm2PlatformDhcpSnoopingIntfErrorDisabledTrap.setStatus('current') hm2_platform_stp_cst_bpdu_guard_trap = notification_type((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)
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")
def pytest_addoption(parser): 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))
lines = open('input.txt').read().split() dummy = ['forward', '5', 'down', '5', 'forward', '8', 'up', '3', 'down', '8', 'forward', '2'] def problem_part1(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 def problem_part2(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(problem_part1(lines)) print(problem_part2(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 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 to_hls(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 to_rgb(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 to_rgb1(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
class Datafile: def __init__(self, datetime, chart, datafile): self.Datetime = datetime self.Chart = chart self.Datafile = datafile return
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, }, ]
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
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): self.tail = b'' 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: try: pos = data.index(start_tag) self.in_decl = True ret += data[:pos] data = data[pos + len(start_tag):] except ValueError: pos = data.rfind(b'<') if pos < 0: self.tail = b'' ret += data elif len(data) - pos >= len(start_tag): self.tail = b'' ret += data else: self.tail = data[pos:] ret += data[:pos] return ret else: try: pos = data.index(end_tag) self.in_decl = False data = data[pos + len(end_tag):] self.tail = b'' continue except ValueError: self.tail = data[-1:] return ret 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
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()
__doc__ = "\nSearches all glyphs for any component of type 'Mark' at index 0 in the components list, and moves it to the end if found.\n" Glyphs.clearLog() Glyphs.font.disableUpdateInterface() def report_corrected_components(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) report_corrected_components(g.name, l.name, c.componentName) Glyphs.font.enableUpdateInterface()
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()
data_set = [] phase_1 = 1341214200 phase_2 = 1341253799 phase_3 = 1341368999 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 Solution: def odd_cells(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
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))
(obj, grid, start, sol) = ([], [], [], []) count_star = 0 (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_star = sum((_.count('*') for _ in obj)) def way(row_o, cal_o, row_g, cal_g): find = [] for (row, _) in enumerate(obj): for (cal, val) in enumerate(_): if val == '*': if cal_o > cal: cal_g -= abs(cal_o - cal) if cal_o < cal: cal_g += abs(cal_o - cal) 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] == '.': cal_o = cal find.append([row_g + row, cal_g]) else: return False if len(find) == count_star: sol.append(find) 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): if cg == '.' and [row_g, cal_g] not in start: start.append([row_g, cal_g]) way(row_o, cal_o, row_g, cal_g) 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(_) elif sol == []: print(0) 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')
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
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): n_max = 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
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))
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)
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 not_implemented_error() 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)
if self.action['treatment'] == '1': self.reward['value'] = np.random.binomial(1, 0.5) else: 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})")
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 """
"""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()
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)
""" 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 the_sum = 0.0 data = input('Enter a number: ') while data != '': iteration += 1 number = float(data) the_sum += 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)
print("Hello let's start the class") class Parents: var1 = 'one' var2 = 'two' class Child(parents): 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)
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)
books_file = 'books.txt' def create_book_table(): with open(books_file, 'w') as file: pass 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 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
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: 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: 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) 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 is_light_on = False def night_hunger(payload): global isLightOn sensor = json.loads(payload) if sensor['occupancy']: if sensor['illuminance'] < 30: lights['printer light'].on = True is_light_on = True log.info('Kitchen_Move>switch lights on') else: log.debug('Kitchen_Move>bright no light needed') elif isLightOn: lights['printer light'].on = False log.info('Kitchen_Move>switch lights off') is_light_on = 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 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 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
class Solution: def max_width_ramp(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)
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)))
""" # 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 """ 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)))
class Lamp: def __init__(self, color): self.color=color self.on=False def state(self): return "The lamp is off." if not self.on else "The lamp is on." def toggle_switch(self): self.on=not self.on
class Lamp: def __init__(self, color): self.color = color self.on = False def state(self): return 'The lamp is off.' if not self.on else 'The lamp is on.' def toggle_switch(self): self.on = not self.on
def test_add(): class Number: def __add__(self, other): return 4 + other def __radd__(self, other): return other + 4 a = Number() assert 3 + a == 7 assert a + 3 == 7 def test_inheritance(): class Node(object): def __init__(self, a, b, c): self.a = a self.b = b self.c = c def add_n(self, n): self.a += n def __repr__(self): value = self.a value = repr(value) return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.b, value) class ChildNode(Node): def __init__(self, a, b, c): self.a = a self.b = b self.c = c class GrandchildNode(ChildNode): d = 101000 node = GrandchildNode(101001, 101002, 101003) x = repr(node) assert x == "GrandchildNode(tag=101002, value=101001)" node.add_n(10000)
def test_add(): class Number: def __add__(self, other): return 4 + other def __radd__(self, other): return other + 4 a = number() assert 3 + a == 7 assert a + 3 == 7 def test_inheritance(): class Node(object): def __init__(self, a, b, c): self.a = a self.b = b self.c = c def add_n(self, n): self.a += n def __repr__(self): value = self.a value = repr(value) return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.b, value) class Childnode(Node): def __init__(self, a, b, c): self.a = a self.b = b self.c = c class Grandchildnode(ChildNode): d = 101000 node = grandchild_node(101001, 101002, 101003) x = repr(node) assert x == 'GrandchildNode(tag=101002, value=101001)' node.add_n(10000)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def diameterOfBinaryTree(self, root: TreeNode) -> int: _, res = self.max_depth(root) return res def max_depth(self, node: TreeNode) -> int: if node is None: return -1, 0 left_depth, left_max = self.max_depth(node.left) right_depth, right_max = self.max_depth(node.right) return max(left_depth, right_depth) + 1, max(left_depth + right_depth + 2, left_max, right_max)
class Solution: def diameter_of_binary_tree(self, root: TreeNode) -> int: (_, res) = self.max_depth(root) return res def max_depth(self, node: TreeNode) -> int: if node is None: return (-1, 0) (left_depth, left_max) = self.max_depth(node.left) (right_depth, right_max) = self.max_depth(node.right) return (max(left_depth, right_depth) + 1, max(left_depth + right_depth + 2, left_max, right_max))
# Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # for use with servo INA adapter board. If measuring via servo V1 this can just # be ignored. clobber_ok added if user wishes to include servo_loc.xml # additionally. inline = """ <map> <name>adc_mux</name> <doc>valid mux values for DUT's two banks of INA219 off PCA9540 ADCs</doc> <params clobber_ok="" none="0" bank0="4" bank1="5"></params> </map> <control> <name>adc_mux</name> <doc>4 to 1 mux to steer remote i2c i2c_mux:rem to two sets of 16 INA219 ADCs. Note they are only on leg0 and leg1</doc> <params clobber_ok="" interface="2" drv="pca9546" child="0x70" map="adc_mux"></params> </control> """ inas = [('ina219', 0x40, 'cpu_gt', 1, 0.002, "loc0", True), ('ina219', 0x41, 'vbat', 7.6, 0.01, "loc0", True), ('ina219', 0x42, 'vdd_lcd', 24, 0.002, "loc0", True), ('ina219', 0x43, 'p1.8v_alw', 1.8, 0.1, "loc0", True), ('ina219', 0x44, 'p1.8v_mem', 1.8, 0.1, "loc0", True), ('ina219', 0x45, 'p1.2v_aux', 1.2, 0.007, "loc0", True), ('ina219', 0x46, 'p3.3v_dsw', 3.3, 0.1, "loc0", True), ('ina219', 0x47, 'p5.0v_alw', 5, 0.015, "loc0", True), ('ina219', 0x48, 'p3.3v_alw', 3.3, 0.018, "loc0", True), ('ina219', 0x49, 'p1.0v_alw', 1, 0.018, "loc0", True), ('ina219', 0x4A, 'vccio', 0.975, 0.018, "loc0", True), ('ina219', 0x4B, 'pch_prim_core', 0.85, 0.015, "loc0", True), ('ina219', 0x4C, 'p3.3v_dsw_usbc', 3.3, 0.1, "loc0", True), ('ina219', 0x4D, 'p3.3v_dx_edp', 3.3, 0.1, "loc0", True), ('ina219', 0x4E, 'cpu_sa', 1, 0.002, "loc0", True), ('ina219', 0x4F, 'cpu_la', 1, 0.002, "loc0", True)]
inline = '\n <map>\n <name>adc_mux</name>\n <doc>valid mux values for DUT\'s two banks of INA219 off PCA9540\n ADCs</doc>\n <params clobber_ok="" none="0" bank0="4" bank1="5"></params>\n </map>\n <control>\n <name>adc_mux</name>\n <doc>4 to 1 mux to steer remote i2c i2c_mux:rem to two sets of\n 16 INA219 ADCs. Note they are only on leg0 and leg1</doc>\n <params clobber_ok="" interface="2" drv="pca9546" child="0x70"\n map="adc_mux"></params>\n </control>\n' inas = [('ina219', 64, 'cpu_gt', 1, 0.002, 'loc0', True), ('ina219', 65, 'vbat', 7.6, 0.01, 'loc0', True), ('ina219', 66, 'vdd_lcd', 24, 0.002, 'loc0', True), ('ina219', 67, 'p1.8v_alw', 1.8, 0.1, 'loc0', True), ('ina219', 68, 'p1.8v_mem', 1.8, 0.1, 'loc0', True), ('ina219', 69, 'p1.2v_aux', 1.2, 0.007, 'loc0', True), ('ina219', 70, 'p3.3v_dsw', 3.3, 0.1, 'loc0', True), ('ina219', 71, 'p5.0v_alw', 5, 0.015, 'loc0', True), ('ina219', 72, 'p3.3v_alw', 3.3, 0.018, 'loc0', True), ('ina219', 73, 'p1.0v_alw', 1, 0.018, 'loc0', True), ('ina219', 74, 'vccio', 0.975, 0.018, 'loc0', True), ('ina219', 75, 'pch_prim_core', 0.85, 0.015, 'loc0', True), ('ina219', 76, 'p3.3v_dsw_usbc', 3.3, 0.1, 'loc0', True), ('ina219', 77, 'p3.3v_dx_edp', 3.3, 0.1, 'loc0', True), ('ina219', 78, 'cpu_sa', 1, 0.002, 'loc0', True), ('ina219', 79, 'cpu_la', 1, 0.002, 'loc0', True)]
response = sm.sendAskYesNo("Would you like to go back to Victoria Island?") if response: if sm.hasQuest(38030): sm.setQRValue(38030, "clear", False) sm.warp(100000000, 23) sm.dispose() sm.warp(104020000, 0)
response = sm.sendAskYesNo('Would you like to go back to Victoria Island?') if response: if sm.hasQuest(38030): sm.setQRValue(38030, 'clear', False) sm.warp(100000000, 23) sm.dispose() sm.warp(104020000, 0)
# Write your solutions for 1.5 here! class superheros: def __init__(self, name, superpower, strength): self.name = name self.superpower = superpower self.strength = strength def gaya(self): print(self.name)
class Superheros: def __init__(self, name, superpower, strength): self.name = name self.superpower = superpower self.strength = strength def gaya(self): print(self.name)
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def kthSmallest(self, root: Optional[TreeNode], k: int) -> int: ordered_list = [] def inorder_traverse(node): nonlocal ordered_list if not node: return if len(ordered_list) >= k: return inorder_traverse(node.left) ordered_list.append(node.val) inorder_traverse(node.right) inorder_traverse(root) return ordered_list[k-1] # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class SolutionConstantSpace: def kthSmallest(self, root: Optional[TreeNode], k: int) -> int: index_num = (-1, 0) def inorder_traverse(node): nonlocal index_num if not node: return # Early interrupt for the traversal index, num = index_num if index == k-1: return inorder_traverse(node.left) index, num = index_num if index < k-1: index_num = index+1, node.val inorder_traverse(node.right) inorder_traverse(root) return index_num[1] # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def kthSmallest(self, root: Optional[TreeNode], k: int) -> int: stack = [] curr_node = root while True: # left first while curr_node: stack.append(curr_node) curr_node = curr_node.left curr_node = stack.pop() k -= 1 if k == 0: return curr_node.val # move on to the right child curr_node = curr_node.right
class Solution: def kth_smallest(self, root: Optional[TreeNode], k: int) -> int: ordered_list = [] def inorder_traverse(node): nonlocal ordered_list if not node: return if len(ordered_list) >= k: return inorder_traverse(node.left) ordered_list.append(node.val) inorder_traverse(node.right) inorder_traverse(root) return ordered_list[k - 1] class Solutionconstantspace: def kth_smallest(self, root: Optional[TreeNode], k: int) -> int: index_num = (-1, 0) def inorder_traverse(node): nonlocal index_num if not node: return (index, num) = index_num if index == k - 1: return inorder_traverse(node.left) (index, num) = index_num if index < k - 1: index_num = (index + 1, node.val) inorder_traverse(node.right) inorder_traverse(root) return index_num[1] class Solution: def kth_smallest(self, root: Optional[TreeNode], k: int) -> int: stack = [] curr_node = root while True: while curr_node: stack.append(curr_node) curr_node = curr_node.left curr_node = stack.pop() k -= 1 if k == 0: return curr_node.val curr_node = curr_node.right
TYPE_MAP = { 0: 'bit', 1: 'u32', 2: 's32', 3: 'float', 'bit': 0, 'u32': 1, 's32': 2, 'float': 3, } class HalType(object): bit = 0 u32 = 1 s32 = 2 float = 3 @classmethod def toString(self, typ): return TYPE_MAP[typ]
type_map = {0: 'bit', 1: 'u32', 2: 's32', 3: 'float', 'bit': 0, 'u32': 1, 's32': 2, 'float': 3} class Haltype(object): bit = 0 u32 = 1 s32 = 2 float = 3 @classmethod def to_string(self, typ): return TYPE_MAP[typ]
# Welcome to the interactive tutorial for PBUnit! Please read the # descriptions and follow the instructions for each example. # # Let's start with writing unit tests and using Projection Boxes: # # 1. Edit the unit test below to use your name and initials. # 2. Click your mouse on each line of code in the function to see how # the Projection Boxes focus on the current line. # 3. Check the Projection Box on the return statement to see if the # test passes. ## initials('Ada Lovelace') == 'AL' def initials(name): parts = name.split(' ') letters = '' for part in parts: letters += part[0] return letters # When you have multiple unit tests, you can select one test by adding # an extra # at the start of the line (turning ## into ###). This will # hide the other tests so you can examine or debug the selected test. # # 1. Find the line for the first test, and add a # at the start of the # line to select it. # 2. Remove a # from the first test, and add a # to the second test. (If # you forget to remove the extra # from the first test, both tests # will be selected, so they will both appear.) # 3. Select only the third test. # 4. Deselect all tests. # 5. Find the two Projection Boxes with the test results in them. The # result of each test is shown on the corresponding return statement. ## factorial(0) == 1 ## factorial(2) == 2 ## factorial(4) == 24 def factorial(n): if n <= 0: return 1 result = 1 for factor in range(2, n + 1): result *= factor return result # If an exception occurs on a certain line, the exception will appear in # that line's Projection Box. # # We can't show the test results on the return statement, because no # return statement is reached. Instead, the test results are shown on # the function header. (This is the line that starts with "def".) # # 1. Check the Projection Box on the function header to identify which # test has an exception. # 2. Find the line where that unit test is written, and select that test # by adding a #. # 3. Use the Projection Boxes to determine why the exception occurs. # 4. Fix the code so that the unit test passes. If you're not sure what # the function should return, refer to the expected value which is # written in the unit test. # 5. Deselect that unit test to make sure the other test still passes. ## average([3, 4, 5]) == 4 ## average([]) == None def average(nums): total = 0 for num in nums: total += num avg = total // len(nums) return avg # Projection Boxes also appear when you call a function from another # function. In this example, the shout_last function calls the shout # function, so we get Projection Boxes in the shout function too. # # 1. Click every line and see if you can figure out where each executed # line comes from. If you're not sure, try selecting each test case. ## shout('oops') == 'OOPS!' def shout(s): uppercase = s.upper() return uppercase + '!' ## shout_last('oh hi') == 'oh HI!' def shout_last(words): split = words.split(' ') split[-1] = shout(split[-1]) return ' '.join(split) # By default, Projection Boxes are not shown on if/elif/else lines. To # show Projection Boxes on these lines as well, add a # at the end of # the line, after the colon. # # 1. Add a # at the end of the if statement, after the colon. This will # show every execution of the if statement. # 2. Why is the body of the if statement never executed? The Projection # Box you just added might be helpful. # 3. How many loop iterations are there? ## only_positive([-1, -5, -3]) == [] def only_positive(nums): positive = [] for num in nums: if num > 0: positive.append(num) return positive # Congratulations! Now you are ready to use PBUnit.
def initials(name): parts = name.split(' ') letters = '' for part in parts: letters += part[0] return letters def factorial(n): if n <= 0: return 1 result = 1 for factor in range(2, n + 1): result *= factor return result def average(nums): total = 0 for num in nums: total += num avg = total // len(nums) return avg def shout(s): uppercase = s.upper() return uppercase + '!' def shout_last(words): split = words.split(' ') split[-1] = shout(split[-1]) return ' '.join(split) def only_positive(nums): positive = [] for num in nums: if num > 0: positive.append(num) return positive
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- MMS_WORKSPACE_API_VERSION = '2018-11-19' MMS_ROUTE_API_VERSION = 'v1.0' MMS_SYNC_TIMEOUT_SECONDS = 80 MMS_SERVICE_VALIDATE_OPERATION_TIMEOUT_SECONDS = 30 MMS_SERVICE_EXIST_CHECK_SYNC_TIMEOUT_SECONDS = 5 MMS_RESOURCE_CHECK_SYNC_TIMEOUT_SECONDS = 15 SUPPORTED_RUNTIMES = { 'spark-py': 'SparkPython', 'python': 'Python', 'python-slim': 'PythonSlim' } UNDOCUMENTED_RUNTIMES = ['python-slim'] CUSTOM_BASE_IMAGE_SUPPORTED_RUNTIMES = { 'python': 'PythonCustom' } WORKSPACE_RP_API_VERSION = '2019-06-01' MAX_HEALTH_CHECK_TRIES = 30 HEALTH_CHECK_INTERVAL_SECONDS = 1 DOCKER_IMAGE_TYPE = "Docker" UNKNOWN_IMAGE_TYPE = "Unknown" WEBAPI_IMAGE_FLAVOR = "WebApiContainer" ACCEL_IMAGE_FLAVOR = "AccelContainer" IOT_IMAGE_FLAVOR = "IoTContainer" UNKNOWN_IMAGE_FLAVOR = "Unknown" CLOUD_DEPLOYABLE_IMAGE_FLAVORS = [WEBAPI_IMAGE_FLAVOR, ACCEL_IMAGE_FLAVOR] SUPPORTED_CUDA_VERSIONS = ["9.0", "9.1", "10.0"] ARCHITECTURE_AMD64 = "amd64" ARCHITECTURE_ARM32V7 = "arm32v7" ACI_WEBSERVICE_TYPE = "ACI" AKS_WEBSERVICE_TYPE = "AKS" AKS_ENDPOINT_TYPE = "AKSENDPOINT" SERVICE_REQUEST_OPERATION_CREATE = "Create" SERVICE_REQUEST_OPERATION_UPDATE = "Update" SERVICE_REQUEST_OPERATION_DELETE = "Delete" AKS_ENDPOINT_DELETE_VERSION = "deleteversion" AKS_ENDPOINT_CREATE_VERSION = "createversion" AKS_ENDPOINT_UPDATE_VERSION = "updateversion" COMPUTE_TYPE_KEY = "computeType" LOCAL_WEBSERVICE_TYPE = "Local" UNKNOWN_WEBSERVICE_TYPE = "Unknown" CLI_METADATA_FILE_WORKSPACE_KEY = 'workspaceName' CLI_METADATA_FILE_RG_KEY = 'resourceGroupName' MODEL_METADATA_FILE_ID_KEY = 'modelId' IMAGE_METADATA_FILE_ID_KEY = 'imageId' DOCKER_IMAGE_HTTP_PORT = 5001 DOCKER_IMAGE_MQTT_PORT = 8883 RUN_METADATA_EXPERIMENT_NAME_KEY = '_experiment_name' RUN_METADATA_RUN_ID_KEY = 'run_id' PROFILE_METADATA_CPU_KEY = "cpu" PROFILE_METADATA_MEMORY_KEY = "memoryInGB" PROFILE_PARTIAL_SUCCESS_MESSAGE = 'Model Profiling operation completed, but encountered issues ' +\ 'during execution: %s Inspect ModelProfile.error property for more information.' PROFILE_FAILURE_MESSAGE = 'Model Profiling operation failed with the following error: %s Request ID: %s. ' +\ 'Inspect ModelProfile.error property for more information.' DATASET_SNAPSHOT_ID_FORMAT = '/datasetId/{dataset_id}/datasetSnapshotName/{dataset_snapshot_name}' DOCKER_IMAGE_APP_ROOT_DIR = '/var/azureml-app' IOT_WEBSERVICE_TYPE = "IOT" MIR_WEBSERVICE_TYPE = "MIR" MODEL_PACKAGE_ASSETS_DIR = 'azureml-app' MODEL_PACKAGE_MODELS_DIR = 'azureml-models' # Kubernetes namespaces must be valid lowercase DNS labels. # Ref: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md NAMESPACE_REGEX = '^[a-z0-9]([a-z0-9-]{,61}[a-z0-9])?$' WEBSERVICE_SCORE_PATH = '/score' WEBSERVICE_SWAGGER_PATH = '/swagger.json' ALL_WEBSERVICE_TYPES = [ACI_WEBSERVICE_TYPE, AKS_ENDPOINT_TYPE, AKS_WEBSERVICE_TYPE, IOT_WEBSERVICE_TYPE, MIR_WEBSERVICE_TYPE] HOW_TO_USE_ENVIRONMENTS_DOC_URL = "https://docs.microsoft.com/azure/machine-learning/how-to-use-environments" # Blob storage allows 10 minutes/megabyte. Add a bit for overhead, and to make sure we don't give up first. # Ref: https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations ASSET_ARTIFACTS_UPLOAD_TIMEOUT_SECONDS_PER_BYTE = 1.1 * (10 * 60) / (1000 * 1000)
mms_workspace_api_version = '2018-11-19' mms_route_api_version = 'v1.0' mms_sync_timeout_seconds = 80 mms_service_validate_operation_timeout_seconds = 30 mms_service_exist_check_sync_timeout_seconds = 5 mms_resource_check_sync_timeout_seconds = 15 supported_runtimes = {'spark-py': 'SparkPython', 'python': 'Python', 'python-slim': 'PythonSlim'} undocumented_runtimes = ['python-slim'] custom_base_image_supported_runtimes = {'python': 'PythonCustom'} workspace_rp_api_version = '2019-06-01' max_health_check_tries = 30 health_check_interval_seconds = 1 docker_image_type = 'Docker' unknown_image_type = 'Unknown' webapi_image_flavor = 'WebApiContainer' accel_image_flavor = 'AccelContainer' iot_image_flavor = 'IoTContainer' unknown_image_flavor = 'Unknown' cloud_deployable_image_flavors = [WEBAPI_IMAGE_FLAVOR, ACCEL_IMAGE_FLAVOR] supported_cuda_versions = ['9.0', '9.1', '10.0'] architecture_amd64 = 'amd64' architecture_arm32_v7 = 'arm32v7' aci_webservice_type = 'ACI' aks_webservice_type = 'AKS' aks_endpoint_type = 'AKSENDPOINT' service_request_operation_create = 'Create' service_request_operation_update = 'Update' service_request_operation_delete = 'Delete' aks_endpoint_delete_version = 'deleteversion' aks_endpoint_create_version = 'createversion' aks_endpoint_update_version = 'updateversion' compute_type_key = 'computeType' local_webservice_type = 'Local' unknown_webservice_type = 'Unknown' cli_metadata_file_workspace_key = 'workspaceName' cli_metadata_file_rg_key = 'resourceGroupName' model_metadata_file_id_key = 'modelId' image_metadata_file_id_key = 'imageId' docker_image_http_port = 5001 docker_image_mqtt_port = 8883 run_metadata_experiment_name_key = '_experiment_name' run_metadata_run_id_key = 'run_id' profile_metadata_cpu_key = 'cpu' profile_metadata_memory_key = 'memoryInGB' profile_partial_success_message = 'Model Profiling operation completed, but encountered issues ' + 'during execution: %s Inspect ModelProfile.error property for more information.' profile_failure_message = 'Model Profiling operation failed with the following error: %s Request ID: %s. ' + 'Inspect ModelProfile.error property for more information.' dataset_snapshot_id_format = '/datasetId/{dataset_id}/datasetSnapshotName/{dataset_snapshot_name}' docker_image_app_root_dir = '/var/azureml-app' iot_webservice_type = 'IOT' mir_webservice_type = 'MIR' model_package_assets_dir = 'azureml-app' model_package_models_dir = 'azureml-models' namespace_regex = '^[a-z0-9]([a-z0-9-]{,61}[a-z0-9])?$' webservice_score_path = '/score' webservice_swagger_path = '/swagger.json' all_webservice_types = [ACI_WEBSERVICE_TYPE, AKS_ENDPOINT_TYPE, AKS_WEBSERVICE_TYPE, IOT_WEBSERVICE_TYPE, MIR_WEBSERVICE_TYPE] how_to_use_environments_doc_url = 'https://docs.microsoft.com/azure/machine-learning/how-to-use-environments' asset_artifacts_upload_timeout_seconds_per_byte = 1.1 * (10 * 60) / (1000 * 1000)
class LinkedListTreeTraversal: def __init__(self, data): self.tree = data # bfsTraversal is a recursive version of bfs traversal def bfsTraversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) path = self.bfsTraversalUtil(queue, path) return path # bfsTraversalUtil recursively calls itself to find a bfs traversal path def bfsTraversalUtil(self, queue, path): if len(queue) == 0: return [] currNode = queue[0] path.append(currNode) queue = queue[1:] childrenIndices = (currNode.left, currNode.right) queue.extend( [childNode for childNode in childrenIndices if childNode]) self.bfsTraversalUtil(queue, path) return path # dfsTraversal calls appropriate recursive pre, in or post order traversal's util function def dfsTraversal(self, order): root = self.tree stack = [] path = [] if self.tree == None: return [] stack.append(root) if order == 'pre': path = self.traversePre(path, self.tree) elif order == 'in': path = self.traverseIn(path, self.tree) elif order == 'post': path = self.traversePost(path, self.tree) return path # parent left right # TraversePre is a recursive version of dfs pre-order traversal def traversePre(self, path, node): if node: path.append(node) path = self.traversePre(path, node.left) path = self.traversePre(path, node.right) return path # left parent right # TraverseIn is a recursive version of dfs in-order traversal def traverseIn(self, path, node): if node: path = self.traverseIn(path, node.left) path.append(node) path = self.traverseIn(path, node.right) return path # left right parent # TraversePost is a recursive version of dfs post-order traversal def traversePost(self, path, node): if node: path = self.traversePost(path, node.left) path = self.traversePost(path, node.right) path.append(node) return path # iteratvieBfsTraversal is an itervative version of bfs traversal def iterativeBfsTraversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) while len(queue) != 0: currNode = queue[0] path.append(currNode) queue = queue[1:] childrenIndices = (currNode.left, currNode.right) queue.extend( [childNode for childNode in childrenIndices if childNode]) return path # parent left right # itervativeDfsPreOrderTraversal is iterative version of dfs pre-order traversal def iterativeDfsPreOrderTraversal(self): stack = [] root = self.tree path = [] if self.tree == None: return [] stack.append(root) while len(stack) != 0: currNode = stack[len(stack)-1] path.append(currNode) stack = stack[:len(stack)-1] childrenIndices = (currNode.right, currNode.left) stack.extend( [childNode for childNode in childrenIndices if childNode]) return path # left parent right # iterativeDfsInOrderTraversal is iterative version of dfs in-order traversal def iterativeDfsInOrderTraversal(self): stack = [] path = [] currNode = self.tree while True: while currNode != None: stack.append(currNode) currNode = currNode.left if currNode == None and len(stack) != 0: node = stack[len(stack)-1] stack = stack[:len(stack)-1] path.append(node) currNode = node.right if currNode == None and len(stack) == 0: break return path # left right parent # iterativeDfsPostOrderTraversal is iterative version of dfs post-order traversal def iterativeDfsPostOrderTraversal(self): stack = [] path = [] currNode = self.tree while True: while currNode != None: (leftChildNode, rightChildNode) = ( currNode.left, currNode.right) if rightChildNode: stack.append(rightChildNode) stack.append(currNode) currNode = leftChildNode currNode = stack[len(stack)-1] stack = stack[:len(stack)-1] (leftChildNode, rightChildNode) = (currNode.left, currNode.right) if rightChildNode and len(stack) != 0 and stack[len(stack)-1] == rightChildNode: stack = stack[:len(stack)-1] stack.append(currNode) currNode = rightChildNode else: path.append(currNode) currNode = None if len(stack) == 0: break return path # References: # Algorithms for iterative in-order traversal: https://www.geeksforgeeks.org/inorder-tree-traversal-without-recursion/ # Algorithm for iterative post-order traversal: https://www.geeksforgeeks.org/iterative-postorder-traversal-using-stack/
class Linkedlisttreetraversal: def __init__(self, data): self.tree = data def bfs_traversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) path = self.bfsTraversalUtil(queue, path) return path def bfs_traversal_util(self, queue, path): if len(queue) == 0: return [] curr_node = queue[0] path.append(currNode) queue = queue[1:] children_indices = (currNode.left, currNode.right) queue.extend([childNode for child_node in childrenIndices if childNode]) self.bfsTraversalUtil(queue, path) return path def dfs_traversal(self, order): root = self.tree stack = [] path = [] if self.tree == None: return [] stack.append(root) if order == 'pre': path = self.traversePre(path, self.tree) elif order == 'in': path = self.traverseIn(path, self.tree) elif order == 'post': path = self.traversePost(path, self.tree) return path def traverse_pre(self, path, node): if node: path.append(node) path = self.traversePre(path, node.left) path = self.traversePre(path, node.right) return path def traverse_in(self, path, node): if node: path = self.traverseIn(path, node.left) path.append(node) path = self.traverseIn(path, node.right) return path def traverse_post(self, path, node): if node: path = self.traversePost(path, node.left) path = self.traversePost(path, node.right) path.append(node) return path def iterative_bfs_traversal(self): root = self.tree queue = [] path = [] if self.tree == None: return [] queue.append(root) while len(queue) != 0: curr_node = queue[0] path.append(currNode) queue = queue[1:] children_indices = (currNode.left, currNode.right) queue.extend([childNode for child_node in childrenIndices if childNode]) return path def iterative_dfs_pre_order_traversal(self): stack = [] root = self.tree path = [] if self.tree == None: return [] stack.append(root) while len(stack) != 0: curr_node = stack[len(stack) - 1] path.append(currNode) stack = stack[:len(stack) - 1] children_indices = (currNode.right, currNode.left) stack.extend([childNode for child_node in childrenIndices if childNode]) return path def iterative_dfs_in_order_traversal(self): stack = [] path = [] curr_node = self.tree while True: while currNode != None: stack.append(currNode) curr_node = currNode.left if currNode == None and len(stack) != 0: node = stack[len(stack) - 1] stack = stack[:len(stack) - 1] path.append(node) curr_node = node.right if currNode == None and len(stack) == 0: break return path def iterative_dfs_post_order_traversal(self): stack = [] path = [] curr_node = self.tree while True: while currNode != None: (left_child_node, right_child_node) = (currNode.left, currNode.right) if rightChildNode: stack.append(rightChildNode) stack.append(currNode) curr_node = leftChildNode curr_node = stack[len(stack) - 1] stack = stack[:len(stack) - 1] (left_child_node, right_child_node) = (currNode.left, currNode.right) if rightChildNode and len(stack) != 0 and (stack[len(stack) - 1] == rightChildNode): stack = stack[:len(stack) - 1] stack.append(currNode) curr_node = rightChildNode else: path.append(currNode) curr_node = None if len(stack) == 0: break return path
# # 258. Add Digits # # Q: https://leetcode.com/problems/add-digits/ # A: https://leetcode.com/problems/add-digits/discuss/756944/Javascript-Python3-C%2B%2B-1-Liners # # using reduce() to accumulate the digits of x class Solution: def addDigits(self, x: int) -> int: return x if x < 10 else self.addDigits(reduce(lambda a, b: a + b, map(lambda s: int(s), str(x)))) # using sum() to accumulate the digits of x class Solution: def addDigits(self, x: int) -> int: return x if x < 10 else self.addDigits(sum(map(lambda c: int(c), str(x))))
class Solution: def add_digits(self, x: int) -> int: return x if x < 10 else self.addDigits(reduce(lambda a, b: a + b, map(lambda s: int(s), str(x)))) class Solution: def add_digits(self, x: int) -> int: return x if x < 10 else self.addDigits(sum(map(lambda c: int(c), str(x))))
#!/usr/bin/env python3 class Cavern: def __init__(self, mapstring): self.mapstring = mapstring self.initialize(mapstring) def initialize(self, mapstring, elf_attack = 3): self.walls = set() self.units = {} self.elf_initial = 0 for y, line in enumerate(mapstring.split('\n')): for x, c in enumerate(line): if c == '#': self.walls.add((y, x)) if c == 'E': self.units[(y, x)] = Unit(y, x, c, self, elf_attack) self.elf_initial += 1 if c == 'G': self.units[(y, x)] = Unit(y, x, c, self) self.height, self.width = y + 1, x + 1 self.round = 0 def neighbours(self, position): y, x = position direct = set([(y - 1, x), (y, x - 1), (y, x + 1), (y + 1, x)]) return sorted(direct - self.walls) def remaining(self, race): return [u for u in self.units.values() if u.race == race] def path(self, start, targets): visited = {n:(n,) for n in self.neighbours(start) if n not in self.units} depth = 1 def current_depth(): return [k for k, v in visited.items() if len(v) == depth] while True: reached = set(visited.keys()) & targets if reached: return sorted([visited[k] for k in reached])[0] for position in current_depth(): for n_position in self.neighbours(position): if n_position not in self.units and n_position not in visited: visited[n_position] = visited[position] + (n_position,) depth += 1 if not current_depth(): return None def run(self): while True: for unit in sorted(self.units.values(), key = lambda x: x.position): unit.do_action() if not self.remaining('E') or not self.remaining('G'): return self.round += 1 def run_elf_deathless(self): while True: for unit in sorted(self.units.values(), key = lambda x: x.position): unit.do_action() if len(self.remaining('E')) < self.elf_initial: return False if not self.remaining('G'): return True self.round += 1 def outcome(self): remaining_hp = sum(u.hp for u in self.units.values()) return remaining_hp, self.round, remaining_hp*self.round class Unit: def __init__(self, y, x, race, cavern, attack = 3): self.y = y self.x = x self.race = race self.enemy_race = {'E':'G', 'G':'E'}[race] self.cavern = cavern self.attack = attack self.hp = 200 @property def position(self): return (self.y, self.x) def move(self, new_position): del self.cavern.units[self.position] self.y, self.x = new_position self.cavern.units[new_position] = self @property def neighbours(self): return self.cavern.neighbours(self.position) def neighbouring_enemies(self): enemies = [] for n in self.neighbours: try: if self.cavern.units[n].race == self.enemy_race: enemies.append(self.cavern.units[n]) except KeyError: pass return sorted(enemies, key = lambda x: x.hp) def do_action(self): if self.hp <= 0: return if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return enemy_adjacent = set() for enemy in self.cavern.remaining(self.enemy_race): enemy_adjacent.update([p for p in enemy.neighbours if p not in self.cavern.units]) if not enemy_adjacent: return path = self.cavern.path(self.position, enemy_adjacent) if path is None: return self.move(path[0]) if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return def fight(self, enemy): enemy.hp -= self.attack if enemy.hp <= 0: del self.cavern.units[enemy.position] if __name__ == '__main__': with open('input', 'r') as f: cavern = Cavern(f.read()) cavern.run() # part 1 print(cavern.outcome()[2]) # part 2 elf_attack = 3 while True: elf_attack += 1 cavern.initialize(cavern.mapstring, elf_attack) if cavern.run_elf_deathless(): print(cavern.outcome()[2]) break
class Cavern: def __init__(self, mapstring): self.mapstring = mapstring self.initialize(mapstring) def initialize(self, mapstring, elf_attack=3): self.walls = set() self.units = {} self.elf_initial = 0 for (y, line) in enumerate(mapstring.split('\n')): for (x, c) in enumerate(line): if c == '#': self.walls.add((y, x)) if c == 'E': self.units[y, x] = unit(y, x, c, self, elf_attack) self.elf_initial += 1 if c == 'G': self.units[y, x] = unit(y, x, c, self) (self.height, self.width) = (y + 1, x + 1) self.round = 0 def neighbours(self, position): (y, x) = position direct = set([(y - 1, x), (y, x - 1), (y, x + 1), (y + 1, x)]) return sorted(direct - self.walls) def remaining(self, race): return [u for u in self.units.values() if u.race == race] def path(self, start, targets): visited = {n: (n,) for n in self.neighbours(start) if n not in self.units} depth = 1 def current_depth(): return [k for (k, v) in visited.items() if len(v) == depth] while True: reached = set(visited.keys()) & targets if reached: return sorted([visited[k] for k in reached])[0] for position in current_depth(): for n_position in self.neighbours(position): if n_position not in self.units and n_position not in visited: visited[n_position] = visited[position] + (n_position,) depth += 1 if not current_depth(): return None def run(self): while True: for unit in sorted(self.units.values(), key=lambda x: x.position): unit.do_action() if not self.remaining('E') or not self.remaining('G'): return self.round += 1 def run_elf_deathless(self): while True: for unit in sorted(self.units.values(), key=lambda x: x.position): unit.do_action() if len(self.remaining('E')) < self.elf_initial: return False if not self.remaining('G'): return True self.round += 1 def outcome(self): remaining_hp = sum((u.hp for u in self.units.values())) return (remaining_hp, self.round, remaining_hp * self.round) class Unit: def __init__(self, y, x, race, cavern, attack=3): self.y = y self.x = x self.race = race self.enemy_race = {'E': 'G', 'G': 'E'}[race] self.cavern = cavern self.attack = attack self.hp = 200 @property def position(self): return (self.y, self.x) def move(self, new_position): del self.cavern.units[self.position] (self.y, self.x) = new_position self.cavern.units[new_position] = self @property def neighbours(self): return self.cavern.neighbours(self.position) def neighbouring_enemies(self): enemies = [] for n in self.neighbours: try: if self.cavern.units[n].race == self.enemy_race: enemies.append(self.cavern.units[n]) except KeyError: pass return sorted(enemies, key=lambda x: x.hp) def do_action(self): if self.hp <= 0: return if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return enemy_adjacent = set() for enemy in self.cavern.remaining(self.enemy_race): enemy_adjacent.update([p for p in enemy.neighbours if p not in self.cavern.units]) if not enemy_adjacent: return path = self.cavern.path(self.position, enemy_adjacent) if path is None: return self.move(path[0]) if self.neighbouring_enemies(): self.fight(self.neighbouring_enemies()[0]) return def fight(self, enemy): enemy.hp -= self.attack if enemy.hp <= 0: del self.cavern.units[enemy.position] if __name__ == '__main__': with open('input', 'r') as f: cavern = cavern(f.read()) cavern.run() print(cavern.outcome()[2]) elf_attack = 3 while True: elf_attack += 1 cavern.initialize(cavern.mapstring, elf_attack) if cavern.run_elf_deathless(): print(cavern.outcome()[2]) break
ROLE_METHODS = { 'google.iam.admin.v1.CreateRole', 'google.iam.admin.v1.DeleteRole', 'google.iam.admin.v1.UpdateRole' } def rule(event): return (event['resource'].get('type') == 'iam_role' and event['protoPayload'].get('methodName') in ROLE_METHODS) def dedup(event): return event['resource'].get('labels', {}).get('project_id', '<PROJECT_NOT_FOUND>')
role_methods = {'google.iam.admin.v1.CreateRole', 'google.iam.admin.v1.DeleteRole', 'google.iam.admin.v1.UpdateRole'} def rule(event): return event['resource'].get('type') == 'iam_role' and event['protoPayload'].get('methodName') in ROLE_METHODS def dedup(event): return event['resource'].get('labels', {}).get('project_id', '<PROJECT_NOT_FOUND>')
# -*- coding: utf-8 -*- # Common constants for submit SUBMIT_RESPONSE_ERROR = 'CERR' SUBMIT_RESPONSE_OK = 'OK' SUBMIT_RESPONSE_PROTOCOL_CORRUPTED = 'PROTCOR'
submit_response_error = 'CERR' submit_response_ok = 'OK' submit_response_protocol_corrupted = 'PROTCOR'
class DateTime(object,IComparable,IFormattable,IConvertible,ISerializable,IComparable[DateTime],IEquatable[DateTime]): """ Represents an instant in time,typically expressed as a date and time of day. DateTime(ticks: Int64) DateTime(ticks: Int64,kind: DateTimeKind) DateTime(year: int,month: int,day: int) DateTime(year: int,month: int,day: int,calendar: Calendar) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,kind: DateTimeKind) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,calendar: Calendar) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,kind: DateTimeKind) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar,kind: DateTimeKind) """ def Add(self,value): """ Add(self: DateTime,value: TimeSpan) -> DateTime Returns a new System.DateTime that adds the value of the specified System.TimeSpan to the value of this instance. value: A positive or negative time interval. Returns: An object whose value is the sum of the date and time represented by this instance and the time interval represented by value. """ pass def AddDays(self,value): """ AddDays(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of days to the value of this instance. value: A number of whole and fractional days. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of days represented by value. """ pass def AddHours(self,value): """ AddHours(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of hours to the value of this instance. value: A number of whole and fractional hours. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of hours represented by value. """ pass def AddMilliseconds(self,value): """ AddMilliseconds(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of milliseconds to the value of this instance. value: A number of whole and fractional milliseconds. The value parameter can be negative or positive. Note that this value is rounded to the nearest integer. Returns: An object whose value is the sum of the date and time represented by this instance and the number of milliseconds represented by value. """ pass def AddMinutes(self,value): """ AddMinutes(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of minutes to the value of this instance. value: A number of whole and fractional minutes. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of minutes represented by value. """ pass def AddMonths(self,months): """ AddMonths(self: DateTime,months: int) -> DateTime Returns a new System.DateTime that adds the specified number of months to the value of this instance. months: A number of months. The months parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and months. """ pass def AddSeconds(self,value): """ AddSeconds(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of seconds to the value of this instance. value: A number of whole and fractional seconds. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of seconds represented by value. """ pass def AddTicks(self,value): """ AddTicks(self: DateTime,value: Int64) -> DateTime Returns a new System.DateTime that adds the specified number of ticks to the value of this instance. value: A number of 100-nanosecond ticks. The value parameter can be positive or negative. Returns: An object whose value is the sum of the date and time represented by this instance and the time represented by value. """ pass def AddYears(self,value): """ AddYears(self: DateTime,value: int) -> DateTime Returns a new System.DateTime that adds the specified number of years to the value of this instance. value: A number of years. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of years represented by value. """ pass @staticmethod def Compare(t1,t2): """ Compare(t1: DateTime,t2: DateTime) -> int Compares two instances of System.DateTime and returns an integer that indicates whether the first instance is earlier than,the same as,or later than the second instance. t1: The first object to compare. t2: The second object to compare. Returns: A signed number indicating the relative values of t1 and t2.Value Type Condition Less than zero t1 is earlier than t2. Zero t1 is the same as t2. Greater than zero t1 is later than t2. """ pass def CompareTo(self,value): """ CompareTo(self: DateTime,value: DateTime) -> int Compares the value of this instance to a specified System.DateTime value and returns an integer that indicates whether this instance is earlier than,the same as,or later than the specified System.DateTime value. value: The object to compare to the current instance. Returns: A signed number indicating the relative values of this instance and the value parameter.Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value. CompareTo(self: DateTime,value: object) -> int Compares the value of this instance to a specified object that contains a specified System.DateTime value,and returns an integer that indicates whether this instance is earlier than,the same as,or later than the specified System.DateTime value. value: A boxed object to compare,or null. Returns: A signed number indicating the relative values of this instance and value.Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value,or value is null. """ pass @staticmethod def DaysInMonth(year,month): """ DaysInMonth(year: int,month: int) -> int Returns the number of days in the specified month and year. year: The year. month: The month (a number ranging from 1 to 12). Returns: The number of days in month for the specified year.For example,if month equals 2 for February, the return value is 28 or 29 depending upon whether year is a leap year. """ pass def Equals(self,*__args): """ Equals(t1: DateTime,t2: DateTime) -> bool Returns a value indicating whether two System.DateTime instances have the same date and time value. t1: The first object to compare. t2: The second object to compare. Returns: true if the two values are equal; otherwise,false. Equals(self: DateTime,value: DateTime) -> bool Returns a value indicating whether the value of this instance is equal to the value of the specified System.DateTime instance. value: The object to compare to this instance. Returns: true if the value parameter equals the value of this instance; otherwise,false. Equals(self: DateTime,value: object) -> bool Returns a value indicating whether this instance is equal to a specified object. value: The object to compare to this instance. Returns: true if value is an instance of System.DateTime and equals the value of this instance; otherwise,false. """ pass @staticmethod def FromBinary(dateData): """ FromBinary(dateData: Int64) -> DateTime Deserializes a 64-bit binary value and recreates an original serialized System.DateTime object. dateData: A 64-bit signed integer that encodes the System.DateTime.Kind property in a 2-bit field and the System.DateTime.Ticks property in a 62-bit field. Returns: An object that is equivalent to the System.DateTime object that was serialized by the System.DateTime.ToBinary method. """ pass @staticmethod def FromFileTime(fileTime): """ FromFileTime(fileTime: Int64) -> DateTime Converts the specified Windows file time to an equivalent local time. fileTime: A Windows file time expressed in ticks. Returns: An object that represents the local time equivalent of the date and time represented by the fileTime parameter. """ pass @staticmethod def FromFileTimeUtc(fileTime): """ FromFileTimeUtc(fileTime: Int64) -> DateTime Converts the specified Windows file time to an equivalent UTC time. fileTime: A Windows file time expressed in ticks. Returns: An object that represents the UTC time equivalent of the date and time represented by the fileTime parameter. """ pass @staticmethod def FromOADate(d): """ FromOADate(d: float) -> DateTime Returns a System.DateTime equivalent to the specified OLE Automation Date. d: An OLE Automation Date value. Returns: An object that represents the same date and time as d. """ pass def GetDateTimeFormats(self,*__args): """ GetDateTimeFormats(self: DateTime,format: Char) -> Array[str] Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier. format: A standard date and time format string (see Remarks). Returns: A string array where each element is the representation of the value of this instance formatted with the format standard date and time format specifier. GetDateTimeFormats(self: DateTime,format: Char,provider: IFormatProvider) -> Array[str] Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier and culture-specific formatting information. format: A date and time format string (see Remarks). provider: An object that supplies culture-specific formatting information about this instance. Returns: A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers. GetDateTimeFormats(self: DateTime) -> Array[str] Converts the value of this instance to all the string representations supported by the standard date and time format specifiers. Returns: A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers. GetDateTimeFormats(self: DateTime,provider: IFormatProvider) -> Array[str] Converts the value of this instance to all the string representations supported by the standard date and time format specifiers and the specified culture-specific formatting information. provider: An object that supplies culture-specific formatting information about this instance. Returns: A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers. """ pass def GetHashCode(self): """ GetHashCode(self: DateTime) -> int Returns the hash code for this instance. Returns: A 32-bit signed integer hash code. """ pass def GetTypeCode(self): """ GetTypeCode(self: DateTime) -> TypeCode Returns the System.TypeCode for value type System.DateTime. Returns: The enumerated constant,System.TypeCode.DateTime. """ pass def IsDaylightSavingTime(self): """ IsDaylightSavingTime(self: DateTime) -> bool Indicates whether this instance of System.DateTime is within the daylight saving time range for the current time zone. Returns: true if System.DateTime.Kind is System.DateTimeKind.Local or System.DateTimeKind.Unspecified and the value of this instance of System.DateTime is within the daylight saving time range for the current time zone. false if System.DateTime.Kind is System.DateTimeKind.Utc. """ pass @staticmethod def IsLeapYear(year): """ IsLeapYear(year: int) -> bool Returns an indication whether the specified year is a leap year. year: A 4-digit year. Returns: true if year is a leap year; otherwise,false. """ pass @staticmethod def Parse(s,provider=None,styles=None): """ Parse(s: str,provider: IFormatProvider,styles: DateTimeStyles) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified culture-specific format information and formatting style. s: A string containing a date and time to convert. provider: An object that supplies culture-specific formatting information about s. styles: A bitwise combination of the enumeration values that indicates the style elements that can be present in s for the parse operation to succeed and that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: An object that is equivalent to the date and time contained in s,as specified by provider and styles. Parse(s: str,provider: IFormatProvider) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified culture-specific format information. s: A string containing a date and time to convert. provider: An object that supplies culture-specific format information about s. Returns: An object that is equivalent to the date and time contained in s as specified by provider. Parse(s: str) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent. s: A string containing a date and time to convert. Returns: An object that is equivalent to the date and time contained in s. """ pass @staticmethod def ParseExact(s,*__args): """ ParseExact(s: str,formats: Array[str],provider: IFormatProvider,style: DateTimeStyles) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified array of formats,culture-specific format information,and style. The format of the string representation must match at least one of the specified formats exactly or an exception is thrown. s: A string containing one or more dates and times to convert. formats: An array of allowable formats of s. provider: An object that supplies culture-specific format information about s. style: A bitwise combination of enumeration values that indicates the permitted format of s. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: An object that is equivalent to the date and time contained in s,as specified by formats, provider,and style. ParseExact(s: str,format: str,provider: IFormatProvider,style: DateTimeStyles) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified format,culture-specific format information,and style. The format of the string representation must match the specified format exactly or an exception is thrown. s: A string containing a date and time to convert. format: A format specifier that defines the required format of s. provider: An object that supplies culture-specific formatting information about s. style: A bitwise combination of the enumeration values that provides additional information about s, about style elements that may be present in s,or about the conversion from s to a System.DateTime value. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: An object that is equivalent to the date and time contained in s,as specified by format, provider,and style. ParseExact(s: str,format: str,provider: IFormatProvider) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified format and culture-specific format information. The format of the string representation must match the specified format exactly. s: A string that contains a date and time to convert. format: A format specifier that defines the required format of s. provider: An object that supplies culture-specific format information about s. Returns: An object that is equivalent to the date and time contained in s,as specified by format and provider. """ pass @staticmethod def SpecifyKind(value,kind): """ SpecifyKind(value: DateTime,kind: DateTimeKind) -> DateTime Creates a new System.DateTime object that has the same number of ticks as the specified System.DateTime,but is designated as either local time,Coordinated Universal Time (UTC),or neither,as indicated by the specified System.DateTimeKind value. value: A date and time. kind: One of the enumeration values that indicates whether the new object represents local time,UTC, or neither. Returns: A new object that has the same number of ticks as the object represented by the value parameter and the System.DateTimeKind value specified by the kind parameter. """ pass def Subtract(self,value): """ Subtract(self: DateTime,value: TimeSpan) -> DateTime Subtracts the specified duration from this instance. value: The time interval to subtract. Returns: An object that is equal to the date and time represented by this instance minus the time interval represented by value. Subtract(self: DateTime,value: DateTime) -> TimeSpan Subtracts the specified date and time from this instance. value: The date and time value to subtract. Returns: A time interval that is equal to the date and time represented by this instance minus the date and time represented by value. """ pass def ToBinary(self): """ ToBinary(self: DateTime) -> Int64 Serializes the current System.DateTime object to a 64-bit binary value that subsequently can be used to recreate the System.DateTime object. Returns: A 64-bit signed integer that encodes the System.DateTime.Kind and System.DateTime.Ticks properties. """ pass def ToFileTime(self): """ ToFileTime(self: DateTime) -> Int64 Converts the value of the current System.DateTime object to a Windows file time. Returns: The value of the current System.DateTime object expressed as a Windows file time. """ pass def ToFileTimeUtc(self): """ ToFileTimeUtc(self: DateTime) -> Int64 Converts the value of the current System.DateTime object to a Windows file time. Returns: The value of the current System.DateTime object expressed as a Windows file time. """ pass def ToLocalTime(self): """ ToLocalTime(self: DateTime) -> DateTime Converts the value of the current System.DateTime object to local time. Returns: An object whose System.DateTime.Kind property is System.DateTimeKind.Local,and whose value is the local time equivalent to the value of the current System.DateTime object,or System.DateTime.MaxValue if the converted value is too large to be represented by a System.DateTime object,or System.DateTime.MinValue if the converted value is too small to be represented as a System.DateTime object. """ pass def ToLongDateString(self): """ ToLongDateString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent long date string representation. Returns: A string that contains the long date string representation of the current System.DateTime object. """ pass def ToLongTimeString(self): """ ToLongTimeString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent long time string representation. Returns: A string that contains the long time string representation of the current System.DateTime object. """ pass def ToOADate(self): """ ToOADate(self: DateTime) -> float Converts the value of this instance to the equivalent OLE Automation date. Returns: A double-precision floating-point number that contains an OLE Automation date equivalent to the value of this instance. """ pass def ToShortDateString(self): """ ToShortDateString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent short date string representation. Returns: A string that contains the short date string representation of the current System.DateTime object. """ pass def ToShortTimeString(self): """ ToShortTimeString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent short time string representation. Returns: A string that contains the short time string representation of the current System.DateTime object. """ pass def ToString(self,*__args): """ ToString(self: DateTime,provider: IFormatProvider) -> str Converts the value of the current System.DateTime object to its equivalent string representation using the specified culture-specific format information. provider: An object that supplies culture-specific formatting information. Returns: A string representation of value of the current System.DateTime object as specified by provider. ToString(self: DateTime,format: str,provider: IFormatProvider) -> str Converts the value of the current System.DateTime object to its equivalent string representation using the specified format and culture-specific format information. format: A standard or custom date and time format string. provider: An object that supplies culture-specific formatting information. Returns: A string representation of value of the current System.DateTime object as specified by format and provider. ToString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent string representation. Returns: A string representation of the value of the current System.DateTime object. ToString(self: DateTime,format: str) -> str Converts the value of the current System.DateTime object to its equivalent string representation using the specified format. format: A standard or custom date and time format string (see Remarks). Returns: A string representation of value of the current System.DateTime object as specified by format. """ pass def ToUniversalTime(self): """ ToUniversalTime(self: DateTime) -> DateTime Converts the value of the current System.DateTime object to Coordinated Universal Time (UTC). Returns: An object whose System.DateTime.Kind property is System.DateTimeKind.Utc,and whose value is the UTC equivalent to the value of the current System.DateTime object,or System.DateTime.MaxValue if the converted value is too large to be represented by a System.DateTime object,or System.DateTime.MinValue if the converted value is too small to be represented by a System.DateTime object. """ pass @staticmethod def TryParse(s,*__args): """ TryParse(s: str,provider: IFormatProvider,styles: DateTimeStyles) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified culture-specific format information and formatting style,and returns a value that indicates whether the conversion succeeded. s: A string containing a date and time to convert. provider: An object that supplies culture-specific formatting information about s. styles: A bitwise combination of enumeration values that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: true if the s parameter was converted successfully; otherwise,false. TryParse(s: str) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent and returns a value that indicates whether the conversion succeeded. s: A string containing a date and time to convert. Returns: true if the s parameter was converted successfully; otherwise,false. """ pass @staticmethod def TryParseExact(s,*__args): """ TryParseExact(s: str,formats: Array[str],provider: IFormatProvider,style: DateTimeStyles) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified array of formats,culture-specific format information,and style. The format of the string representation must match at least one of the specified formats exactly. The method returns a value that indicates whether the conversion succeeded. s: A string containing one or more dates and times to convert. formats: An array of allowable formats of s. provider: An object that supplies culture-specific format information about s. style: A bitwise combination of enumeration values that indicates the permitted format of s. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: true if the s parameter was converted successfully; otherwise,false. TryParseExact(s: str,format: str,provider: IFormatProvider,style: DateTimeStyles) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified format,culture-specific format information,and style. The format of the string representation must match the specified format exactly. The method returns a value that indicates whether the conversion succeeded. s: A string containing a date and time to convert. format: The required format of s. provider: An object that supplies culture-specific formatting information about s. style: A bitwise combination of one or more enumeration values that indicate the permitted format of s. Returns: true if s was converted successfully; otherwise,false. """ pass def __add__(self,*args): """ x.__add__(y) <==> x+y """ pass def __cmp__(self,*args): """ x.__cmp__(y) <==> cmp(x,y) """ pass def __eq__(self,*args): """ x.__eq__(y) <==> x==y """ pass def __format__(self,*args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self,*args): pass def __gt__(self,*args): pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self,*args): pass def __lt__(self,*args): pass @staticmethod def __new__(self,*__args): """ __new__(cls: type,ticks: Int64) __new__(cls: type,ticks: Int64,kind: DateTimeKind) __new__(cls: type,year: int,month: int,day: int) __new__(cls: type,year: int,month: int,day: int,calendar: Calendar) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,kind: DateTimeKind) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,calendar: Calendar) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,kind: DateTimeKind) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar,kind: DateTimeKind) __new__[DateTime]() -> DateTime """ pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __repr__(self,*args): """ __repr__(self: object) -> str """ pass def __rsub__(self,*args): """ __rsub__(d1: DateTime,d2: DateTime) -> TimeSpan Subtracts a specified date and time from another specified date and time and returns a time interval. d1: The date and time value to subtract from (the minuend). d2: The date and time value to subtract (the subtrahend). Returns: The time interval between d1 and d2; that is,d1 minus d2. """ pass def __str__(self,*args): pass def __sub__(self,*args): """ x.__sub__(y) <==> x-yx.__sub__(y) <==> x-y """ pass Date=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the date component of this instance. Get: Date(self: DateTime) -> DateTime """ Day=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the day of the month represented by this instance. Get: Day(self: DateTime) -> int """ DayOfWeek=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the day of the week represented by this instance. Get: DayOfWeek(self: DateTime) -> DayOfWeek """ DayOfYear=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the day of the year represented by this instance. Get: DayOfYear(self: DateTime) -> int """ Hour=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the hour component of the date represented by this instance. Get: Hour(self: DateTime) -> int """ Kind=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether the time represented by this instance is based on local time,Coordinated Universal Time (UTC),or neither. Get: Kind(self: DateTime) -> DateTimeKind """ Millisecond=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the milliseconds component of the date represented by this instance. Get: Millisecond(self: DateTime) -> int """ Minute=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the minute component of the date represented by this instance. Get: Minute(self: DateTime) -> int """ Month=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the month component of the date represented by this instance. Get: Month(self: DateTime) -> int """ Second=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the seconds component of the date represented by this instance. Get: Second(self: DateTime) -> int """ Ticks=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the number of ticks that represent the date and time of this instance. Get: Ticks(self: DateTime) -> Int64 """ TimeOfDay=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the time of day for this instance. Get: TimeOfDay(self: DateTime) -> TimeSpan """ Year=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the year component of the date represented by this instance. Get: Year(self: DateTime) -> int """ MaxValue=None MinValue=None Now=None Today=None UtcNow=None
class Datetime(object, IComparable, IFormattable, IConvertible, ISerializable, IComparable[DateTime], IEquatable[DateTime]): """ Represents an instant in time,typically expressed as a date and time of day. DateTime(ticks: Int64) DateTime(ticks: Int64,kind: DateTimeKind) DateTime(year: int,month: int,day: int) DateTime(year: int,month: int,day: int,calendar: Calendar) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,kind: DateTimeKind) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,calendar: Calendar) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,kind: DateTimeKind) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar) DateTime(year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar,kind: DateTimeKind) """ def add(self, value): """ Add(self: DateTime,value: TimeSpan) -> DateTime Returns a new System.DateTime that adds the value of the specified System.TimeSpan to the value of this instance. value: A positive or negative time interval. Returns: An object whose value is the sum of the date and time represented by this instance and the time interval represented by value. """ pass def add_days(self, value): """ AddDays(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of days to the value of this instance. value: A number of whole and fractional days. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of days represented by value. """ pass def add_hours(self, value): """ AddHours(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of hours to the value of this instance. value: A number of whole and fractional hours. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of hours represented by value. """ pass def add_milliseconds(self, value): """ AddMilliseconds(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of milliseconds to the value of this instance. value: A number of whole and fractional milliseconds. The value parameter can be negative or positive. Note that this value is rounded to the nearest integer. Returns: An object whose value is the sum of the date and time represented by this instance and the number of milliseconds represented by value. """ pass def add_minutes(self, value): """ AddMinutes(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of minutes to the value of this instance. value: A number of whole and fractional minutes. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of minutes represented by value. """ pass def add_months(self, months): """ AddMonths(self: DateTime,months: int) -> DateTime Returns a new System.DateTime that adds the specified number of months to the value of this instance. months: A number of months. The months parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and months. """ pass def add_seconds(self, value): """ AddSeconds(self: DateTime,value: float) -> DateTime Returns a new System.DateTime that adds the specified number of seconds to the value of this instance. value: A number of whole and fractional seconds. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of seconds represented by value. """ pass def add_ticks(self, value): """ AddTicks(self: DateTime,value: Int64) -> DateTime Returns a new System.DateTime that adds the specified number of ticks to the value of this instance. value: A number of 100-nanosecond ticks. The value parameter can be positive or negative. Returns: An object whose value is the sum of the date and time represented by this instance and the time represented by value. """ pass def add_years(self, value): """ AddYears(self: DateTime,value: int) -> DateTime Returns a new System.DateTime that adds the specified number of years to the value of this instance. value: A number of years. The value parameter can be negative or positive. Returns: An object whose value is the sum of the date and time represented by this instance and the number of years represented by value. """ pass @staticmethod def compare(t1, t2): """ Compare(t1: DateTime,t2: DateTime) -> int Compares two instances of System.DateTime and returns an integer that indicates whether the first instance is earlier than,the same as,or later than the second instance. t1: The first object to compare. t2: The second object to compare. Returns: A signed number indicating the relative values of t1 and t2.Value Type Condition Less than zero t1 is earlier than t2. Zero t1 is the same as t2. Greater than zero t1 is later than t2. """ pass def compare_to(self, value): """ CompareTo(self: DateTime,value: DateTime) -> int Compares the value of this instance to a specified System.DateTime value and returns an integer that indicates whether this instance is earlier than,the same as,or later than the specified System.DateTime value. value: The object to compare to the current instance. Returns: A signed number indicating the relative values of this instance and the value parameter.Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value. CompareTo(self: DateTime,value: object) -> int Compares the value of this instance to a specified object that contains a specified System.DateTime value,and returns an integer that indicates whether this instance is earlier than,the same as,or later than the specified System.DateTime value. value: A boxed object to compare,or null. Returns: A signed number indicating the relative values of this instance and value.Value Description Less than zero This instance is earlier than value. Zero This instance is the same as value. Greater than zero This instance is later than value,or value is null. """ pass @staticmethod def days_in_month(year, month): """ DaysInMonth(year: int,month: int) -> int Returns the number of days in the specified month and year. year: The year. month: The month (a number ranging from 1 to 12). Returns: The number of days in month for the specified year.For example,if month equals 2 for February, the return value is 28 or 29 depending upon whether year is a leap year. """ pass def equals(self, *__args): """ Equals(t1: DateTime,t2: DateTime) -> bool Returns a value indicating whether two System.DateTime instances have the same date and time value. t1: The first object to compare. t2: The second object to compare. Returns: true if the two values are equal; otherwise,false. Equals(self: DateTime,value: DateTime) -> bool Returns a value indicating whether the value of this instance is equal to the value of the specified System.DateTime instance. value: The object to compare to this instance. Returns: true if the value parameter equals the value of this instance; otherwise,false. Equals(self: DateTime,value: object) -> bool Returns a value indicating whether this instance is equal to a specified object. value: The object to compare to this instance. Returns: true if value is an instance of System.DateTime and equals the value of this instance; otherwise,false. """ pass @staticmethod def from_binary(dateData): """ FromBinary(dateData: Int64) -> DateTime Deserializes a 64-bit binary value and recreates an original serialized System.DateTime object. dateData: A 64-bit signed integer that encodes the System.DateTime.Kind property in a 2-bit field and the System.DateTime.Ticks property in a 62-bit field. Returns: An object that is equivalent to the System.DateTime object that was serialized by the System.DateTime.ToBinary method. """ pass @staticmethod def from_file_time(fileTime): """ FromFileTime(fileTime: Int64) -> DateTime Converts the specified Windows file time to an equivalent local time. fileTime: A Windows file time expressed in ticks. Returns: An object that represents the local time equivalent of the date and time represented by the fileTime parameter. """ pass @staticmethod def from_file_time_utc(fileTime): """ FromFileTimeUtc(fileTime: Int64) -> DateTime Converts the specified Windows file time to an equivalent UTC time. fileTime: A Windows file time expressed in ticks. Returns: An object that represents the UTC time equivalent of the date and time represented by the fileTime parameter. """ pass @staticmethod def from_oa_date(d): """ FromOADate(d: float) -> DateTime Returns a System.DateTime equivalent to the specified OLE Automation Date. d: An OLE Automation Date value. Returns: An object that represents the same date and time as d. """ pass def get_date_time_formats(self, *__args): """ GetDateTimeFormats(self: DateTime,format: Char) -> Array[str] Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier. format: A standard date and time format string (see Remarks). Returns: A string array where each element is the representation of the value of this instance formatted with the format standard date and time format specifier. GetDateTimeFormats(self: DateTime,format: Char,provider: IFormatProvider) -> Array[str] Converts the value of this instance to all the string representations supported by the specified standard date and time format specifier and culture-specific formatting information. format: A date and time format string (see Remarks). provider: An object that supplies culture-specific formatting information about this instance. Returns: A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers. GetDateTimeFormats(self: DateTime) -> Array[str] Converts the value of this instance to all the string representations supported by the standard date and time format specifiers. Returns: A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers. GetDateTimeFormats(self: DateTime,provider: IFormatProvider) -> Array[str] Converts the value of this instance to all the string representations supported by the standard date and time format specifiers and the specified culture-specific formatting information. provider: An object that supplies culture-specific formatting information about this instance. Returns: A string array where each element is the representation of the value of this instance formatted with one of the standard date and time format specifiers. """ pass def get_hash_code(self): """ GetHashCode(self: DateTime) -> int Returns the hash code for this instance. Returns: A 32-bit signed integer hash code. """ pass def get_type_code(self): """ GetTypeCode(self: DateTime) -> TypeCode Returns the System.TypeCode for value type System.DateTime. Returns: The enumerated constant,System.TypeCode.DateTime. """ pass def is_daylight_saving_time(self): """ IsDaylightSavingTime(self: DateTime) -> bool Indicates whether this instance of System.DateTime is within the daylight saving time range for the current time zone. Returns: true if System.DateTime.Kind is System.DateTimeKind.Local or System.DateTimeKind.Unspecified and the value of this instance of System.DateTime is within the daylight saving time range for the current time zone. false if System.DateTime.Kind is System.DateTimeKind.Utc. """ pass @staticmethod def is_leap_year(year): """ IsLeapYear(year: int) -> bool Returns an indication whether the specified year is a leap year. year: A 4-digit year. Returns: true if year is a leap year; otherwise,false. """ pass @staticmethod def parse(s, provider=None, styles=None): """ Parse(s: str,provider: IFormatProvider,styles: DateTimeStyles) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified culture-specific format information and formatting style. s: A string containing a date and time to convert. provider: An object that supplies culture-specific formatting information about s. styles: A bitwise combination of the enumeration values that indicates the style elements that can be present in s for the parse operation to succeed and that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: An object that is equivalent to the date and time contained in s,as specified by provider and styles. Parse(s: str,provider: IFormatProvider) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified culture-specific format information. s: A string containing a date and time to convert. provider: An object that supplies culture-specific format information about s. Returns: An object that is equivalent to the date and time contained in s as specified by provider. Parse(s: str) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent. s: A string containing a date and time to convert. Returns: An object that is equivalent to the date and time contained in s. """ pass @staticmethod def parse_exact(s, *__args): """ ParseExact(s: str,formats: Array[str],provider: IFormatProvider,style: DateTimeStyles) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified array of formats,culture-specific format information,and style. The format of the string representation must match at least one of the specified formats exactly or an exception is thrown. s: A string containing one or more dates and times to convert. formats: An array of allowable formats of s. provider: An object that supplies culture-specific format information about s. style: A bitwise combination of enumeration values that indicates the permitted format of s. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: An object that is equivalent to the date and time contained in s,as specified by formats, provider,and style. ParseExact(s: str,format: str,provider: IFormatProvider,style: DateTimeStyles) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified format,culture-specific format information,and style. The format of the string representation must match the specified format exactly or an exception is thrown. s: A string containing a date and time to convert. format: A format specifier that defines the required format of s. provider: An object that supplies culture-specific formatting information about s. style: A bitwise combination of the enumeration values that provides additional information about s, about style elements that may be present in s,or about the conversion from s to a System.DateTime value. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: An object that is equivalent to the date and time contained in s,as specified by format, provider,and style. ParseExact(s: str,format: str,provider: IFormatProvider) -> DateTime Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified format and culture-specific format information. The format of the string representation must match the specified format exactly. s: A string that contains a date and time to convert. format: A format specifier that defines the required format of s. provider: An object that supplies culture-specific format information about s. Returns: An object that is equivalent to the date and time contained in s,as specified by format and provider. """ pass @staticmethod def specify_kind(value, kind): """ SpecifyKind(value: DateTime,kind: DateTimeKind) -> DateTime Creates a new System.DateTime object that has the same number of ticks as the specified System.DateTime,but is designated as either local time,Coordinated Universal Time (UTC),or neither,as indicated by the specified System.DateTimeKind value. value: A date and time. kind: One of the enumeration values that indicates whether the new object represents local time,UTC, or neither. Returns: A new object that has the same number of ticks as the object represented by the value parameter and the System.DateTimeKind value specified by the kind parameter. """ pass def subtract(self, value): """ Subtract(self: DateTime,value: TimeSpan) -> DateTime Subtracts the specified duration from this instance. value: The time interval to subtract. Returns: An object that is equal to the date and time represented by this instance minus the time interval represented by value. Subtract(self: DateTime,value: DateTime) -> TimeSpan Subtracts the specified date and time from this instance. value: The date and time value to subtract. Returns: A time interval that is equal to the date and time represented by this instance minus the date and time represented by value. """ pass def to_binary(self): """ ToBinary(self: DateTime) -> Int64 Serializes the current System.DateTime object to a 64-bit binary value that subsequently can be used to recreate the System.DateTime object. Returns: A 64-bit signed integer that encodes the System.DateTime.Kind and System.DateTime.Ticks properties. """ pass def to_file_time(self): """ ToFileTime(self: DateTime) -> Int64 Converts the value of the current System.DateTime object to a Windows file time. Returns: The value of the current System.DateTime object expressed as a Windows file time. """ pass def to_file_time_utc(self): """ ToFileTimeUtc(self: DateTime) -> Int64 Converts the value of the current System.DateTime object to a Windows file time. Returns: The value of the current System.DateTime object expressed as a Windows file time. """ pass def to_local_time(self): """ ToLocalTime(self: DateTime) -> DateTime Converts the value of the current System.DateTime object to local time. Returns: An object whose System.DateTime.Kind property is System.DateTimeKind.Local,and whose value is the local time equivalent to the value of the current System.DateTime object,or System.DateTime.MaxValue if the converted value is too large to be represented by a System.DateTime object,or System.DateTime.MinValue if the converted value is too small to be represented as a System.DateTime object. """ pass def to_long_date_string(self): """ ToLongDateString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent long date string representation. Returns: A string that contains the long date string representation of the current System.DateTime object. """ pass def to_long_time_string(self): """ ToLongTimeString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent long time string representation. Returns: A string that contains the long time string representation of the current System.DateTime object. """ pass def to_oa_date(self): """ ToOADate(self: DateTime) -> float Converts the value of this instance to the equivalent OLE Automation date. Returns: A double-precision floating-point number that contains an OLE Automation date equivalent to the value of this instance. """ pass def to_short_date_string(self): """ ToShortDateString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent short date string representation. Returns: A string that contains the short date string representation of the current System.DateTime object. """ pass def to_short_time_string(self): """ ToShortTimeString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent short time string representation. Returns: A string that contains the short time string representation of the current System.DateTime object. """ pass def to_string(self, *__args): """ ToString(self: DateTime,provider: IFormatProvider) -> str Converts the value of the current System.DateTime object to its equivalent string representation using the specified culture-specific format information. provider: An object that supplies culture-specific formatting information. Returns: A string representation of value of the current System.DateTime object as specified by provider. ToString(self: DateTime,format: str,provider: IFormatProvider) -> str Converts the value of the current System.DateTime object to its equivalent string representation using the specified format and culture-specific format information. format: A standard or custom date and time format string. provider: An object that supplies culture-specific formatting information. Returns: A string representation of value of the current System.DateTime object as specified by format and provider. ToString(self: DateTime) -> str Converts the value of the current System.DateTime object to its equivalent string representation. Returns: A string representation of the value of the current System.DateTime object. ToString(self: DateTime,format: str) -> str Converts the value of the current System.DateTime object to its equivalent string representation using the specified format. format: A standard or custom date and time format string (see Remarks). Returns: A string representation of value of the current System.DateTime object as specified by format. """ pass def to_universal_time(self): """ ToUniversalTime(self: DateTime) -> DateTime Converts the value of the current System.DateTime object to Coordinated Universal Time (UTC). Returns: An object whose System.DateTime.Kind property is System.DateTimeKind.Utc,and whose value is the UTC equivalent to the value of the current System.DateTime object,or System.DateTime.MaxValue if the converted value is too large to be represented by a System.DateTime object,or System.DateTime.MinValue if the converted value is too small to be represented by a System.DateTime object. """ pass @staticmethod def try_parse(s, *__args): """ TryParse(s: str,provider: IFormatProvider,styles: DateTimeStyles) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified culture-specific format information and formatting style,and returns a value that indicates whether the conversion succeeded. s: A string containing a date and time to convert. provider: An object that supplies culture-specific formatting information about s. styles: A bitwise combination of enumeration values that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: true if the s parameter was converted successfully; otherwise,false. TryParse(s: str) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent and returns a value that indicates whether the conversion succeeded. s: A string containing a date and time to convert. Returns: true if the s parameter was converted successfully; otherwise,false. """ pass @staticmethod def try_parse_exact(s, *__args): """ TryParseExact(s: str,formats: Array[str],provider: IFormatProvider,style: DateTimeStyles) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified array of formats,culture-specific format information,and style. The format of the string representation must match at least one of the specified formats exactly. The method returns a value that indicates whether the conversion succeeded. s: A string containing one or more dates and times to convert. formats: An array of allowable formats of s. provider: An object that supplies culture-specific format information about s. style: A bitwise combination of enumeration values that indicates the permitted format of s. A typical value to specify is System.Globalization.DateTimeStyles.None. Returns: true if the s parameter was converted successfully; otherwise,false. TryParseExact(s: str,format: str,provider: IFormatProvider,style: DateTimeStyles) -> (bool,DateTime) Converts the specified string representation of a date and time to its System.DateTime equivalent using the specified format,culture-specific format information,and style. The format of the string representation must match the specified format exactly. The method returns a value that indicates whether the conversion succeeded. s: A string containing a date and time to convert. format: The required format of s. provider: An object that supplies culture-specific formatting information about s. style: A bitwise combination of one or more enumeration values that indicate the permitted format of s. Returns: true if s was converted successfully; otherwise,false. """ pass def __add__(self, *args): """ x.__add__(y) <==> x+y """ pass def __cmp__(self, *args): """ x.__cmp__(y) <==> cmp(x,y) """ pass def __eq__(self, *args): """ x.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass @staticmethod def __new__(self, *__args): """ __new__(cls: type,ticks: Int64) __new__(cls: type,ticks: Int64,kind: DateTimeKind) __new__(cls: type,year: int,month: int,day: int) __new__(cls: type,year: int,month: int,day: int,calendar: Calendar) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,kind: DateTimeKind) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,calendar: Calendar) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,kind: DateTimeKind) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar) __new__(cls: type,year: int,month: int,day: int,hour: int,minute: int,second: int,millisecond: int,calendar: Calendar,kind: DateTimeKind) __new__[DateTime]() -> DateTime """ pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __repr__(self, *args): """ __repr__(self: object) -> str """ pass def __rsub__(self, *args): """ __rsub__(d1: DateTime,d2: DateTime) -> TimeSpan Subtracts a specified date and time from another specified date and time and returns a time interval. d1: The date and time value to subtract from (the minuend). d2: The date and time value to subtract (the subtrahend). Returns: The time interval between d1 and d2; that is,d1 minus d2. """ pass def __str__(self, *args): pass def __sub__(self, *args): """ x.__sub__(y) <==> x-yx.__sub__(y) <==> x-y """ pass date = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the date component of this instance.\n\n\n\nGet: Date(self: DateTime) -> DateTime\n\n\n\n' day = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the day of the month represented by this instance.\n\n\n\nGet: Day(self: DateTime) -> int\n\n\n\n' day_of_week = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the day of the week represented by this instance.\n\n\n\nGet: DayOfWeek(self: DateTime) -> DayOfWeek\n\n\n\n' day_of_year = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the day of the year represented by this instance.\n\n\n\nGet: DayOfYear(self: DateTime) -> int\n\n\n\n' hour = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the hour component of the date represented by this instance.\n\n\n\nGet: Hour(self: DateTime) -> int\n\n\n\n' kind = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets a value that indicates whether the time represented by this instance is based on local time,Coordinated Universal Time (UTC),or neither.\n\n\n\nGet: Kind(self: DateTime) -> DateTimeKind\n\n\n\n' millisecond = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the milliseconds component of the date represented by this instance.\n\n\n\nGet: Millisecond(self: DateTime) -> int\n\n\n\n' minute = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the minute component of the date represented by this instance.\n\n\n\nGet: Minute(self: DateTime) -> int\n\n\n\n' month = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the month component of the date represented by this instance.\n\n\n\nGet: Month(self: DateTime) -> int\n\n\n\n' second = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the seconds component of the date represented by this instance.\n\n\n\nGet: Second(self: DateTime) -> int\n\n\n\n' ticks = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the number of ticks that represent the date and time of this instance.\n\n\n\nGet: Ticks(self: DateTime) -> Int64\n\n\n\n' time_of_day = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the time of day for this instance.\n\n\n\nGet: TimeOfDay(self: DateTime) -> TimeSpan\n\n\n\n' year = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Gets the year component of the date represented by this instance.\n\n\n\nGet: Year(self: DateTime) -> int\n\n\n\n' max_value = None min_value = None now = None today = None utc_now = None
text = 'shakespeare.txt' output = 'output_file.txt' f = open(output, 'r') o = open(text, 'w') for line in f: o.write(line) f.close() o.close()
text = 'shakespeare.txt' output = 'output_file.txt' f = open(output, 'r') o = open(text, 'w') for line in f: o.write(line) f.close() o.close()
{ "targets": [ { "target_name": "scsSDKTelemetry", "sources": [ "scsSDKTelemetry.cc" ], "cflags": ["-fexceptions"], "cflags_cc": ["-fexceptions"] } ] }
{'targets': [{'target_name': 'scsSDKTelemetry', 'sources': ['scsSDKTelemetry.cc'], 'cflags': ['-fexceptions'], 'cflags_cc': ['-fexceptions']}]}
""" cargo-raze crate workspace functions DO NOT EDIT! Replaced on runs of cargo-raze """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") def _new_http_archive(name, **kwargs): if not native.existing_rule(name): http_archive(name=name, **kwargs) def _new_git_repository(name, **kwargs): if not native.existing_rule(name): new_git_repository(name=name, **kwargs) def raze_fetch_remote_crates(): _new_http_archive( name = "raze__bencher__0_1_5", url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/bencher/bencher-0.1.5.crate", type = "tar.gz", strip_prefix = "bencher-0.1.5", build_file = Label("//third_party/cargo/remote:bencher-0.1.5.BUILD"), ) _new_http_archive( name = "raze__libc__0_2_74", url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.74.crate", type = "tar.gz", strip_prefix = "libc-0.2.74", build_file = Label("//third_party/cargo/remote:libc-0.2.74.BUILD"), ) _new_http_archive( name = "raze__protobuf__2_8_2", url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/protobuf/protobuf-2.8.2.crate", type = "tar.gz", strip_prefix = "protobuf-2.8.2", build_file = Label("//third_party/cargo/remote:protobuf-2.8.2.BUILD"), ) _new_http_archive( name = "raze__semver__0_10_0", url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/semver/semver-0.10.0.crate", type = "tar.gz", strip_prefix = "semver-0.10.0", build_file = Label("//third_party/cargo/remote:semver-0.10.0.BUILD"), ) _new_http_archive( name = "raze__semver_parser__0_7_0", url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/semver-parser/semver-parser-0.7.0.crate", type = "tar.gz", strip_prefix = "semver-parser-0.7.0", build_file = Label("//third_party/cargo/remote:semver-parser-0.7.0.BUILD"), )
""" cargo-raze crate workspace functions DO NOT EDIT! Replaced on runs of cargo-raze """ load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') load('@bazel_tools//tools/build_defs/repo:git.bzl', 'new_git_repository') def _new_http_archive(name, **kwargs): if not native.existing_rule(name): http_archive(name=name, **kwargs) def _new_git_repository(name, **kwargs): if not native.existing_rule(name): new_git_repository(name=name, **kwargs) def raze_fetch_remote_crates(): _new_http_archive(name='raze__bencher__0_1_5', url='https://crates-io.s3-us-west-1.amazonaws.com/crates/bencher/bencher-0.1.5.crate', type='tar.gz', strip_prefix='bencher-0.1.5', build_file=label('//third_party/cargo/remote:bencher-0.1.5.BUILD')) _new_http_archive(name='raze__libc__0_2_74', url='https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.74.crate', type='tar.gz', strip_prefix='libc-0.2.74', build_file=label('//third_party/cargo/remote:libc-0.2.74.BUILD')) _new_http_archive(name='raze__protobuf__2_8_2', url='https://crates-io.s3-us-west-1.amazonaws.com/crates/protobuf/protobuf-2.8.2.crate', type='tar.gz', strip_prefix='protobuf-2.8.2', build_file=label('//third_party/cargo/remote:protobuf-2.8.2.BUILD')) _new_http_archive(name='raze__semver__0_10_0', url='https://crates-io.s3-us-west-1.amazonaws.com/crates/semver/semver-0.10.0.crate', type='tar.gz', strip_prefix='semver-0.10.0', build_file=label('//third_party/cargo/remote:semver-0.10.0.BUILD')) _new_http_archive(name='raze__semver_parser__0_7_0', url='https://crates-io.s3-us-west-1.amazonaws.com/crates/semver-parser/semver-parser-0.7.0.crate', type='tar.gz', strip_prefix='semver-parser-0.7.0', build_file=label('//third_party/cargo/remote:semver-parser-0.7.0.BUILD'))
# Flags quiet_mode = False no_log = False no_cleanup = False all_containers = False no_confirm = False no_backup = False # intern Flags keep_maintenance_mode = False def set_flags(flags=list): global no_confirm global all_containers global quiet_mode global no_log global no_cleanup global no_backup no_confirm = "--yes" in flags all_containers = "--all" in flags quiet_mode = "--quiet" in flags no_log = "--nolog" in flags no_cleanup = "--nocleanup" in flags no_backup = "--nobackup" in flags def _print(text=None): global quiet_mode if not quiet_mode: if not text is None: print(text) else: print()
quiet_mode = False no_log = False no_cleanup = False all_containers = False no_confirm = False no_backup = False keep_maintenance_mode = False def set_flags(flags=list): global no_confirm global all_containers global quiet_mode global no_log global no_cleanup global no_backup no_confirm = '--yes' in flags all_containers = '--all' in flags quiet_mode = '--quiet' in flags no_log = '--nolog' in flags no_cleanup = '--nocleanup' in flags no_backup = '--nobackup' in flags def _print(text=None): global quiet_mode if not quiet_mode: if not text is None: print(text) else: print()
class Solution: def solve(self, n): # Write your code here l = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K' , 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' ] s = "" while n > 26: j = n%26 n = n//26 s += l[j-1] if n <= 26: s += l[n-1] return s[::-1]
class Solution: def solve(self, n): l = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] s = '' while n > 26: j = n % 26 n = n // 26 s += l[j - 1] if n <= 26: s += l[n - 1] return s[::-1]
class Base: base_url = "https://localhost" def __init__(self, *args, **kwargs): pass
class Base: base_url = 'https://localhost' def __init__(self, *args, **kwargs): pass
def reward_function(params): distance_from_center = params['distance_from_center'] progress = params['progress'] on_track = params["all_wheels_on_track"] ''' Example that penalizes slow driving. This create a non-linear reward function so it may take longer to learn. ''' # Calculate 3 marks that are farther and father away from the center line marker_1 = 0.1 * params['track_width'] marker_2 = 0.25 * params['track_width'] marker_3 = 0.5 * params['track_width'] # Give higher reward if the car is closer to center line and vice versa if distance_from_center <= marker_1: reward = 1 elif distance_from_center <= marker_2: reward = 0.5 elif distance_from_center <= marker_3: reward = 0.1 else: reward = 1e-3 # likely crashed/ close to off track # penalize reward for the car taking slow actions # speed is in m/s # we penalize any speed less than 0.5m/s SPEED_THRESHOLD = 1.0 if params['speed'] < SPEED_THRESHOLD: reward *= 0.5 # Experimental (Huge Boost for progress) progress_dict = { 10: 10, 20: 20, 30: 40, 40: 80, 50: 160, 60: 320, 70: 640, 80: 1280, 90: 2560, 100: 5120 } int_progress = int(progress) if int_progress % 10 == 0: try: reward += progress_dict[int_progress] except: pass return float(reward)
def reward_function(params): distance_from_center = params['distance_from_center'] progress = params['progress'] on_track = params['all_wheels_on_track'] '\n Example that penalizes slow driving. This create a non-linear reward function so it may take longer to learn.\n ' marker_1 = 0.1 * params['track_width'] marker_2 = 0.25 * params['track_width'] marker_3 = 0.5 * params['track_width'] if distance_from_center <= marker_1: reward = 1 elif distance_from_center <= marker_2: reward = 0.5 elif distance_from_center <= marker_3: reward = 0.1 else: reward = 0.001 speed_threshold = 1.0 if params['speed'] < SPEED_THRESHOLD: reward *= 0.5 progress_dict = {10: 10, 20: 20, 30: 40, 40: 80, 50: 160, 60: 320, 70: 640, 80: 1280, 90: 2560, 100: 5120} int_progress = int(progress) if int_progress % 10 == 0: try: reward += progress_dict[int_progress] except: pass return float(reward)
test_list = [-2, 1, 3, -6] print(f'before', test_list) test_list.sort(key=abs) print(f'before', test_list)
test_list = [-2, 1, 3, -6] print(f'before', test_list) test_list.sort(key=abs) print(f'before', test_list)
class Request: def __init__(self, req_id: int, emp_id: int, req_amount: float, req_desc: str, req_date: str, approved: bool, mgr_message: str, reviewed: bool): self.req_id = req_id self.emp_id = emp_id self.req_amount = req_amount self.req_desc = req_desc self.req_date = req_date self.approved = approved self.mgr_message = mgr_message self.reviewed = reviewed def json(self): return {'reqID': self.req_id, 'empID': self.emp_id, 'reqAmount': self.req_amount, 'reqDesc': self.req_desc, 'reqDate': self.req_date, 'approved': self.approved, 'mgrMessage': self.mgr_message, 'reviewed': self.reviewed } @staticmethod def json_deserialize(json): request = Request(0, 0, 0, '', '', False, '', False) request.req_id = json['reqID'] request.emp_id = json['empID'] request.req_amount = json['reqAmount'] request.req_desc = json['reqDesc'] request.req_date = json['reqDate'] request.approved = json['approved'] request.mgr_message = json['mgrMessage'] request.reviewed = json['reviewed'] return request
class Request: def __init__(self, req_id: int, emp_id: int, req_amount: float, req_desc: str, req_date: str, approved: bool, mgr_message: str, reviewed: bool): self.req_id = req_id self.emp_id = emp_id self.req_amount = req_amount self.req_desc = req_desc self.req_date = req_date self.approved = approved self.mgr_message = mgr_message self.reviewed = reviewed def json(self): return {'reqID': self.req_id, 'empID': self.emp_id, 'reqAmount': self.req_amount, 'reqDesc': self.req_desc, 'reqDate': self.req_date, 'approved': self.approved, 'mgrMessage': self.mgr_message, 'reviewed': self.reviewed} @staticmethod def json_deserialize(json): request = request(0, 0, 0, '', '', False, '', False) request.req_id = json['reqID'] request.emp_id = json['empID'] request.req_amount = json['reqAmount'] request.req_desc = json['reqDesc'] request.req_date = json['reqDate'] request.approved = json['approved'] request.mgr_message = json['mgrMessage'] request.reviewed = json['reviewed'] return request
class OpenTokException(Exception): """Defines exceptions thrown by the OpenTok SDK. """ pass class RequestError(OpenTokException): """Indicates an error during the request. Most likely an error connecting to the OpenTok API servers. (HTTP 500 error). """ pass class AuthError(OpenTokException): """Indicates that the problem was likely with credentials. Check your API key and API secret and try again. """ pass class NotFoundError(OpenTokException): """Indicates that the element requested was not found. Check the parameters of the request. """ pass class ArchiveError(OpenTokException): """Indicates that there was a archive specific problem, probably the status of the requested archive is invalid. """ pass class SignalingError(OpenTokException): """Indicates that there was a signaling specific problem, one of the parameter is invalid or the type|data string doesn't have a correct size""" pass class GetStreamError(OpenTokException): """Indicates that the data in the request is invalid, or the session_id or stream_id are invalid""" pass class ForceDisconnectError(OpenTokException): """ Indicates that there was a force disconnect specific problem: One of the arguments is invalid or the client specified by the connectionId property is not connected to the session """ pass class SipDialError(OpenTokException): """ Indicates that there was a SIP dial specific problem: The Session ID passed in is invalid or you attempt to start a SIP call for a session that does not use the OpenTok Media Router. """ pass class SetStreamClassError(OpenTokException): """ Indicates that there is invalid data in the JSON request. It may also indicate that invalid layout options have been passed """ pass class BroadcastError(OpenTokException): """ Indicates that data in your request data is invalid JSON. It may also indicate that you passed in invalid layout options. Or you have exceeded the limit of five simultaneous RTMP streams for an OpenTok session. Or you specified and invalid resolution. Or The broadcast has already started for the session """ pass
class Opentokexception(Exception): """Defines exceptions thrown by the OpenTok SDK. """ pass class Requesterror(OpenTokException): """Indicates an error during the request. Most likely an error connecting to the OpenTok API servers. (HTTP 500 error). """ pass class Autherror(OpenTokException): """Indicates that the problem was likely with credentials. Check your API key and API secret and try again. """ pass class Notfounderror(OpenTokException): """Indicates that the element requested was not found. Check the parameters of the request. """ pass class Archiveerror(OpenTokException): """Indicates that there was a archive specific problem, probably the status of the requested archive is invalid. """ pass class Signalingerror(OpenTokException): """Indicates that there was a signaling specific problem, one of the parameter is invalid or the type|data string doesn't have a correct size""" pass class Getstreamerror(OpenTokException): """Indicates that the data in the request is invalid, or the session_id or stream_id are invalid""" pass class Forcedisconnecterror(OpenTokException): """ Indicates that there was a force disconnect specific problem: One of the arguments is invalid or the client specified by the connectionId property is not connected to the session """ pass class Sipdialerror(OpenTokException): """ Indicates that there was a SIP dial specific problem: The Session ID passed in is invalid or you attempt to start a SIP call for a session that does not use the OpenTok Media Router. """ pass class Setstreamclasserror(OpenTokException): """ Indicates that there is invalid data in the JSON request. It may also indicate that invalid layout options have been passed """ pass class Broadcasterror(OpenTokException): """ Indicates that data in your request data is invalid JSON. It may also indicate that you passed in invalid layout options. Or you have exceeded the limit of five simultaneous RTMP streams for an OpenTok session. Or you specified and invalid resolution. Or The broadcast has already started for the session """ pass
def test_count_by_time_categorical(total_spent): labels = range(2) total_spent = total_spent.bin(2, labels=labels) ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label Count vs. Cutoff Times' def test_count_by_time_continuous(total_spent): ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label vs. Cutoff Times' def test_distribution_categorical(total_spent): ax = total_spent.bin(2, labels=range(2)) ax = ax.plot.dist() assert ax.get_title() == 'Label Distribution' def test_distribution_continuous(total_spent): ax = total_spent.plot.dist() assert ax.get_title() == 'Label Distribution'
def test_count_by_time_categorical(total_spent): labels = range(2) total_spent = total_spent.bin(2, labels=labels) ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label Count vs. Cutoff Times' def test_count_by_time_continuous(total_spent): ax = total_spent.plot.count_by_time() assert ax.get_title() == 'Label vs. Cutoff Times' def test_distribution_categorical(total_spent): ax = total_spent.bin(2, labels=range(2)) ax = ax.plot.dist() assert ax.get_title() == 'Label Distribution' def test_distribution_continuous(total_spent): ax = total_spent.plot.dist() assert ax.get_title() == 'Label Distribution'
# Provides numerous # examples of different options for exception handling def my_function(x, y): """ A simple function to divide x by y """ print('my_function in') solution = x / y print('my_function out') return solution print('Starting') print(my_function(6, 0)) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except: print('oops') print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except ZeroDivisionError: print('oops') print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except ZeroDivisionError as exp: print(exp) print('oops') print('Done') print('-' * 20) try: print('Before my_function') result = my_function(6, 2) print(result) print('After my_function') except ZeroDivisionError as exp: print(exp) print('oops') else: print('All OK') print('-' * 20) try: print('At start') result = my_function(6, 2) print(result) except ZeroDivisionError as e: print(e) else: print('Everything worked OK') finally: print('Always runs') print('-' * 20) try: result = my_function(6, 0) print(result) except Exception as e: print(e) print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except ZeroDivisionError as exp: print(exp) print('oops') except ValueError as exp: print(exp) print('oh dear') except: print('That is it') print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') finally: print('Always printed') number = 0 input_accepted = False while not input_accepted: user_input = input('Please enter a number') if user_input.isnumeric(): number = int(user_input) input_accepted = True else: try: number = float(user_input) input_accepted = True except ValueError: print('Needs to be a number') print(number)
def my_function(x, y): """ A simple function to divide x by y """ print('my_function in') solution = x / y print('my_function out') return solution print('Starting') print(my_function(6, 0)) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except: print('oops') print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except ZeroDivisionError: print('oops') print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except ZeroDivisionError as exp: print(exp) print('oops') print('Done') print('-' * 20) try: print('Before my_function') result = my_function(6, 2) print(result) print('After my_function') except ZeroDivisionError as exp: print(exp) print('oops') else: print('All OK') print('-' * 20) try: print('At start') result = my_function(6, 2) print(result) except ZeroDivisionError as e: print(e) else: print('Everything worked OK') finally: print('Always runs') print('-' * 20) try: result = my_function(6, 0) print(result) except Exception as e: print(e) print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') except ZeroDivisionError as exp: print(exp) print('oops') except ValueError as exp: print(exp) print('oh dear') except: print('That is it') print('-' * 20) try: print('Before my_function') result = my_function(6, 0) print(result) print('After my_function') finally: print('Always printed') number = 0 input_accepted = False while not input_accepted: user_input = input('Please enter a number') if user_input.isnumeric(): number = int(user_input) input_accepted = True else: try: number = float(user_input) input_accepted = True except ValueError: print('Needs to be a number') print(number)
DATABASES_PATH="../tmp/storage" CREDENTIALS_PATH_BUCKETS="../credentials/tynr/engine/bucketAccess.json" CREDENTIALS_PATH_FIRESTORE = '../credentials/tynr/engine/firestoreServiceAccount.json' INGESTION_COLLECTION = "tyns" INGESTION_BATCH_LIMIT = 1000
databases_path = '../tmp/storage' credentials_path_buckets = '../credentials/tynr/engine/bucketAccess.json' credentials_path_firestore = '../credentials/tynr/engine/firestoreServiceAccount.json' ingestion_collection = 'tyns' ingestion_batch_limit = 1000
MAIN_WINDOW_STYLE = """ QMainWindow { background: white; } """ BUTTON_STYLE = """ QPushButton { background-color: transparent; border-style:none; } QPushButton:hover{ background-color: qradialgradient(cx:0, cy:0, radius: 1, fx:1, fy:1, stop:0 #c0c5ce, stop:1 #a7adba); border-style:none; } """
main_window_style = '\nQMainWindow {\n background: white;\n}\n' button_style = '\nQPushButton {\n background-color: transparent;\n border-style:none;\n}\nQPushButton:hover{\n background-color: qradialgradient(cx:0, cy:0, radius: 1, fx:1, fy:1, stop:0 #c0c5ce, stop:1 #a7adba);\n border-style:none;\n}\n'
__all__ = ['EXPERIMENTS'] EXPERIMENTS = ','.join([ 'ig_android_sticker_search_explorations', 'android_ig_camera_ar_asset_manager_improvements_universe', 'ig_android_stories_seen_state_serialization', 'ig_stories_photo_time_duration_universe', 'ig_android_bitmap_cache_executor_size', 'ig_android_stories_music_search_typeahead', 'ig_android_delayed_comments', 'ig_android_switch_back_option', 'ig_android_video_profiler_loom_traces', 'ig_android_paid_branded_content_rendering', 'ig_android_direct_app_reel_grid_search', 'ig_android_stories_no_inflation_on_app_start', 'ig_android_camera_sdk_check_gl_surface_r2', 'ig_promote_review_screen_title_universe', 'ig_android_direct_newer_single_line_composer_universe', 'ig_direct_holdout_h1_2019', 'ig_explore_2019_h1_destination_cover', 'ig_android_direct_stories_in_direct_inbox', 'ig_fb_graph_differentiation_no_fb_data', 'ig_android_recyclerview_binder_group_enabled_universe', 'ig_android_direct_share_sheet_custom_fast_scroller', 'ig_android_video_exoplayer_2', 'ig_android_shopping_channel_in_explore', 'ig_android_stories_music_filters', 'ig_android_2018_h1_hashtag_report_universe', 'ig_android_live_replay_highlights_universe', 'ig_android_hashtag_page_reduced_related_items', 'ig_android_live_titles_broadcaster_side_create_title_universe', 'ig_android_fbns_preload_direct_universe', 'ig_android_prefetch_carousels_on_swipe_universe', 'ig_camera_network_activity_logger', 'ig_camera_remove_display_rotation_cb_universe', 'ig_android_interactions_migrate_inline_composer_to_viewpoint_universe', 'ig_android_realtime_always_start_connection_on_condition_universe', 'ig_android_ad_leadgen_single_screen_universe', 'ig_android_enable_zero_rating', 'ig_android_import_page_post_after_biz_conversion', 'ig_camera_ar_effect_attribution_position', 'ig_android_vc_call_ended_cleanup_universe', 'ig_stories_engagement_holdout_2019_h1_universe', 'ig_android_story_import_intent', 'ig_direct_report_conversation_universe', 'ig_biz_graph_connection_universe', 'ig_android_codec_high_profile', 'ig_android_nametag', 'ig_android_sso_family_key_universe', 'ig_android_parse_direct_messages_bytes_universe', 'ig_hashtag_creation_universe', 'ig_android_gallery_order_by_date_taken', 'ig_android_igtv_reshare', 'ig_end_of_feed_universe', 'ig_android_share_others_post_reorder', 'ig_android_additional_contact_in_nux', 'ig_android_live_use_all_preview_sizes', 'ig_android_clarify_invite_options', 'ig_android_live_align_by_2_universe', 'ig_android_separate_network_executor', 'ig_android_realtime_manager_optimization', 'ig_android_auto_advance_su_unit_when_scrolled_off_screen', 'ig_android_network_cancellation', 'ig_android_media_as_sticker', 'ig_android_stories_video_prefetch_kb', 'ig_android_maintabfragment', 'ig_inventory_connections', 'ig_stories_injection_tool_enabled_universe', 'ig_android_stories_disable_highlights_media_preloading', 'ig_android_live_start_broadcast_optimized_universe', 'ig_android_stories_question_response_mutation_universe', 'ig_android_onetap_upsell_change_pwd', 'ig_nametag_data_collection', 'ig_android_disable_scroll_listeners', 'ig_android_persistent_nux', 'ig_android_igtv_audio_always_on', 'ig_android_enable_liger_preconnect_universe', 'ig_android_persistent_duplicate_notif_checker_user_based', 'ig_android_rate_limit_mediafeedviewablehelper', 'ig_android_search_remove_null_state_sections', 'ig_android_stories_viewer_drawable_cache_universe', 'ig_direct_android_reply_modal_universe', 'ig_android_biz_qp_suggest_page', 'ig_shopping_indicator_content_variations_android', 'ig_android_stories_reel_media_item_automatic_retry', 'ig_fb_notification_universe', 'ig_android_live_disable_speed_test_ui_timeout_universe', 'ig_android_direct_thread_scroll_perf_oncreate_universe', 'ig_android_low_data_mode_backup_2', 'ig_android_invite_xout_universe', 'ig_android_low_data_mode_backup_3', 'ig_android_low_data_mode_backup_4', 'ig_android_low_data_mode_backup_5', 'ig_android_video_abr_universe', 'ig_android_low_data_mode_backup_1', 'ig_android_signup_refactor_santity', 'ig_challenge_general_v2', 'ig_android_place_signature_universe', 'ig_android_hide_button_for_invite_facebook_friends', 'ig_android_business_promote_tooltip', 'ig_android_follow_requests_ui_improvements', 'ig_android_shopping_post_tagging_nux_universe', 'ig_android_stories_sensitivity_screen', 'ig_android_camera_arengine_shader_caching_universe', 'ig_android_insta_video_broadcaster_infra_perf', 'ig_android_direct_view_more_qe', 'ig_android_direct_visual_message_prefetch_count_universe', 'ig_camera_android_ar_effect_stories_deeplink', 'ig_android_client_side_delivery_universe', 'ig_android_stories_send_client_reels_on_tray_fetch_universe', 'ig_android_direct_inbox_background_view_models', 'ig_android_startup_thread_priority', 'ig_android_stories_viewer_responsiveness_universe', 'ig_android_live_use_rtc_upload_universe', 'ig_android_live_ama_viewer_universe', 'ig_android_business_id_conversion_universe', 'ig_smb_ads_holdout_2018_h2_universe', 'ig_android_modal_activity_no_animation_fix_universe', 'ig_android_camera_post_smile_low_end_universe', 'ig_android_live_realtime_comments_universe', 'ig_android_vc_in_app_notification_universe', 'ig_eof_caboose_universe', 'ig_android_new_one_tap_nux_universe', 'ig_android_igds_edit_profile_fields', 'ig_android_downgrade_viewport_exit_behavior', 'ig_android_mi_batch_upload_universe', 'ig_camera_android_segmentation_async_universe', 'ig_android_use_recyclerview_for_direct_search_universe', 'ig_android_live_comment_fetch_frequency_universe', 'ig_android_create_page_on_top_universe', 'ig_android_direct_log_badge_count_inconsistent', 'ig_android_stories_text_format_emphasis', 'ig_android_question_sticker_replied_state', 'ig_android_ad_connection_manager_universe', 'ig_android_image_upload_skip_queue_only_on_wifi', 'ig_android_ad_watchbrowse_carousel_universe', 'ig_android_interactions_show_verified_badge_for_preview_comments_universe', 'ig_stories_question_sticker_music_format_prompt', 'ig_android_activity_feed_row_click', 'ig_android_hide_crashing_newsfeed_story_t38131972', 'ig_android_video_upload_quality_qe1', 'ig_android_save_collaborative_collections', 'ig_android_location_attribution_text', 'ig_camera_android_profile_ar_notification_universe', 'coupon_price_test_boost_instagram_media_acquisition_universe', 'ig_android_video_outputsurface_handlerthread_universe', 'ig_android_country_code_fix_universe', 'ig_perf_android_holdout_2018_h1', 'ig_android_stories_music_overlay', 'ig_android_enable_lean_crash_reporting_universe', 'ig_android_resumable_downloads_logging_universe', 'ig_android_stories_default_rear_camera_universe', 'ig_android_low_latency_consumption_universe', 'ig_android_offline_mode_holdout', 'ig_android_foreground_location_collection', 'ig_android_stories_close_friends_disable_first_time_badge', 'ig_android_react_native_universe_kill_switch', 'ig_android_video_ta_universe', 'ig_android_media_rows_async_inflate', 'ig_android_stories_gallery_video_segmentation', 'ig_android_stories_in_feed_preview_notify_fix_universe', 'ig_android_video_rebind_force_keep_playing_fix', 'ig_android_direct_business_holdout', 'ig_android_xposting_upsell_directly_after_sharing_to_story', 'ig_android_gallery_high_quality_photo_thumbnails', 'ig_android_interactions_new_comment_like_pos_universe', 'ig_feed_core_experience_universe', 'ig_android_friends_sticker', 'ig_android_business_ix_universe', 'ig_android_suggested_highlights', 'ig_android_stories_posting_offline_ui', 'ig_android_stories_close_friends_rings_remove_green_universe', 'ig_android_canvas_tilt_to_pan_universe', 'ig_android_vc_background_call_toast_universe', 'ig_android_concurrent_cold_start_universe', 'ig_promote_default_destination_universe', 'mi_viewpoint_viewability_universe', 'ig_android_location_page_info_page_upsell', 'igds_android_listrow_migration_universe', 'ig_direct_reshare_sharesheet_ranking', 'ig_android_fb_sync_options_universe', 'ig_android_drawable_usage_logging_universe', 'ig_android_recommend_accounts_destination_routing_fix', 'ig_android_fix_prepare_direct_push', 'ig_direct_android_larger_media_reshare_style', 'ig_android_video_feed_universe', 'ig_android_building_aymf_universe', 'ig_android_internal_sticker_universe', 'ig_traffic_routing_universe', 'ig_android_search_normalization', 'ig_android_ad_watchmore_entry_point_universe', 'ig_camera_android_segmentation_enabled_universe', 'ig_android_igtv_always_show_browse_ui', 'ig_android_page_claim_deeplink_qe', 'ig_explore_2018_h2_account_rec_deduplication_android', 'ig_android_story_accidentally_click_investigation_universe', 'ig_android_shopping_pdp_hero_carousel', 'ig_android_clear_inflight_image_request', 'ig_android_show_su_in_other_users_follow_list', 'ig_android_stories_infeed_lower_threshold_launch', 'ig_android_main_feed_video_countdown_timer', 'instagram_interests_holdout', 'ig_android_continuous_video_capture', 'ig_android_category_search_edit_profile', 'ig_android_contact_invites_nux_universe', 'ig_android_settings_search_v2_universe', 'ig_android_video_upload_iframe_interval', 'ig_business_new_value_prop_universe', 'ig_android_power_metrics', 'ig_android_stories_collapse_seen_segments', 'ig_android_live_follow_from_comments_universe', 'ig_android_hashtag_discover_tab', 'ig_android_live_skip_live_encoder_pts_correction', 'ig_android_reel_zoom_universe', 'enable_creator_account_conversion_v0_universe', 'ig_android_test_not_signing_address_book_unlink_endpoint', 'ig_android_direct_tabbed_media_picker', 'ig_android_direct_mutation_manager_job_scheduler', 'ig_ei_option_setting_universe', 'ig_android_hashtag_related_items_over_logging', 'ig_android_livewith_liveswap_optimization_universe', 'ig_android_direct_new_intro_card', 'ig_camera_android_supported_capabilities_api_universe', 'ig_android_video_webrtc_textureview', 'ig_android_share_claim_page_universe', 'ig_direct_android_mentions_sender', 'ig_android_whats_app_contact_invite_universe', 'ig_android_video_scrubber_thumbnail_universe', 'ig_camera_ar_image_transform_library', 'ig_android_insights_creation_growth_universe', 'ig_android_igtv_refresh_tv_guide_interval', 'ig_android_stories_gif_sticker', 'ig_android_stories_music_broadcast_receiver', 'ig_android_fb_profile_integration_fbnc_universe', 'ig_android_low_data_mode', 'ig_fb_graph_differentiation_control', 'ig_android_show_create_content_pages_universe', 'ig_android_igsystrace_universe', 'ig_android_new_contact_invites_entry_points_universe', 'ig_android_ccu_jobscheduler_inner', 'ig_android_netego_scroll_perf', 'ig_android_fb_connect_follow_invite_flow', 'ig_android_invite_list_button_redesign_universe', 'ig_android_react_native_email_sms_settings_universe', 'ig_android_igtv_aspect_ratio_limits', 'ig_hero_player', 'ig_android_save_auto_sharing_to_fb_option_on_server', 'ig_android_live_presence_universe', 'ig_android_whitehat_options_universe', 'android_cameracore_preview_frame_listener2_ig_universe', 'ig_android_memory_manager', 'ig_account_recs_in_chaining', 'ig_explore_2018_finite_chain_android_universe', 'ig_android_tagging_video_preview', 'ig_android_feed_survey_viewpoint', 'ig_android_hashtag_search_suggestions', 'ig_android_profile_neue_infra_rollout_universe', 'ig_android_instacrash_detection', 'ig_android_interactions_add_search_bar_to_likes_list_universe', 'ig_android_vc_capture_universe', 'ig_nametag_local_ocr_universe', 'ig_branded_content_share_to_facebook', 'ig_android_direct_segmented_video', 'ig_android_search_page_v2', 'ig_android_stories_recently_captured_universe', 'ig_business_integrity_ipc_universe', 'ig_android_share_product_universe', 'ig_fb_graph_differentiation_top_k_fb_coefficients', 'ig_shopping_viewer_share_action', 'ig_android_direct_share_story_to_facebook', 'ig_android_business_attribute_sync', 'ig_android_video_time_to_live_cache_eviction', 'ig_android_location_feed_related_business', 'ig_android_view_and_likes_cta_universe', 'ig_live_holdout_h2_2018', 'ig_android_profile_memories_universe', 'ig_promote_budget_warning_view_universe', 'ig_android_redirect_to_web_on_oembed_fail_universe', 'ig_android_optic_new_focus_controller', 'ig_android_shortcuts', 'ig_android_search_hashtag_badges', 'ig_android_navigation_latency_logger', 'ig_android_direct_composer_avoid_hiding_thread_camera', 'ig_android_direct_remix_visual_messages', 'ig_android_custom_story_import_intent', 'ig_android_biz_new_choose_category', 'ig_android_view_info_universe', 'ig_android_camera_upsell_dialog', 'ig_android_business_ix_self_serve', 'ig_android_dead_code_detection', 'ig_android_ad_watchbrowse_universe', 'ig_android_pbia_proxy_profile_universe', 'ig_android_qp_kill_switch', 'ig_android_gap_rule_enforcer_universe', 'ig_android_direct_delete_or_block_from_message_requests', 'ig_android_direct_left_aligned_navigation_bar', 'ig_android_feed_load_more_viewpoint_universe', 'ig_android_stories_reshare_reply_msg', 'ig_android_one_tap_sharesheet_fb_extensions', 'ig_android_stories_feeback_message_composer_entry_point', 'ig_direct_holdout_h2_2018', 'ig_camera_android_facetracker_v12_universe', 'ig_android_camera_ar_effects_low_storage_universe', 'ig_camera_android_black_feed_sticker_fix_universe', 'ig_android_direct_media_forwarding', 'ig_android_camera_attribution_in_direct', 'ig_android_audience_control', 'ig_android_stories_cross_sharing_to_fb_holdout_universe', 'ig_android_enable_main_feed_reel_tray_preloading', 'ig_android_profile_neue_universe', 'ig_company_profile_holdout', 'ig_camera_android_areffect_photo_capture_universe', 'ig_rti_inapp_notifications_universe', 'ig_android_vc_join_timeout_universe', 'ig_android_feed_core_ads_2019_h1_holdout_universe', 'ig_android_interactions_composer_mention_search_universe', 'ig_android_igtv_save', 'ig_android_follower_following_whatsapp_invite_universe', 'ig_android_claim_location_page', 'ig_android_story_ads_2019_h1_holdout_universe', 'ig_android_3pspp', 'ig_android_cache_timespan_objects', 'ig_timestamp_public_test', 'ig_android_histogram_reporter', 'ig_android_feed_auto_share_to_facebook_dialog', 'ig_android_arengine_separate_prepare', 'ig_android_skip_button_content_on_connect_fb_universe', 'ig_android_igtv_profile_tab', 'ig_android_show_fb_name_universe', 'ig_android_interactions_inline_composer_extensions_universe', 'ig_camera_async_space_validation_for_ar', 'ig_android_pigeon_sampling', 'ig_story_camera_reverse_video_experiment', 'ig_android_live_use_timestamp_normalizer', 'ig_android_profile_lazy_load_carousel_media', 'ig_android_stories_question_sticker_music_format', 'ig_business_profile_18h1_holdout_universe', 'ig_pacing_overriding_universe', 'ig_android_direct_allow_multiline_composition', 'ig_android_interactions_emoji_extension_followup_universe', 'ig_android_story_ads_direct_cta_universe', 'ig_android_q3lc_transparency_control_settings', 'ig_stories_selfie_sticker', 'ig_android_sso_use_trustedapp_universe', 'ig_android_ad_increase_story_adpreload_priority_universe', 'ig_android_interests_netego_dismiss', 'ig_direct_giphy_gifs_rating', 'ig_android_shopping_catalogsearch', 'ig_android_stories_music_awareness_universe', 'ig_android_qcc_perf', 'ig_android_stories_reels_tray_media_count_check', 'ig_android_new_fb_page_selection', 'ig_android_facebook_crosspost', 'ig_android_internal_collab_save', 'ig_video_holdout_h2_2017', 'ig_android_story_sharing_universe', 'ig_promote_post_insights_entry_universe', 'ig_android_direct_thread_store_rewrite', 'ig_android_qp_clash_management_enabled_v4_universe', 'ig_branded_content_paid_branded_content', 'ig_android_large_heap_override', 'ig_android_live_subscribe_user_level_universe', 'ig_android_igtv_creation_flow', 'ig_android_video_call_finish_universe', 'ig_android_direct_mqtt_send', 'ig_android_do_not_fetch_follow_requests_on_success', 'ig_android_remove_push_notifications', 'ig_android_vc_directapp_integration_universe', 'ig_android_explore_discover_people_entry_point_universe', 'ig_android_sonar_prober_universe', 'ig_android_live_bg_download_face_filter_assets_universe', 'ig_android_gif_framerate_throttling', 'ig_android_live_webrtc_livewith_params', 'ig_android_vc_always_start_connection_on_condition_universe', 'ig_camera_worldtracking_set_scale_by_arclass', 'ig_android_direct_inbox_typing_indicator', 'ig_android_stories_music_lyrics_scrubber', 'ig_feed_experience', 'ig_android_direct_new_thread_local_search_fix_universe', 'ig_android_appstate_logger', 'ig_promote_insights_video_views_universe', 'ig_android_dismiss_recent_searches', 'ig_android_downloadable_igrtc_module', 'ig_android_fb_link_ui_polish_universe', 'ig_stories_music_sticker', 'ig_android_device_capability_framework', 'ig_scroll_by_two_cards_for_suggested_invite_universe', 'ig_android_stories_helium_balloon_badging_universe', 'ig_android_business_remove_unowned_fb_pages', 'ig_android_stories_combined_asset_search', 'ig_stories_allow_camera_actions_while_recording', 'ig_android_analytics_mark_events_as_offscreen', 'ig_android_optic_feature_testing', 'ig_android_camera_universe', 'ig_android_optic_photo_cropping_fixes', 'ig_camera_regiontracking_use_similarity_tracker_for_scaling', 'ig_android_refreshable_list_view_check_spring', 'felix_android_video_quality', 'ig_android_biz_endpoint_switch', 'ig_android_direct_continuous_capture', 'ig_android_comments_direct_reply_to_author', 'ig_android_vc_webrtc_params', 'ig_android_claim_or_connect_page_on_xpost', 'ig_android_anr', 'ig_android_optic_new_architecture', 'ig_android_stories_viewer_as_modal_high_end_launch', 'ig_android_hashtag_follow_chaining_over_logging', 'ig_new_eof_demarcator_universe', 'ig_android_push_notifications_settings_redesign_universe', 'ig_hashtag_display_universe', 'ig_fbns_push', 'coupon_price_test_ad4ad_instagram_resurrection_universe', 'ig_android_live_rendering_looper_universe', 'ig_android_mqtt_cookie_auth_memcache_universe', 'ig_android_live_end_redirect_universe', 'ig_android_direct_mutation_manager_media_2', 'ig_android_ccu_jobscheduler_outer', 'ig_smb_ads_holdout_2019_h1_universe', 'ig_fb_graph_differentiation', 'ig_android_stories_share_extension_video_segmentation', 'ig_android_interactions_realtime_typing_indicator_and_live_comments', 'ig_android_stories_create_flow_favorites_tooltip', 'ig_android_live_nerd_stats_universe', 'ig_android_universe_video_production', 'ig_android_hide_reset_with_fb_universe', 'ig_android_reactive_feed_like_count', 'ig_android_stories_music_precapture', 'ig_android_vc_service_crash_fix_universe', 'ig_android_shopping_product_overlay', 'ig_android_direct_double_tap_to_like_hearts', 'ig_camera_android_api_rewrite_universe', 'ig_android_growth_fci_team_holdout_universe', 'ig_android_stories_gallery_recyclerview_kit_universe', 'ig_android_story_ads_instant_sub_impression_universe', 'ig_business_signup_biz_id_universe', 'ig_android_save_all', 'ig_android_main_feed_fragment_scroll_timing_histogram_uni', 'ig_android_ttcp_improvements', 'ig_android_camera_ar_platform_profile_universe', 'ig_explore_2018_topic_channel_navigation_android_universe', 'ig_android_live_fault_tolerance_universe', 'ig_android_stories_viewer_tall_android_cap_media_universe', 'native_contact_invites_universe', 'ig_android_dash_script', 'ig_android_insights_media_hashtag_insight_universe', 'ig_camera_fast_tti_universe', 'ig_android_stories_whatsapp_share', 'ig_android_inappnotification_rootactivity_tweak', 'ig_android_render_thread_memory_leak_holdout', 'ig_android_private_highlights_universe', 'ig_android_rate_limit_feed_video_module', 'ig_android_one_tap_fbshare', 'ig_share_to_story_toggle_include_shopping_product', 'ig_android_direct_speed_cam_univ', 'ig_payments_billing_address', 'ig_android_ufiv3_holdout', 'ig_android_new_camera_design_container_animations_universe', 'ig_android_livewith_guest_adaptive_camera_universe', 'ig_android_direct_fix_playing_invalid_visual_message', 'ig_shopping_viewer_intent_actions', 'ig_promote_add_payment_navigation_universe', 'ig_android_optic_disable_post_capture_preview_restart', 'ig_android_main_feed_refresh_style_universe', 'ig_android_live_analytics', 'ig_android_story_ads_performance_universe_1', 'ig_android_stories_viewer_modal_activity', 'ig_android_story_ads_performance_universe_3', 'ig_android_story_ads_performance_universe_4', 'ig_android_feed_seen_state_with_view_info', 'ig_android_ads_profile_cta_feed_universe', 'ig_android_vc_cowatch_universe', 'ig_android_optic_thread_priorities', 'ig_android_igtv_chaining', 'ig_android_live_qa_viewer_v1_universe', 'ig_android_stories_show_story_not_available_error_msg', 'ig_android_inline_notifications_recommended_user', 'ig_shopping_post_insights', 'ig_android_webrtc_streamid_salt_universe', 'ig_android_wellbeing_timeinapp_v1_universe', 'ig_android_profile_cta_v3', 'ig_android_video_qp_logger_universe', 'ig_android_cache_video_autoplay_checker', 'ig_android_live_suggested_live_expansion', 'ig_android_vc_start_from_direct_inbox_universe', 'ig_perf_android_holdout', 'ig_fb_graph_differentiation_only_fb_candidates', 'ig_android_expired_build_lockout', 'ig_promote_lotus_universe', 'ig_android_video_streaming_upload_universe', 'ig_android_optic_fast_preview_restart_listener', 'ig_interactions_h1_2019_team_holdout_universe', 'ig_android_ad_async_ads_universe', 'ig_camera_android_effect_info_bottom_sheet_universe', 'ig_android_stories_feedback_badging_universe', 'ig_android_sorting_on_self_following_universe', 'ig_android_edit_location_page_info', 'ig_promote_are_you_sure_universe', 'ig_android_interactions_feed_label_below_comments_refactor_universe', 'ig_android_camera_platform_effect_share_universe', 'ig_stories_engagement_swipe_animation_simple_universe', 'ig_login_activity', 'ig_android_direct_quick_replies', 'ig_android_fbns_optimization_universe', 'ig_android_stories_alignment_guides_universe', 'ig_android_rn_ads_manager_universe', 'ig_explore_2018_post_chaining_account_recs_dedupe_universe', 'ig_android_click_to_direct_story_reaction_universe', 'ig_internal_research_settings', 'ig_android_stories_video_seeking_audio_bug_fix', 'ig_android_insights_holdout', 'ig_android_swipe_up_area_universe', 'ig_android_rendering_controls', 'ig_android_feed_post_sticker', 'ig_android_inline_editing_local_prefill', 'ig_android_hybrid_bitmap_v3_prenougat', 'ig_android_cronet_stack', 'ig_android_enable_igrtc_module', 'ig_android_scroll_audio_priority', 'ig_android_shopping_product_appeals_universe', 'ig_android_fb_follow_server_linkage_universe', 'ig_android_fblocation_universe', 'ig_android_direct_updated_story_reference_ui', 'ig_camera_holdout_h1_2018_product', 'live_with_request_to_join_button_universe', 'ig_android_music_continuous_capture', 'ig_android_churned_find_friends_redirect_to_discover_people', 'ig_android_main_feed_new_posts_indicator_universe', 'ig_vp9_hd_blacklist', 'ig_ios_queue_time_qpl_universe', 'ig_android_split_contacts_list', 'ig_android_connect_owned_page_universe', 'ig_android_felix_prefetch_thumbnail_sprite_sheet', 'ig_android_multi_dex_class_loader_v2', 'ig_android_watch_and_more_redesign', 'igtv_feed_previews', 'ig_android_qp_batch_fetch_caching_enabled_v1_universe', 'ig_android_profile_edit_phone_universe', 'ig_android_vc_renderer_type_universe', 'ig_android_local_2018_h2_holdout', 'ig_android_purx_native_checkout_universe', 'ig_android_vc_disable_lock_screen_content_access_universe', 'ig_android_business_transaction_in_stories_creator', 'android_cameracore_ard_ig_integration', 'ig_video_experimental_encoding_consumption_universe', 'ig_android_iab_autofill', 'ig_android_location_page_intent_survey', 'ig_camera_android_segmentation_qe2_universe', 'ig_android_image_mem_cache_strong_ref_universe', 'ig_android_business_promote_refresh_fb_access_token_universe', 'ig_android_stories_samsung_sharing_integration', 'ig_android_hashtag_header_display', 'ig_discovery_holdout_2019_h1_universe', 'ig_android_user_url_deeplink_fbpage_endpoint', 'ig_android_direct_mutation_manager_handler_thread_universe', 'ig_branded_content_show_settings_universe', 'ig_android_ad_holdout_watchandmore_universe', 'ig_android_direct_thread_green_dot_presence_universe', 'ig_android_camera_new_post_smile_universe', 'ig_android_shopping_signup_redesign_universe', 'ig_android_vc_missed_call_notification_action_reply', 'allow_publish_page_universe', 'ig_android_experimental_onetap_dialogs_universe', 'ig_promote_ppe_v2_universe', 'android_cameracore_ig_gl_oom_fixes_universe', 'ig_android_multi_capture_camera', 'ig_android_fb_family_navigation_badging_user', 'ig_android_follow_requests_copy_improvements', 'ig_media_geo_gating', 'ig_android_comments_notifications_universe', 'ig_android_render_output_surface_timeout_universe', 'ig_android_drop_frame_check_paused', 'ig_direct_raven_sharesheet_ranking', 'ig_android_realtime_mqtt_logging', 'ig_family_bridges_holdout_universe', 'ig_android_rainbow_hashtags', 'ig_android_ad_watchinstall_universe', 'ig_android_ad_account_top_followers_universe', 'ig_android_betamap_universe', 'ig_android_video_ssim_report_universe', 'ig_android_cache_network_util', 'ig_android_leak_detector_upload_universe', 'ig_android_carousel_prefetch_bumping', 'ig_fbns_preload_default', 'ig_android_inline_appeal_show_new_content', 'ig_fbns_kill_switch', 'ig_hashtag_following_holdout_universe', 'ig_android_show_weekly_ci_upsell_limit', 'ig_android_direct_reel_options_entry_point_2_universe', 'enable_creator_account_conversion_v0_animation', 'ig_android_http_service_same_thread', 'ig_camera_holdout_h1_2018_performance', 'ig_android_direct_mutation_manager_cancel_fix_universe', 'ig_music_dash', 'ig_android_fb_url_universe', 'ig_android_reel_raven_video_segmented_upload_universe', 'ig_android_promote_native_migration_universe', 'ig_camera_android_badge_face_effects_universe', 'ig_android_hybrid_bitmap_v3_nougat', 'ig_android_multi_author_story_reshare_universe', 'ig_android_vc_camera_zoom_universe', 'ig_android_enable_request_compression_ccu', 'ig_android_video_controls_universe', 'ig_android_logging_metric_universe_v2', 'ig_android_xposting_newly_fbc_people', 'ig_android_visualcomposer_inapp_notification_universe', 'ig_android_contact_point_upload_rate_limit_killswitch', 'ig_android_webrtc_encoder_factory_universe', 'ig_android_search_impression_logging', 'ig_android_handle_username_in_media_urls_universe', 'ig_android_sso_kototoro_app_universe', 'ig_android_mi_holdout_h1_2019', 'ig_android_igtv_autoplay_on_prepare', 'ig_file_based_session_handler_2_universe', 'ig_branded_content_tagging_upsell', 'ig_shopping_insights_parity_universe_android', 'ig_android_live_ama_universe', 'ig_android_external_gallery_import_affordance', 'ig_android_updatelistview_on_loadmore', 'ig_android_optic_new_zoom_controller', 'ig_android_hide_type_mode_camera_button', 'ig_android_photos_qpl', 'ig_android_reel_impresssion_cache_key_qe_universe', 'ig_android_show_profile_picture_upsell_in_reel_universe', 'ig_android_live_viewer_tap_to_hide_chrome_universe', 'ig_discovery_holdout_universe', 'ig_android_direct_import_google_photos2', 'ig_android_stories_tray_in_viewer', 'ig_android_request_verification_badge', 'ig_android_direct_unlimited_raven_replays_inthreadsession_fix', 'ig_android_netgo_cta', 'ig_android_viewpoint_netego_universe', 'ig_android_stories_separate_overlay_creation', 'ig_android_iris_improvements', 'ig_android_biz_conversion_naming_test', 'ig_android_fci_empty_feed_friend_search', 'ig_android_hashtag_page_support_places_tab', 'ig_camera_android_ar_platform_universe', 'ig_android_stories_viewer_prefetch_improvements', 'ig_android_optic_camera_warmup', 'ig_android_place_search_profile_image', 'ig_android_interactions_in_feed_comment_view_universe', 'ig_android_fb_sharing_shortcut', 'ig_android_oreo_hardware_bitmap', 'ig_android_analytics_diagnostics_universe', 'ig_android_insights_creative_tutorials_universe', 'ig_android_vc_universe', 'ig_android_profile_unified_follow_view', 'ig_android_collect_os_usage_events_universe', 'ig_android_shopping_nux_timing_universe', 'ig_android_fbpage_on_profile_side_tray', 'ig_android_native_logcat_interceptor', 'ig_android_direct_thread_content_picker', 'ig_android_notif_improvement_universe', 'ig_face_effect_ranking', 'ig_android_shopping_more_from_business', 'ig_feed_content_universe', 'ig_android_hacked_account_reporting', 'ig_android_disk_usage_logging_universe', 'ig_android_ad_redesign_iab_universe', 'ig_android_banyan_migration', 'ig_android_profile_event_leak_holdout', 'ig_android_stories_loading_automatic_retry', 'ig_android_gqls_typing_indicator', 'ag_family_bridges_2018_h2_holdout', 'ig_promote_net_promoter_score_universe', 'ig_android_direct_last_seen_message_indicator', 'ig_android_biz_conversion_suggest_biz_nux', 'ig_android_log_mediacodec_info', 'ig_android_vc_participant_state_callee_universe', 'ig_camera_android_boomerang_attribution_universe', 'ig_android_stories_weblink_creation', 'ig_android_horizontal_swipe_lfd_logging', 'ig_profile_company_holdout_h2_2018', 'ig_android_ads_manager_pause_resume_ads_universe', 'ig_promote_fix_expired_fb_accesstoken_android_universe', 'ig_android_stories_media_seen_batching_universe', 'ig_android_interactions_nav_to_permalink_followup_universe', 'ig_android_live_titles_viewer_side_view_title_universe', 'ig_android_direct_mark_as_read_notif_action', 'ig_android_edit_highlight_redesign', 'ig_android_direct_mutation_manager_backoff_universe', 'ig_android_interactions_comment_like_for_all_feed_universe', 'ig_android_mi_skip_analytic_event_pool_universe', 'ig_android_fbc_upsell_on_dp_first_load', 'ig_android_audio_ingestion_params', 'ig_android_video_call_participant_state_caller_universe', 'ig_fbns_shared', 'ig_feed_engagement_holdout_2018_h1', 'ig_camera_android_bg_processor', 'ig_android_optic_new_features_implementation', 'ig_android_stories_reel_interactive_tap_target_size', 'ig_android_video_live_trace_universe', 'ig_android_igtv_browse_with_pip_v2', 'ig_android_interactive_listview_during_refresh', 'ig_android_igtv_feed_banner_universe', 'ig_android_unfollow_from_main_feed_v2', 'ig_android_self_story_setting_option_in_menu', 'ig_android_ad_watchlead_universe', 'ufi_share', 'ig_android_live_special_codec_size_list', 'ig_android_live_qa_broadcaster_v1_universe', 'ig_android_hide_stories_viewer_list_universe', 'ig_android_direct_albums', 'ig_android_business_transaction_in_stories_consumer', 'ig_android_scroll_stories_tray_to_front_when_stories_ready', 'ig_android_direct_thread_composer', 'instagram_android_stories_sticker_tray_redesign', 'ig_camera_android_superzoom_icon_position_universe', 'ig_android_business_cross_post_with_biz_id_infra', 'ig_android_photo_invites', 'ig_android_reel_tray_item_impression_logging_viewpoint', 'ig_account_identity_2018_h2_lockdown_phone_global_holdout', 'ig_android_high_res_gif_stickers', 'ig_close_friends_v4', 'ig_fb_cross_posting_sender_side_holdout', 'ig_android_ads_history_universe', 'ig_android_comments_composer_newline_universe', 'ig_rtc_use_dtls_srtp', 'ig_promote_media_picker_universe', 'ig_android_live_start_live_button_universe', 'ig_android_vc_ongoing_call_notification_universe', 'ig_android_rate_limit_feed_item_viewable_helper', 'ig_android_bitmap_attribution_check', 'ig_android_ig_to_fb_sync_universe', 'ig_android_reel_viewer_data_buffer_size', 'ig_two_fac_totp_enable', 'ig_android_vc_missed_call_notification_action_call_back', 'ig_android_stories_landscape_mode', 'ig_android_ad_view_ads_native_universe', 'ig_android_igtv_whitelisted_for_web', 'ig_android_global_prefetch_scheduler', 'ig_android_live_thread_delay_for_mute_universe', 'ig_close_friends_v4_global', 'ig_android_share_publish_page_universe', 'ig_android_new_camera_design_universe', 'ig_direct_max_participants', 'ig_promote_hide_local_awareness_universe', 'ig_android_graphql_survey_new_proxy_universe', 'ig_android_fs_creation_flow_tweaks', 'ig_android_ad_watchbrowse_cta_universe', 'ig_android_camera_new_tray_behavior_universe', 'ig_android_direct_expiring_media_loading_errors', 'ig_android_show_fbunlink_button_based_on_server_data', 'ig_android_downloadable_vp8_module', 'ig_android_igtv_feed_trailer', 'ig_android_fb_profile_integration_universe', 'ig_android_profile_private_banner', 'ig_camera_android_focus_attribution_universe', 'ig_android_rage_shake_whitelist', 'ig_android_su_follow_back', 'ig_android_prefetch_notification_data', 'ig_android_webrtc_icerestart_on_failure_universe', 'ig_android_vpvd_impressions_universe', 'ig_android_payload_based_scheduling', 'ig_android_grid_cell_count', 'ig_android_new_highlight_button_text', 'ig_android_direct_search_bar_redesign', 'ig_android_hashtag_row_preparer', 'ig_android_ad_pbia_header_click_universe', 'ig_android_direct_visual_viewer_ppr_fix', 'ig_background_prefetch', 'ig_camera_android_focus_in_post_universe', 'ig_android_time_spent_dashboard', 'ig_android_direct_vm_activity_sheet', 'ig_promote_political_ads_universe', 'ig_android_stories_auto_retry_reels_media_and_segments', 'ig_android_recommend_accounts_killswitch', 'ig_shopping_video_half_sheet', 'ig_android_ad_iab_qpl_kill_switch_universe', 'ig_android_interactions_direct_share_comment_universe', 'ig_android_vc_sounds_universe', 'ig_camera_android_cache_format_picker_children', 'ig_android_post_live_expanded_comments_view_universe', 'ig_android_always_use_server_recents', 'ig_android_qp_slot_cooldown_enabled_universe', 'ig_android_asset_picker_improvements', 'ig_android_direct_activator_cards', 'ig_android_pending_media_manager_init_fix_universe', 'ig_android_facebook_global_state_sync_frequency_universe', 'ig_android_network_trace_migration', 'ig_android_creation_new_post_title', 'ig_android_reverse_audio', 'ig_android_camera_gallery_upload_we_universe', 'ig_android_direct_inbox_async_diffing_universe', 'ig_android_live_save_to_camera_roll_limit_by_screen_size_universe', 'ig_android_profile_phone_autoconfirm_universe', 'ig_direct_stories_questions', 'ig_android_optic_surface_texture_cleanup', 'ig_android_vc_use_timestamp_normalizer', 'ig_android_post_recs_show_more_button_universe', 'ig_shopping_checkout_mvp_experiment', 'ig_android_direct_pending_media', 'ig_android_scroll_main_feed', 'ig_android_intialization_chunk_410', 'ig_android_story_ads_default_long_video_duration', 'ig_android_interactions_mention_search_presence_dot_universe', 'ig_android_stories_music_sticker_position', 'ig_android_direct_character_limit', 'ig_stories_music_themes', 'ig_android_nametag_save_experiment_universe', 'ig_android_media_rows_prepare_10_31', 'ig_android_fs_new_gallery', 'ig_android_stories_hide_retry_button_during_loading_launch', 'ig_android_remove_follow_all_fb_list', 'ig_android_biz_conversion_editable_profile_review_universe', 'ig_android_shopping_checkout_mvp', 'ig_android_local_info_page', 'ig_android_direct_log_badge_count' ])
__all__ = ['EXPERIMENTS'] experiments = ','.join(['ig_android_sticker_search_explorations', 'android_ig_camera_ar_asset_manager_improvements_universe', 'ig_android_stories_seen_state_serialization', 'ig_stories_photo_time_duration_universe', 'ig_android_bitmap_cache_executor_size', 'ig_android_stories_music_search_typeahead', 'ig_android_delayed_comments', 'ig_android_switch_back_option', 'ig_android_video_profiler_loom_traces', 'ig_android_paid_branded_content_rendering', 'ig_android_direct_app_reel_grid_search', 'ig_android_stories_no_inflation_on_app_start', 'ig_android_camera_sdk_check_gl_surface_r2', 'ig_promote_review_screen_title_universe', 'ig_android_direct_newer_single_line_composer_universe', 'ig_direct_holdout_h1_2019', 'ig_explore_2019_h1_destination_cover', 'ig_android_direct_stories_in_direct_inbox', 'ig_fb_graph_differentiation_no_fb_data', 'ig_android_recyclerview_binder_group_enabled_universe', 'ig_android_direct_share_sheet_custom_fast_scroller', 'ig_android_video_exoplayer_2', 'ig_android_shopping_channel_in_explore', 'ig_android_stories_music_filters', 'ig_android_2018_h1_hashtag_report_universe', 'ig_android_live_replay_highlights_universe', 'ig_android_hashtag_page_reduced_related_items', 'ig_android_live_titles_broadcaster_side_create_title_universe', 'ig_android_fbns_preload_direct_universe', 'ig_android_prefetch_carousels_on_swipe_universe', 'ig_camera_network_activity_logger', 'ig_camera_remove_display_rotation_cb_universe', 'ig_android_interactions_migrate_inline_composer_to_viewpoint_universe', 'ig_android_realtime_always_start_connection_on_condition_universe', 'ig_android_ad_leadgen_single_screen_universe', 'ig_android_enable_zero_rating', 'ig_android_import_page_post_after_biz_conversion', 'ig_camera_ar_effect_attribution_position', 'ig_android_vc_call_ended_cleanup_universe', 'ig_stories_engagement_holdout_2019_h1_universe', 'ig_android_story_import_intent', 'ig_direct_report_conversation_universe', 'ig_biz_graph_connection_universe', 'ig_android_codec_high_profile', 'ig_android_nametag', 'ig_android_sso_family_key_universe', 'ig_android_parse_direct_messages_bytes_universe', 'ig_hashtag_creation_universe', 'ig_android_gallery_order_by_date_taken', 'ig_android_igtv_reshare', 'ig_end_of_feed_universe', 'ig_android_share_others_post_reorder', 'ig_android_additional_contact_in_nux', 'ig_android_live_use_all_preview_sizes', 'ig_android_clarify_invite_options', 'ig_android_live_align_by_2_universe', 'ig_android_separate_network_executor', 'ig_android_realtime_manager_optimization', 'ig_android_auto_advance_su_unit_when_scrolled_off_screen', 'ig_android_network_cancellation', 'ig_android_media_as_sticker', 'ig_android_stories_video_prefetch_kb', 'ig_android_maintabfragment', 'ig_inventory_connections', 'ig_stories_injection_tool_enabled_universe', 'ig_android_stories_disable_highlights_media_preloading', 'ig_android_live_start_broadcast_optimized_universe', 'ig_android_stories_question_response_mutation_universe', 'ig_android_onetap_upsell_change_pwd', 'ig_nametag_data_collection', 'ig_android_disable_scroll_listeners', 'ig_android_persistent_nux', 'ig_android_igtv_audio_always_on', 'ig_android_enable_liger_preconnect_universe', 'ig_android_persistent_duplicate_notif_checker_user_based', 'ig_android_rate_limit_mediafeedviewablehelper', 'ig_android_search_remove_null_state_sections', 'ig_android_stories_viewer_drawable_cache_universe', 'ig_direct_android_reply_modal_universe', 'ig_android_biz_qp_suggest_page', 'ig_shopping_indicator_content_variations_android', 'ig_android_stories_reel_media_item_automatic_retry', 'ig_fb_notification_universe', 'ig_android_live_disable_speed_test_ui_timeout_universe', 'ig_android_direct_thread_scroll_perf_oncreate_universe', 'ig_android_low_data_mode_backup_2', 'ig_android_invite_xout_universe', 'ig_android_low_data_mode_backup_3', 'ig_android_low_data_mode_backup_4', 'ig_android_low_data_mode_backup_5', 'ig_android_video_abr_universe', 'ig_android_low_data_mode_backup_1', 'ig_android_signup_refactor_santity', 'ig_challenge_general_v2', 'ig_android_place_signature_universe', 'ig_android_hide_button_for_invite_facebook_friends', 'ig_android_business_promote_tooltip', 'ig_android_follow_requests_ui_improvements', 'ig_android_shopping_post_tagging_nux_universe', 'ig_android_stories_sensitivity_screen', 'ig_android_camera_arengine_shader_caching_universe', 'ig_android_insta_video_broadcaster_infra_perf', 'ig_android_direct_view_more_qe', 'ig_android_direct_visual_message_prefetch_count_universe', 'ig_camera_android_ar_effect_stories_deeplink', 'ig_android_client_side_delivery_universe', 'ig_android_stories_send_client_reels_on_tray_fetch_universe', 'ig_android_direct_inbox_background_view_models', 'ig_android_startup_thread_priority', 'ig_android_stories_viewer_responsiveness_universe', 'ig_android_live_use_rtc_upload_universe', 'ig_android_live_ama_viewer_universe', 'ig_android_business_id_conversion_universe', 'ig_smb_ads_holdout_2018_h2_universe', 'ig_android_modal_activity_no_animation_fix_universe', 'ig_android_camera_post_smile_low_end_universe', 'ig_android_live_realtime_comments_universe', 'ig_android_vc_in_app_notification_universe', 'ig_eof_caboose_universe', 'ig_android_new_one_tap_nux_universe', 'ig_android_igds_edit_profile_fields', 'ig_android_downgrade_viewport_exit_behavior', 'ig_android_mi_batch_upload_universe', 'ig_camera_android_segmentation_async_universe', 'ig_android_use_recyclerview_for_direct_search_universe', 'ig_android_live_comment_fetch_frequency_universe', 'ig_android_create_page_on_top_universe', 'ig_android_direct_log_badge_count_inconsistent', 'ig_android_stories_text_format_emphasis', 'ig_android_question_sticker_replied_state', 'ig_android_ad_connection_manager_universe', 'ig_android_image_upload_skip_queue_only_on_wifi', 'ig_android_ad_watchbrowse_carousel_universe', 'ig_android_interactions_show_verified_badge_for_preview_comments_universe', 'ig_stories_question_sticker_music_format_prompt', 'ig_android_activity_feed_row_click', 'ig_android_hide_crashing_newsfeed_story_t38131972', 'ig_android_video_upload_quality_qe1', 'ig_android_save_collaborative_collections', 'ig_android_location_attribution_text', 'ig_camera_android_profile_ar_notification_universe', 'coupon_price_test_boost_instagram_media_acquisition_universe', 'ig_android_video_outputsurface_handlerthread_universe', 'ig_android_country_code_fix_universe', 'ig_perf_android_holdout_2018_h1', 'ig_android_stories_music_overlay', 'ig_android_enable_lean_crash_reporting_universe', 'ig_android_resumable_downloads_logging_universe', 'ig_android_stories_default_rear_camera_universe', 'ig_android_low_latency_consumption_universe', 'ig_android_offline_mode_holdout', 'ig_android_foreground_location_collection', 'ig_android_stories_close_friends_disable_first_time_badge', 'ig_android_react_native_universe_kill_switch', 'ig_android_video_ta_universe', 'ig_android_media_rows_async_inflate', 'ig_android_stories_gallery_video_segmentation', 'ig_android_stories_in_feed_preview_notify_fix_universe', 'ig_android_video_rebind_force_keep_playing_fix', 'ig_android_direct_business_holdout', 'ig_android_xposting_upsell_directly_after_sharing_to_story', 'ig_android_gallery_high_quality_photo_thumbnails', 'ig_android_interactions_new_comment_like_pos_universe', 'ig_feed_core_experience_universe', 'ig_android_friends_sticker', 'ig_android_business_ix_universe', 'ig_android_suggested_highlights', 'ig_android_stories_posting_offline_ui', 'ig_android_stories_close_friends_rings_remove_green_universe', 'ig_android_canvas_tilt_to_pan_universe', 'ig_android_vc_background_call_toast_universe', 'ig_android_concurrent_cold_start_universe', 'ig_promote_default_destination_universe', 'mi_viewpoint_viewability_universe', 'ig_android_location_page_info_page_upsell', 'igds_android_listrow_migration_universe', 'ig_direct_reshare_sharesheet_ranking', 'ig_android_fb_sync_options_universe', 'ig_android_drawable_usage_logging_universe', 'ig_android_recommend_accounts_destination_routing_fix', 'ig_android_fix_prepare_direct_push', 'ig_direct_android_larger_media_reshare_style', 'ig_android_video_feed_universe', 'ig_android_building_aymf_universe', 'ig_android_internal_sticker_universe', 'ig_traffic_routing_universe', 'ig_android_search_normalization', 'ig_android_ad_watchmore_entry_point_universe', 'ig_camera_android_segmentation_enabled_universe', 'ig_android_igtv_always_show_browse_ui', 'ig_android_page_claim_deeplink_qe', 'ig_explore_2018_h2_account_rec_deduplication_android', 'ig_android_story_accidentally_click_investigation_universe', 'ig_android_shopping_pdp_hero_carousel', 'ig_android_clear_inflight_image_request', 'ig_android_show_su_in_other_users_follow_list', 'ig_android_stories_infeed_lower_threshold_launch', 'ig_android_main_feed_video_countdown_timer', 'instagram_interests_holdout', 'ig_android_continuous_video_capture', 'ig_android_category_search_edit_profile', 'ig_android_contact_invites_nux_universe', 'ig_android_settings_search_v2_universe', 'ig_android_video_upload_iframe_interval', 'ig_business_new_value_prop_universe', 'ig_android_power_metrics', 'ig_android_stories_collapse_seen_segments', 'ig_android_live_follow_from_comments_universe', 'ig_android_hashtag_discover_tab', 'ig_android_live_skip_live_encoder_pts_correction', 'ig_android_reel_zoom_universe', 'enable_creator_account_conversion_v0_universe', 'ig_android_test_not_signing_address_book_unlink_endpoint', 'ig_android_direct_tabbed_media_picker', 'ig_android_direct_mutation_manager_job_scheduler', 'ig_ei_option_setting_universe', 'ig_android_hashtag_related_items_over_logging', 'ig_android_livewith_liveswap_optimization_universe', 'ig_android_direct_new_intro_card', 'ig_camera_android_supported_capabilities_api_universe', 'ig_android_video_webrtc_textureview', 'ig_android_share_claim_page_universe', 'ig_direct_android_mentions_sender', 'ig_android_whats_app_contact_invite_universe', 'ig_android_video_scrubber_thumbnail_universe', 'ig_camera_ar_image_transform_library', 'ig_android_insights_creation_growth_universe', 'ig_android_igtv_refresh_tv_guide_interval', 'ig_android_stories_gif_sticker', 'ig_android_stories_music_broadcast_receiver', 'ig_android_fb_profile_integration_fbnc_universe', 'ig_android_low_data_mode', 'ig_fb_graph_differentiation_control', 'ig_android_show_create_content_pages_universe', 'ig_android_igsystrace_universe', 'ig_android_new_contact_invites_entry_points_universe', 'ig_android_ccu_jobscheduler_inner', 'ig_android_netego_scroll_perf', 'ig_android_fb_connect_follow_invite_flow', 'ig_android_invite_list_button_redesign_universe', 'ig_android_react_native_email_sms_settings_universe', 'ig_android_igtv_aspect_ratio_limits', 'ig_hero_player', 'ig_android_save_auto_sharing_to_fb_option_on_server', 'ig_android_live_presence_universe', 'ig_android_whitehat_options_universe', 'android_cameracore_preview_frame_listener2_ig_universe', 'ig_android_memory_manager', 'ig_account_recs_in_chaining', 'ig_explore_2018_finite_chain_android_universe', 'ig_android_tagging_video_preview', 'ig_android_feed_survey_viewpoint', 'ig_android_hashtag_search_suggestions', 'ig_android_profile_neue_infra_rollout_universe', 'ig_android_instacrash_detection', 'ig_android_interactions_add_search_bar_to_likes_list_universe', 'ig_android_vc_capture_universe', 'ig_nametag_local_ocr_universe', 'ig_branded_content_share_to_facebook', 'ig_android_direct_segmented_video', 'ig_android_search_page_v2', 'ig_android_stories_recently_captured_universe', 'ig_business_integrity_ipc_universe', 'ig_android_share_product_universe', 'ig_fb_graph_differentiation_top_k_fb_coefficients', 'ig_shopping_viewer_share_action', 'ig_android_direct_share_story_to_facebook', 'ig_android_business_attribute_sync', 'ig_android_video_time_to_live_cache_eviction', 'ig_android_location_feed_related_business', 'ig_android_view_and_likes_cta_universe', 'ig_live_holdout_h2_2018', 'ig_android_profile_memories_universe', 'ig_promote_budget_warning_view_universe', 'ig_android_redirect_to_web_on_oembed_fail_universe', 'ig_android_optic_new_focus_controller', 'ig_android_shortcuts', 'ig_android_search_hashtag_badges', 'ig_android_navigation_latency_logger', 'ig_android_direct_composer_avoid_hiding_thread_camera', 'ig_android_direct_remix_visual_messages', 'ig_android_custom_story_import_intent', 'ig_android_biz_new_choose_category', 'ig_android_view_info_universe', 'ig_android_camera_upsell_dialog', 'ig_android_business_ix_self_serve', 'ig_android_dead_code_detection', 'ig_android_ad_watchbrowse_universe', 'ig_android_pbia_proxy_profile_universe', 'ig_android_qp_kill_switch', 'ig_android_gap_rule_enforcer_universe', 'ig_android_direct_delete_or_block_from_message_requests', 'ig_android_direct_left_aligned_navigation_bar', 'ig_android_feed_load_more_viewpoint_universe', 'ig_android_stories_reshare_reply_msg', 'ig_android_one_tap_sharesheet_fb_extensions', 'ig_android_stories_feeback_message_composer_entry_point', 'ig_direct_holdout_h2_2018', 'ig_camera_android_facetracker_v12_universe', 'ig_android_camera_ar_effects_low_storage_universe', 'ig_camera_android_black_feed_sticker_fix_universe', 'ig_android_direct_media_forwarding', 'ig_android_camera_attribution_in_direct', 'ig_android_audience_control', 'ig_android_stories_cross_sharing_to_fb_holdout_universe', 'ig_android_enable_main_feed_reel_tray_preloading', 'ig_android_profile_neue_universe', 'ig_company_profile_holdout', 'ig_camera_android_areffect_photo_capture_universe', 'ig_rti_inapp_notifications_universe', 'ig_android_vc_join_timeout_universe', 'ig_android_feed_core_ads_2019_h1_holdout_universe', 'ig_android_interactions_composer_mention_search_universe', 'ig_android_igtv_save', 'ig_android_follower_following_whatsapp_invite_universe', 'ig_android_claim_location_page', 'ig_android_story_ads_2019_h1_holdout_universe', 'ig_android_3pspp', 'ig_android_cache_timespan_objects', 'ig_timestamp_public_test', 'ig_android_histogram_reporter', 'ig_android_feed_auto_share_to_facebook_dialog', 'ig_android_arengine_separate_prepare', 'ig_android_skip_button_content_on_connect_fb_universe', 'ig_android_igtv_profile_tab', 'ig_android_show_fb_name_universe', 'ig_android_interactions_inline_composer_extensions_universe', 'ig_camera_async_space_validation_for_ar', 'ig_android_pigeon_sampling', 'ig_story_camera_reverse_video_experiment', 'ig_android_live_use_timestamp_normalizer', 'ig_android_profile_lazy_load_carousel_media', 'ig_android_stories_question_sticker_music_format', 'ig_business_profile_18h1_holdout_universe', 'ig_pacing_overriding_universe', 'ig_android_direct_allow_multiline_composition', 'ig_android_interactions_emoji_extension_followup_universe', 'ig_android_story_ads_direct_cta_universe', 'ig_android_q3lc_transparency_control_settings', 'ig_stories_selfie_sticker', 'ig_android_sso_use_trustedapp_universe', 'ig_android_ad_increase_story_adpreload_priority_universe', 'ig_android_interests_netego_dismiss', 'ig_direct_giphy_gifs_rating', 'ig_android_shopping_catalogsearch', 'ig_android_stories_music_awareness_universe', 'ig_android_qcc_perf', 'ig_android_stories_reels_tray_media_count_check', 'ig_android_new_fb_page_selection', 'ig_android_facebook_crosspost', 'ig_android_internal_collab_save', 'ig_video_holdout_h2_2017', 'ig_android_story_sharing_universe', 'ig_promote_post_insights_entry_universe', 'ig_android_direct_thread_store_rewrite', 'ig_android_qp_clash_management_enabled_v4_universe', 'ig_branded_content_paid_branded_content', 'ig_android_large_heap_override', 'ig_android_live_subscribe_user_level_universe', 'ig_android_igtv_creation_flow', 'ig_android_video_call_finish_universe', 'ig_android_direct_mqtt_send', 'ig_android_do_not_fetch_follow_requests_on_success', 'ig_android_remove_push_notifications', 'ig_android_vc_directapp_integration_universe', 'ig_android_explore_discover_people_entry_point_universe', 'ig_android_sonar_prober_universe', 'ig_android_live_bg_download_face_filter_assets_universe', 'ig_android_gif_framerate_throttling', 'ig_android_live_webrtc_livewith_params', 'ig_android_vc_always_start_connection_on_condition_universe', 'ig_camera_worldtracking_set_scale_by_arclass', 'ig_android_direct_inbox_typing_indicator', 'ig_android_stories_music_lyrics_scrubber', 'ig_feed_experience', 'ig_android_direct_new_thread_local_search_fix_universe', 'ig_android_appstate_logger', 'ig_promote_insights_video_views_universe', 'ig_android_dismiss_recent_searches', 'ig_android_downloadable_igrtc_module', 'ig_android_fb_link_ui_polish_universe', 'ig_stories_music_sticker', 'ig_android_device_capability_framework', 'ig_scroll_by_two_cards_for_suggested_invite_universe', 'ig_android_stories_helium_balloon_badging_universe', 'ig_android_business_remove_unowned_fb_pages', 'ig_android_stories_combined_asset_search', 'ig_stories_allow_camera_actions_while_recording', 'ig_android_analytics_mark_events_as_offscreen', 'ig_android_optic_feature_testing', 'ig_android_camera_universe', 'ig_android_optic_photo_cropping_fixes', 'ig_camera_regiontracking_use_similarity_tracker_for_scaling', 'ig_android_refreshable_list_view_check_spring', 'felix_android_video_quality', 'ig_android_biz_endpoint_switch', 'ig_android_direct_continuous_capture', 'ig_android_comments_direct_reply_to_author', 'ig_android_vc_webrtc_params', 'ig_android_claim_or_connect_page_on_xpost', 'ig_android_anr', 'ig_android_optic_new_architecture', 'ig_android_stories_viewer_as_modal_high_end_launch', 'ig_android_hashtag_follow_chaining_over_logging', 'ig_new_eof_demarcator_universe', 'ig_android_push_notifications_settings_redesign_universe', 'ig_hashtag_display_universe', 'ig_fbns_push', 'coupon_price_test_ad4ad_instagram_resurrection_universe', 'ig_android_live_rendering_looper_universe', 'ig_android_mqtt_cookie_auth_memcache_universe', 'ig_android_live_end_redirect_universe', 'ig_android_direct_mutation_manager_media_2', 'ig_android_ccu_jobscheduler_outer', 'ig_smb_ads_holdout_2019_h1_universe', 'ig_fb_graph_differentiation', 'ig_android_stories_share_extension_video_segmentation', 'ig_android_interactions_realtime_typing_indicator_and_live_comments', 'ig_android_stories_create_flow_favorites_tooltip', 'ig_android_live_nerd_stats_universe', 'ig_android_universe_video_production', 'ig_android_hide_reset_with_fb_universe', 'ig_android_reactive_feed_like_count', 'ig_android_stories_music_precapture', 'ig_android_vc_service_crash_fix_universe', 'ig_android_shopping_product_overlay', 'ig_android_direct_double_tap_to_like_hearts', 'ig_camera_android_api_rewrite_universe', 'ig_android_growth_fci_team_holdout_universe', 'ig_android_stories_gallery_recyclerview_kit_universe', 'ig_android_story_ads_instant_sub_impression_universe', 'ig_business_signup_biz_id_universe', 'ig_android_save_all', 'ig_android_main_feed_fragment_scroll_timing_histogram_uni', 'ig_android_ttcp_improvements', 'ig_android_camera_ar_platform_profile_universe', 'ig_explore_2018_topic_channel_navigation_android_universe', 'ig_android_live_fault_tolerance_universe', 'ig_android_stories_viewer_tall_android_cap_media_universe', 'native_contact_invites_universe', 'ig_android_dash_script', 'ig_android_insights_media_hashtag_insight_universe', 'ig_camera_fast_tti_universe', 'ig_android_stories_whatsapp_share', 'ig_android_inappnotification_rootactivity_tweak', 'ig_android_render_thread_memory_leak_holdout', 'ig_android_private_highlights_universe', 'ig_android_rate_limit_feed_video_module', 'ig_android_one_tap_fbshare', 'ig_share_to_story_toggle_include_shopping_product', 'ig_android_direct_speed_cam_univ', 'ig_payments_billing_address', 'ig_android_ufiv3_holdout', 'ig_android_new_camera_design_container_animations_universe', 'ig_android_livewith_guest_adaptive_camera_universe', 'ig_android_direct_fix_playing_invalid_visual_message', 'ig_shopping_viewer_intent_actions', 'ig_promote_add_payment_navigation_universe', 'ig_android_optic_disable_post_capture_preview_restart', 'ig_android_main_feed_refresh_style_universe', 'ig_android_live_analytics', 'ig_android_story_ads_performance_universe_1', 'ig_android_stories_viewer_modal_activity', 'ig_android_story_ads_performance_universe_3', 'ig_android_story_ads_performance_universe_4', 'ig_android_feed_seen_state_with_view_info', 'ig_android_ads_profile_cta_feed_universe', 'ig_android_vc_cowatch_universe', 'ig_android_optic_thread_priorities', 'ig_android_igtv_chaining', 'ig_android_live_qa_viewer_v1_universe', 'ig_android_stories_show_story_not_available_error_msg', 'ig_android_inline_notifications_recommended_user', 'ig_shopping_post_insights', 'ig_android_webrtc_streamid_salt_universe', 'ig_android_wellbeing_timeinapp_v1_universe', 'ig_android_profile_cta_v3', 'ig_android_video_qp_logger_universe', 'ig_android_cache_video_autoplay_checker', 'ig_android_live_suggested_live_expansion', 'ig_android_vc_start_from_direct_inbox_universe', 'ig_perf_android_holdout', 'ig_fb_graph_differentiation_only_fb_candidates', 'ig_android_expired_build_lockout', 'ig_promote_lotus_universe', 'ig_android_video_streaming_upload_universe', 'ig_android_optic_fast_preview_restart_listener', 'ig_interactions_h1_2019_team_holdout_universe', 'ig_android_ad_async_ads_universe', 'ig_camera_android_effect_info_bottom_sheet_universe', 'ig_android_stories_feedback_badging_universe', 'ig_android_sorting_on_self_following_universe', 'ig_android_edit_location_page_info', 'ig_promote_are_you_sure_universe', 'ig_android_interactions_feed_label_below_comments_refactor_universe', 'ig_android_camera_platform_effect_share_universe', 'ig_stories_engagement_swipe_animation_simple_universe', 'ig_login_activity', 'ig_android_direct_quick_replies', 'ig_android_fbns_optimization_universe', 'ig_android_stories_alignment_guides_universe', 'ig_android_rn_ads_manager_universe', 'ig_explore_2018_post_chaining_account_recs_dedupe_universe', 'ig_android_click_to_direct_story_reaction_universe', 'ig_internal_research_settings', 'ig_android_stories_video_seeking_audio_bug_fix', 'ig_android_insights_holdout', 'ig_android_swipe_up_area_universe', 'ig_android_rendering_controls', 'ig_android_feed_post_sticker', 'ig_android_inline_editing_local_prefill', 'ig_android_hybrid_bitmap_v3_prenougat', 'ig_android_cronet_stack', 'ig_android_enable_igrtc_module', 'ig_android_scroll_audio_priority', 'ig_android_shopping_product_appeals_universe', 'ig_android_fb_follow_server_linkage_universe', 'ig_android_fblocation_universe', 'ig_android_direct_updated_story_reference_ui', 'ig_camera_holdout_h1_2018_product', 'live_with_request_to_join_button_universe', 'ig_android_music_continuous_capture', 'ig_android_churned_find_friends_redirect_to_discover_people', 'ig_android_main_feed_new_posts_indicator_universe', 'ig_vp9_hd_blacklist', 'ig_ios_queue_time_qpl_universe', 'ig_android_split_contacts_list', 'ig_android_connect_owned_page_universe', 'ig_android_felix_prefetch_thumbnail_sprite_sheet', 'ig_android_multi_dex_class_loader_v2', 'ig_android_watch_and_more_redesign', 'igtv_feed_previews', 'ig_android_qp_batch_fetch_caching_enabled_v1_universe', 'ig_android_profile_edit_phone_universe', 'ig_android_vc_renderer_type_universe', 'ig_android_local_2018_h2_holdout', 'ig_android_purx_native_checkout_universe', 'ig_android_vc_disable_lock_screen_content_access_universe', 'ig_android_business_transaction_in_stories_creator', 'android_cameracore_ard_ig_integration', 'ig_video_experimental_encoding_consumption_universe', 'ig_android_iab_autofill', 'ig_android_location_page_intent_survey', 'ig_camera_android_segmentation_qe2_universe', 'ig_android_image_mem_cache_strong_ref_universe', 'ig_android_business_promote_refresh_fb_access_token_universe', 'ig_android_stories_samsung_sharing_integration', 'ig_android_hashtag_header_display', 'ig_discovery_holdout_2019_h1_universe', 'ig_android_user_url_deeplink_fbpage_endpoint', 'ig_android_direct_mutation_manager_handler_thread_universe', 'ig_branded_content_show_settings_universe', 'ig_android_ad_holdout_watchandmore_universe', 'ig_android_direct_thread_green_dot_presence_universe', 'ig_android_camera_new_post_smile_universe', 'ig_android_shopping_signup_redesign_universe', 'ig_android_vc_missed_call_notification_action_reply', 'allow_publish_page_universe', 'ig_android_experimental_onetap_dialogs_universe', 'ig_promote_ppe_v2_universe', 'android_cameracore_ig_gl_oom_fixes_universe', 'ig_android_multi_capture_camera', 'ig_android_fb_family_navigation_badging_user', 'ig_android_follow_requests_copy_improvements', 'ig_media_geo_gating', 'ig_android_comments_notifications_universe', 'ig_android_render_output_surface_timeout_universe', 'ig_android_drop_frame_check_paused', 'ig_direct_raven_sharesheet_ranking', 'ig_android_realtime_mqtt_logging', 'ig_family_bridges_holdout_universe', 'ig_android_rainbow_hashtags', 'ig_android_ad_watchinstall_universe', 'ig_android_ad_account_top_followers_universe', 'ig_android_betamap_universe', 'ig_android_video_ssim_report_universe', 'ig_android_cache_network_util', 'ig_android_leak_detector_upload_universe', 'ig_android_carousel_prefetch_bumping', 'ig_fbns_preload_default', 'ig_android_inline_appeal_show_new_content', 'ig_fbns_kill_switch', 'ig_hashtag_following_holdout_universe', 'ig_android_show_weekly_ci_upsell_limit', 'ig_android_direct_reel_options_entry_point_2_universe', 'enable_creator_account_conversion_v0_animation', 'ig_android_http_service_same_thread', 'ig_camera_holdout_h1_2018_performance', 'ig_android_direct_mutation_manager_cancel_fix_universe', 'ig_music_dash', 'ig_android_fb_url_universe', 'ig_android_reel_raven_video_segmented_upload_universe', 'ig_android_promote_native_migration_universe', 'ig_camera_android_badge_face_effects_universe', 'ig_android_hybrid_bitmap_v3_nougat', 'ig_android_multi_author_story_reshare_universe', 'ig_android_vc_camera_zoom_universe', 'ig_android_enable_request_compression_ccu', 'ig_android_video_controls_universe', 'ig_android_logging_metric_universe_v2', 'ig_android_xposting_newly_fbc_people', 'ig_android_visualcomposer_inapp_notification_universe', 'ig_android_contact_point_upload_rate_limit_killswitch', 'ig_android_webrtc_encoder_factory_universe', 'ig_android_search_impression_logging', 'ig_android_handle_username_in_media_urls_universe', 'ig_android_sso_kototoro_app_universe', 'ig_android_mi_holdout_h1_2019', 'ig_android_igtv_autoplay_on_prepare', 'ig_file_based_session_handler_2_universe', 'ig_branded_content_tagging_upsell', 'ig_shopping_insights_parity_universe_android', 'ig_android_live_ama_universe', 'ig_android_external_gallery_import_affordance', 'ig_android_updatelistview_on_loadmore', 'ig_android_optic_new_zoom_controller', 'ig_android_hide_type_mode_camera_button', 'ig_android_photos_qpl', 'ig_android_reel_impresssion_cache_key_qe_universe', 'ig_android_show_profile_picture_upsell_in_reel_universe', 'ig_android_live_viewer_tap_to_hide_chrome_universe', 'ig_discovery_holdout_universe', 'ig_android_direct_import_google_photos2', 'ig_android_stories_tray_in_viewer', 'ig_android_request_verification_badge', 'ig_android_direct_unlimited_raven_replays_inthreadsession_fix', 'ig_android_netgo_cta', 'ig_android_viewpoint_netego_universe', 'ig_android_stories_separate_overlay_creation', 'ig_android_iris_improvements', 'ig_android_biz_conversion_naming_test', 'ig_android_fci_empty_feed_friend_search', 'ig_android_hashtag_page_support_places_tab', 'ig_camera_android_ar_platform_universe', 'ig_android_stories_viewer_prefetch_improvements', 'ig_android_optic_camera_warmup', 'ig_android_place_search_profile_image', 'ig_android_interactions_in_feed_comment_view_universe', 'ig_android_fb_sharing_shortcut', 'ig_android_oreo_hardware_bitmap', 'ig_android_analytics_diagnostics_universe', 'ig_android_insights_creative_tutorials_universe', 'ig_android_vc_universe', 'ig_android_profile_unified_follow_view', 'ig_android_collect_os_usage_events_universe', 'ig_android_shopping_nux_timing_universe', 'ig_android_fbpage_on_profile_side_tray', 'ig_android_native_logcat_interceptor', 'ig_android_direct_thread_content_picker', 'ig_android_notif_improvement_universe', 'ig_face_effect_ranking', 'ig_android_shopping_more_from_business', 'ig_feed_content_universe', 'ig_android_hacked_account_reporting', 'ig_android_disk_usage_logging_universe', 'ig_android_ad_redesign_iab_universe', 'ig_android_banyan_migration', 'ig_android_profile_event_leak_holdout', 'ig_android_stories_loading_automatic_retry', 'ig_android_gqls_typing_indicator', 'ag_family_bridges_2018_h2_holdout', 'ig_promote_net_promoter_score_universe', 'ig_android_direct_last_seen_message_indicator', 'ig_android_biz_conversion_suggest_biz_nux', 'ig_android_log_mediacodec_info', 'ig_android_vc_participant_state_callee_universe', 'ig_camera_android_boomerang_attribution_universe', 'ig_android_stories_weblink_creation', 'ig_android_horizontal_swipe_lfd_logging', 'ig_profile_company_holdout_h2_2018', 'ig_android_ads_manager_pause_resume_ads_universe', 'ig_promote_fix_expired_fb_accesstoken_android_universe', 'ig_android_stories_media_seen_batching_universe', 'ig_android_interactions_nav_to_permalink_followup_universe', 'ig_android_live_titles_viewer_side_view_title_universe', 'ig_android_direct_mark_as_read_notif_action', 'ig_android_edit_highlight_redesign', 'ig_android_direct_mutation_manager_backoff_universe', 'ig_android_interactions_comment_like_for_all_feed_universe', 'ig_android_mi_skip_analytic_event_pool_universe', 'ig_android_fbc_upsell_on_dp_first_load', 'ig_android_audio_ingestion_params', 'ig_android_video_call_participant_state_caller_universe', 'ig_fbns_shared', 'ig_feed_engagement_holdout_2018_h1', 'ig_camera_android_bg_processor', 'ig_android_optic_new_features_implementation', 'ig_android_stories_reel_interactive_tap_target_size', 'ig_android_video_live_trace_universe', 'ig_android_igtv_browse_with_pip_v2', 'ig_android_interactive_listview_during_refresh', 'ig_android_igtv_feed_banner_universe', 'ig_android_unfollow_from_main_feed_v2', 'ig_android_self_story_setting_option_in_menu', 'ig_android_ad_watchlead_universe', 'ufi_share', 'ig_android_live_special_codec_size_list', 'ig_android_live_qa_broadcaster_v1_universe', 'ig_android_hide_stories_viewer_list_universe', 'ig_android_direct_albums', 'ig_android_business_transaction_in_stories_consumer', 'ig_android_scroll_stories_tray_to_front_when_stories_ready', 'ig_android_direct_thread_composer', 'instagram_android_stories_sticker_tray_redesign', 'ig_camera_android_superzoom_icon_position_universe', 'ig_android_business_cross_post_with_biz_id_infra', 'ig_android_photo_invites', 'ig_android_reel_tray_item_impression_logging_viewpoint', 'ig_account_identity_2018_h2_lockdown_phone_global_holdout', 'ig_android_high_res_gif_stickers', 'ig_close_friends_v4', 'ig_fb_cross_posting_sender_side_holdout', 'ig_android_ads_history_universe', 'ig_android_comments_composer_newline_universe', 'ig_rtc_use_dtls_srtp', 'ig_promote_media_picker_universe', 'ig_android_live_start_live_button_universe', 'ig_android_vc_ongoing_call_notification_universe', 'ig_android_rate_limit_feed_item_viewable_helper', 'ig_android_bitmap_attribution_check', 'ig_android_ig_to_fb_sync_universe', 'ig_android_reel_viewer_data_buffer_size', 'ig_two_fac_totp_enable', 'ig_android_vc_missed_call_notification_action_call_back', 'ig_android_stories_landscape_mode', 'ig_android_ad_view_ads_native_universe', 'ig_android_igtv_whitelisted_for_web', 'ig_android_global_prefetch_scheduler', 'ig_android_live_thread_delay_for_mute_universe', 'ig_close_friends_v4_global', 'ig_android_share_publish_page_universe', 'ig_android_new_camera_design_universe', 'ig_direct_max_participants', 'ig_promote_hide_local_awareness_universe', 'ig_android_graphql_survey_new_proxy_universe', 'ig_android_fs_creation_flow_tweaks', 'ig_android_ad_watchbrowse_cta_universe', 'ig_android_camera_new_tray_behavior_universe', 'ig_android_direct_expiring_media_loading_errors', 'ig_android_show_fbunlink_button_based_on_server_data', 'ig_android_downloadable_vp8_module', 'ig_android_igtv_feed_trailer', 'ig_android_fb_profile_integration_universe', 'ig_android_profile_private_banner', 'ig_camera_android_focus_attribution_universe', 'ig_android_rage_shake_whitelist', 'ig_android_su_follow_back', 'ig_android_prefetch_notification_data', 'ig_android_webrtc_icerestart_on_failure_universe', 'ig_android_vpvd_impressions_universe', 'ig_android_payload_based_scheduling', 'ig_android_grid_cell_count', 'ig_android_new_highlight_button_text', 'ig_android_direct_search_bar_redesign', 'ig_android_hashtag_row_preparer', 'ig_android_ad_pbia_header_click_universe', 'ig_android_direct_visual_viewer_ppr_fix', 'ig_background_prefetch', 'ig_camera_android_focus_in_post_universe', 'ig_android_time_spent_dashboard', 'ig_android_direct_vm_activity_sheet', 'ig_promote_political_ads_universe', 'ig_android_stories_auto_retry_reels_media_and_segments', 'ig_android_recommend_accounts_killswitch', 'ig_shopping_video_half_sheet', 'ig_android_ad_iab_qpl_kill_switch_universe', 'ig_android_interactions_direct_share_comment_universe', 'ig_android_vc_sounds_universe', 'ig_camera_android_cache_format_picker_children', 'ig_android_post_live_expanded_comments_view_universe', 'ig_android_always_use_server_recents', 'ig_android_qp_slot_cooldown_enabled_universe', 'ig_android_asset_picker_improvements', 'ig_android_direct_activator_cards', 'ig_android_pending_media_manager_init_fix_universe', 'ig_android_facebook_global_state_sync_frequency_universe', 'ig_android_network_trace_migration', 'ig_android_creation_new_post_title', 'ig_android_reverse_audio', 'ig_android_camera_gallery_upload_we_universe', 'ig_android_direct_inbox_async_diffing_universe', 'ig_android_live_save_to_camera_roll_limit_by_screen_size_universe', 'ig_android_profile_phone_autoconfirm_universe', 'ig_direct_stories_questions', 'ig_android_optic_surface_texture_cleanup', 'ig_android_vc_use_timestamp_normalizer', 'ig_android_post_recs_show_more_button_universe', 'ig_shopping_checkout_mvp_experiment', 'ig_android_direct_pending_media', 'ig_android_scroll_main_feed', 'ig_android_intialization_chunk_410', 'ig_android_story_ads_default_long_video_duration', 'ig_android_interactions_mention_search_presence_dot_universe', 'ig_android_stories_music_sticker_position', 'ig_android_direct_character_limit', 'ig_stories_music_themes', 'ig_android_nametag_save_experiment_universe', 'ig_android_media_rows_prepare_10_31', 'ig_android_fs_new_gallery', 'ig_android_stories_hide_retry_button_during_loading_launch', 'ig_android_remove_follow_all_fb_list', 'ig_android_biz_conversion_editable_profile_review_universe', 'ig_android_shopping_checkout_mvp', 'ig_android_local_info_page', 'ig_android_direct_log_badge_count'])
# Copyright 2004 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) """ defines types visitor class interface """ class type_visitor_t(object): """ types visitor interface All functions within this class should be redefined in derived classes. """ def __init__(self): object.__init__(self) def visit_void( self ): raise NotImplementedError() def visit_char( self ): raise NotImplementedError() def visit_unsigned_char( self ): raise NotImplementedError() def visit_signed_char( self ): raise NotImplementedError() def visit_wchar( self ): raise NotImplementedError() def visit_short_int( self ): raise NotImplementedError() def visit_short_unsigned_int( self ): raise NotImplementedError() def visit_bool( self ): raise NotImplementedError() def visit_int( self ): raise NotImplementedError() def visit_unsigned_int( self ): raise NotImplementedError() def visit_long_int( self ): raise NotImplementedError() def visit_long_unsigned_int( self ): raise NotImplementedError() def visit_long_long_int( self ): raise NotImplementedError() def visit_long_long_unsigned_int( self ): raise NotImplementedError() def visit_float( self ): raise NotImplementedError() def visit_double( self ): raise NotImplementedError() def visit_long_double( self ): raise NotImplementedError() def visit_complex_long_double(self): raise NotImplementedError() def visit_complex_double(self): raise NotImplementedError() def visit_complex_float(self): raise NotImplementedError() def visit_jbyte(self): raise NotImplementedError() def visit_jshort(self): raise NotImplementedError() def visit_jint(self): raise NotImplementedError() def visit_jlong(self): raise NotImplementedError() def visit_jfloat(self): raise NotImplementedError() def visit_jdouble(self): raise NotImplementedError() def visit_jchar(self): raise NotImplementedError() def visit_jboolean(self): raise NotImplementedError() def visit_volatile( self ): raise NotImplementedError() def visit_const( self ): raise NotImplementedError() def visit_pointer( self ): raise NotImplementedError() def visit_reference( self ): raise NotImplementedError() def visit_array( self ): raise NotImplementedError() def visit_free_function_type( self ): raise NotImplementedError() def visit_member_function_type( self ): raise NotImplementedError() def visit_member_variable_type( self ): raise NotImplementedError() def visit_declarated( self ): raise NotImplementedError() def visit_restrict( self ): raise NotImplementedError()
""" defines types visitor class interface """ class Type_Visitor_T(object): """ types visitor interface All functions within this class should be redefined in derived classes. """ def __init__(self): object.__init__(self) def visit_void(self): raise not_implemented_error() def visit_char(self): raise not_implemented_error() def visit_unsigned_char(self): raise not_implemented_error() def visit_signed_char(self): raise not_implemented_error() def visit_wchar(self): raise not_implemented_error() def visit_short_int(self): raise not_implemented_error() def visit_short_unsigned_int(self): raise not_implemented_error() def visit_bool(self): raise not_implemented_error() def visit_int(self): raise not_implemented_error() def visit_unsigned_int(self): raise not_implemented_error() def visit_long_int(self): raise not_implemented_error() def visit_long_unsigned_int(self): raise not_implemented_error() def visit_long_long_int(self): raise not_implemented_error() def visit_long_long_unsigned_int(self): raise not_implemented_error() def visit_float(self): raise not_implemented_error() def visit_double(self): raise not_implemented_error() def visit_long_double(self): raise not_implemented_error() def visit_complex_long_double(self): raise not_implemented_error() def visit_complex_double(self): raise not_implemented_error() def visit_complex_float(self): raise not_implemented_error() def visit_jbyte(self): raise not_implemented_error() def visit_jshort(self): raise not_implemented_error() def visit_jint(self): raise not_implemented_error() def visit_jlong(self): raise not_implemented_error() def visit_jfloat(self): raise not_implemented_error() def visit_jdouble(self): raise not_implemented_error() def visit_jchar(self): raise not_implemented_error() def visit_jboolean(self): raise not_implemented_error() def visit_volatile(self): raise not_implemented_error() def visit_const(self): raise not_implemented_error() def visit_pointer(self): raise not_implemented_error() def visit_reference(self): raise not_implemented_error() def visit_array(self): raise not_implemented_error() def visit_free_function_type(self): raise not_implemented_error() def visit_member_function_type(self): raise not_implemented_error() def visit_member_variable_type(self): raise not_implemented_error() def visit_declarated(self): raise not_implemented_error() def visit_restrict(self): raise not_implemented_error()
""" Copyright 2022 Searis AS 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 PyClarifyException(Exception): pass class ImportError(PyClarifyException): """PyClarify Import Error Raised if the user attempts to use functionality which requires an uninstalled package. Args: module (str): Name of the module which could not be imported message (str): The error message to output. """ def __init__(self, module: str, message: str = None): self.module = module self.message = ( message or "The functionality your are trying to use requires '{}' to be installed.".format( self.module ) ) def __str__(self): return self.message class FilterError(PyClarifyException): """PyClarify Filter Error Raised if the user attempts to create Filter with operator that does not refelct the values. Args: field (str): Name of the field which produced the error values : message (str): The error message to output. """ def __init__(self, field: str, desired_type, actual_values, message: str = None): self.field = field self.desired_type = desired_type self.actual_values = actual_values self.message = ( message or "The operator '{}' does not allow values of type '{}'. You used '{}'.".format( self.field, self.desired_type, self.actual_values ) ) def __str__(self): return self.message class TypeError(PyClarifyException): """PyClarify Type Error Raised if the user attempts to use functionality which combines the content of two Clarify Models. Args: module (str): Name of the module which could not be imported message (str): The error message to output. """ def __init__(self, source, other, message: str = None): self.other = other self.source = source self.message = ( message or "The objects you are trying to combine do not have the same type '{}' and '{}'.".format( type(self.other), type(self.source) ) ) def __str__(self): return self.message
""" Copyright 2022 Searis AS 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 Pyclarifyexception(Exception): pass class Importerror(PyClarifyException): """PyClarify Import Error Raised if the user attempts to use functionality which requires an uninstalled package. Args: module (str): Name of the module which could not be imported message (str): The error message to output. """ def __init__(self, module: str, message: str=None): self.module = module self.message = message or "The functionality your are trying to use requires '{}' to be installed.".format(self.module) def __str__(self): return self.message class Filtererror(PyClarifyException): """PyClarify Filter Error Raised if the user attempts to create Filter with operator that does not refelct the values. Args: field (str): Name of the field which produced the error values : message (str): The error message to output. """ def __init__(self, field: str, desired_type, actual_values, message: str=None): self.field = field self.desired_type = desired_type self.actual_values = actual_values self.message = message or "The operator '{}' does not allow values of type '{}'. You used '{}'.".format(self.field, self.desired_type, self.actual_values) def __str__(self): return self.message class Typeerror(PyClarifyException): """PyClarify Type Error Raised if the user attempts to use functionality which combines the content of two Clarify Models. Args: module (str): Name of the module which could not be imported message (str): The error message to output. """ def __init__(self, source, other, message: str=None): self.other = other self.source = source self.message = message or "The objects you are trying to combine do not have the same type '{}' and '{}'.".format(type(self.other), type(self.source)) def __str__(self): return self.message
"jq_eval rule" load("@bazel_skylib//lib:collections.bzl", "collections") load("@bazel_skylib//lib:shell.bzl", "shell") _DOC = "Defines a jq eval execution." _ATTRS = { "srcs": attr.label_list( doc = "Files to apply filter to.", allow_files = True, ), "filter": attr.string( doc = "Filter to evaluate", ), "filter_file": attr.label( doc = "Filter file to evaluate", allow_single_file = True, ), "indent": attr.int( doc = "Use the given number of spaces (no more than 7) for indentation", default = 2, ), "seq": attr.bool( doc = "Use the application/json-seq MIME type scheme for separating JSON texts in jq's input and output", ), "stream": attr.bool( doc = "Parse the input in streaming fashion, outputting arrays of path and leaf values", ), "slurp": attr.bool( doc = "Instead of running the filter for each JSON object in the input, read the entire input stream into a large array and run the filter just once", ), "raw_input": attr.bool( doc = "Don't parse the input as JSON. Instead, each line of text is passed to the filter as a string", ), "compact_output": attr.bool( doc = "More compact output by putting each JSON object on a single line", ), "tab": attr.bool( doc = "Use a tab for each indentation level instead of two spaces", ), "sort_keys": attr.bool( doc = "Output the fields of each object with the keys in sorted order", ), "raw_output": attr.bool( doc = "With this option, if the filter's result is a string then it will be written directly to standard output rather than being formatted as a JSON string with quotes", ), "join_output": attr.bool( doc = "Like raw_output but jq won't print a newline after each output", ), "nul_output": attr.bool( doc = "Like raw_output but jq will print NUL instead of newline after each output", ), "exit_status": attr.bool( doc = "Sets the exit status of jq to 0 if the last output values was neither false nor null, 1 if the last output value was either false or null, or 4 if no valid result was ever produced", ), "args": attr.string_dict( doc = "Passes values to the jq program as a predefined variables", ), "argsjson": attr.string_dict( doc = "Passes JSON-encoded values to the jq program as a predefined variables", ), } def _impl(ctx): out = ctx.actions.declare_file(ctx.label.name + ".json") command = [ctx.var["JQ_BIN"]] if ctx.attr.filter: command.append(shell.quote(ctx.attr.filter)) for f in ctx.files.srcs: command.append(f.path) if ctx.attr.seq: command.append("--seq") if ctx.attr.stream: command.append("--stream") if ctx.attr.slurp: command.append("--slurp") if ctx.attr.raw_input: command.append("--raw-input") if ctx.attr.compact_output: command.append("--compact-output") if ctx.attr.tab: command.append("--tab") if ctx.attr.sort_keys: command.append("--sort-keys") if ctx.attr.raw_output: command.append("--raw-output") if ctx.attr.join_output: command.append("--join-output") if ctx.attr.nul_output: command.append("--nul-output") if ctx.attr.exit_status: command.append("--exit-status") for [name, value] in ctx.attr.args: command.append("--arg {} {}", shell.quote(name), shell.quote(value)) for [name, value] in ctx.attr.argsjson: command.append("--argjson {} {}", shell.quote(name), shell.quote(value)) command.append("--indent {}".format(ctx.attr.indent)) ctx.actions.run_shell( inputs = ctx.files.srcs, outputs = [out], arguments = [out.path], tools = ctx.toolchains["@slamdev_rules_jq//jq:toolchain_type"].default.files, command = " ".join(command) + " > $1", mnemonic = "JQ", progress_message = "JQ to %{output}", ) return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles(files = [out]))] eval = rule( doc = _DOC, implementation = _impl, attrs = _ATTRS, provides = [DefaultInfo], toolchains = ["@slamdev_rules_jq//jq:toolchain_type"], )
"""jq_eval rule""" load('@bazel_skylib//lib:collections.bzl', 'collections') load('@bazel_skylib//lib:shell.bzl', 'shell') _doc = 'Defines a jq eval execution.' _attrs = {'srcs': attr.label_list(doc='Files to apply filter to.', allow_files=True), 'filter': attr.string(doc='Filter to evaluate'), 'filter_file': attr.label(doc='Filter file to evaluate', allow_single_file=True), 'indent': attr.int(doc='Use the given number of spaces (no more than 7) for indentation', default=2), 'seq': attr.bool(doc="Use the application/json-seq MIME type scheme for separating JSON texts in jq's input and output"), 'stream': attr.bool(doc='Parse the input in streaming fashion, outputting arrays of path and leaf values'), 'slurp': attr.bool(doc='Instead of running the filter for each JSON object in the input, read the entire input stream into a large array and run the filter just once'), 'raw_input': attr.bool(doc="Don't parse the input as JSON. Instead, each line of text is passed to the filter as a string"), 'compact_output': attr.bool(doc='More compact output by putting each JSON object on a single line'), 'tab': attr.bool(doc='Use a tab for each indentation level instead of two spaces'), 'sort_keys': attr.bool(doc='Output the fields of each object with the keys in sorted order'), 'raw_output': attr.bool(doc="With this option, if the filter's result is a string then it will be written directly to standard output rather than being formatted as a JSON string with quotes"), 'join_output': attr.bool(doc="Like raw_output but jq won't print a newline after each output"), 'nul_output': attr.bool(doc='Like raw_output but jq will print NUL instead of newline after each output'), 'exit_status': attr.bool(doc='Sets the exit status of jq to 0 if the last output values was neither false nor null, 1 if the last output value was either false or null, or 4 if no valid result was ever produced'), 'args': attr.string_dict(doc='Passes values to the jq program as a predefined variables'), 'argsjson': attr.string_dict(doc='Passes JSON-encoded values to the jq program as a predefined variables')} def _impl(ctx): out = ctx.actions.declare_file(ctx.label.name + '.json') command = [ctx.var['JQ_BIN']] if ctx.attr.filter: command.append(shell.quote(ctx.attr.filter)) for f in ctx.files.srcs: command.append(f.path) if ctx.attr.seq: command.append('--seq') if ctx.attr.stream: command.append('--stream') if ctx.attr.slurp: command.append('--slurp') if ctx.attr.raw_input: command.append('--raw-input') if ctx.attr.compact_output: command.append('--compact-output') if ctx.attr.tab: command.append('--tab') if ctx.attr.sort_keys: command.append('--sort-keys') if ctx.attr.raw_output: command.append('--raw-output') if ctx.attr.join_output: command.append('--join-output') if ctx.attr.nul_output: command.append('--nul-output') if ctx.attr.exit_status: command.append('--exit-status') for [name, value] in ctx.attr.args: command.append('--arg {} {}', shell.quote(name), shell.quote(value)) for [name, value] in ctx.attr.argsjson: command.append('--argjson {} {}', shell.quote(name), shell.quote(value)) command.append('--indent {}'.format(ctx.attr.indent)) ctx.actions.run_shell(inputs=ctx.files.srcs, outputs=[out], arguments=[out.path], tools=ctx.toolchains['@slamdev_rules_jq//jq:toolchain_type'].default.files, command=' '.join(command) + ' > $1', mnemonic='JQ', progress_message='JQ to %{output}') return [default_info(files=depset([out]), runfiles=ctx.runfiles(files=[out]))] eval = rule(doc=_DOC, implementation=_impl, attrs=_ATTRS, provides=[DefaultInfo], toolchains=['@slamdev_rules_jq//jq:toolchain_type'])
#!/usr/bin/env python3 """Codon/Amino Acid table conversion""" codon_table = """ Isoleucine ATT ATC ATA Leucine CTT CTC CTA CTG TTA TTG Valine GTT GTC GTA GTG Phenylalanine TTT TTC Methionine ATG Cysteine TGT TGC Alanine GCT GCC GCA GCG Glycine GGT GGC GGA GGG Proline CCT CCC CCA CCG Threonine ACT ACC ACA ACG Serine TCT TCC TCA TCG AGT AGC Tyrosine TAT TAC Tryptophan TGG Glutamine CAA CAG Asparagine AAT AAC Histidine CAT CAC Glutamic_acid GAA GAG Aspartic_acid GAT GAC Lysine AAA AAG Arginine CGT CGC CGA CGG AGA AGG Stop TAA TAG TGA """ aa2codons = {} for line in codon_table.strip().splitlines(): [aa, codons] = line.split(maxsplit=1) aa2codons[aa] = codons.split() print('AA -> codons') print(aa2codons) codon2aa = {} for aa, codons in aa2codons.items(): for codon in codons: codon2aa[codon] = aa print('Codon -> AA') print(codon2aa)
"""Codon/Amino Acid table conversion""" codon_table = '\nIsoleucine ATT ATC ATA\nLeucine CTT CTC CTA CTG TTA TTG\nValine GTT GTC GTA GTG\nPhenylalanine TTT TTC\nMethionine ATG\nCysteine TGT TGC\nAlanine GCT GCC GCA GCG\nGlycine GGT GGC GGA GGG\nProline CCT CCC CCA CCG\nThreonine ACT ACC ACA ACG\nSerine TCT TCC TCA TCG AGT AGC\nTyrosine TAT TAC\nTryptophan TGG\nGlutamine CAA CAG\nAsparagine AAT AAC\nHistidine CAT CAC\nGlutamic_acid GAA GAG\nAspartic_acid GAT GAC\nLysine AAA AAG\nArginine CGT CGC CGA CGG AGA AGG\nStop TAA TAG TGA\n' aa2codons = {} for line in codon_table.strip().splitlines(): [aa, codons] = line.split(maxsplit=1) aa2codons[aa] = codons.split() print('AA -> codons') print(aa2codons) codon2aa = {} for (aa, codons) in aa2codons.items(): for codon in codons: codon2aa[codon] = aa print('Codon -> AA') print(codon2aa)
""" Code for computing the mean. Using a list of tuples. """ def mean(l): s=0 for i in t: s = s +(i[0] * i[1]) return s t = [] x= (0,0.2) t.append(x) t.append((137,0.55)) t.append((170,0.25)) print(t) print(mean(t))
""" Code for computing the mean. Using a list of tuples. """ def mean(l): s = 0 for i in t: s = s + i[0] * i[1] return s t = [] x = (0, 0.2) t.append(x) t.append((137, 0.55)) t.append((170, 0.25)) print(t) print(mean(t))
# encoding: utf-8 # Copyright 2008 California Institute of Technology. ALL RIGHTS # RESERVED. U.S. Government Sponsorship acknowledged. ''' Unit, functional, and other tests. '''
""" Unit, functional, and other tests. """
#function to get a string made of its first three characters of a specified string. # If the length of the string is less than 3 then return the original string. def first_three(str): return str[:3] if len(str) > 3 else str print(first_three('ipy')) print(first_three('python')) print(first_three('py'))
def first_three(str): return str[:3] if len(str) > 3 else str print(first_three('ipy')) print(first_three('python')) print(first_three('py'))
#!/usr/bin/env python """ Description: Fractional Backpack args: goods:[(price, weight)...] capacity: the total capacity of bag return: num_goods: the number of each goods val: total value of the bag """ def fractional_backpack(goods: list(tuple), capacity: int) -> (list, int | float): # initialize a list represent the number of each goods num_goods = [0 for _ in range(len(goods))] val = 0 # total value of the bag for idx, (price, weight) in enumerate(goods): if capacity >= weight: num_goods[idx] = 1 capacity -= weight val += price else: num_goods[idx] = capacity / weight capacity = 0 val += num_goods[idx] * price break return num_goods, val goods = [(60, 10), (100, 20), (120, 30)] goods.sort(key=lambda x: x[0] / x[1], reverse=True) # pick the most worthy(price/weight) goods fist res = fractional_backpack(goods, 50) print(res)
""" Description: Fractional Backpack args: goods:[(price, weight)...] capacity: the total capacity of bag return: num_goods: the number of each goods val: total value of the bag """ def fractional_backpack(goods: list(tuple), capacity: int) -> (list, int | float): num_goods = [0 for _ in range(len(goods))] val = 0 for (idx, (price, weight)) in enumerate(goods): if capacity >= weight: num_goods[idx] = 1 capacity -= weight val += price else: num_goods[idx] = capacity / weight capacity = 0 val += num_goods[idx] * price break return (num_goods, val) goods = [(60, 10), (100, 20), (120, 30)] goods.sort(key=lambda x: x[0] / x[1], reverse=True) res = fractional_backpack(goods, 50) print(res)
def factorial_digit_sum(num): fact_total = 1 while num != 1: fact_total *= num num -= 1 fact_total_str = str(fact_total) total_list = [] sum_total = 0 for i in fact_total_str: total_list.append(i) for i in total_list: sum_total += int(i) return sum_total print(factorial_digit_sum(100))
def factorial_digit_sum(num): fact_total = 1 while num != 1: fact_total *= num num -= 1 fact_total_str = str(fact_total) total_list = [] sum_total = 0 for i in fact_total_str: total_list.append(i) for i in total_list: sum_total += int(i) return sum_total print(factorial_digit_sum(100))
# This is an input class. Do not edit. class LinkedList: def __init__(self, value): self.value = value self.next = None # O(n) time | O(n) space - where n is the number of nodes in the Linked List def nodeSwap(head): if head is None or head.next is None: return head nextNode = head.next head.next = nodeSwap(head.next.next) nextNode.next = head return nextNode
class Linkedlist: def __init__(self, value): self.value = value self.next = None def node_swap(head): if head is None or head.next is None: return head next_node = head.next head.next = node_swap(head.next.next) nextNode.next = head return nextNode
arrow_array = [ [[0,1,0], [1,1,1], [0,1,0], [0,1,0], [0,1,0]] ] print(arrow_array[0][0][0])
arrow_array = [[[0, 1, 0], [1, 1, 1], [0, 1, 0], [0, 1, 0], [0, 1, 0]]] print(arrow_array[0][0][0])
TREE = "#" def hit_test(map_, y, x, width) -> bool: while x >= width: x -= width return map_[y][x] == TREE def hit_test_map(map_, vy, vx) -> int: height, width = len(map_), len(map_[0]) r = 0 for x, y in enumerate(range(0, height, vy)): r += hit_test(map_, y, x * vx, width) return r def convert_to_map(s: str) -> list: return [n.strip() for n in s.strip("\n").splitlines()] def hit_test_multi(s: str) -> int: map_ = convert_to_map(s) return hit_test_map(map_, 1, 1) * hit_test_map(map_, 1, 3) * hit_test_map(map_, 1, 5) * hit_test_map(map_, 1, 7) * hit_test_map(map_, 2, 1) def run_tests(): test_input = """..##....... #...#...#.. .#....#..#. ..#.#...#.# .#...##..#. ..#.##..... .#.#.#....# .#........# #.##...#... #...##....# .#..#...#.#""" test_output = 336 test_map = convert_to_map(test_input) assert hit_test_map(test_map, 1, 1) == 2 assert hit_test_map(test_map, 1, 3) == 7 assert hit_test_map(test_map, 1, 5) == 3 assert hit_test_map(test_map, 1, 7) == 4 assert hit_test_map(test_map, 2, 1) == 2 assert hit_test_multi(test_input) == test_output def run() -> int: with open("inputs/input_03.txt") as file: data = file.read() return hit_test_multi(data) if __name__ == "__main__": run_tests() print(run())
tree = '#' def hit_test(map_, y, x, width) -> bool: while x >= width: x -= width return map_[y][x] == TREE def hit_test_map(map_, vy, vx) -> int: (height, width) = (len(map_), len(map_[0])) r = 0 for (x, y) in enumerate(range(0, height, vy)): r += hit_test(map_, y, x * vx, width) return r def convert_to_map(s: str) -> list: return [n.strip() for n in s.strip('\n').splitlines()] def hit_test_multi(s: str) -> int: map_ = convert_to_map(s) return hit_test_map(map_, 1, 1) * hit_test_map(map_, 1, 3) * hit_test_map(map_, 1, 5) * hit_test_map(map_, 1, 7) * hit_test_map(map_, 2, 1) def run_tests(): test_input = '..##.......\n #...#...#..\n .#....#..#.\n ..#.#...#.#\n .#...##..#.\n ..#.##.....\n .#.#.#....#\n .#........#\n #.##...#...\n #...##....#\n .#..#...#.#' test_output = 336 test_map = convert_to_map(test_input) assert hit_test_map(test_map, 1, 1) == 2 assert hit_test_map(test_map, 1, 3) == 7 assert hit_test_map(test_map, 1, 5) == 3 assert hit_test_map(test_map, 1, 7) == 4 assert hit_test_map(test_map, 2, 1) == 2 assert hit_test_multi(test_input) == test_output def run() -> int: with open('inputs/input_03.txt') as file: data = file.read() return hit_test_multi(data) if __name__ == '__main__': run_tests() print(run())
''' Vibrator ======= The :class:`Vibrator` provides access to public methods to use vibrator of your device. .. note:: On Android your app needs the VIBRATE permission to access the vibrator. Simple Examples --------------- To vibrate your device:: >>> from plyer import vibrator >>> time=2 >>> vibrator.vibrate(time=time) To set a pattern:: >>> vibrator.pattern(pattern=pattern, repeat=repeat) To know whether vibrator exists or not:: >>> vibrator.exists() To cancel vibration:: >>> vibrator.cancel() ''' class Vibrator(object): '''Vibration facade. ''' def vibrate(self, time=1): '''Ask the vibrator to vibrate for the given period. :param time: Time to vibrate for, in seconds. Default is 1. ''' self._vibrate(time=time) def _vibrate(self, **kwargs): raise NotImplementedError() def pattern(self, pattern=(0, 1), repeat=-1): '''Ask the vibrator to vibrate with the given pattern, with an optional repeat. :param pattern: Pattern to vibrate with. Should be a list of times in seconds. The first number is how long to wait before vibrating, and subsequent numbers are times to vibrate and not vibrate alternately. Defaults to ``[0, 1]``. :param repeat: Index at which to repeat the pattern. When the vibration pattern reaches this index, it will start again from the beginning. Defaults to ``-1``, which means no repeat. ''' self._pattern(pattern=pattern, repeat=repeat) def _pattern(self, **kwargs): raise NotImplementedError() def exists(self): '''Check if the device has a vibrator. Returns True or False. ''' return self._exists() def _exists(self, **kwargs): raise NotImplementedError() def cancel(self): '''Cancels any current vibration, and stops the vibrator.''' self._cancel() def _cancel(self, **kwargs): raise NotImplementedError()
""" Vibrator ======= The :class:`Vibrator` provides access to public methods to use vibrator of your device. .. note:: On Android your app needs the VIBRATE permission to access the vibrator. Simple Examples --------------- To vibrate your device:: >>> from plyer import vibrator >>> time=2 >>> vibrator.vibrate(time=time) To set a pattern:: >>> vibrator.pattern(pattern=pattern, repeat=repeat) To know whether vibrator exists or not:: >>> vibrator.exists() To cancel vibration:: >>> vibrator.cancel() """ class Vibrator(object): """Vibration facade. """ def vibrate(self, time=1): """Ask the vibrator to vibrate for the given period. :param time: Time to vibrate for, in seconds. Default is 1. """ self._vibrate(time=time) def _vibrate(self, **kwargs): raise not_implemented_error() def pattern(self, pattern=(0, 1), repeat=-1): """Ask the vibrator to vibrate with the given pattern, with an optional repeat. :param pattern: Pattern to vibrate with. Should be a list of times in seconds. The first number is how long to wait before vibrating, and subsequent numbers are times to vibrate and not vibrate alternately. Defaults to ``[0, 1]``. :param repeat: Index at which to repeat the pattern. When the vibration pattern reaches this index, it will start again from the beginning. Defaults to ``-1``, which means no repeat. """ self._pattern(pattern=pattern, repeat=repeat) def _pattern(self, **kwargs): raise not_implemented_error() def exists(self): """Check if the device has a vibrator. Returns True or False. """ return self._exists() def _exists(self, **kwargs): raise not_implemented_error() def cancel(self): """Cancels any current vibration, and stops the vibrator.""" self._cancel() def _cancel(self, **kwargs): raise not_implemented_error()
# # PySNMP MIB module ONEACCESS-SYS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEACCESS-SYS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:34:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint") oacExpIMSystem, oacMIBModules = mibBuilder.importSymbols("ONEACCESS-GLOBAL-REG", "oacExpIMSystem", "oacMIBModules") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") ModuleIdentity, TimeTicks, ObjectIdentity, Unsigned32, MibIdentifier, iso, Counter64, Counter32, Integer32, NotificationType, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "TimeTicks", "ObjectIdentity", "Unsigned32", "MibIdentifier", "iso", "Counter64", "Counter32", "Integer32", "NotificationType", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "IpAddress") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") oacSysMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 671)) oacSysMIBModule.setRevisions(('2014-05-05 00:01', '2011-06-15 00:00', '2010-12-14 00:01', '2010-08-11 10:00', '2010-07-08 10:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: oacSysMIBModule.setRevisionsDescriptions(('Contact updated', 'oacExpIMSysFactory OID updated', 'Add objects for Factory area description.', 'Fixed minor corrections. changed oacExpIMSysHwcDescription type from OCTET STRING to DisplayString.', 'This MIB module describes system Management objects.',)) if mibBuilder.loadTexts: oacSysMIBModule.setLastUpdated('201405050001Z') if mibBuilder.loadTexts: oacSysMIBModule.setOrganization(' OneAccess ') if mibBuilder.loadTexts: oacSysMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: pascal.kesteloot@oneaccess-net.com') if mibBuilder.loadTexts: oacSysMIBModule.setDescription('Add Cpu usage table for multicore HW') class OASysHwcClass(TextualConvention, Integer32): description = 'The object specify the class of OASysHwc' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2)) namedValues = NamedValues(("board", 0), ("cpu", 1), ("slot", 2)) class OASysHwcType(TextualConvention, Integer32): description = 'The object specify the type of OASysHwc' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("mainboard", 0), ("microprocessor", 1), ("ram", 2), ("flash", 3), ("dsp", 4), ("uplink", 5), ("module", 6)) class OASysCoreType(TextualConvention, Integer32): description = 'The object specify the type of Core usage' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("controlplane", 0), ("dataforwarding", 1), ("application", 2), ("mixed", 3)) oacExpIMSysStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1)) oacExpIMSysHardwareDescription = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2)) oacSysMemStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1)) oacSysCpuStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2)) oacSysSecureCrashlogCount = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 100), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setStatus('current') if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setDescription('The number of avaiable crash logs') oacSysStartCaused = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 200), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysStartCaused.setStatus('current') if mibBuilder.loadTexts: oacSysStartCaused.setDescription('Cause of system start') oacSysIMSysMainBoard = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1)) oacExpIMSysHwComponents = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2)) oacExpIMSysFactory = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3)) oacSysIMSysMainIdentifier = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 1), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setDescription("The vendor's authoritative identification of the main board. This value is allocated within the SMI enterprise subtree") oacSysIMSysMainManufacturedIdentity = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setDescription("Unique ID string self to each equipment. By default, it is retrieved from the manufacturer of the equipment. Can also be configure by CLI ( see command 'snmp chassis-id') for customer purposes") oacSysIMSysMainManufacturedDate = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setDescription('the date of the manufacturing of the equipment') oacSysIMSysMainCPU = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainCPU.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainCPU.setDescription('Description of the main CPU used on the main board') oacSysIMSysMainBSPVersion = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setDescription('the current BSP version supported on the equipment') oacSysIMSysMainBootVersion = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setDescription('the current boot version supported on the equipment') oacSysIMSysMainBootDateCreation = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setDescription('the date the current boot version has been generated') oacSysMemoryFree = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryFree.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryFree.setDescription('The number of bytes in free memory ') oacSysMemoryAllocated = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryAllocated.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryAllocated.setDescription('The number of bytes in allocated memory ') oacSysMemoryTotal = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryTotal.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryTotal.setDescription('Total number of bytes in the system memory partition ') oacSysMemoryUsed = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysMemoryUsed.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryUsed.setDescription('Used memory expressed in percent of the total memory size ') oacSysCpuUsed = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsed.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsed.setDescription('Used cpu in percent ') oacSysCpuUsedCoresCount = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setDescription('The number of Cores for the equipment') oacSysCpuUsedCoresTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3), ) if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setDescription('Table for Oneaccess hardware Cores') oacSysCpuUsedCoresEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1), ).setIndexNames((0, "ONEACCESS-SYS-MIB", "oacSysCpuUsedIndex")) if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setDescription('Table entry for a hardware Core') oacSysCpuUsedIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedIndex.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedIndex.setDescription('Core index') oacSysCpuUsedCoreType = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 2), OASysCoreType()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setDescription('Type of the core') oacSysCpuUsedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedValue.setDescription('Used cpu in percent : equivalent for core 0 to the oacSysCpuUsed object. This is the current value') oacSysCpuUsedOneMinuteValue = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setDescription('Cpu load for the last minute period') oacSysLastRebootCause = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacSysLastRebootCause.setStatus('current') if mibBuilder.loadTexts: oacSysLastRebootCause.setDescription('To display the cause for the last reboot.') oacExpIMSysHwComponentsCount = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setDescription('The number of components for the equipment') oacExpIMSysHwComponentsTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2), ) if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setDescription('Table for Oneaccess hardware components') oacExpIMSysHwComponentsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1), ).setIndexNames((0, "ONEACCESS-SYS-MIB", "oacExpIMSysHwcIndex")) if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setDescription('Table entry for a hardware component') oacExpIMSysHwcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setDescription('Component index') oacExpIMSysHwcClass = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 2), OASysHwcClass()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcClass.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcClass.setDescription('Class of the component') oacExpIMSysHwcType = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 3), OASysHwcType()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcType.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcType.setDescription('Type of the component') oacExpIMSysHwcDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setDescription('Component description, identifies the component') oacExpIMSysHwcSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setDescription("Component's serial number") oacExpIMSysHwcManufacturer = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setDescription('Component manufacturer') oacExpIMSysHwcManufacturedDate = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setDescription("Component's manufacturing date") oacExpIMSysHwcProductName = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setDescription('The Product name') oacExpIMSysFactorySupplierID = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 14))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setDescription('Supplier ID. Mapped to Mid field of product-info-area. String is empty if Mid field is not included in product-info-area.') oacExpIMSysFactoryProductSalesCode = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 22))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setDescription('OA Product Sales Code. Mapped to Mcode field of product-info-area. String is empty if Mcode field is not included in product-info-area.') oacExpIMSysFactoryHwRevision = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setDescription('Hardware Revision. Mapped to Mrevision field of product-info-area. String is empty if Mrevision field is not included in product-info-area.') mibBuilder.exportSymbols("ONEACCESS-SYS-MIB", oacSysCpuUsedCoresCount=oacSysCpuUsedCoresCount, oacSysIMSysMainBSPVersion=oacSysIMSysMainBSPVersion, oacExpIMSysHwcIndex=oacExpIMSysHwcIndex, oacSysIMSysMainIdentifier=oacSysIMSysMainIdentifier, oacExpIMSysHwcType=oacExpIMSysHwcType, oacSysMemoryUsed=oacSysMemoryUsed, oacSysIMSysMainManufacturedIdentity=oacSysIMSysMainManufacturedIdentity, oacExpIMSysHwComponents=oacExpIMSysHwComponents, oacSysCpuUsedOneMinuteValue=oacSysCpuUsedOneMinuteValue, oacExpIMSysHwComponentsTable=oacExpIMSysHwComponentsTable, oacExpIMSysStatistics=oacExpIMSysStatistics, oacSysStartCaused=oacSysStartCaused, oacSysMemoryAllocated=oacSysMemoryAllocated, oacExpIMSysFactoryProductSalesCode=oacExpIMSysFactoryProductSalesCode, oacSysMIBModule=oacSysMIBModule, OASysCoreType=OASysCoreType, oacSysMemStatistics=oacSysMemStatistics, oacSysIMSysMainManufacturedDate=oacSysIMSysMainManufacturedDate, oacSysCpuUsedCoresTable=oacSysCpuUsedCoresTable, oacExpIMSysHardwareDescription=oacExpIMSysHardwareDescription, oacSysMemoryTotal=oacSysMemoryTotal, oacSysIMSysMainBootDateCreation=oacSysIMSysMainBootDateCreation, oacExpIMSysHwComponentsEntry=oacExpIMSysHwComponentsEntry, oacSysIMSysMainCPU=oacSysIMSysMainCPU, oacExpIMSysHwcProductName=oacExpIMSysHwcProductName, oacSysCpuStatistics=oacSysCpuStatistics, oacExpIMSysHwcManufacturedDate=oacExpIMSysHwcManufacturedDate, oacSysIMSysMainBoard=oacSysIMSysMainBoard, oacExpIMSysFactorySupplierID=oacExpIMSysFactorySupplierID, oacExpIMSysHwcSerialNumber=oacExpIMSysHwcSerialNumber, OASysHwcType=OASysHwcType, oacSysCpuUsedCoreType=oacSysCpuUsedCoreType, oacSysLastRebootCause=oacSysLastRebootCause, oacSysCpuUsedCoresEntry=oacSysCpuUsedCoresEntry, oacExpIMSysHwcDescription=oacExpIMSysHwcDescription, oacSysCpuUsedIndex=oacSysCpuUsedIndex, oacExpIMSysHwcClass=oacExpIMSysHwcClass, oacExpIMSysFactoryHwRevision=oacExpIMSysFactoryHwRevision, oacSysMemoryFree=oacSysMemoryFree, oacExpIMSysHwComponentsCount=oacExpIMSysHwComponentsCount, oacSysCpuUsed=oacSysCpuUsed, oacSysCpuUsedValue=oacSysCpuUsedValue, oacSysIMSysMainBootVersion=oacSysIMSysMainBootVersion, oacSysSecureCrashlogCount=oacSysSecureCrashlogCount, oacExpIMSysHwcManufacturer=oacExpIMSysHwcManufacturer, OASysHwcClass=OASysHwcClass, oacExpIMSysFactory=oacExpIMSysFactory, PYSNMP_MODULE_ID=oacSysMIBModule)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, constraints_union, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint') (oac_exp_im_system, oac_mib_modules) = mibBuilder.importSymbols('ONEACCESS-GLOBAL-REG', 'oacExpIMSystem', 'oacMIBModules') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (module_identity, time_ticks, object_identity, unsigned32, mib_identifier, iso, counter64, counter32, integer32, notification_type, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'TimeTicks', 'ObjectIdentity', 'Unsigned32', 'MibIdentifier', 'iso', 'Counter64', 'Counter32', 'Integer32', 'NotificationType', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'IpAddress') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') oac_sys_mib_module = module_identity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 671)) oacSysMIBModule.setRevisions(('2014-05-05 00:01', '2011-06-15 00:00', '2010-12-14 00:01', '2010-08-11 10:00', '2010-07-08 10:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: oacSysMIBModule.setRevisionsDescriptions(('Contact updated', 'oacExpIMSysFactory OID updated', 'Add objects for Factory area description.', 'Fixed minor corrections. changed oacExpIMSysHwcDescription type from OCTET STRING to DisplayString.', 'This MIB module describes system Management objects.')) if mibBuilder.loadTexts: oacSysMIBModule.setLastUpdated('201405050001Z') if mibBuilder.loadTexts: oacSysMIBModule.setOrganization(' OneAccess ') if mibBuilder.loadTexts: oacSysMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: pascal.kesteloot@oneaccess-net.com') if mibBuilder.loadTexts: oacSysMIBModule.setDescription('Add Cpu usage table for multicore HW') class Oasyshwcclass(TextualConvention, Integer32): description = 'The object specify the class of OASysHwc' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2)) named_values = named_values(('board', 0), ('cpu', 1), ('slot', 2)) class Oasyshwctype(TextualConvention, Integer32): description = 'The object specify the type of OASysHwc' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6)) named_values = named_values(('mainboard', 0), ('microprocessor', 1), ('ram', 2), ('flash', 3), ('dsp', 4), ('uplink', 5), ('module', 6)) class Oasyscoretype(TextualConvention, Integer32): description = 'The object specify the type of Core usage' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('controlplane', 0), ('dataforwarding', 1), ('application', 2), ('mixed', 3)) oac_exp_im_sys_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1)) oac_exp_im_sys_hardware_description = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2)) oac_sys_mem_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1)) oac_sys_cpu_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2)) oac_sys_secure_crashlog_count = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 100), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setStatus('current') if mibBuilder.loadTexts: oacSysSecureCrashlogCount.setDescription('The number of avaiable crash logs') oac_sys_start_caused = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 200), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysStartCaused.setStatus('current') if mibBuilder.loadTexts: oacSysStartCaused.setDescription('Cause of system start') oac_sys_im_sys_main_board = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1)) oac_exp_im_sys_hw_components = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2)) oac_exp_im_sys_factory = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3)) oac_sys_im_sys_main_identifier = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 1), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainIdentifier.setDescription("The vendor's authoritative identification of the main board. This value is allocated within the SMI enterprise subtree") oac_sys_im_sys_main_manufactured_identity = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedIdentity.setDescription("Unique ID string self to each equipment. By default, it is retrieved from the manufacturer of the equipment. Can also be configure by CLI ( see command 'snmp chassis-id') for customer purposes") oac_sys_im_sys_main_manufactured_date = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainManufacturedDate.setDescription('the date of the manufacturing of the equipment') oac_sys_im_sys_main_cpu = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainCPU.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainCPU.setDescription('Description of the main CPU used on the main board') oac_sys_im_sys_main_bsp_version = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBSPVersion.setDescription('the current BSP version supported on the equipment') oac_sys_im_sys_main_boot_version = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootVersion.setDescription('the current boot version supported on the equipment') oac_sys_im_sys_main_boot_date_creation = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setStatus('current') if mibBuilder.loadTexts: oacSysIMSysMainBootDateCreation.setDescription('the date the current boot version has been generated') oac_sys_memory_free = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryFree.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryFree.setDescription('The number of bytes in free memory ') oac_sys_memory_allocated = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryAllocated.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryAllocated.setDescription('The number of bytes in allocated memory ') oac_sys_memory_total = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryTotal.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryTotal.setDescription('Total number of bytes in the system memory partition ') oac_sys_memory_used = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysMemoryUsed.setStatus('current') if mibBuilder.loadTexts: oacSysMemoryUsed.setDescription('Used memory expressed in percent of the total memory size ') oac_sys_cpu_used = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsed.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsed.setDescription('Used cpu in percent ') oac_sys_cpu_used_cores_count = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresCount.setDescription('The number of Cores for the equipment') oac_sys_cpu_used_cores_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3)) if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresTable.setDescription('Table for Oneaccess hardware Cores') oac_sys_cpu_used_cores_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1)).setIndexNames((0, 'ONEACCESS-SYS-MIB', 'oacSysCpuUsedIndex')) if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoresEntry.setDescription('Table entry for a hardware Core') oac_sys_cpu_used_index = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedIndex.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedIndex.setDescription('Core index') oac_sys_cpu_used_core_type = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 2), oa_sys_core_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedCoreType.setDescription('Type of the core') oac_sys_cpu_used_value = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedValue.setDescription('Used cpu in percent : equivalent for core 0 to the oacSysCpuUsed object. This is the current value') oac_sys_cpu_used_one_minute_value = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 2, 3, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setStatus('current') if mibBuilder.loadTexts: oacSysCpuUsedOneMinuteValue.setDescription('Cpu load for the last minute period') oac_sys_last_reboot_cause = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacSysLastRebootCause.setStatus('current') if mibBuilder.loadTexts: oacSysLastRebootCause.setDescription('To display the cause for the last reboot.') oac_exp_im_sys_hw_components_count = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsCount.setDescription('The number of components for the equipment') oac_exp_im_sys_hw_components_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2)) if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsTable.setDescription('Table for Oneaccess hardware components') oac_exp_im_sys_hw_components_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1)).setIndexNames((0, 'ONEACCESS-SYS-MIB', 'oacExpIMSysHwcIndex')) if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwComponentsEntry.setDescription('Table entry for a hardware component') oac_exp_im_sys_hwc_index = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcIndex.setDescription('Component index') oac_exp_im_sys_hwc_class = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 2), oa_sys_hwc_class()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcClass.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcClass.setDescription('Class of the component') oac_exp_im_sys_hwc_type = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 3), oa_sys_hwc_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcType.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcType.setDescription('Type of the component') oac_exp_im_sys_hwc_description = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcDescription.setDescription('Component description, identifies the component') oac_exp_im_sys_hwc_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcSerialNumber.setDescription("Component's serial number") oac_exp_im_sys_hwc_manufacturer = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturer.setDescription('Component manufacturer') oac_exp_im_sys_hwc_manufactured_date = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcManufacturedDate.setDescription("Component's manufacturing date") oac_exp_im_sys_hwc_product_name = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 2, 2, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysHwcProductName.setDescription('The Product name') oac_exp_im_sys_factory_supplier_id = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 14))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactorySupplierID.setDescription('Supplier ID. Mapped to Mid field of product-info-area. String is empty if Mid field is not included in product-info-area.') oac_exp_im_sys_factory_product_sales_code = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 22))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryProductSalesCode.setDescription('OA Product Sales Code. Mapped to Mcode field of product-info-area. String is empty if Mcode field is not included in product-info-area.') oac_exp_im_sys_factory_hw_revision = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 3, 2, 3, 3), display_string().subtype(subtypeSpec=value_size_constraint(2, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setStatus('current') if mibBuilder.loadTexts: oacExpIMSysFactoryHwRevision.setDescription('Hardware Revision. Mapped to Mrevision field of product-info-area. String is empty if Mrevision field is not included in product-info-area.') mibBuilder.exportSymbols('ONEACCESS-SYS-MIB', oacSysCpuUsedCoresCount=oacSysCpuUsedCoresCount, oacSysIMSysMainBSPVersion=oacSysIMSysMainBSPVersion, oacExpIMSysHwcIndex=oacExpIMSysHwcIndex, oacSysIMSysMainIdentifier=oacSysIMSysMainIdentifier, oacExpIMSysHwcType=oacExpIMSysHwcType, oacSysMemoryUsed=oacSysMemoryUsed, oacSysIMSysMainManufacturedIdentity=oacSysIMSysMainManufacturedIdentity, oacExpIMSysHwComponents=oacExpIMSysHwComponents, oacSysCpuUsedOneMinuteValue=oacSysCpuUsedOneMinuteValue, oacExpIMSysHwComponentsTable=oacExpIMSysHwComponentsTable, oacExpIMSysStatistics=oacExpIMSysStatistics, oacSysStartCaused=oacSysStartCaused, oacSysMemoryAllocated=oacSysMemoryAllocated, oacExpIMSysFactoryProductSalesCode=oacExpIMSysFactoryProductSalesCode, oacSysMIBModule=oacSysMIBModule, OASysCoreType=OASysCoreType, oacSysMemStatistics=oacSysMemStatistics, oacSysIMSysMainManufacturedDate=oacSysIMSysMainManufacturedDate, oacSysCpuUsedCoresTable=oacSysCpuUsedCoresTable, oacExpIMSysHardwareDescription=oacExpIMSysHardwareDescription, oacSysMemoryTotal=oacSysMemoryTotal, oacSysIMSysMainBootDateCreation=oacSysIMSysMainBootDateCreation, oacExpIMSysHwComponentsEntry=oacExpIMSysHwComponentsEntry, oacSysIMSysMainCPU=oacSysIMSysMainCPU, oacExpIMSysHwcProductName=oacExpIMSysHwcProductName, oacSysCpuStatistics=oacSysCpuStatistics, oacExpIMSysHwcManufacturedDate=oacExpIMSysHwcManufacturedDate, oacSysIMSysMainBoard=oacSysIMSysMainBoard, oacExpIMSysFactorySupplierID=oacExpIMSysFactorySupplierID, oacExpIMSysHwcSerialNumber=oacExpIMSysHwcSerialNumber, OASysHwcType=OASysHwcType, oacSysCpuUsedCoreType=oacSysCpuUsedCoreType, oacSysLastRebootCause=oacSysLastRebootCause, oacSysCpuUsedCoresEntry=oacSysCpuUsedCoresEntry, oacExpIMSysHwcDescription=oacExpIMSysHwcDescription, oacSysCpuUsedIndex=oacSysCpuUsedIndex, oacExpIMSysHwcClass=oacExpIMSysHwcClass, oacExpIMSysFactoryHwRevision=oacExpIMSysFactoryHwRevision, oacSysMemoryFree=oacSysMemoryFree, oacExpIMSysHwComponentsCount=oacExpIMSysHwComponentsCount, oacSysCpuUsed=oacSysCpuUsed, oacSysCpuUsedValue=oacSysCpuUsedValue, oacSysIMSysMainBootVersion=oacSysIMSysMainBootVersion, oacSysSecureCrashlogCount=oacSysSecureCrashlogCount, oacExpIMSysHwcManufacturer=oacExpIMSysHwcManufacturer, OASysHwcClass=OASysHwcClass, oacExpIMSysFactory=oacExpIMSysFactory, PYSNMP_MODULE_ID=oacSysMIBModule)
# all test parameters are declared here delay = 5 #no of seconds to wait before deciding to exit chrome_driver_path = '/home/apalya/browsers/chromedriver2.46' website = 'http://www.sunnxt.com' signin_text = 'Sign In' profile_icon_xpath = '//span[@class="icomoon icon-icn_profile"]' signin_link_xpath = '//ul[@class="signinicon dropdown-menu dropdown-menu-right logg"]/li/a' signin_modal_close_xpath = '//button[@class="close"]' ##modal sigin popup signin_modal_title_xpath = '//h4[@id="myModalLabel"]/*/div[@class="signin_label"]' #signin_modal_title_xpath = '//div[@class="signin_label"]' username_xpath = '//input[@id="email-up"]' username_placeholder = 'Email / Mobile' passwd_xpath = '//input[@id="password"][@type="password"]' password_placeholder = 'Password' signin_button_xpath = '//div[@class="log_btn"]//button[@type="submit"][@class="btn btn-red"]' btn_colors = "btn btn-red" signin_invalid_user = 'Please Enter Valid Email Or Mobile Number' signin_invalid_format_xpath = '//span[@class="error"]' user_doesnot_exist = 'User does not exist. Please sign up.' verify_username_pwd = 'Kindly Verify Your User Id Or Password And Try Again.' user_doesnot_exist_xpath = '//span[@class="error"]' invalid_user = 'abcdefg' invalid_password = '123456' invalid_username = '1234567899' invalid_passwd = '9911223344'
delay = 5 chrome_driver_path = '/home/apalya/browsers/chromedriver2.46' website = 'http://www.sunnxt.com' signin_text = 'Sign In' profile_icon_xpath = '//span[@class="icomoon icon-icn_profile"]' signin_link_xpath = '//ul[@class="signinicon dropdown-menu dropdown-menu-right logg"]/li/a' signin_modal_close_xpath = '//button[@class="close"]' signin_modal_title_xpath = '//h4[@id="myModalLabel"]/*/div[@class="signin_label"]' username_xpath = '//input[@id="email-up"]' username_placeholder = 'Email / Mobile' passwd_xpath = '//input[@id="password"][@type="password"]' password_placeholder = 'Password' signin_button_xpath = '//div[@class="log_btn"]//button[@type="submit"][@class="btn btn-red"]' btn_colors = 'btn btn-red' signin_invalid_user = 'Please Enter Valid Email Or Mobile Number' signin_invalid_format_xpath = '//span[@class="error"]' user_doesnot_exist = 'User does not exist. Please sign up.' verify_username_pwd = 'Kindly Verify Your User Id Or Password And Try Again.' user_doesnot_exist_xpath = '//span[@class="error"]' invalid_user = 'abcdefg' invalid_password = '123456' invalid_username = '1234567899' invalid_passwd = '9911223344'
num_usernames = int(input()) usernames = set() for _ in range(num_usernames): username = input() usernames.add(username) [print(name) for name in usernames]
num_usernames = int(input()) usernames = set() for _ in range(num_usernames): username = input() usernames.add(username) [print(name) for name in usernames]
"""Do not import this package. This file is required by pylint and this docstring is required by pydocstyle. """
"""Do not import this package. This file is required by pylint and this docstring is required by pydocstyle. """
num = int(input()) words = [] for i in range(num): words.append(input()) words.sort() for word in words: print(word)
num = int(input()) words = [] for i in range(num): words.append(input()) words.sort() for word in words: print(word)
# def make_table(): # colors_distance = { # 'black': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'brown': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'beige': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'gray': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'white': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'blue': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'petrol': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'turquoise': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'green': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'olive': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'yellow': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'orange': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'red': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'pink': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # 'purple': {'black': 0, 'brown': 0, 'beige': 0, 'gray': 0, 'white': 0, 'blue': 0, # 'petrol': 0, 'turquoise': 0, 'green': 0, # 'olive': 0, 'yellow': 0, 'orange': 0, 'red': 0, 'pink': 0, 'purple': 0}, # } # colors = [Color('black', 0, 0.0, 0.0), # Color('brown', 30, 100.0, 61.6), # Color('beige', 30, 21.2, 88.6), # Color('gray', 0, 0.0, 66.3), # Color('white', 0, 0.0, 100.0), # Color('blue', 207, 100.0, 100.0), # Color('petrol', 189, 100.0, 56.9), # Color('turquoise', 194, 67.8, 100.0), # Color('green', 124, 100.0, 59.6), # Color('olive', 62, 100.0, 58.4), # Color('yellow', 52, 99.2, 95.7), # Color('orange', 33, 100.0, 87.1), # Color('red', 0, 100.0, 100.0), # Color('pink', 0, 100.0, 100.0), # Color('purple', 279, 100.0, 55.3)] # print(end='\t\t') # for color in colors: # print(color.name, end='\t') # for color1 in colors: # print('') # print(color1.name, end='\t') # for color2 in colors: # distance = sqrt(((color1.hue - color2.hue) ** 2) + ((color1.saturation - color2.saturation) ** 2) + ( # (color1.value - color2.value) ** 2)) # colors_distance[color1.name][color2.name] = distance # print('%.2f' % distance, end='\t') # print('') # return colors_distance # # # color_distance = make_table() # print(color_distance) colors_combinations = [('black', 'red', 'gray'), ('black', 'petrol', 'white'), ('brown', 'gray', 'olive'), ('brown', 'yellow', 'beige'), ('beige', 'green', 'white'), ('beige', 'orange', 'black'), ('gray', 'beige', 'white'), ('gray', 'petrol', 'white'), ('white', 'olive', 'yellow'), ('white', 'orange', 'green'), ('blue', 'yellow', 'black'), ('blue', 'gray', 'white'), ('petrol', 'turquoise', 'black'), ('petrol', 'pink', 'olive'), ('turquoise', 'gray', 'white'), ('turquoise', 'petrol', 'yellow'), ('green', 'olive', 'yellow'), ('green', 'black', 'white'), ('olive', 'beige', 'white'), ('olive', 'black', 'orange'), ('yellow', 'blue', 'white'), ('yellow', 'orange', 'black'), ('orange', 'olive', 'black'), ('orange', 'blue', 'purple'), ('red', 'gray', 'orange'), ('red', 'black', 'beige'), ('pink', 'purple', 'white'), ('pink', 'petrol', 'turquoise'), ('purple', 'brown', 'beige'), ('purple', 'yellow', 'gray')] fav_colors = ['yellow', 'purple', 'gray'] def get_sorensen_index(colors1, colors2): return len(set(colors1).intersection(colors2)) / (len(colors1) + len(colors2)) print(len(colors_combinations)) print(fav_colors, end='') print(': ') for colors in colors_combinations: print(colors, end='') print(": ", end='') print(get_sorensen_index(colors, fav_colors), end=', ') print(len(set(colors).intersection(fav_colors)))
colors_combinations = [('black', 'red', 'gray'), ('black', 'petrol', 'white'), ('brown', 'gray', 'olive'), ('brown', 'yellow', 'beige'), ('beige', 'green', 'white'), ('beige', 'orange', 'black'), ('gray', 'beige', 'white'), ('gray', 'petrol', 'white'), ('white', 'olive', 'yellow'), ('white', 'orange', 'green'), ('blue', 'yellow', 'black'), ('blue', 'gray', 'white'), ('petrol', 'turquoise', 'black'), ('petrol', 'pink', 'olive'), ('turquoise', 'gray', 'white'), ('turquoise', 'petrol', 'yellow'), ('green', 'olive', 'yellow'), ('green', 'black', 'white'), ('olive', 'beige', 'white'), ('olive', 'black', 'orange'), ('yellow', 'blue', 'white'), ('yellow', 'orange', 'black'), ('orange', 'olive', 'black'), ('orange', 'blue', 'purple'), ('red', 'gray', 'orange'), ('red', 'black', 'beige'), ('pink', 'purple', 'white'), ('pink', 'petrol', 'turquoise'), ('purple', 'brown', 'beige'), ('purple', 'yellow', 'gray')] fav_colors = ['yellow', 'purple', 'gray'] def get_sorensen_index(colors1, colors2): return len(set(colors1).intersection(colors2)) / (len(colors1) + len(colors2)) print(len(colors_combinations)) print(fav_colors, end='') print(': ') for colors in colors_combinations: print(colors, end='') print(': ', end='') print(get_sorensen_index(colors, fav_colors), end=', ') print(len(set(colors).intersection(fav_colors)))
""" Client (App) Agent singleton More description - TBD """ # # Author: Eric Gustafson <eg-git@elfwerks.org> (29 Aug 2015) # # ############################################################ # import statement def init_agent(**kwargs): # opportunity for pre/post hooks. return Agent(**kwargs) class Agent: def __init__(self, **kwargs): None ## Local Variables: ## mode: python ## End:
""" Client (App) Agent singleton More description - TBD """ def init_agent(**kwargs): return agent(**kwargs) class Agent: def __init__(self, **kwargs): None
cpgf._import(None, "builtin.core"); KeyIsDown = []; def makeMyEventReceiver(receiver) : for i in range(irr.KEY_KEY_CODES_COUNT) : KeyIsDown.append(False); def OnEvent(me, event) : if event.EventType == irr.EET_KEY_INPUT_EVENT : KeyIsDown[event.KeyInput.Key + 1] = event.KeyInput.PressedDown; return False; receiver.OnEvent = OnEvent; def IsKeyDown(keyCode) : return KeyIsDown[keyCode + 1]; def start() : driverType = irr.driverChoiceConsole(); if driverType == irr.EDT_COUNT : return 1; MyEventReceiver = cpgf.cloneClass(irr.IEventReceiverWrapper); makeMyEventReceiver(MyEventReceiver); receiver = MyEventReceiver(); device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480), 16, False, False, False, receiver); if device == None : return 1; driver = device.getVideoDriver(); smgr = device.getSceneManager(); smgr.getGUIEnvironment().addStaticText("Press Space to hide occluder.", irr.rect_s32(10,10, 200,50)); node = smgr.addSphereSceneNode(10, 64); if node : node.setPosition(irr.vector3df(0,0,60)); node.setMaterialTexture(0, driver.getTexture("../../media/wall.bmp")); node.setMaterialFlag(irr.EMF_LIGHTING, False); plane = smgr.addMeshSceneNode(smgr.addHillPlaneMesh("plane", irr.dimension2df(10,10), irr.dimension2du(2,2)), None, -1, irr.vector3df(0,0,20), irr.vector3df(270,0,0)); if plane : plane.setMaterialTexture(0, driver.getTexture("../../media/t351sml.jpg")); plane.setMaterialFlag(irr.EMF_LIGHTING, False); plane.setMaterialFlag(irr.EMF_BACK_FACE_CULLING, True); driver.addOcclusionQuery(node, cpgf.cast(node, irr.IMeshSceneNode).getMesh()); smgr.addCameraSceneNode(); lastFPS = -1; timeNow = device.getTimer().getTime(); nodeVisible=True; while device.run() : plane.setVisible(not IsKeyDown(irr.KEY_SPACE)); driver.beginScene(True, True, irr.SColor(255,113,113,133)); node.setVisible(nodeVisible); smgr.drawAll(); smgr.getGUIEnvironment().drawAll(); if device.getTimer().getTime()-timeNow>100 : driver.runAllOcclusionQueries(False); driver.updateAllOcclusionQueries(); nodeVisible=driver.getOcclusionQueryResult(node)>0; timeNow=device.getTimer().getTime(); driver.endScene(); fps = driver.getFPS(); if lastFPS != fps : tmp = "cpgf Irrlicht Python binding OcclusionQuery Example ["; tmp = tmp + driver.getName(); tmp = tmp + "] fps: "; tmp = tmp + str(fps); device.setWindowCaption(tmp); lastFPS = fps; device.drop(); return 0; start();
cpgf._import(None, 'builtin.core') key_is_down = [] def make_my_event_receiver(receiver): for i in range(irr.KEY_KEY_CODES_COUNT): KeyIsDown.append(False) def on_event(me, event): if event.EventType == irr.EET_KEY_INPUT_EVENT: KeyIsDown[event.KeyInput.Key + 1] = event.KeyInput.PressedDown return False receiver.OnEvent = OnEvent def is_key_down(keyCode): return KeyIsDown[keyCode + 1] def start(): driver_type = irr.driverChoiceConsole() if driverType == irr.EDT_COUNT: return 1 my_event_receiver = cpgf.cloneClass(irr.IEventReceiverWrapper) make_my_event_receiver(MyEventReceiver) receiver = my_event_receiver() device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480), 16, False, False, False, receiver) if device == None: return 1 driver = device.getVideoDriver() smgr = device.getSceneManager() smgr.getGUIEnvironment().addStaticText('Press Space to hide occluder.', irr.rect_s32(10, 10, 200, 50)) node = smgr.addSphereSceneNode(10, 64) if node: node.setPosition(irr.vector3df(0, 0, 60)) node.setMaterialTexture(0, driver.getTexture('../../media/wall.bmp')) node.setMaterialFlag(irr.EMF_LIGHTING, False) plane = smgr.addMeshSceneNode(smgr.addHillPlaneMesh('plane', irr.dimension2df(10, 10), irr.dimension2du(2, 2)), None, -1, irr.vector3df(0, 0, 20), irr.vector3df(270, 0, 0)) if plane: plane.setMaterialTexture(0, driver.getTexture('../../media/t351sml.jpg')) plane.setMaterialFlag(irr.EMF_LIGHTING, False) plane.setMaterialFlag(irr.EMF_BACK_FACE_CULLING, True) driver.addOcclusionQuery(node, cpgf.cast(node, irr.IMeshSceneNode).getMesh()) smgr.addCameraSceneNode() last_fps = -1 time_now = device.getTimer().getTime() node_visible = True while device.run(): plane.setVisible(not is_key_down(irr.KEY_SPACE)) driver.beginScene(True, True, irr.SColor(255, 113, 113, 133)) node.setVisible(nodeVisible) smgr.drawAll() smgr.getGUIEnvironment().drawAll() if device.getTimer().getTime() - timeNow > 100: driver.runAllOcclusionQueries(False) driver.updateAllOcclusionQueries() node_visible = driver.getOcclusionQueryResult(node) > 0 time_now = device.getTimer().getTime() driver.endScene() fps = driver.getFPS() if lastFPS != fps: tmp = 'cpgf Irrlicht Python binding OcclusionQuery Example [' tmp = tmp + driver.getName() tmp = tmp + '] fps: ' tmp = tmp + str(fps) device.setWindowCaption(tmp) last_fps = fps device.drop() return 0 start()
class AttemptResults(list): def __init__(self, tries): return super(AttemptResults, self).extend(['ND'] * tries)
class Attemptresults(list): def __init__(self, tries): return super(AttemptResults, self).extend(['ND'] * tries)
lucky_numbers = [2, 4, 8, 1, 7, 15, 27, 25, 10] friends = ["yacubu", "rolan", "anatol", "patrick", "jony", "bel"] friends.extend(lucky_numbers)## take friend and value of lucky num in it print(friends) friends.append("toby") friends.insert(1, "rolax")## add value at index value and all other value get push back print(friends) friends.remove("bel")## remove value print(friends) print(friends.clear())## return empty elt of list friends = ["yacubu", "rolan", "anatol", "patrick", "jony", "bel"] friends.pop()## pop item off of this list print(friends) ## let figure out if a certain value is in print(friends.index("patrick"))## if a name is not in d list is going to throw an err friends = ["yacubu", "yacubu", "rolan", "anatol", "patrick", "jony", "bel"] print(friends.count("yacubu"))## tells me how many time yacubu show up in the list friends = ["yacubu", "rolan", "anatol", "patrick", "jony", "bel"] friends.sort() print(friends) lucky_numbers.sort() print(lucky_numbers) lucky_numbers.reverse() print(lucky_numbers) ### use of copy friends2 = friends.copy() print(friends2) ## used del friends = friends2.clear() print(friends2)
lucky_numbers = [2, 4, 8, 1, 7, 15, 27, 25, 10] friends = ['yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] friends.extend(lucky_numbers) print(friends) friends.append('toby') friends.insert(1, 'rolax') print(friends) friends.remove('bel') print(friends) print(friends.clear()) friends = ['yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] friends.pop() print(friends) print(friends.index('patrick')) friends = ['yacubu', 'yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] print(friends.count('yacubu')) friends = ['yacubu', 'rolan', 'anatol', 'patrick', 'jony', 'bel'] friends.sort() print(friends) lucky_numbers.sort() print(lucky_numbers) lucky_numbers.reverse() print(lucky_numbers) friends2 = friends.copy() print(friends2) friends = friends2.clear() print(friends2)
# pylint: disable=missing-function-docstring, missing-module-docstring/ ai = (1,4,5) ai[0] = 2 bi = ai[0] ci = 2 * ai[0] di = 2 * ai[0] + 3 * ai[1] ei = 2 * ai[0] + bi * ai[1] fi = ai gi = (0,)*2 gi[:] = ai[1:] ad = (1.,4.,5.) ad[0] = 2. bd = ad[0] cd = 2. * ad[0] dd = 2. * ad[0] + 3. * ad[1] ed = 2. * ad[0] + bd * ad[1] fd = ad gd = (0.,)*2 gd[:] = ad[1:]
ai = (1, 4, 5) ai[0] = 2 bi = ai[0] ci = 2 * ai[0] di = 2 * ai[0] + 3 * ai[1] ei = 2 * ai[0] + bi * ai[1] fi = ai gi = (0,) * 2 gi[:] = ai[1:] ad = (1.0, 4.0, 5.0) ad[0] = 2.0 bd = ad[0] cd = 2.0 * ad[0] dd = 2.0 * ad[0] + 3.0 * ad[1] ed = 2.0 * ad[0] + bd * ad[1] fd = ad gd = (0.0,) * 2 gd[:] = ad[1:]
class IntegrationFeatureRegistry: def __init__(self): self.features = [] def register(self, integration_feature): self.features.append(integration_feature) self.features.sort(key=lambda f: f.order) def run_pre_scan(self): for integration in self.features: if integration.is_valid(): integration.pre_scan() def run_pre_runner(self): for integration in self.features: if integration.is_valid(): integration.pre_runner() def run_post_runner(self, scan_reports): for integration in self.features: if integration.is_valid(): integration.post_runner(scan_reports) integration_feature_registry = IntegrationFeatureRegistry()
class Integrationfeatureregistry: def __init__(self): self.features = [] def register(self, integration_feature): self.features.append(integration_feature) self.features.sort(key=lambda f: f.order) def run_pre_scan(self): for integration in self.features: if integration.is_valid(): integration.pre_scan() def run_pre_runner(self): for integration in self.features: if integration.is_valid(): integration.pre_runner() def run_post_runner(self, scan_reports): for integration in self.features: if integration.is_valid(): integration.post_runner(scan_reports) integration_feature_registry = integration_feature_registry()
names = ['Dani', 'Ale', 'E. Jose'] message = f'Hey {names[0]}, Thanks for your friendship' print(message) message = f'Hey {names[1]}, Thanks for your friendship' print(message) message = f'Hey {names[2]}, Thanks for your friendship' print(message)
names = ['Dani', 'Ale', 'E. Jose'] message = f'Hey {names[0]}, Thanks for your friendship' print(message) message = f'Hey {names[1]}, Thanks for your friendship' print(message) message = f'Hey {names[2]}, Thanks for your friendship' print(message)
infilename = input() outfilename = input() print(infilename,outfilename)
infilename = input() outfilename = input() print(infilename, outfilename)
class ShrinkwrapConstraint: distance = None project_axis = None project_axis_space = None project_limit = None shrinkwrap_type = None target = None
class Shrinkwrapconstraint: distance = None project_axis = None project_axis_space = None project_limit = None shrinkwrap_type = None target = None
""" In this bite you learn to catch/raise exceptions. Write a simple division function meeting the following requirements: when denominator is 0 catch the corresponding exception and return 0. when numerator or denominator are not of the right type reraise the corresponding exception. if the result of the division (after surviving the exceptions) is negative, raise a ValueError As always see the tests written in pytest to see what your code need to pass. Have fun! """ def positive_divide(numerator, denominator): try: div = numerator / denominator except ZeroDivisionError: return 0 except TypeError: raise else: if div < 0: raise ValueError return div # pybites solution def positive_divide1(numerator, denominator): try: result = numerator / denominator if result < 0: raise ValueError("Cannot be negative") else: return result except ZeroDivisionError: return 0 except TypeError: raise
""" In this bite you learn to catch/raise exceptions. Write a simple division function meeting the following requirements: when denominator is 0 catch the corresponding exception and return 0. when numerator or denominator are not of the right type reraise the corresponding exception. if the result of the division (after surviving the exceptions) is negative, raise a ValueError As always see the tests written in pytest to see what your code need to pass. Have fun! """ def positive_divide(numerator, denominator): try: div = numerator / denominator except ZeroDivisionError: return 0 except TypeError: raise else: if div < 0: raise ValueError return div def positive_divide1(numerator, denominator): try: result = numerator / denominator if result < 0: raise value_error('Cannot be negative') else: return result except ZeroDivisionError: return 0 except TypeError: raise
# Let's say it's a wedding day, and two happy people are getting # married. # we have a dictionary first_family, which contains the names # of the wife's family members. For example: first_family = {"wife": "Janet", "wife's mother": "Katie", "wife's father": "George"} # And a similar dictionary second_family for the husband's # family: second_family = {"husband": "Leon", "husband's mother": "Eva", "husband's father": "Gaspard", "husband's sister": "Isabelle"} # Create a new dictionary that would contain information about # the big new family. Similarly with the ones above, family # members should be keys and their names should be values. # First, update the new dictionary with elements from # first_family and then from second_family. Print it out. # The following lines create dictionaries from the input first_family = json.loads(input()) second_family = json.loads(input()) # Work with the 'first_family' and 'second_family' and create a new dictionary big_family = first_family big_family.update(second_family) print(big_family)
first_family = {'wife': 'Janet', "wife's mother": 'Katie', "wife's father": 'George'} second_family = {'husband': 'Leon', "husband's mother": 'Eva', "husband's father": 'Gaspard', "husband's sister": 'Isabelle'} first_family = json.loads(input()) second_family = json.loads(input()) big_family = first_family big_family.update(second_family) print(big_family)
class BaseBoa: NUM_REGRESSION_MODELS_SUPPORTED = 5 reg_model_index = {0: 'dtree', 1: 'knn', 2: 'linreg', 3: 'adaboost', 4: 'rforest', } def __repr__(self): return type(self).__name__ # finish implementation!!! def __len__(self): return len(self.ladder) def ladder(self): return self.ladder def optimal_model(self, rank=0): return self.ladder[rank][0] def model(self, rank=0): return self.ladder[rank][0].model def model_score(self, rank=0): return self.ladder[rank][1] def get_sets(self, rank=0, save=False): return self.ladder[rank][0].get_sets(save=save) def hunt(self, X_train=None, X_test=None, y_train=None, y_test=None, data=None, target=None): pass def find_optimal(self, model, X_train=None, y_train=None, data=None, target=None): pass
class Baseboa: num_regression_models_supported = 5 reg_model_index = {0: 'dtree', 1: 'knn', 2: 'linreg', 3: 'adaboost', 4: 'rforest'} def __repr__(self): return type(self).__name__ def __len__(self): return len(self.ladder) def ladder(self): return self.ladder def optimal_model(self, rank=0): return self.ladder[rank][0] def model(self, rank=0): return self.ladder[rank][0].model def model_score(self, rank=0): return self.ladder[rank][1] def get_sets(self, rank=0, save=False): return self.ladder[rank][0].get_sets(save=save) def hunt(self, X_train=None, X_test=None, y_train=None, y_test=None, data=None, target=None): pass def find_optimal(self, model, X_train=None, y_train=None, data=None, target=None): pass
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality of the software # licensed hereunder. You may use the software subject to the license # terms below provided that you ensure that this notice is replicated # unmodified and in its entirety in all distributions of the software, # modified or unmodified, in source code or in binary form. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution; # neither the name of the copyright holders nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors: Gabe Black microcode = ''' # All the memory versions need to use LOCK, regardless of if it was set def macroop XCHG_R_R { # Use the xor trick instead of moves to reduce register pressure. # This probably doesn't make much of a difference, but it's easy. xor reg, reg, regm xor regm, regm, reg xor reg, reg, regm }; def macroop XCHG_R_M { mfence ldstl t1, seg, sib, disp stul reg, seg, sib, disp mfence mov reg, reg, t1 }; def macroop XCHG_R_P { rdip t7 mfence ldstl t1, seg, riprel, disp stul reg, seg, riprel, disp mfence mov reg, reg, t1 }; def macroop XCHG_M_R { mfence ldstl t1, seg, sib, disp stul reg, seg, sib, disp mfence mov reg, reg, t1 }; def macroop XCHG_P_R { rdip t7 mfence ldstl t1, seg, riprel, disp stul reg, seg, riprel, disp mfence mov reg, reg, t1 }; def macroop XCHG_LOCKED_M_R { mfence ldstl t1, seg, sib, disp stul reg, seg, sib, disp mfence mov reg, reg, t1 }; def macroop XCHG_LOCKED_P_R { rdip t7 mfence ldstl t1, seg, riprel, disp stul reg, seg, riprel, disp mfence mov reg, reg, t1 }; '''
microcode = "\n\n# All the memory versions need to use LOCK, regardless of if it was set\n\ndef macroop XCHG_R_R\n{\n # Use the xor trick instead of moves to reduce register pressure.\n # This probably doesn't make much of a difference, but it's easy.\n xor reg, reg, regm\n xor regm, regm, reg\n xor reg, reg, regm\n};\n\ndef macroop XCHG_R_M\n{\n mfence\n ldstl t1, seg, sib, disp\n stul reg, seg, sib, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_R_P\n{\n rdip t7\n mfence\n ldstl t1, seg, riprel, disp\n stul reg, seg, riprel, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_M_R\n{\n mfence\n ldstl t1, seg, sib, disp\n stul reg, seg, sib, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_P_R\n{\n rdip t7\n mfence\n ldstl t1, seg, riprel, disp\n stul reg, seg, riprel, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_LOCKED_M_R\n{\n mfence\n ldstl t1, seg, sib, disp\n stul reg, seg, sib, disp\n mfence\n mov reg, reg, t1\n};\n\ndef macroop XCHG_LOCKED_P_R\n{\n rdip t7\n mfence\n ldstl t1, seg, riprel, disp\n stul reg, seg, riprel, disp\n mfence\n mov reg, reg, t1\n};\n"
T = int(input()) for x in range(1, T + 1): N = int(input()) names = [input() for index in range(N)] y = 0 previous = names[0] for name in names[1:]: if name < previous: y += 1 else: previous = name print(f"Case #{x}: {y}", flush = True)
t = int(input()) for x in range(1, T + 1): n = int(input()) names = [input() for index in range(N)] y = 0 previous = names[0] for name in names[1:]: if name < previous: y += 1 else: previous = name print(f'Case #{x}: {y}', flush=True)