content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: longest, current = "", "" for j in range(len(s)): i = current.find(s[j]) if i >= 0: current = current[i + 1:] current += s[j] if len(longest) < len(current): longest = current[0:len(current)] print(longest, current) return len(longest) sol = Solution() # sin = "abcabcbb" sin = "pwwkew" print(sol.lengthOfLongestSubstring(sin))
class Solution: def length_of_longest_substring(self, s: str) -> int: (longest, current) = ('', '') for j in range(len(s)): i = current.find(s[j]) if i >= 0: current = current[i + 1:] current += s[j] if len(longest) < len(current): longest = current[0:len(current)] print(longest, current) return len(longest) sol = solution() sin = 'pwwkew' print(sol.lengthOfLongestSubstring(sin))
''' .. _snippets-pythonapi-metadata: Python API: Managing Metadata ============================= This is the tested source code for the snippets used in :ref:`pythonapi-metadata`. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. Setup ----- .. code-block:: python >>> import datafs >>> from fs.tempfs import TempFS We test with the following setup: .. code-block:: python >>> api = datafs.get_api( ... config_file='examples/snippets/resources/datafs_mongo.yml') ... This assumes that you have a config file at the above location. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. clean up any previous test failures .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except (KeyError, OSError): ... pass ... >>> try: ... api.manager.delete_table('DataFiles') ... except KeyError: ... pass ... Add a fresh manager table: .. code-block:: python >>> api.manager.create_archive_table('DataFiles') Example 1 --------- Displayed example 1 code .. EXAMPLE-BLOCK-1-START .. code-block:: python >>> sample_archive = api.create( ... 'sample_archive', ... metadata = { ... 'oneline_description': 'tas by admin region', ... 'source': 'NASA BCSD', ... 'notes': 'important note'}) ... .. EXAMPLE-BLOCK-1-END Example 2 --------- Displayed example 2 code .. EXAMPLE-BLOCK-2-START .. code-block:: python >>> for archive_name in api.filter(): ... print(archive_name) ... sample_archive .. EXAMPLE-BLOCK-2-END Example 3 --------- Displayed example 3 code .. EXAMPLE-BLOCK-3-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NASA BCSD'} .. EXAMPLE-BLOCK-3-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NASA BCSD'} ... True Example 4 --------- Displayed example 4 code .. EXAMPLE-BLOCK-4-START .. code-block:: python >>> sample_archive.update_metadata(dict( ... source='NOAAs better temp data', ... related_links='http://wwww.noaa.gov')) ... .. EXAMPLE-BLOCK-4-END Example 5 --------- Displayed example 5 code .. EXAMPLE-BLOCK-5-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data', u'related_links': u'http://wwww.no aa.gov'} .. EXAMPLE-BLOCK-5-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data', ... u'related_links': u'http://wwww.noaa.gov'} ... True Example 6 --------- Displayed example 6 code .. EXAMPLE-BLOCK-6-START .. code-block:: python >>> sample_archive.update_metadata(dict(related_links=None)) >>> >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data'} .. EXAMPLE-BLOCK-6-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data'} ... True Teardown -------- .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except KeyError: ... pass ... >>> api.manager.delete_table('DataFiles') '''
""" .. _snippets-pythonapi-metadata: Python API: Managing Metadata ============================= This is the tested source code for the snippets used in :ref:`pythonapi-metadata`. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. Setup ----- .. code-block:: python >>> import datafs >>> from fs.tempfs import TempFS We test with the following setup: .. code-block:: python >>> api = datafs.get_api( ... config_file='examples/snippets/resources/datafs_mongo.yml') ... This assumes that you have a config file at the above location. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. clean up any previous test failures .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except (KeyError, OSError): ... pass ... >>> try: ... api.manager.delete_table('DataFiles') ... except KeyError: ... pass ... Add a fresh manager table: .. code-block:: python >>> api.manager.create_archive_table('DataFiles') Example 1 --------- Displayed example 1 code .. EXAMPLE-BLOCK-1-START .. code-block:: python >>> sample_archive = api.create( ... 'sample_archive', ... metadata = { ... 'oneline_description': 'tas by admin region', ... 'source': 'NASA BCSD', ... 'notes': 'important note'}) ... .. EXAMPLE-BLOCK-1-END Example 2 --------- Displayed example 2 code .. EXAMPLE-BLOCK-2-START .. code-block:: python >>> for archive_name in api.filter(): ... print(archive_name) ... sample_archive .. EXAMPLE-BLOCK-2-END Example 3 --------- Displayed example 3 code .. EXAMPLE-BLOCK-3-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NASA BCSD'} .. EXAMPLE-BLOCK-3-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NASA BCSD'} ... True Example 4 --------- Displayed example 4 code .. EXAMPLE-BLOCK-4-START .. code-block:: python >>> sample_archive.update_metadata(dict( ... source='NOAAs better temp data', ... related_links='http://wwww.noaa.gov')) ... .. EXAMPLE-BLOCK-4-END Example 5 --------- Displayed example 5 code .. EXAMPLE-BLOCK-5-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data', u'related_links': u'http://wwww.no aa.gov'} .. EXAMPLE-BLOCK-5-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data', ... u'related_links': u'http://wwww.noaa.gov'} ... True Example 6 --------- Displayed example 6 code .. EXAMPLE-BLOCK-6-START .. code-block:: python >>> sample_archive.update_metadata(dict(related_links=None)) >>> >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data'} .. EXAMPLE-BLOCK-6-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data'} ... True Teardown -------- .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except KeyError: ... pass ... >>> api.manager.delete_table('DataFiles') """
# # PySNMP MIB module NV-ATKK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NV-ATKK-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:25:52 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") iso, NotificationType, Counter32, Counter64, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, mib_2, ObjectIdentity, Gauge32, IpAddress, ModuleIdentity, MibIdentifier, Integer32, Bits, enterprises, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "NotificationType", "Counter32", "Counter64", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "mib-2", "ObjectIdentity", "Gauge32", "IpAddress", "ModuleIdentity", "MibIdentifier", "Integer32", "Bits", "enterprises", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 class BridgeId(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class Timeout(Integer32): pass c3716TR = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 3)) atiSystemConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 1)) atiSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 3)) atiSysSerialno = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: atiSysSerialno.setStatus('mandatory') if mibBuilder.loadTexts: atiSysSerialno.setDescription('Serial number.') atiSysTftpIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysTftpIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpIPAddress.setDescription('TFTP Server IP address.') atiSysTftpFilename = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysTftpFilename.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpFilename.setDescription('TFTP file name.') atiSysPowerupCount = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiSysPowerupCount.setStatus('mandatory') if mibBuilder.loadTexts: atiSysPowerupCount.setDescription('Powerup Count.') atiSysBrcastCutoffRate = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setStatus('mandatory') if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setDescription('Broadcast Cutoff Rate. (0..100000)') atiSysGatewayIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysGatewayIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysGatewayIPAddress.setDescription('Gateway IP address.') atiPortTable = MibTable((1, 3, 6, 1, 4, 1, 207, 8, 3, 2), ) if mibBuilder.loadTexts: atiPortTable.setStatus('mandatory') if mibBuilder.loadTexts: atiPortTable.setDescription('The port setup table.') atiPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1), ).setIndexNames((0, "NV-ATKK-MIB", "atiPort")) if mibBuilder.loadTexts: atiPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: atiPortEntry.setDescription('The port setup entry.') atiPort = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPort.setStatus('mandatory') if mibBuilder.loadTexts: atiPort.setDescription('A number from 1 to number of ports on the switch.') atiPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortStatus.setDescription('Port status.') atiPortDuplexStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("half", 1), ("full", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortDuplexStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortDuplexStatus.setDescription('Port duplex status.') atiPortForwardedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortForwardedFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortForwardedFrames.setDescription('Number of frames received on this port and forwarded to another port on the system module for processing.') atiPortRcvdLocalFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setDescription('Number of frames received where the destination is on this port.') atiSwitchIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchIPAddress.setDescription('Since bridges can now be accessed without an IP address, there needs to be a way to find out there addresses.') atiSwitchSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchSubnetMask.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSubnetMask.setDescription("The switch's submask.") atiActiveAgingTime = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiActiveAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiActiveAgingTime.setDescription('Active Aging Time.') atiPurgeAgingTime = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiPurgeAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiPurgeAgingTime.setDescription('Purge Aging Time.') atiSwitchSTPStatus = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchSTPStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSTPStatus.setDescription("The switch's Spanning Tree status, enter ON or OFF.") atiSwitchManager = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchManager.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchManager.setDescription('The 1th SNMP Trap Destination.') atiSwitcTrapRcvr1 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setDescription('The 1th SNMP Trap Destination.') atiSwitcTrapRcvr2 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setDescription('The 2th SNMP Trap Destination.') atiSwitcTrapRcvr3 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setDescription('The 3th SNMP Trap Destination.') atiSwitcTrapRcvr4 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setDescription('The 4th SNMP Trap Destination.') mibBuilder.exportSymbols("NV-ATKK-MIB", atiSysSerialno=atiSysSerialno, atiPortForwardedFrames=atiPortForwardedFrames, atiSwitcTrapRcvr2=atiSwitcTrapRcvr2, atiSwitchSubnetMask=atiSwitchSubnetMask, atiSwitchSTPStatus=atiSwitchSTPStatus, atiSwitch=atiSwitch, atiSwitchManager=atiSwitchManager, c3716TR=c3716TR, atiPortDuplexStatus=atiPortDuplexStatus, atiSwitcTrapRcvr1=atiSwitcTrapRcvr1, atiPortTable=atiPortTable, atiSwitchIPAddress=atiSwitchIPAddress, atiSwitcTrapRcvr4=atiSwitcTrapRcvr4, Timeout=Timeout, atiSysGatewayIPAddress=atiSysGatewayIPAddress, atiSwitcTrapRcvr3=atiSwitcTrapRcvr3, atiSysPowerupCount=atiSysPowerupCount, MacAddress=MacAddress, BridgeId=BridgeId, atiSysTftpIPAddress=atiSysTftpIPAddress, atiPortRcvdLocalFrames=atiPortRcvdLocalFrames, atiSysTftpFilename=atiSysTftpFilename, atiPortStatus=atiPortStatus, atiSysBrcastCutoffRate=atiSysBrcastCutoffRate, atiPurgeAgingTime=atiPurgeAgingTime, atiPortEntry=atiPortEntry, atiActiveAgingTime=atiActiveAgingTime, atiPort=atiPort, atiSystemConfig=atiSystemConfig)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (iso, notification_type, counter32, counter64, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, mib_2, object_identity, gauge32, ip_address, module_identity, mib_identifier, integer32, bits, enterprises, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'NotificationType', 'Counter32', 'Counter64', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'mib-2', 'ObjectIdentity', 'Gauge32', 'IpAddress', 'ModuleIdentity', 'MibIdentifier', 'Integer32', 'Bits', 'enterprises', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Macaddress(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 class Bridgeid(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Timeout(Integer32): pass c3716_tr = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 3)) ati_system_config = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 1)) ati_switch = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 3)) ati_sys_serialno = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: atiSysSerialno.setStatus('mandatory') if mibBuilder.loadTexts: atiSysSerialno.setDescription('Serial number.') ati_sys_tftp_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysTftpIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpIPAddress.setDescription('TFTP Server IP address.') ati_sys_tftp_filename = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysTftpFilename.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpFilename.setDescription('TFTP file name.') ati_sys_powerup_count = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiSysPowerupCount.setStatus('mandatory') if mibBuilder.loadTexts: atiSysPowerupCount.setDescription('Powerup Count.') ati_sys_brcast_cutoff_rate = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setStatus('mandatory') if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setDescription('Broadcast Cutoff Rate. (0..100000)') ati_sys_gateway_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysGatewayIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysGatewayIPAddress.setDescription('Gateway IP address.') ati_port_table = mib_table((1, 3, 6, 1, 4, 1, 207, 8, 3, 2)) if mibBuilder.loadTexts: atiPortTable.setStatus('mandatory') if mibBuilder.loadTexts: atiPortTable.setDescription('The port setup table.') ati_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1)).setIndexNames((0, 'NV-ATKK-MIB', 'atiPort')) if mibBuilder.loadTexts: atiPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: atiPortEntry.setDescription('The port setup entry.') ati_port = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPort.setStatus('mandatory') if mibBuilder.loadTexts: atiPort.setDescription('A number from 1 to number of ports on the switch.') ati_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortStatus.setDescription('Port status.') ati_port_duplex_status = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('half', 1), ('full', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortDuplexStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortDuplexStatus.setDescription('Port duplex status.') ati_port_forwarded_frames = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortForwardedFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortForwardedFrames.setDescription('Number of frames received on this port and forwarded to another port on the system module for processing.') ati_port_rcvd_local_frames = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setDescription('Number of frames received where the destination is on this port.') ati_switch_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchIPAddress.setDescription('Since bridges can now be accessed without an IP address, there needs to be a way to find out there addresses.') ati_switch_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchSubnetMask.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSubnetMask.setDescription("The switch's submask.") ati_active_aging_time = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiActiveAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiActiveAgingTime.setDescription('Active Aging Time.') ati_purge_aging_time = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiPurgeAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiPurgeAgingTime.setDescription('Purge Aging Time.') ati_switch_stp_status = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchSTPStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSTPStatus.setDescription("The switch's Spanning Tree status, enter ON or OFF.") ati_switch_manager = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchManager.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchManager.setDescription('The 1th SNMP Trap Destination.') ati_switc_trap_rcvr1 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setDescription('The 1th SNMP Trap Destination.') ati_switc_trap_rcvr2 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setDescription('The 2th SNMP Trap Destination.') ati_switc_trap_rcvr3 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setDescription('The 3th SNMP Trap Destination.') ati_switc_trap_rcvr4 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setDescription('The 4th SNMP Trap Destination.') mibBuilder.exportSymbols('NV-ATKK-MIB', atiSysSerialno=atiSysSerialno, atiPortForwardedFrames=atiPortForwardedFrames, atiSwitcTrapRcvr2=atiSwitcTrapRcvr2, atiSwitchSubnetMask=atiSwitchSubnetMask, atiSwitchSTPStatus=atiSwitchSTPStatus, atiSwitch=atiSwitch, atiSwitchManager=atiSwitchManager, c3716TR=c3716TR, atiPortDuplexStatus=atiPortDuplexStatus, atiSwitcTrapRcvr1=atiSwitcTrapRcvr1, atiPortTable=atiPortTable, atiSwitchIPAddress=atiSwitchIPAddress, atiSwitcTrapRcvr4=atiSwitcTrapRcvr4, Timeout=Timeout, atiSysGatewayIPAddress=atiSysGatewayIPAddress, atiSwitcTrapRcvr3=atiSwitcTrapRcvr3, atiSysPowerupCount=atiSysPowerupCount, MacAddress=MacAddress, BridgeId=BridgeId, atiSysTftpIPAddress=atiSysTftpIPAddress, atiPortRcvdLocalFrames=atiPortRcvdLocalFrames, atiSysTftpFilename=atiSysTftpFilename, atiPortStatus=atiPortStatus, atiSysBrcastCutoffRate=atiSysBrcastCutoffRate, atiPurgeAgingTime=atiPurgeAgingTime, atiPortEntry=atiPortEntry, atiActiveAgingTime=atiActiveAgingTime, atiPort=atiPort, atiSystemConfig=atiSystemConfig)
# https://www.codewars.com/kata/521c2db8ddc89b9b7a0000c1/ ''' Instructions : Snail Sort Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise. array = [[1,2,3], [4,5,6], [7,8,9]] snail(array) #=> [1,2,3,6,9,8,7,4,5] For better understanding, please follow the numbers of the next array consecutively: array = [[1,2,3], [8,9,4], [7,6,5]] snail(array) #=> [1,2,3,4,5,6,7,8,9] This image will illustrate things more clearly: https://www.haan.lu/files/2513/8347/2456/snail.png NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern. NOTE 2: The 0x0 (empty matrix) is represented as en empty array inside an array [[]]. ''' def snail(matrix): res = [] if len(matrix) == 0: return res row_begin = 0 row_end = len(matrix) - 1 col_begin = 0 col_end = len(matrix[0]) - 1 while row_begin <= row_end and col_begin <= col_end: for i in range(col_begin, col_end+1): res.append(matrix[row_begin][i]) row_begin += 1 for i in range(row_begin, row_end+1): res.append(matrix[i][col_end]) col_end -= 1 if row_begin <= row_end: for i in range(col_end, col_begin-1, -1): res.append(matrix[row_end][i]) row_end -= 1 if col_begin <= col_end: for i in range(row_end, row_begin-1, -1): res.append(matrix[i][col_begin]) col_begin += 1 return res
""" Instructions : Snail Sort Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise. array = [[1,2,3], [4,5,6], [7,8,9]] snail(array) #=> [1,2,3,6,9,8,7,4,5] For better understanding, please follow the numbers of the next array consecutively: array = [[1,2,3], [8,9,4], [7,6,5]] snail(array) #=> [1,2,3,4,5,6,7,8,9] This image will illustrate things more clearly: https://www.haan.lu/files/2513/8347/2456/snail.png NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern. NOTE 2: The 0x0 (empty matrix) is represented as en empty array inside an array [[]]. """ def snail(matrix): res = [] if len(matrix) == 0: return res row_begin = 0 row_end = len(matrix) - 1 col_begin = 0 col_end = len(matrix[0]) - 1 while row_begin <= row_end and col_begin <= col_end: for i in range(col_begin, col_end + 1): res.append(matrix[row_begin][i]) row_begin += 1 for i in range(row_begin, row_end + 1): res.append(matrix[i][col_end]) col_end -= 1 if row_begin <= row_end: for i in range(col_end, col_begin - 1, -1): res.append(matrix[row_end][i]) row_end -= 1 if col_begin <= col_end: for i in range(row_end, row_begin - 1, -1): res.append(matrix[i][col_begin]) col_begin += 1 return res
command = '/home/slunk/code/racks_project/env/bin/gunicorn' pythonpath = '/home/slunk/code/racks_project/racks' bind = '127.0.0.1:8001' workers = 5 user = 'slunk' limit_request_fields = 32000 limit_request_field_size = 0 raw_enw = 'DJANGO_SETTINGS_MODULE=racks.settings'
command = '/home/slunk/code/racks_project/env/bin/gunicorn' pythonpath = '/home/slunk/code/racks_project/racks' bind = '127.0.0.1:8001' workers = 5 user = 'slunk' limit_request_fields = 32000 limit_request_field_size = 0 raw_enw = 'DJANGO_SETTINGS_MODULE=racks.settings'
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.204603, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.363393, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.11055, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.635775, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.10093, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.631416, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.36812, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.458173, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 7.7797, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.209808, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0230473, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.243032, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.170449, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.45284, 'Execution Unit/Register Files/Runtime Dynamic': 0.193497, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.643318, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.59116, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 4.92155, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00206893, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000798397, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00244852, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00927873, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.02299, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.163857, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.47197, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.556533, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.22463, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0733521, 'L2/Runtime Dynamic': 0.0149759, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.49788, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.53945, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.170198, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.170198, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.30486, 'Load Store Unit/Runtime Dynamic': 3.549, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.419679, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.839358, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.148946, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.15004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0773917, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.815992, 'Memory Management Unit/Runtime Dynamic': 0.227432, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 29.5043, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.731972, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.041318, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.317832, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.09112, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 11.0287, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0588041, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.248876, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.376591, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.287381, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.463534, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.233977, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.984892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.270943, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.9829, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0711461, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.012054, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.106781, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.089147, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.177927, 'Execution Unit/Register Files/Runtime Dynamic': 0.101201, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.239662, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.59396, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.33431, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00161558, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00063566, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.0012806, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0065629, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.016909, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0856993, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.45121, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.280368, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.291073, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.93428, 'Instruction Fetch Unit/Runtime Dynamic': 0.680612, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0327293, 'L2/Runtime Dynamic': 0.0134497, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.28732, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.01348, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.60054, 'Load Store Unit/Runtime Dynamic': 1.40692, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.163555, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.327111, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0580464, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0585369, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.338936, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0459651, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.594759, 'Memory Management Unit/Runtime Dynamic': 0.104502, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.7347, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.187153, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0152434, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.143713, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.34611, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.8859, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0543055, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.245343, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394195, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.260055, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.41946, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.211729, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.891244, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.236992, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.92342, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0744719, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0109079, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.095105, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0806705, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.169577, 'Execution Unit/Register Files/Runtime Dynamic': 0.0915784, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.213939, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.555101, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.18864, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00154949, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000617927, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00115884, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0061903, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0155103, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0775507, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.93289, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.227723, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.263397, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.3908, 'Instruction Fetch Unit/Runtime Dynamic': 0.590371, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0228357, 'L2/Runtime Dynamic': 0.00464711, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.6387, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.15404, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.0056, 'Load Store Unit/Runtime Dynamic': 1.61491, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.191587, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.383174, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.067995, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0683372, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.306709, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0373336, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.579621, 'Memory Management Unit/Runtime Dynamic': 0.105671, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.5118, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195901, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0141171, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.129012, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.33903, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.84328, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0623769, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.251682, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.337606, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.224582, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.362242, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.182848, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.769672, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.205098, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.81868, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0637809, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00941997, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0914408, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0696664, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.155222, 'Execution Unit/Register Files/Runtime Dynamic': 0.0790864, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.208238, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.526198, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.03202, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00115785, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000452173, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00100076, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00480069, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0124079, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0669721, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.26, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.200165, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.227468, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.68526, 'Instruction Fetch Unit/Runtime Dynamic': 0.511813, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0382461, 'L2/Runtime Dynamic': 0.0083586, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.12016, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.38594, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.56062, 'Load Store Unit/Runtime Dynamic': 1.9392, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.229996, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.459992, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0816263, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0822004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.264871, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0328147, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.5612, 'Memory Management Unit/Runtime Dynamic': 0.115015, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.2535, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.167778, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0121743, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.111723, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.291676, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.89808, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.7987100371612288, 'Runtime Dynamic': 1.7987100371612288, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.129484, 'Runtime Dynamic': 0.0800318, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 91.1337, 'Peak Power': 124.246, 'Runtime Dynamic': 25.736, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 91.0042, 'Total Cores/Runtime Dynamic': 25.656, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.129484, 'Total L3s/Runtime Dynamic': 0.0800318, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.204603, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.363393, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.11055, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.635775, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.10093, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.631416, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.36812, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.458173, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 7.7797, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.209808, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0230473, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.243032, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.170449, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.45284, 'Execution Unit/Register Files/Runtime Dynamic': 0.193497, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.643318, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.59116, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 4.92155, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00206893, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000798397, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00244852, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00927873, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.02299, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.163857, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.47197, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.556533, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.22463, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0733521, 'L2/Runtime Dynamic': 0.0149759, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.49788, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.53945, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.170198, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.170198, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.30486, 'Load Store Unit/Runtime Dynamic': 3.549, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.419679, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.839358, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.148946, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.15004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0773917, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.815992, 'Memory Management Unit/Runtime Dynamic': 0.227432, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 29.5043, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.731972, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.041318, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.317832, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.09112, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 11.0287, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0588041, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.248876, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.376591, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.287381, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.463534, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.233977, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.984892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.270943, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.9829, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0711461, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.012054, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.106781, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.089147, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.177927, 'Execution Unit/Register Files/Runtime Dynamic': 0.101201, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.239662, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.59396, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.33431, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00161558, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00063566, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.0012806, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0065629, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.016909, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0856993, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.45121, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.280368, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.291073, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.93428, 'Instruction Fetch Unit/Runtime Dynamic': 0.680612, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0327293, 'L2/Runtime Dynamic': 0.0134497, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.28732, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.01348, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.60054, 'Load Store Unit/Runtime Dynamic': 1.40692, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.163555, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.327111, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0580464, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0585369, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.338936, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0459651, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.594759, 'Memory Management Unit/Runtime Dynamic': 0.104502, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.7347, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.187153, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0152434, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.143713, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.34611, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.8859, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0543055, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.245343, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394195, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.260055, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.41946, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.211729, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.891244, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.236992, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.92342, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0744719, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0109079, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.095105, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0806705, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.169577, 'Execution Unit/Register Files/Runtime Dynamic': 0.0915784, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.213939, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.555101, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.18864, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00154949, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000617927, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00115884, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0061903, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0155103, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0775507, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.93289, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.227723, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.263397, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.3908, 'Instruction Fetch Unit/Runtime Dynamic': 0.590371, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0228357, 'L2/Runtime Dynamic': 0.00464711, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.6387, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.15404, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.0056, 'Load Store Unit/Runtime Dynamic': 1.61491, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.191587, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.383174, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.067995, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0683372, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.306709, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0373336, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.579621, 'Memory Management Unit/Runtime Dynamic': 0.105671, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.5118, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195901, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0141171, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.129012, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.33903, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.84328, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0623769, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.251682, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.337606, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.224582, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.362242, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.182848, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.769672, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.205098, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.81868, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0637809, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00941997, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0914408, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0696664, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.155222, 'Execution Unit/Register Files/Runtime Dynamic': 0.0790864, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.208238, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.526198, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.03202, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00115785, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000452173, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00100076, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00480069, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0124079, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0669721, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.26, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.200165, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.227468, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.68526, 'Instruction Fetch Unit/Runtime Dynamic': 0.511813, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0382461, 'L2/Runtime Dynamic': 0.0083586, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.12016, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.38594, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.56062, 'Load Store Unit/Runtime Dynamic': 1.9392, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.229996, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.459992, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0816263, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0822004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.264871, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0328147, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.5612, 'Memory Management Unit/Runtime Dynamic': 0.115015, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.2535, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.167778, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0121743, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.111723, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.291676, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.89808, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.7987100371612288, 'Runtime Dynamic': 1.7987100371612288, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.129484, 'Runtime Dynamic': 0.0800318, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 91.1337, 'Peak Power': 124.246, 'Runtime Dynamic': 25.736, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 91.0042, 'Total Cores/Runtime Dynamic': 25.656, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.129484, 'Total L3s/Runtime Dynamic': 0.0800318, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
def calculate_max_profit(prices): '''Calculates the maximum profit given a list of prices of a stock by buying and selling exactly once. >>> calculate_max_profit([9, 11, 8, 5, 7, 10]) 5 >>> calculate_max_profit([10, 9, 8, 5, 2]) 0 ''' smallest_element_so_far = float('inf') largest_gain = 0 for value in prices: smallest_element_so_far = min(value, smallest_element_so_far) largest_gain = max(value - smallest_element_so_far, largest_gain) return largest_gain
def calculate_max_profit(prices): """Calculates the maximum profit given a list of prices of a stock by buying and selling exactly once. >>> calculate_max_profit([9, 11, 8, 5, 7, 10]) 5 >>> calculate_max_profit([10, 9, 8, 5, 2]) 0 """ smallest_element_so_far = float('inf') largest_gain = 0 for value in prices: smallest_element_so_far = min(value, smallest_element_so_far) largest_gain = max(value - smallest_element_so_far, largest_gain) return largest_gain
class FailedRequestingEcoCounterError(Exception): pass class PublishError(Exception): pass
class Failedrequestingecocountererror(Exception): pass class Publisherror(Exception): pass
fname = input('Enter file: ') try: fhandle = open(fname, 'r') except: print('No such file.') quit() hrs = dict() for line in fhandle: if not line.startswith('From '): continue tmp = line.find(':') hour = line[tmp-2:tmp] hrs[hour] = hrs.get(hour, 0) + 1 for (k, v) in sorted(hrs.items()): print(k, v)
fname = input('Enter file: ') try: fhandle = open(fname, 'r') except: print('No such file.') quit() hrs = dict() for line in fhandle: if not line.startswith('From '): continue tmp = line.find(':') hour = line[tmp - 2:tmp] hrs[hour] = hrs.get(hour, 0) + 1 for (k, v) in sorted(hrs.items()): print(k, v)
sides = {} data = input() while not data == "Lumpawaroo": keep_it = True idk = False if "|" in data: side, name = data.split(" | ") if side in sides: for person in sides[side]: if name in person: idk = True break idk = True if side not in sides and name not in sides.keys(): sides[side] = [name] if idk is True: sides[side].append(name) elif " -> " in data: name, side = data.split(" -> ") for Side, Name in sides.items(): if name in Name: sides[Side].remove(name) sides[side].append(name) print(f"{name} joins the {side} side!") keep_it = False break if keep_it is True: for Side, Name in sides.items(): if name not in Name and len(sides.get(Side)) != None: sides[side].append(name) print(f"{name} joins the {side} side!") break elif name not in Name: sides[side] = [name] print(f"{name} joins the {side} side!") break data = input() continue for side, name in sorted(sides.items(), key=lambda x: (-len(x[1]), x[0])): if 0 == len(name): continue else: print(f"Side: {side}, Members: {len(name)}") for person in sorted(name): print(f"! {person}")
sides = {} data = input() while not data == 'Lumpawaroo': keep_it = True idk = False if '|' in data: (side, name) = data.split(' | ') if side in sides: for person in sides[side]: if name in person: idk = True break idk = True if side not in sides and name not in sides.keys(): sides[side] = [name] if idk is True: sides[side].append(name) elif ' -> ' in data: (name, side) = data.split(' -> ') for (side, name) in sides.items(): if name in Name: sides[Side].remove(name) sides[side].append(name) print(f'{name} joins the {side} side!') keep_it = False break if keep_it is True: for (side, name) in sides.items(): if name not in Name and len(sides.get(Side)) != None: sides[side].append(name) print(f'{name} joins the {side} side!') break elif name not in Name: sides[side] = [name] print(f'{name} joins the {side} side!') break data = input() continue for (side, name) in sorted(sides.items(), key=lambda x: (-len(x[1]), x[0])): if 0 == len(name): continue else: print(f'Side: {side}, Members: {len(name)}') for person in sorted(name): print(f'! {person}')
class Customer: #function to update the details of the customer def __init__(self,name,email): self.name = name self.email = email self.purchases = [] #function to have a customer make a purchase def purchase(self,inventory, product): inventory_dict = inventory.inventory if product in inventory_dict: if inventory_dict[product] > 1: self.purchases.append(product) inventory_dict[product]-=1 else: print('We are out of stock') else: print("We don't have the product") def print_purchases(self): print('The customer has purchased:') bill = 0 for items in self.purchases: print(items.name + " $"+str(items.price)) bill+=items.price print(customer.name +"'s Total Bill is $" + str(bill)) class Product: #function to add the name and price of the product def __init__(self,name,price): self.name = name self.price = price class Inventory: def __init__(self): self.inventory = {} #inventory is a Dictionary to hold the key and value of the product #funtion to add product to the inventory def add_product(self,product,quantity): if product not in self.inventory: self.inventory[product] = quantity else: self.inventory[product]+=quantity def print_inventory(self): print('Product: Quantity') for key,value in self.inventory.items(): print(key.name + ": " + str(value)) print() customer = Customer('Joe Rogan','joe@gmail.com') print('Name of the Customer: ') print(customer.name) apple_watch = Product('apple_watch',299) mac = Product('mac',1999) nike = Product('Nike',1500) iphone = Product('IPhone',900) inventory = Inventory() inventory.add_product(apple_watch,500) inventory.add_product(iphone,15) inventory.add_product(mac,800) inventory.add_product(nike,70) print() inventory.print_inventory() #function to add the customers purchase customer.purchase(inventory,apple_watch) customer.purchase(inventory,iphone) #printing the *Updated* inventory and the Customers purchase inventory.print_inventory() print() customer.print_purchases()
class Customer: def __init__(self, name, email): self.name = name self.email = email self.purchases = [] def purchase(self, inventory, product): inventory_dict = inventory.inventory if product in inventory_dict: if inventory_dict[product] > 1: self.purchases.append(product) inventory_dict[product] -= 1 else: print('We are out of stock') else: print("We don't have the product") def print_purchases(self): print('The customer has purchased:') bill = 0 for items in self.purchases: print(items.name + ' $' + str(items.price)) bill += items.price print(customer.name + "'s Total Bill is $" + str(bill)) class Product: def __init__(self, name, price): self.name = name self.price = price class Inventory: def __init__(self): self.inventory = {} def add_product(self, product, quantity): if product not in self.inventory: self.inventory[product] = quantity else: self.inventory[product] += quantity def print_inventory(self): print('Product: Quantity') for (key, value) in self.inventory.items(): print(key.name + ': ' + str(value)) print() customer = customer('Joe Rogan', 'joe@gmail.com') print('Name of the Customer: ') print(customer.name) apple_watch = product('apple_watch', 299) mac = product('mac', 1999) nike = product('Nike', 1500) iphone = product('IPhone', 900) inventory = inventory() inventory.add_product(apple_watch, 500) inventory.add_product(iphone, 15) inventory.add_product(mac, 800) inventory.add_product(nike, 70) print() inventory.print_inventory() customer.purchase(inventory, apple_watch) customer.purchase(inventory, iphone) inventory.print_inventory() print() customer.print_purchases()
samples = [ { "input": { "array": [5, 1, 22, 25, 6, -1, 8, 10], }, "output": [1, 6, -1, 10], }, ]
samples = [{'input': {'array': [5, 1, 22, 25, 6, -1, 8, 10]}, 'output': [1, 6, -1, 10]}]
def doNothing(rawSolutions): #TODO - accept some sort of number QoI from somewhere number_qoi = 1 list_of_qoi = [] for _ in range(number_qoi): qoi_values = [] for raw_solution in rawSolutions: qoi_values.append(raw_solution) list_of_qoi.append(qoi_values) return list_of_qoi
def do_nothing(rawSolutions): number_qoi = 1 list_of_qoi = [] for _ in range(number_qoi): qoi_values = [] for raw_solution in rawSolutions: qoi_values.append(raw_solution) list_of_qoi.append(qoi_values) return list_of_qoi
class Plan: def __init__(self): self.tasks = [] def add_task(self, task): assert task.task_id is None self.tasks.append(task) def take_tasks(self): tasks = self.tasks self.tasks = [] return tasks
class Plan: def __init__(self): self.tasks = [] def add_task(self, task): assert task.task_id is None self.tasks.append(task) def take_tasks(self): tasks = self.tasks self.tasks = [] return tasks
# Program : Linear search in an array. # Input : size = 5, array = [1, 3, 5, 2, 4], target = 5 # Output : 2 # Explanation : The index of the element 5 is 2. # Language : Python3 # O(n) time | O(1) space def linear_search(size, array, target): # Do for each element in the array. for i in range(size): # Declare the current element. current_element = array[i] # If the current element is equal to the target, then return the current index. if current_element == target: return i # If the target is not found, then return -1. return -1 # Main function. if __name__ == '__main__': # Declare the size, array and target. size = 5 array = [1, 3, 5, 2, 4] target = 5 # Find the index of the target and store the result in the answer variable. answer = linear_search(size, array, target) # Print the answer. print(answer)
def linear_search(size, array, target): for i in range(size): current_element = array[i] if current_element == target: return i return -1 if __name__ == '__main__': size = 5 array = [1, 3, 5, 2, 4] target = 5 answer = linear_search(size, array, target) print(answer)
def pego_correndo(speed, is_birthday): retorno = 0 if is_birthday == True: if speed <= 65: retorno = 0 elif 65 < speed <= 85 : retorno = 1 elif speed > 85 : retorno = 2 elif is_birthday == False: if speed <= 60 : retorno = 0 elif 60 < speed <= 80 : retorno = 1 elif speed > 80 : retorno = 2 return retorno
def pego_correndo(speed, is_birthday): retorno = 0 if is_birthday == True: if speed <= 65: retorno = 0 elif 65 < speed <= 85: retorno = 1 elif speed > 85: retorno = 2 elif is_birthday == False: if speed <= 60: retorno = 0 elif 60 < speed <= 80: retorno = 1 elif speed > 80: retorno = 2 return retorno
class Solution: def checkInclusion(self, s1: str, s2: str) -> bool: s1_len = len(s1) s2_len = len(s2) flag = False for i,v in enumerate(s2): for k in s1: if k != v: flag = False break; else: flag = True if flag: break; return flag if __name__ == "__main__": s = Solution() case1 = ["ab", "eidbaooo"] case2 = ["ab", "eidabooo"] print(s.checkInclusion(case1[0], case1[1])) print(s.checkInclusion(case2[0], case2[1]))
class Solution: def check_inclusion(self, s1: str, s2: str) -> bool: s1_len = len(s1) s2_len = len(s2) flag = False for (i, v) in enumerate(s2): for k in s1: if k != v: flag = False break else: flag = True if flag: break return flag if __name__ == '__main__': s = solution() case1 = ['ab', 'eidbaooo'] case2 = ['ab', 'eidabooo'] print(s.checkInclusion(case1[0], case1[1])) print(s.checkInclusion(case2[0], case2[1]))
my_list = ["one", 2, "three"] print(my_list) print(type(my_list)) l = [] # an empty list
my_list = ['one', 2, 'three'] print(my_list) print(type(my_list)) l = []
class Solution: def minimumDeviation(self, nums: List[int]) -> int: # since heapq is a min-heap # we use negative of the numbers to mimic a max-heap evens = [] minimum = inf for num in nums: if num % 2 == 0: evens.append(-num) minimum = min(minimum, num) else: evens.append(-num*2) minimum = min(minimum, num*2) heapq.heapify(evens) min_deviation = inf while evens: current_value = -heapq.heappop(evens) min_deviation = min(min_deviation, current_value-minimum) if current_value % 2 == 0: minimum = min(minimum, current_value//2) heapq.heappush(evens, -current_value//2) else: # if the maximum is odd, break and return break return min_deviation
class Solution: def minimum_deviation(self, nums: List[int]) -> int: evens = [] minimum = inf for num in nums: if num % 2 == 0: evens.append(-num) minimum = min(minimum, num) else: evens.append(-num * 2) minimum = min(minimum, num * 2) heapq.heapify(evens) min_deviation = inf while evens: current_value = -heapq.heappop(evens) min_deviation = min(min_deviation, current_value - minimum) if current_value % 2 == 0: minimum = min(minimum, current_value // 2) heapq.heappush(evens, -current_value // 2) else: break return min_deviation
# # PySNMP MIB module HPN-ICF-TE-TUNNEL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-TE-TUNNEL-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:41:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint") hpnicfCommon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfCommon") MplsLabel, MplsTunnelInstanceIndex, MplsTunnelIndex, MplsExtendedTunnelId = mibBuilder.importSymbols("MPLS-TC-STD-MIB", "MplsLabel", "MplsTunnelInstanceIndex", "MplsTunnelIndex", "MplsExtendedTunnelId") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") iso, Counter64, ObjectIdentity, Gauge32, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, IpAddress, ModuleIdentity, Counter32, MibIdentifier, TimeTicks, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Counter64", "ObjectIdentity", "Gauge32", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "IpAddress", "ModuleIdentity", "Counter32", "MibIdentifier", "TimeTicks", "NotificationType") RowPointer, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowPointer", "TextualConvention", "DisplayString") hpnicfTeTunnel = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115)) if mibBuilder.loadTexts: hpnicfTeTunnel.setLastUpdated('201103240948Z') if mibBuilder.loadTexts: hpnicfTeTunnel.setOrganization('') if mibBuilder.loadTexts: hpnicfTeTunnel.setContactInfo('') if mibBuilder.loadTexts: hpnicfTeTunnel.setDescription('This MIB contains managed object definitions for the Multiprotocol Label Switching (MPLS) Te Tunnel.') hpnicfTeTunnelScalars = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1)) hpnicfTeTunnelMaxTunnelIndex = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1, 1), MplsTunnelIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setDescription('The max value of tunnel id is permitted configure on the device.') hpnicfTeTunnelObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2)) hpnicfTeTunnelStaticCrlspTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1), ) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setDescription('This table contains information for static-crlsp, and through this to get detail information about this static-crlsp. Only support transit LSR and egress LSR.') hpnicfTeTunnelStaticCrlspEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1), ).setIndexNames((0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspInLabel")) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setDescription('The entry in this table describes static-crlsp information.') hpnicfTeTunnelStaticCrlspInLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 1), MplsLabel()) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setDescription('This is unique label value that manualy assigned. Uniquely identifies a static-crlsp. Managers should use this to obtain detail static-crlsp information.') hpnicfTeTunnelStaticCrlspName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setDescription('The unique name assigned to the static-crlsp.') hpnicfTeTunnelStaticCrlspStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setDescription('Indicates the actual status of this static-crlsp, The value must be up when the static-crlsp status is up and the value must be down when the static-crlsp status is down.') hpnicfTeTunnelStaticCrlspRole = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("transit", 1), ("tail", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setDescription('This value indicate the role of this static-crlsp. This value must be transit at transit point of the tunnel, and tail at terminating point of the tunnel.') hpnicfTeTunnelStaticCrlspXCPointer = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 5), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setDescription('This pointer unique identify a row of mplsXCTable. This value should be zeroDotZero when the static-crlsp is down. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other.') hpnicfTeTunnelCoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2), ) if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setDescription('This table contains information for Co-routed reverse crlsp and infomation of Co-routed bidirectional Tunnel Interface. If hpnicfCorouteTunnelLspInstance is zero, to obtain infomation of Co-routed bidirectional Tunnel Interface, otherwise to obtain Co-routed reverse crlsp infomation.') hpnicfTeTunnelCoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1), ).setIndexNames((0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoIndex"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoLspInstance"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoIngressLSRId"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoEgressLSRId")) if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setDescription('The entry in this table describes Co-routed infomation of bidirectional Tunnel Interface and reserver lsp information.') hpnicfTeTunnelCoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 1), MplsTunnelIndex()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setDescription('Uniquely identifies a set of tunnel instances between a pair of ingress and egress LSRs that specified at originating point. This value should be equal to the value signaled in the Tunnel Id of the Session object.') hpnicfTeTunnelCoLspInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 2), MplsTunnelInstanceIndex()) if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setDescription('When obtain infomation of Co-routed bidirectional Tunnel Interface, this vlaue should be zero. And this value must be LspID to obtain reverse crlsp information. Values greater than 0, but less than or equal to 65535, should be useless.') hpnicfTeTunnelCoIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 3), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setDescription('Identity the ingress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of originating endpoint.') hpnicfTeTunnelCoEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 4), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setDescription('Identity of the egress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of terminating point.') hpnicfTeTunnelCoBiMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("coroutedActive", 1), ("coroutedPassive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setDescription('This vlaue indicated the bidirection mode of tunnel interface. The valuemust be coroutedActive at the originating point of the tunnel and coroutedPassive at the terminating point.') hpnicfTeTunnelCoReverseLspInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 6), MplsTunnelInstanceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setDescription('This value indicated the reverse lsp instance, and should be equal to obverse lsp instance.') hpnicfTeTunnelCoReverseLspXCPointer = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 7), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setDescription('This pointer unique index to mplsXCTable of the reverse lsp. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other. A value of zeroDotZero indicate that there is no crlsp assigned to this.') hpnicfTeTunnelPsTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3), ) if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setDescription('This table defines some objects for managers to obtain TE tunnel Protection Switching group current status information.') hpnicfTeTunnelPsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1), ).setIndexNames((0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsIndex"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsIngressLSRId"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsEgressLSRId")) if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setDescription('The entry in this table describes TE tunnel Protection Switching group infromation.') hpnicfTeTunnelPsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 1), MplsTunnelIndex()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of work tunnel instance.') hpnicfTeTunnelPsIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 2), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setDescription('Identity the ingress LSR associated with work tunnel instance.') hpnicfTeTunnelPsEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 3), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setDescription('Identity of the egress LSR associated with work tunnel instance.') hpnicfTeTunnelPsProtectIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 4), MplsTunnelIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of TE tunnel Protection Switching group instance.') hpnicfTeTunnelPsProtectIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 5), MplsExtendedTunnelId()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setDescription('Identity the ingress LSR associated with TE tunnel Protection Switching group instance.') hpnicfTeTunnelPsProtectEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 6), MplsExtendedTunnelId()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setDescription('Identity of the egress LSR associated with TE tunnel Protection Switching group instance.') hpnicfTeTunnelPsProtectType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("oneToOne", 1), ("onePlusOne", 2))).clone('oneToOne')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setDescription('This value indicated TE tunnel Protection Switching group type. The default value is oneToOne.') hpnicfTeTunnelPsRevertiveMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("noRevertive", 2))).clone('revertive')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setDescription('This value indicated protect switch mode. The value must be revertive or nonRevertive, default value is revertive. ') hpnicfTeTunnelPsWtrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 60)).clone(24)).setUnits('30 seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setDescription('The cycle time that switch to protect tunnel.') hpnicfTeTunnelPsHoldOffTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('500ms').setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setDescription('This value is switchback delay time. When detected the work path fault, switch to protect path after this time.') hpnicfTeTunnelPsSwitchMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("uniDirectional", 1), ("biDirectional", 2))).clone('uniDirectional')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setDescription('This value indicated TE tunnel Protection Switching group switch mode.') hpnicfTeTunnelPsWorkPathStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("noDefect", 2), ("inDefect", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setDescription('This value indicates work path status. none, noDefect, inDefect will be used.') hpnicfTeTunnelPsProtectPathStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("noDefect", 2), ("inDefect", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setDescription('This value indicates protect path status. none, noDefect, inDefect(3) will be used.') hpnicfTeTunnelPsSwitchResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("workPath", 1), ("protectPath", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setDescription('This value indicated current using path is work path or protect path.') hpnicfTeTunnelNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3)) hpnicfTeTunnelNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0)) hpnicfTeTunnelPsSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 1)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWorkPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectPathStatus")) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setDescription('This notification is generated when protect workgroup switch from work tunnel to protect tunnel.') hpnicfTeTunnelPsSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 2)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWorkPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectPathStatus")) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setDescription('This notification is generated when protect workgroup switch from protect tunnel to work tunnel.') hpnicfTeTunnelConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4)) hpnicfTeTunnelCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1)) hpnicfTeTunnelCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1, 1)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelNotificationsGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelScalarsGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCorouteGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelCompliance = hpnicfTeTunnelCompliance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCompliance.setDescription('The compliance statement for SNMP.') hpnicfTeTunnelGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2)) hpnicfTeTunnelNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 1)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchPtoW"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchWtoP")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelNotificationsGroup = hpnicfTeTunnelNotificationsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelNotificationsGroup.setDescription('This group contains MPLS Te Tunnel traps.') hpnicfTeTunnelScalarsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 2)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelMaxTunnelIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelScalarsGroup = hpnicfTeTunnelScalarsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelScalarsGroup.setDescription('Scalar object needed to implement MPLS te tunnels.') hpnicfTeTunnelStaticCrlspGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 3)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspName"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspRole"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspXCPointer")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelStaticCrlspGroup = hpnicfTeTunnelStaticCrlspGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspGroup.setDescription('Objects for quering static-crlsp information.') hpnicfTeTunnelCorouteGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 4)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoBiMode"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoReverseLspInstance"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoReverseLspXCPointer")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelCorouteGroup = hpnicfTeTunnelCorouteGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCorouteGroup.setDescription('Objects for quering Co-routed reverse crlsp information.') hpnicfTeTunnelPsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 5)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectIndex"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectIngressLSRId"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectEgressLSRId"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectType"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsRevertiveMode"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWtrTime"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsHoldOffTime"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchMode"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWorkPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchResult")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelPsGroup = hpnicfTeTunnelPsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsGroup.setDescription('Objects for quering protect workgroup information.') mibBuilder.exportSymbols("HPN-ICF-TE-TUNNEL-MIB", hpnicfTeTunnelCoIndex=hpnicfTeTunnelCoIndex, hpnicfTeTunnelNotificationsPrefix=hpnicfTeTunnelNotificationsPrefix, hpnicfTeTunnelCoIngressLSRId=hpnicfTeTunnelCoIngressLSRId, hpnicfTeTunnelPsWorkPathStatus=hpnicfTeTunnelPsWorkPathStatus, hpnicfTeTunnelConformance=hpnicfTeTunnelConformance, hpnicfTeTunnelPsProtectPathStatus=hpnicfTeTunnelPsProtectPathStatus, hpnicfTeTunnelStaticCrlspInLabel=hpnicfTeTunnelStaticCrlspInLabel, hpnicfTeTunnelCoEgressLSRId=hpnicfTeTunnelCoEgressLSRId, hpnicfTeTunnelObjects=hpnicfTeTunnelObjects, hpnicfTeTunnelCompliance=hpnicfTeTunnelCompliance, hpnicfTeTunnelCoLspInstance=hpnicfTeTunnelCoLspInstance, hpnicfTeTunnelStaticCrlspRole=hpnicfTeTunnelStaticCrlspRole, hpnicfTeTunnelPsIndex=hpnicfTeTunnelPsIndex, hpnicfTeTunnelPsRevertiveMode=hpnicfTeTunnelPsRevertiveMode, hpnicfTeTunnel=hpnicfTeTunnel, hpnicfTeTunnelPsSwitchResult=hpnicfTeTunnelPsSwitchResult, hpnicfTeTunnelNotifications=hpnicfTeTunnelNotifications, hpnicfTeTunnelPsEgressLSRId=hpnicfTeTunnelPsEgressLSRId, hpnicfTeTunnelPsWtrTime=hpnicfTeTunnelPsWtrTime, hpnicfTeTunnelPsSwitchPtoW=hpnicfTeTunnelPsSwitchPtoW, hpnicfTeTunnelGroups=hpnicfTeTunnelGroups, hpnicfTeTunnelPsTable=hpnicfTeTunnelPsTable, hpnicfTeTunnelPsSwitchMode=hpnicfTeTunnelPsSwitchMode, hpnicfTeTunnelNotificationsGroup=hpnicfTeTunnelNotificationsGroup, hpnicfTeTunnelMaxTunnelIndex=hpnicfTeTunnelMaxTunnelIndex, hpnicfTeTunnelScalars=hpnicfTeTunnelScalars, hpnicfTeTunnelCoEntry=hpnicfTeTunnelCoEntry, hpnicfTeTunnelPsEntry=hpnicfTeTunnelPsEntry, hpnicfTeTunnelPsIngressLSRId=hpnicfTeTunnelPsIngressLSRId, hpnicfTeTunnelPsProtectIndex=hpnicfTeTunnelPsProtectIndex, hpnicfTeTunnelStaticCrlspXCPointer=hpnicfTeTunnelStaticCrlspXCPointer, hpnicfTeTunnelPsSwitchWtoP=hpnicfTeTunnelPsSwitchWtoP, hpnicfTeTunnelScalarsGroup=hpnicfTeTunnelScalarsGroup, hpnicfTeTunnelPsProtectType=hpnicfTeTunnelPsProtectType, hpnicfTeTunnelCompliances=hpnicfTeTunnelCompliances, hpnicfTeTunnelPsProtectIngressLSRId=hpnicfTeTunnelPsProtectIngressLSRId, PYSNMP_MODULE_ID=hpnicfTeTunnel, hpnicfTeTunnelStaticCrlspName=hpnicfTeTunnelStaticCrlspName, hpnicfTeTunnelPsHoldOffTime=hpnicfTeTunnelPsHoldOffTime, hpnicfTeTunnelStaticCrlspStatus=hpnicfTeTunnelStaticCrlspStatus, hpnicfTeTunnelPsGroup=hpnicfTeTunnelPsGroup, hpnicfTeTunnelStaticCrlspTable=hpnicfTeTunnelStaticCrlspTable, hpnicfTeTunnelStaticCrlspEntry=hpnicfTeTunnelStaticCrlspEntry, hpnicfTeTunnelStaticCrlspGroup=hpnicfTeTunnelStaticCrlspGroup, hpnicfTeTunnelCoReverseLspXCPointer=hpnicfTeTunnelCoReverseLspXCPointer, hpnicfTeTunnelPsProtectEgressLSRId=hpnicfTeTunnelPsProtectEgressLSRId, hpnicfTeTunnelCorouteGroup=hpnicfTeTunnelCorouteGroup, hpnicfTeTunnelCoTable=hpnicfTeTunnelCoTable, hpnicfTeTunnelCoReverseLspInstance=hpnicfTeTunnelCoReverseLspInstance, hpnicfTeTunnelCoBiMode=hpnicfTeTunnelCoBiMode)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint') (hpnicf_common,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfCommon') (mpls_label, mpls_tunnel_instance_index, mpls_tunnel_index, mpls_extended_tunnel_id) = mibBuilder.importSymbols('MPLS-TC-STD-MIB', 'MplsLabel', 'MplsTunnelInstanceIndex', 'MplsTunnelIndex', 'MplsExtendedTunnelId') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (iso, counter64, object_identity, gauge32, unsigned32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, ip_address, module_identity, counter32, mib_identifier, time_ticks, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Counter64', 'ObjectIdentity', 'Gauge32', 'Unsigned32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'IpAddress', 'ModuleIdentity', 'Counter32', 'MibIdentifier', 'TimeTicks', 'NotificationType') (row_pointer, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'RowPointer', 'TextualConvention', 'DisplayString') hpnicf_te_tunnel = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115)) if mibBuilder.loadTexts: hpnicfTeTunnel.setLastUpdated('201103240948Z') if mibBuilder.loadTexts: hpnicfTeTunnel.setOrganization('') if mibBuilder.loadTexts: hpnicfTeTunnel.setContactInfo('') if mibBuilder.loadTexts: hpnicfTeTunnel.setDescription('This MIB contains managed object definitions for the Multiprotocol Label Switching (MPLS) Te Tunnel.') hpnicf_te_tunnel_scalars = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1)) hpnicf_te_tunnel_max_tunnel_index = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1, 1), mpls_tunnel_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setDescription('The max value of tunnel id is permitted configure on the device.') hpnicf_te_tunnel_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2)) hpnicf_te_tunnel_static_crlsp_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1)) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setDescription('This table contains information for static-crlsp, and through this to get detail information about this static-crlsp. Only support transit LSR and egress LSR.') hpnicf_te_tunnel_static_crlsp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1)).setIndexNames((0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspInLabel')) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setDescription('The entry in this table describes static-crlsp information.') hpnicf_te_tunnel_static_crlsp_in_label = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 1), mpls_label()) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setDescription('This is unique label value that manualy assigned. Uniquely identifies a static-crlsp. Managers should use this to obtain detail static-crlsp information.') hpnicf_te_tunnel_static_crlsp_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setDescription('The unique name assigned to the static-crlsp.') hpnicf_te_tunnel_static_crlsp_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setDescription('Indicates the actual status of this static-crlsp, The value must be up when the static-crlsp status is up and the value must be down when the static-crlsp status is down.') hpnicf_te_tunnel_static_crlsp_role = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('transit', 1), ('tail', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setDescription('This value indicate the role of this static-crlsp. This value must be transit at transit point of the tunnel, and tail at terminating point of the tunnel.') hpnicf_te_tunnel_static_crlsp_xc_pointer = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 5), row_pointer()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setDescription('This pointer unique identify a row of mplsXCTable. This value should be zeroDotZero when the static-crlsp is down. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other.') hpnicf_te_tunnel_co_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2)) if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setDescription('This table contains information for Co-routed reverse crlsp and infomation of Co-routed bidirectional Tunnel Interface. If hpnicfCorouteTunnelLspInstance is zero, to obtain infomation of Co-routed bidirectional Tunnel Interface, otherwise to obtain Co-routed reverse crlsp infomation.') hpnicf_te_tunnel_co_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1)).setIndexNames((0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoIndex'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoLspInstance'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoIngressLSRId'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoEgressLSRId')) if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setDescription('The entry in this table describes Co-routed infomation of bidirectional Tunnel Interface and reserver lsp information.') hpnicf_te_tunnel_co_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 1), mpls_tunnel_index()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setDescription('Uniquely identifies a set of tunnel instances between a pair of ingress and egress LSRs that specified at originating point. This value should be equal to the value signaled in the Tunnel Id of the Session object.') hpnicf_te_tunnel_co_lsp_instance = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 2), mpls_tunnel_instance_index()) if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setDescription('When obtain infomation of Co-routed bidirectional Tunnel Interface, this vlaue should be zero. And this value must be LspID to obtain reverse crlsp information. Values greater than 0, but less than or equal to 65535, should be useless.') hpnicf_te_tunnel_co_ingress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 3), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setDescription('Identity the ingress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of originating endpoint.') hpnicf_te_tunnel_co_egress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 4), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setDescription('Identity of the egress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of terminating point.') hpnicf_te_tunnel_co_bi_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('coroutedActive', 1), ('coroutedPassive', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setDescription('This vlaue indicated the bidirection mode of tunnel interface. The valuemust be coroutedActive at the originating point of the tunnel and coroutedPassive at the terminating point.') hpnicf_te_tunnel_co_reverse_lsp_instance = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 6), mpls_tunnel_instance_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setDescription('This value indicated the reverse lsp instance, and should be equal to obverse lsp instance.') hpnicf_te_tunnel_co_reverse_lsp_xc_pointer = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 7), row_pointer()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setDescription('This pointer unique index to mplsXCTable of the reverse lsp. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other. A value of zeroDotZero indicate that there is no crlsp assigned to this.') hpnicf_te_tunnel_ps_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3)) if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setDescription('This table defines some objects for managers to obtain TE tunnel Protection Switching group current status information.') hpnicf_te_tunnel_ps_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1)).setIndexNames((0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsIndex'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsIngressLSRId'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsEgressLSRId')) if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setDescription('The entry in this table describes TE tunnel Protection Switching group infromation.') hpnicf_te_tunnel_ps_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 1), mpls_tunnel_index()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of work tunnel instance.') hpnicf_te_tunnel_ps_ingress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 2), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setDescription('Identity the ingress LSR associated with work tunnel instance.') hpnicf_te_tunnel_ps_egress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 3), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setDescription('Identity of the egress LSR associated with work tunnel instance.') hpnicf_te_tunnel_ps_protect_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 4), mpls_tunnel_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of TE tunnel Protection Switching group instance.') hpnicf_te_tunnel_ps_protect_ingress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 5), mpls_extended_tunnel_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setDescription('Identity the ingress LSR associated with TE tunnel Protection Switching group instance.') hpnicf_te_tunnel_ps_protect_egress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 6), mpls_extended_tunnel_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setDescription('Identity of the egress LSR associated with TE tunnel Protection Switching group instance.') hpnicf_te_tunnel_ps_protect_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('oneToOne', 1), ('onePlusOne', 2))).clone('oneToOne')).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setDescription('This value indicated TE tunnel Protection Switching group type. The default value is oneToOne.') hpnicf_te_tunnel_ps_revertive_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('revertive', 1), ('noRevertive', 2))).clone('revertive')).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setDescription('This value indicated protect switch mode. The value must be revertive or nonRevertive, default value is revertive. ') hpnicf_te_tunnel_ps_wtr_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 60)).clone(24)).setUnits('30 seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setDescription('The cycle time that switch to protect tunnel.') hpnicf_te_tunnel_ps_hold_off_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 20))).setUnits('500ms').setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setDescription('This value is switchback delay time. When detected the work path fault, switch to protect path after this time.') hpnicf_te_tunnel_ps_switch_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('uniDirectional', 1), ('biDirectional', 2))).clone('uniDirectional')).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setDescription('This value indicated TE tunnel Protection Switching group switch mode.') hpnicf_te_tunnel_ps_work_path_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('noDefect', 2), ('inDefect', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setDescription('This value indicates work path status. none, noDefect, inDefect will be used.') hpnicf_te_tunnel_ps_protect_path_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('noDefect', 2), ('inDefect', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setDescription('This value indicates protect path status. none, noDefect, inDefect(3) will be used.') hpnicf_te_tunnel_ps_switch_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('workPath', 1), ('protectPath', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setDescription('This value indicated current using path is work path or protect path.') hpnicf_te_tunnel_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3)) hpnicf_te_tunnel_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0)) hpnicf_te_tunnel_ps_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 1)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWorkPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectPathStatus')) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setDescription('This notification is generated when protect workgroup switch from work tunnel to protect tunnel.') hpnicf_te_tunnel_ps_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 2)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWorkPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectPathStatus')) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setDescription('This notification is generated when protect workgroup switch from protect tunnel to work tunnel.') hpnicf_te_tunnel_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4)) hpnicf_te_tunnel_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1)) hpnicf_te_tunnel_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1, 1)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelNotificationsGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelScalarsGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCorouteGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_compliance = hpnicfTeTunnelCompliance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCompliance.setDescription('The compliance statement for SNMP.') hpnicf_te_tunnel_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2)) hpnicf_te_tunnel_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 1)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchPtoW'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchWtoP')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_notifications_group = hpnicfTeTunnelNotificationsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelNotificationsGroup.setDescription('This group contains MPLS Te Tunnel traps.') hpnicf_te_tunnel_scalars_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 2)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelMaxTunnelIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_scalars_group = hpnicfTeTunnelScalarsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelScalarsGroup.setDescription('Scalar object needed to implement MPLS te tunnels.') hpnicf_te_tunnel_static_crlsp_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 3)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspName'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspRole'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspXCPointer')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_static_crlsp_group = hpnicfTeTunnelStaticCrlspGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspGroup.setDescription('Objects for quering static-crlsp information.') hpnicf_te_tunnel_coroute_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 4)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoBiMode'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoReverseLspInstance'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoReverseLspXCPointer')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_coroute_group = hpnicfTeTunnelCorouteGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCorouteGroup.setDescription('Objects for quering Co-routed reverse crlsp information.') hpnicf_te_tunnel_ps_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 5)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectIndex'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectIngressLSRId'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectEgressLSRId'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectType'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsRevertiveMode'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWtrTime'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsHoldOffTime'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchMode'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWorkPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchResult')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_ps_group = hpnicfTeTunnelPsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsGroup.setDescription('Objects for quering protect workgroup information.') mibBuilder.exportSymbols('HPN-ICF-TE-TUNNEL-MIB', hpnicfTeTunnelCoIndex=hpnicfTeTunnelCoIndex, hpnicfTeTunnelNotificationsPrefix=hpnicfTeTunnelNotificationsPrefix, hpnicfTeTunnelCoIngressLSRId=hpnicfTeTunnelCoIngressLSRId, hpnicfTeTunnelPsWorkPathStatus=hpnicfTeTunnelPsWorkPathStatus, hpnicfTeTunnelConformance=hpnicfTeTunnelConformance, hpnicfTeTunnelPsProtectPathStatus=hpnicfTeTunnelPsProtectPathStatus, hpnicfTeTunnelStaticCrlspInLabel=hpnicfTeTunnelStaticCrlspInLabel, hpnicfTeTunnelCoEgressLSRId=hpnicfTeTunnelCoEgressLSRId, hpnicfTeTunnelObjects=hpnicfTeTunnelObjects, hpnicfTeTunnelCompliance=hpnicfTeTunnelCompliance, hpnicfTeTunnelCoLspInstance=hpnicfTeTunnelCoLspInstance, hpnicfTeTunnelStaticCrlspRole=hpnicfTeTunnelStaticCrlspRole, hpnicfTeTunnelPsIndex=hpnicfTeTunnelPsIndex, hpnicfTeTunnelPsRevertiveMode=hpnicfTeTunnelPsRevertiveMode, hpnicfTeTunnel=hpnicfTeTunnel, hpnicfTeTunnelPsSwitchResult=hpnicfTeTunnelPsSwitchResult, hpnicfTeTunnelNotifications=hpnicfTeTunnelNotifications, hpnicfTeTunnelPsEgressLSRId=hpnicfTeTunnelPsEgressLSRId, hpnicfTeTunnelPsWtrTime=hpnicfTeTunnelPsWtrTime, hpnicfTeTunnelPsSwitchPtoW=hpnicfTeTunnelPsSwitchPtoW, hpnicfTeTunnelGroups=hpnicfTeTunnelGroups, hpnicfTeTunnelPsTable=hpnicfTeTunnelPsTable, hpnicfTeTunnelPsSwitchMode=hpnicfTeTunnelPsSwitchMode, hpnicfTeTunnelNotificationsGroup=hpnicfTeTunnelNotificationsGroup, hpnicfTeTunnelMaxTunnelIndex=hpnicfTeTunnelMaxTunnelIndex, hpnicfTeTunnelScalars=hpnicfTeTunnelScalars, hpnicfTeTunnelCoEntry=hpnicfTeTunnelCoEntry, hpnicfTeTunnelPsEntry=hpnicfTeTunnelPsEntry, hpnicfTeTunnelPsIngressLSRId=hpnicfTeTunnelPsIngressLSRId, hpnicfTeTunnelPsProtectIndex=hpnicfTeTunnelPsProtectIndex, hpnicfTeTunnelStaticCrlspXCPointer=hpnicfTeTunnelStaticCrlspXCPointer, hpnicfTeTunnelPsSwitchWtoP=hpnicfTeTunnelPsSwitchWtoP, hpnicfTeTunnelScalarsGroup=hpnicfTeTunnelScalarsGroup, hpnicfTeTunnelPsProtectType=hpnicfTeTunnelPsProtectType, hpnicfTeTunnelCompliances=hpnicfTeTunnelCompliances, hpnicfTeTunnelPsProtectIngressLSRId=hpnicfTeTunnelPsProtectIngressLSRId, PYSNMP_MODULE_ID=hpnicfTeTunnel, hpnicfTeTunnelStaticCrlspName=hpnicfTeTunnelStaticCrlspName, hpnicfTeTunnelPsHoldOffTime=hpnicfTeTunnelPsHoldOffTime, hpnicfTeTunnelStaticCrlspStatus=hpnicfTeTunnelStaticCrlspStatus, hpnicfTeTunnelPsGroup=hpnicfTeTunnelPsGroup, hpnicfTeTunnelStaticCrlspTable=hpnicfTeTunnelStaticCrlspTable, hpnicfTeTunnelStaticCrlspEntry=hpnicfTeTunnelStaticCrlspEntry, hpnicfTeTunnelStaticCrlspGroup=hpnicfTeTunnelStaticCrlspGroup, hpnicfTeTunnelCoReverseLspXCPointer=hpnicfTeTunnelCoReverseLspXCPointer, hpnicfTeTunnelPsProtectEgressLSRId=hpnicfTeTunnelPsProtectEgressLSRId, hpnicfTeTunnelCorouteGroup=hpnicfTeTunnelCorouteGroup, hpnicfTeTunnelCoTable=hpnicfTeTunnelCoTable, hpnicfTeTunnelCoReverseLspInstance=hpnicfTeTunnelCoReverseLspInstance, hpnicfTeTunnelCoBiMode=hpnicfTeTunnelCoBiMode)
class Solution: def swapNodes(self, head: ListNode, k: int) -> ListNode: n1, n2, p = None, None, head while p: k -= 1 if n2: n2 = n2.next if k == 0: n1 = p n2 = head p = p.next n1.val, n2.val = n2.val, n1.val return head
class Solution: def swap_nodes(self, head: ListNode, k: int) -> ListNode: (n1, n2, p) = (None, None, head) while p: k -= 1 if n2: n2 = n2.next if k == 0: n1 = p n2 = head p = p.next (n1.val, n2.val) = (n2.val, n1.val) return head
# # Define a generator # def test(): # print("phase one") # yield 5 # print("phase two") # yield 10 # # call and return the generator # gen=test() # # print(gen) #"only print the object of generator" # # work with for-loop # for data in gen: # print(data) def generateEven(maxNumber): number = 0 # yield number # number+=2 # yield number # number+=2 # yield number while number<maxNumber: yield number number+=2 evenGenerator = generateEven(10) for data in evenGenerator: print(data)
def generate_even(maxNumber): number = 0 while number < maxNumber: yield number number += 2 even_generator = generate_even(10) for data in evenGenerator: print(data)
c, r = 'ABCDEFGH', '12345678' cell = input("Which chess square? ") cc, cr = c.index(cell[0]), r.index(cell[1]) print("black") if (int(cc)+int(cr)) % 2 == 0 else print("white")
(c, r) = ('ABCDEFGH', '12345678') cell = input('Which chess square? ') (cc, cr) = (c.index(cell[0]), r.index(cell[1])) print('black') if (int(cc) + int(cr)) % 2 == 0 else print('white')
#!/usr/bin/env python3 def encrypt(text, s): result = "" # transverse the plain text for i in range(len(text)): char = text[i] # Encrypt uppercase characters in plain text if (char.isupper()): result += chr((ord(char) + s-65) % 26 + 65) # Encrypt lowercase characters in plain text else: result += chr((ord(char) + s - 97) % 26 + 97) return result text = "ATTACKATONCE" s = 4 print("Plain Text : " + text) print("Shift pattern : " + str(s)) print("Cipher: " + encrypt(text, s))
def encrypt(text, s): result = '' for i in range(len(text)): char = text[i] if char.isupper(): result += chr((ord(char) + s - 65) % 26 + 65) else: result += chr((ord(char) + s - 97) % 26 + 97) return result text = 'ATTACKATONCE' s = 4 print('Plain Text : ' + text) print('Shift pattern : ' + str(s)) print('Cipher: ' + encrypt(text, s))
# explicit conversion a="32" b=str(32) print(a+b) a=int(a) b=int(b) print(a+b) # python does not convert implicitly in these cases
a = '32' b = str(32) print(a + b) a = int(a) b = int(b) print(a + b)
def part_1(data): return sum(int(line) for line in data) def part_2(data): cumulative = 0 reached = {0} while True: for line in data: cumulative += int(line) if cumulative in reached: return cumulative reached.add(cumulative) if __name__ == '__main__': with open('day_01_input.txt', 'r') as f: inp = f.readlines() print("Part 1 answer: " + str(part_1(inp))) print("Part 2 answer: " + str(part_2(inp)))
def part_1(data): return sum((int(line) for line in data)) def part_2(data): cumulative = 0 reached = {0} while True: for line in data: cumulative += int(line) if cumulative in reached: return cumulative reached.add(cumulative) if __name__ == '__main__': with open('day_01_input.txt', 'r') as f: inp = f.readlines() print('Part 1 answer: ' + str(part_1(inp))) print('Part 2 answer: ' + str(part_2(inp)))
class Resistor: def __init__(self, p, R): self.type = 'R' self.p = p self.p1 = p.split('-')[0] self.p2 = p.split('-')[1] self.R = R self.Y = 1/R self.v = [] self.ic = [] def resolveInitialConditions(self): # self.v.append(0) # self.i.append(0) pass def resolveIh(self): pass def resolveV(self, vm): p1 = int(self.p1) p2 = int(self.p2) if p1 == 0: ddp = vm[p2-1][0] if p2 == 0: ddp = vm[p1-1][0] if p1 != 0 and p2 != 0: ddp = vm[p1-1][0] - vm[p2-1][0] vr = float(ddp) self.v.append(vr) return vr def resolveI(self): ir = float(self.v[-1]/self.R) self.ic.append(ir)
class Resistor: def __init__(self, p, R): self.type = 'R' self.p = p self.p1 = p.split('-')[0] self.p2 = p.split('-')[1] self.R = R self.Y = 1 / R self.v = [] self.ic = [] def resolve_initial_conditions(self): pass def resolve_ih(self): pass def resolve_v(self, vm): p1 = int(self.p1) p2 = int(self.p2) if p1 == 0: ddp = vm[p2 - 1][0] if p2 == 0: ddp = vm[p1 - 1][0] if p1 != 0 and p2 != 0: ddp = vm[p1 - 1][0] - vm[p2 - 1][0] vr = float(ddp) self.v.append(vr) return vr def resolve_i(self): ir = float(self.v[-1] / self.R) self.ic.append(ir)
def read_file(file_path): with open(file_path) as file: return file.read().split("|") def parser_list(questions): return [question.strip() for question in questions if question.strip()]
def read_file(file_path): with open(file_path) as file: return file.read().split('|') def parser_list(questions): return [question.strip() for question in questions if question.strip()]
def main(): phrase = input("Choose a phrase: ") # Write your code here main()
def main(): phrase = input('Choose a phrase: ') main()
COMPONENTS_BANNER_DOMESTIC = 'eu-exit-banner-domestic' COMPONENTS_BANNER_INTERNATIONAL = 'eu-exit-banner-international' EUEXIT_DOMESTIC_NEWS = 'eu-exit-news' EUEXIT_INTERNATIONAL_NEWS = 'international-eu-exit-news' EUEXIT_DOMESTIC_FORM = 'eu-exit-domestic' EUEXIT_FORM_SUCCESS = 'eu-exit-form-success' EUEXIT_INTERNATIONAL_FORM = 'eu-exit-international' FIND_A_SUPPLIER_INDUSTRY_LANDING = 'industries-landing-page' FIND_A_SUPPLIER_LANDING = 'landing-page' FIND_A_SUPPLIER_INDUSTRY_CONTACT = 'industry-contact' GREAT_GET_FINANCE = 'get-finance' GREAT_ADVICE = 'advice' GREAT_HOME = 'great-domestic-home' GREAT_HOME_OLD = 'home' GREAT_HOME_INTERNATIONAL = 'great-international-home' GREAT_HOME_INTERNATIONAL_OLD = 'international' GREAT_CAMPAIGNS = 'campaigns' GREAT_MARKETING_PAGES = 'export-readiness-marketing-pages' GREAT_PRIVACY_AND_COOKIES = 'privacy-and-cookies' GREAT_SITE_POLICY_PAGES = 'export-readiness-site-policy-pages' GREAT_TERMS_AND_CONDITIONS = 'terms-and-conditions' GREAT_ACCESSIBILITY_STATEMENT = 'accessibility-statement' HELP_ACCOUNT_COMPANY_NOT_FOUND = 'company-not-found' HELP_ACCOUNT_SOLE_TRADER_ADDRESS_NOT_FOUND = 'sole-trader-address-not-found' HELP_COMPANIES_HOUSE_LOGIN = 'companies-house-login' HELP_EXOPP_ALERTS_IRRELEVANT = 'alerts-not-relevant' HELP_EXOPPS_NO_RESPONSE = 'opportunity-no-response' HELP_EXPORTING_TO_UK = 'exporting-to-the-uk' HELP_FORM_SUCCESS = 'contact-success-form' HELP_FORM_SUCCESS_BEIS = 'contact-beis-success' HELP_FORM_SUCCESS_DEFRA = 'contact-defra-success' HELP_FORM_SUCCESS_DSO = 'contact-dso-success-form' HELP_FORM_SUCCESS_EVENTS = 'contact-events-success-form' HELP_FORM_SUCCESS_EXPORT_ADVICE = 'contact-export-advice-success-form' HELP_FORM_SUCCESS_FEEDBACK = 'contact-feedback-success-form' HELP_FORM_SUCCESS_FIND_COMPANIES = 'contact-find-companies-success-form' HELP_FORM_SUCCESS_INTERNATIONAL = 'contact-international-success-form' HELP_FORM_SUCCESS_SOO = 'contact-soo-success-form' HELP_MISSING_VERIFY_EMAIL = 'no-verification-email' HELP_PASSWORD_RESET = 'password-reset' HELP_VERIFICATION_CODE_ENTER = 'verification-letter-code' HELP_VERIFICATION_CODE_LETTER = 'no-verification-letter' HELP_VERIFICATION_CODE_MISSING = 'verification-missing' INTERNATIONAL_MARKETING_PAGES = 'great-international-marketing-pages' INTERNATIONAL_UK_HQ_PAGES = 'great-international-uk-hq-pages' INVEST_SECTOR_LANDING_PAGE = 'sector-landing-page' INVEST_GUIDE_LANDING_PAGE = 'setup-guide-landing-page' INVEST_HIGH_POTENTIAL_OPPORTUNITY_FORM = 'high-potential-opportunity-form' INVEST_HIGH_POTENTIAL_OPPORTUNITY_FORM_SUCCESS = ( 'high-potential-opportunity-submit-success' ) INVEST_UK_REGION_LANDING_PAGE = 'uk-region-landing-page' INVEST_HOME_PAGE = 'home-page' PERFORMANCE_DASHBOARD = 'performance-dashboard' PERFORMANCE_DASHBOARD_EXOPPS = 'performance-dashboard-export-opportunities' PERFORMANCE_DASHBOARD_INVEST = 'performance-dashboard-invest' PERFORMANCE_DASHBOARD_NOTES = 'performance-dashboard-notes' PERFORMANCE_DASHBOARD_SOO = 'performance-dashboard-selling-online-overseas' PERFORMANCE_DASHBOARD_TRADE_PROFILE = 'performance-dashboard-trade-profiles' # New tree-based routing slugs CONTACT_FORM_SLUG = 'contact' FORM_SUCCESS_SLUG = 'success' FAS_INTERNATIONAL_HOME_PAGE = 'trade' INVEST_INTERNATIONAL_HOME_PAGE = 'invest' INVEST_INTERNATIONAL_REGION_LANDING_PAGE = 'uk-regions' INVEST_INTERNATIONAL_HIGH_POTENTIAL_OPPORTUNITIES = 'high-potential-opportunities'
components_banner_domestic = 'eu-exit-banner-domestic' components_banner_international = 'eu-exit-banner-international' euexit_domestic_news = 'eu-exit-news' euexit_international_news = 'international-eu-exit-news' euexit_domestic_form = 'eu-exit-domestic' euexit_form_success = 'eu-exit-form-success' euexit_international_form = 'eu-exit-international' find_a_supplier_industry_landing = 'industries-landing-page' find_a_supplier_landing = 'landing-page' find_a_supplier_industry_contact = 'industry-contact' great_get_finance = 'get-finance' great_advice = 'advice' great_home = 'great-domestic-home' great_home_old = 'home' great_home_international = 'great-international-home' great_home_international_old = 'international' great_campaigns = 'campaigns' great_marketing_pages = 'export-readiness-marketing-pages' great_privacy_and_cookies = 'privacy-and-cookies' great_site_policy_pages = 'export-readiness-site-policy-pages' great_terms_and_conditions = 'terms-and-conditions' great_accessibility_statement = 'accessibility-statement' help_account_company_not_found = 'company-not-found' help_account_sole_trader_address_not_found = 'sole-trader-address-not-found' help_companies_house_login = 'companies-house-login' help_exopp_alerts_irrelevant = 'alerts-not-relevant' help_exopps_no_response = 'opportunity-no-response' help_exporting_to_uk = 'exporting-to-the-uk' help_form_success = 'contact-success-form' help_form_success_beis = 'contact-beis-success' help_form_success_defra = 'contact-defra-success' help_form_success_dso = 'contact-dso-success-form' help_form_success_events = 'contact-events-success-form' help_form_success_export_advice = 'contact-export-advice-success-form' help_form_success_feedback = 'contact-feedback-success-form' help_form_success_find_companies = 'contact-find-companies-success-form' help_form_success_international = 'contact-international-success-form' help_form_success_soo = 'contact-soo-success-form' help_missing_verify_email = 'no-verification-email' help_password_reset = 'password-reset' help_verification_code_enter = 'verification-letter-code' help_verification_code_letter = 'no-verification-letter' help_verification_code_missing = 'verification-missing' international_marketing_pages = 'great-international-marketing-pages' international_uk_hq_pages = 'great-international-uk-hq-pages' invest_sector_landing_page = 'sector-landing-page' invest_guide_landing_page = 'setup-guide-landing-page' invest_high_potential_opportunity_form = 'high-potential-opportunity-form' invest_high_potential_opportunity_form_success = 'high-potential-opportunity-submit-success' invest_uk_region_landing_page = 'uk-region-landing-page' invest_home_page = 'home-page' performance_dashboard = 'performance-dashboard' performance_dashboard_exopps = 'performance-dashboard-export-opportunities' performance_dashboard_invest = 'performance-dashboard-invest' performance_dashboard_notes = 'performance-dashboard-notes' performance_dashboard_soo = 'performance-dashboard-selling-online-overseas' performance_dashboard_trade_profile = 'performance-dashboard-trade-profiles' contact_form_slug = 'contact' form_success_slug = 'success' fas_international_home_page = 'trade' invest_international_home_page = 'invest' invest_international_region_landing_page = 'uk-regions' invest_international_high_potential_opportunities = 'high-potential-opportunities'
def extractFujitranslationWordpressCom(item): ''' Parser for 'fujitranslation.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('My Wife is a Martial Alliance Head', 'My Wife is a Martial Alliance Head', 'translated'), ('My CEO Wife', 'My CEO Wife', 'translated'), ('Mai Kitsune Waifu', 'Mai Kitsune Waifu', 'translated'), ('Rebirth of the Super Thief', 'Rebirth of the Super Thief', 'translated'), ('Matchless Supernatural of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated'), ('Matchless Supernaturals of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated'), ] for tagname, name, tl_type in tagmap: if tagname in item['tags']: return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
def extract_fujitranslation_wordpress_com(item): """ Parser for 'fujitranslation.wordpress.com' """ (vol, chp, frag, postfix) = extract_vol_chapter_fragment_postfix(item['title']) if not (chp or vol) or 'preview' in item['title'].lower(): return None tagmap = [('My Wife is a Martial Alliance Head', 'My Wife is a Martial Alliance Head', 'translated'), ('My CEO Wife', 'My CEO Wife', 'translated'), ('Mai Kitsune Waifu', 'Mai Kitsune Waifu', 'translated'), ('Rebirth of the Super Thief', 'Rebirth of the Super Thief', 'translated'), ('Matchless Supernatural of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated'), ('Matchless Supernaturals of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated')] for (tagname, name, tl_type) in tagmap: if tagname in item['tags']: return build_release_message_with_type(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
class Solution: def subarraySum(self, nums: List[int], k: int) -> int: # We will construct an additional dictionary to keep the sum of # all the elements before the index, for example # given nums = [1, 4, 0, 3, 2] # the element sum list: sum_list = [0, 1, 5, 5, 8, 10] # Then we turn the sum_list into a dictionary # sum_dict = { # 0: 1 # 1: 1 # 5: 2 # 8: 1 # 10: 1 # } # The key of the sum_dict stands for the sum # The value of the key would be the number of substrings to # get to this value # Time complexity: O(n) # Space complexity: O(2n) = O(n) sum_dict = {0: 1} count = s = 0 # Iterate nums for n in nums: s += n # Check if "k" can be formed by "n" and previous sums: "s-k" count += sum_dict.get(s - k, 0) # Add new sum into the dictionary if s in sum_dict: sum_dict[s] += 1 else: sum_dict[s] = 1 return count
class Solution: def subarray_sum(self, nums: List[int], k: int) -> int: sum_dict = {0: 1} count = s = 0 for n in nums: s += n count += sum_dict.get(s - k, 0) if s in sum_dict: sum_dict[s] += 1 else: sum_dict[s] = 1 return count
chars_to_remove = [',', '.', '!', ':', ';', '-', ' ', '?'] def get_longest_palendromes(text): if not text: return [] if len(text) <= 2: return [text] palendromes = [] for window_size in range(len(text), 1, -1): num_shifts = len(text) - window_size for start_index in range(0, num_shifts + 1): end_index = start_index + window_size substring = text[start_index:end_index] if is_palendrome(substring): palendromes.append(substring) if len(palendromes) > 0: break return palendromes def is_palendrome(text): text = _clean(text) return _is_palendrome(text) def _clean(text): return ''.join([char for char in text.lower() if char not in chars_to_remove]) def _is_palendrome(text): return text and text == text[::-1] if __name__ == '__main__': tests = [ "", # false "lotion", # false "racecar", # true "Racecar", # true "Step on no p ets", # true "No lemon no melons", # false "Eva - can I see bees in a cave?", # true "A man, a plan, a canal: Panama!", # true "Aaaaa", # ["Aaaaa"] "Babcaaba", # ["aa"] --------> correction, should be ["bab", "aba"] "A racecar", # ["racecar"] "No lemon no melons", # ["No lemon no melon"] ] for test in tests: print(f'\nCase: {test}') print(f'Cleaned: {_clean(test)}') print(f'Is Palendrome: {is_palendrome(test)}') print(f'Longest Palendromes: {get_longest_palendromes(test)}')
chars_to_remove = [',', '.', '!', ':', ';', '-', ' ', '?'] def get_longest_palendromes(text): if not text: return [] if len(text) <= 2: return [text] palendromes = [] for window_size in range(len(text), 1, -1): num_shifts = len(text) - window_size for start_index in range(0, num_shifts + 1): end_index = start_index + window_size substring = text[start_index:end_index] if is_palendrome(substring): palendromes.append(substring) if len(palendromes) > 0: break return palendromes def is_palendrome(text): text = _clean(text) return _is_palendrome(text) def _clean(text): return ''.join([char for char in text.lower() if char not in chars_to_remove]) def _is_palendrome(text): return text and text == text[::-1] if __name__ == '__main__': tests = ['', 'lotion', 'racecar', 'Racecar', 'Step on no p ets', 'No lemon no melons', 'Eva - can I see bees in a cave?', 'A man, a plan, a canal: Panama!', 'Aaaaa', 'Babcaaba', 'A racecar', 'No lemon no melons'] for test in tests: print(f'\nCase: {test}') print(f'Cleaned: {_clean(test)}') print(f'Is Palendrome: {is_palendrome(test)}') print(f'Longest Palendromes: {get_longest_palendromes(test)}')
# %% ####################################### # THIS IS NOT THE SAME AS: my_pcap.getlayer(TCP) def scapyget_tcp(packet_list: scapy.plist.PacketList): result_list = [ pckt for pckt in packet_list if pckt.haslayer('TCP')] return PacketList(result_list)
def scapyget_tcp(packet_list: scapy.plist.PacketList): result_list = [pckt for pckt in packet_list if pckt.haslayer('TCP')] return packet_list(result_list)
# -*- coding: utf-8 -*- def formatter(name=None): def decorate(func): func._formatter = name return func return decorate
def formatter(name=None): def decorate(func): func._formatter = name return func return decorate
_UNSET = object() class PyErr: def __init__(self, type=_UNSET, value=_UNSET, traceback=_UNSET): if not(type is _UNSET): self.type = type if not(value is _UNSET): self.value = value if not(traceback is _UNSET): self.traceback = traceback
_unset = object() class Pyerr: def __init__(self, type=_UNSET, value=_UNSET, traceback=_UNSET): if not type is _UNSET: self.type = type if not value is _UNSET: self.value = value if not traceback is _UNSET: self.traceback = traceback
def repeat_string(string, times): return string * times text = input() number = int(input()) result = repeat_string(text, number) print(result)
def repeat_string(string, times): return string * times text = input() number = int(input()) result = repeat_string(text, number) print(result)
#Ask the user for a string and print out whether this string is a palindrome or not. # (A palindrome is a string that reads the same forwards and backwards.) str = input("Let's have a string, shall we?") palindrome = str[::-1]==str if palindrome: print(str,"is a palindrome") else: print(str, "is not a palindrome")
str = input("Let's have a string, shall we?") palindrome = str[::-1] == str if palindrome: print(str, 'is a palindrome') else: print(str, 'is not a palindrome')
# Problem URL: https://leetcode.com/problems/reverse-integer/ class Solution: def reverse(self, x: int) -> int: # Handling Negative Input neg_flag = 0 if x<0: neg_flag = 1 string = [i for i in str(x)] if neg_flag == 1: string = string[1:] reversed_string = string[::-1] final_string = '' for i in reversed_string: final_string += i final_int = int(final_string) # Handling Negative Input if neg_flag == 1: final_int = -final_int # Limit Checking if (final_int < -2**31 or final_int > 2**31 - 1): return 0 return final_int
class Solution: def reverse(self, x: int) -> int: neg_flag = 0 if x < 0: neg_flag = 1 string = [i for i in str(x)] if neg_flag == 1: string = string[1:] reversed_string = string[::-1] final_string = '' for i in reversed_string: final_string += i final_int = int(final_string) if neg_flag == 1: final_int = -final_int if final_int < -2 ** 31 or final_int > 2 ** 31 - 1: return 0 return final_int
def binaryToDecimal(arr): arr = str(arr) arr = arr[::-1] length = len(arr)-1 if int(arr[length]) != 1: length -= 1 count = 0 for i in range(length,-1,-1): count += int(arr[i])*(2**i) return count def binaryToDecimal2(value): return int(str(value),2) def binaryToDecimal3(value): count, i = 0, 0 while value>0: digit = value%10 count += (digit << i) value //= 10 i += 1 return count print(binaryToDecimal3(1011001))
def binary_to_decimal(arr): arr = str(arr) arr = arr[::-1] length = len(arr) - 1 if int(arr[length]) != 1: length -= 1 count = 0 for i in range(length, -1, -1): count += int(arr[i]) * 2 ** i return count def binary_to_decimal2(value): return int(str(value), 2) def binary_to_decimal3(value): (count, i) = (0, 0) while value > 0: digit = value % 10 count += digit << i value //= 10 i += 1 return count print(binary_to_decimal3(1011001))
print("********** BIENVENIDO AL MENU INTERACTIVO ********** ") print("Que opcion desea Seleccionar? ") print("1)Saludar") print("2)Sumar dos numeros") print("3)Salir del sistema") Opcion = int( input() ) while Opcion<=3: if (Opcion==1): nombre = input("Enter your name : ") print("Hola, mucho gusto ",nombre) break elif (Opcion==2): print("Ingrese primer numero: ") num1 = int( input() ) print("Ingrese segundo numero: ") num2 = int( input() ) print("La suma de sus numeros es :",num1+num2) break else: print("Saliendo del sistema....Gracias") break
print('********** BIENVENIDO AL MENU INTERACTIVO ********** ') print('Que opcion desea Seleccionar? ') print('1)Saludar') print('2)Sumar dos numeros') print('3)Salir del sistema') opcion = int(input()) while Opcion <= 3: if Opcion == 1: nombre = input('Enter your name : ') print('Hola, mucho gusto ', nombre) break elif Opcion == 2: print('Ingrese primer numero: ') num1 = int(input()) print('Ingrese segundo numero: ') num2 = int(input()) print('La suma de sus numeros es :', num1 + num2) break else: print('Saliendo del sistema....Gracias') break
def bicepup(): i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.rightArm.bicep.attach() i01.rightArm.bicep.moveTo(180) sleep(1) i01.rightArm.bicep.detach()
def bicepup(): i01.setArmSpeed('right', 1.0, 1.0, 1.0, 1.0) i01.rightArm.bicep.attach() i01.rightArm.bicep.moveTo(180) sleep(1) i01.rightArm.bicep.detach()
class Car: def __init__(self, maker, model): carManufacturer = maker carModel = model carModel = "" carManufacturer = "" carYear = 0 def setModel(self, model): self.carModel = model def setManufacturer(self, manufacturer): self.carManufacturer = manufacturer def setYear(self, year): self.carYear = year print("something")
class Car: def __init__(self, maker, model): car_manufacturer = maker car_model = model car_model = '' car_manufacturer = '' car_year = 0 def set_model(self, model): self.carModel = model def set_manufacturer(self, manufacturer): self.carManufacturer = manufacturer def set_year(self, year): self.carYear = year print('something')
def hash_key(string): multiplication = 1 for i in string: multiplication *= ord(i) return (multiplication % 97) for i in range(int(input())): str1, str2 = input().split() str1_key = hash_key(str1) str2_key = hash_key(str2) if str1_key == str2_key: print("YES") else: print("NO")
def hash_key(string): multiplication = 1 for i in string: multiplication *= ord(i) return multiplication % 97 for i in range(int(input())): (str1, str2) = input().split() str1_key = hash_key(str1) str2_key = hash_key(str2) if str1_key == str2_key: print('YES') else: print('NO')
{ "targets": [{ "target_name": "opendkim", "sources": [ "src/opendkim_body_async.cc", "src/opendkim_chunk_async.cc", "src/opendkim_chunk_end_async.cc", "src/opendkim_eoh_async.cc", "src/opendkim_eom_async.cc", "src/opendkim_flush_cache_async.cc", "src/opendkim_header_async.cc", "src/opendkim_sign_async.cc", "src/opendkim_verify_async.cc", "src/opendkim.cc", ], "include_dirs": [ "<!(node -e \"require('nan')\")" ], "libraries": [ "-lopendkim" ] }] }
{'targets': [{'target_name': 'opendkim', 'sources': ['src/opendkim_body_async.cc', 'src/opendkim_chunk_async.cc', 'src/opendkim_chunk_end_async.cc', 'src/opendkim_eoh_async.cc', 'src/opendkim_eom_async.cc', 'src/opendkim_flush_cache_async.cc', 'src/opendkim_header_async.cc', 'src/opendkim_sign_async.cc', 'src/opendkim_verify_async.cc', 'src/opendkim.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'libraries': ['-lopendkim']}]}
# Objective # Today, we're delving into Inheritance. Check out the attached tutorial for learning materials and an instructional video. # Task # You are given two classes, Person and Student, where Person is the base class and Student is the derived class. Completed code for Person and a declaration for Student are provided for you in the editor. Observe that Student inherits all the properties of Person. # Complete the Student class by writing the following: # A Student class constructor, which has # parameters: # A string, # . # A string, # . # An integer, # . # An integer array (or vector) of test scores, # . # A char calculate() method that calculates a Student object's average and returns the grade character representative of their calculated average: # [Grading.png] # Input Format # The locked stub code in the editor reads the input and calls the Student class constructor with the necessary arguments. It also calls the calculate method which takes no arguments. # The first line contains # , , and , separated by a space. The second line contains the number of test scores. The third line of space-separated integers describes # . # Constraints # Output Format # Output is handled by the locked stub code. Your output will be correct if your Student class constructor and calculate() method are properly implemented. # Sample Input # Heraldo Memelli 8135627 # 2 # 100 80 # Sample Output # Name: Memelli, Heraldo # ID: 8135627 # Grade: O # Explanation # This student had # scores to average: and . The student's average grade is . An average grade of corresponds to the letter grade , so the calculate() method should return the character'O'. class Person: def __init__(self, firstName, lastName, idNumber): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber def printPerson(self): print("Name:", self.lastName + ",", self.firstName) print("ID:", self.idNumber) class Student(Person): # Class Constructor # # Parameters: # firstName - A string denoting the Person's first name. # lastName - A string denoting the Person's last name. # id - An integer denoting the Person's ID number. # scores - An array of integers denoting the Person's test scores. # # Write your constructor here def __init__(self,firstName,lastName,idNumber,scores): # super(Person,self).__init__(firstName,lastName,idNumber)when the super class inherits from object self.firstName=firstName self.lastName=lastName self.idNumber=idNumber self.scores=scores def calculate(self): score=self.scores total=0 for sc in score: total+=sc grade=total/len(score) if (grade>=90 and grade<=100): grades='O' elif(grade>=80 and grade<90): grades='E' elif(grade>=70 and grade<80): grades='A' elif(grade>=55 and grade<70): grades='P' elif (grade>=40 and grade<55): grades='D' else: grades='T' return grades # Function Name: calculate # Return: A character denoting the grade. # # Write your function here line = input().split()
class Person: def __init__(self, firstName, lastName, idNumber): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber def print_person(self): print('Name:', self.lastName + ',', self.firstName) print('ID:', self.idNumber) class Student(Person): def __init__(self, firstName, lastName, idNumber, scores): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber self.scores = scores def calculate(self): score = self.scores total = 0 for sc in score: total += sc grade = total / len(score) if grade >= 90 and grade <= 100: grades = 'O' elif grade >= 80 and grade < 90: grades = 'E' elif grade >= 70 and grade < 80: grades = 'A' elif grade >= 55 and grade < 70: grades = 'P' elif grade >= 40 and grade < 55: grades = 'D' else: grades = 'T' return grades line = input().split()
class ChannelDoesNotExist(Exception): pass class LevelDoesNotExist(Exception): pass class HandlerError(Exception): pass
class Channeldoesnotexist(Exception): pass class Leveldoesnotexist(Exception): pass class Handlererror(Exception): pass
# -*- coding: utf-8 -*- ################################################ # # URL: # ===== # https://leetcode.com/problems/PROBLEM_TITLE/ # # DESC: # ===== # PROBLEM DESCRIPTION ################################################ class Solution: def method(self) -> int: return 0
class Solution: def method(self) -> int: return 0
# -*- coding: utf-8 -*- class _CommitOnSuccess(object): def __init__(self, session): self.session = session def __enter__(self): self.transaction = self.session.begin_nested() def __exit__(self, exc_type, exc_value, traceback): try: if exc_value is not None: self.transaction.rollback() else: self.transaction.commit() except: self.transaction.rollback() raise commit_on_success = _CommitOnSuccess
class _Commitonsuccess(object): def __init__(self, session): self.session = session def __enter__(self): self.transaction = self.session.begin_nested() def __exit__(self, exc_type, exc_value, traceback): try: if exc_value is not None: self.transaction.rollback() else: self.transaction.commit() except: self.transaction.rollback() raise commit_on_success = _CommitOnSuccess
# # PySNMP MIB module IEEE8021-EVB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IEEE8021-EVB-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:52:20 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, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint") ieee8021BridgePhyPort, = mibBuilder.importSymbols("IEEE8021-BRIDGE-MIB", "ieee8021BridgePhyPort") ieee802dot1mibs, IEEE8021BridgePortNumber, IEEE8021PbbComponentIdentifier = mibBuilder.importSymbols("IEEE8021-TC-MIB", "ieee802dot1mibs", "IEEE8021BridgePortNumber", "IEEE8021PbbComponentIdentifier") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") VlanIndex, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanIndex") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") TimeTicks, ModuleIdentity, Integer32, IpAddress, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Counter64, NotificationType, Gauge32, ObjectIdentity, Unsigned32, MibIdentifier, iso = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ModuleIdentity", "Integer32", "IpAddress", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Counter64", "NotificationType", "Gauge32", "ObjectIdentity", "Unsigned32", "MibIdentifier", "iso") DisplayString, StorageType, MacAddress, TruthValue, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "StorageType", "MacAddress", "TruthValue", "RowStatus", "TextualConvention") ieee8021BridgeEvbMib = ModuleIdentity((1, 3, 111, 2, 802, 1, 1, 24)) ieee8021BridgeEvbMib.setRevisions(('2014-12-15 00:00', '2012-02-15 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setRevisionsDescriptions(('Published as part of IEEE Std 802.1Q 2014 revision. Cross references updated and corrected. ieee8021BridgeEvbVSIMvFormat added. ieee8021BridgeEvbVsiMgrID16 added and ieee8021BridgeEvbVsiMgrID deprecated. ieee8021BridgeEvbVDPCounterDiscontinuity description clarified. Conformance and groups fixed. Fixed maintenance item to IEEE Std 802.1Qbg-2012.', 'Initial version published in IEEE Std 802.1Qbg.',)) if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setLastUpdated('201412150000Z') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setOrganization('IEEE 802.1 Working Group') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setContactInfo(' WG-URL: http://www.ieee802.org/1 WG-EMail: stds-802-1@ieee.org Contact: IEEE 802.1 Working Group Chair Postal: C/O IEEE 802.1 Working Group IEEE Standards Association 445 Hoes Lane Piscataway NJ 08854 USA E-mail: STDS-802-1-L@LISTSERV.IEEE.ORG') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setDescription('The EVB MIB module for managing devices that support Ethernet Virtual Bridging. Unless otherwise indicated, the references in this MIB module are to IEEE Std 802.1Q-2014. Copyright (C) IEEE (2014). This version of this MIB module is part of IEEE802.1Q; see the draft itself for full legal notices.') ieee8021BridgeEvbNotifications = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 0)) ieee8021BridgeEvbObjects = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1)) ieee8021BridgeEvbConformance = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 2)) ieee8021BridgeEvbSys = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 1)) ieee8021BridgeEvbSysType = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("evbBridge", 1), ("evbStation", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setReference('5.23,5.24') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setDescription('The evbSysType determines if this is an EVB Bridge or EVB station.') ieee8021BridgeEvbSysNumExternalPorts = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setReference('12.4.2, 12.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setDescription('The evbSysNumExternalPorts parameter indicates how many externally accessible port are available.') ieee8021BridgeEvbSysEvbLldpTxEnable = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'true' a new SBP or URP will place the local EVB objects in the LLDP nearest Customer database; when set to 'false' a new SBP or URP will not place the local EVB objects in the LLDP database.") ieee8021BridgeEvbSysEvbLldpManual = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'false' the operating configuration will be determined by the comparison between the local and remote LLDP EVB objects (automatic), regardless of the setting of ieee8021BridgeEvbSysLldpTxEnable. When ieee8021BridgeEvbSysLldpManual is 'true' the configuration will be determined by the setting of the local EVB objects only (manual).") ieee8021BridgeEvbSysEvbLldpGidCapable = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setDescription('The value of this object is used as the default value of the BGID or SGID bit of the EVB LLDP TLV string.') ieee8021BridgeEvbSysEcpAckTimer = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setDescription('A value indicating the Bridge Proposed ECP ackTimer.') ieee8021BridgeEvbSysEcpDfltAckTimerExp = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setDescription('The exponent of 2 indicating the Bridge Proposed ECP ackTimer in tens of microseconds.') ieee8021BridgeEvbSysEcpMaxRetries = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setReference('D.2.13.5, 43.3.7.4') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setDescription('A value indicating the Bridge ECP maxRetries.') ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setDescription('A value indicating the Bridge Resource VDP Timeout.') ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setDescription('The exponent of 2 indicating the Bridge Resource VDP Timeout in tens of microseconds.') ieee8021BridgeEvbSysVdpDfltReinitKeepAlive = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setDescription('A value indicating the Bridge Proposed VDP Keep Alive Timeout.') ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setDescription('The exponent of 2 indicating the Bridge Proposed VDP Keep Alive Timeout in tens of microseconds.') ieee8021BridgeEvbSbpTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10), ) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setReference('12.26.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setDescription('A table that contains Station-facing Bridge Port (SBP) details.') ieee8021BridgeEvbSbpEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpComponentID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpPortNumber")) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setDescription('A list of objects describing SBP.') ieee8021BridgeEvbSbpComponentID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setDescription('The SBP component ID') ieee8021BridgeEvbSbpPortNumber = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setDescription('The SBP port number.') ieee8021BridgeEvbSbpLldpManual = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setDescription('The evbSbpLldpManual parameter switches EVB TLVs to manual mode. In manual mode the running parameters are determined solely from the local LLDP database values.') ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 4), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setDescription('The value used to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021BridgeEvbSbpVdpOperReinitKeepAlive = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 5), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021BridgeEvbSbpVdpOperToutKeepAlive = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 6), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setReference('D.2.13, 41.5.5.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.13) by the EVBCB VDP state machine in order to determine when to transmit a keep alive message.') ieee8021BridgeEvbVSIDBObjects = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 2)) ieee8021BridgeEvbVSIDBTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1), ) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021BridgeEvbVSIDBEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIComponentID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIPortNumber"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIIDType"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIID")) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setDescription('A list of objects containing database of the active Virtual Station Interfaces.') ieee8021BridgeEvbVSIComponentID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setDescription('The evbVSIComponentID is the ComponentID for the C-VLAN component of the EVB Bridge or for the edge relay of the EVB station.') ieee8021BridgeEvbVSIPortNumber = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setDescription('The evbVSIPortNumber is the Port Number for the SBP or URP where the VSI is accessed.') ieee8021BridgeEvbVSIIDType = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("vsiidIpv4", 1), ("vsiidIpv6", 2), ("vsiidMAC", 3), ("vsiidLocal", 4), ("vsiidUUID", 5)))) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setReference('41.2.6') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setDescription('This object specifies the VSIID Type for the VSIID in the DCN ') ieee8021BridgeEvbVSIID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setReference('41.2.7') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setDescription('This object specifies the VSIID that uniquely identifies the VSI in the DCN ') ieee8021BridgeEvbVSITimeSinceCreate = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 5), Unsigned32()).setUnits('centi-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setReference('41') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setDescription('This object specifies the time since creation ') ieee8021BridgeEvbVsiVdpOperCmd = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("preAssociate", 1), ("preAssociateWithRsrcReservation", 2), ("associate", 3), ("deAssociate", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setReference('41.2.1') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setDescription('This object identifies the type of TLV.') ieee8021BridgeEvbVsiOperRevert = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setDescription('The evbOperRevert status indicator shows the most recent value of the KEEP indicator from the VDP protocol exchange.') ieee8021BridgeEvbVsiOperHard = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setDescription('The evbVsiHard status indicator shows the most recent value of the HARD indicator from the VDP protocol exchange.') ieee8021BridgeEvbVsiOperReason = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 9), Bits().clone(namedValues=NamedValues(("success", 0), ("invalidFormat", 1), ("insufficientResources", 2), ("otherfailure", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setDescription('This object indicates the outcome of a request.') ieee8021BridgeEvbVSIMgrID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021BridgeEvbVSIType = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setReference('41.2.4') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setDescription(' The VTID is an integer value used to identify a pre-configured set of controls and attributes that are associated with a set of VSIs.') ieee8021BridgeEvbVSITypeVersion = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setReference('41.2.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setDescription('The VSI Type Version is an integer identifier designating the expected/desired VTID version. The VTID version allows a VSI Manager Database to contain multiple versions of a given VSI Type, allowing smooth migration to newer VSI types.') ieee8021BridgeEvbVSIMvFormat = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("basic", 1), ("partial", 2), ("vlanOnly", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setReference('41.2.8') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setDescription('This object specifies the MAC/VLAN format. basic - Basic MAC/VLAN format partial - Partial MAC/VLAN format vlanOnly - Vlan-only MAC/VLAN format ') ieee8021BridgeEvbVSINumMACs = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setDescription('This object specifies the the number of MAC address/VLAN ID pairs contained in the repeated portion of the MAC/VLANs field in the VDP TLV.') ieee8021BridgeEvbVDPMachineState = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("preAssociate", 1), ("preAssociateWithRsrcReservation", 2), ("associate", 3), ("deAssociate", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setReference('41.5.5.14') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setDescription('This object specifies the VDP state machine. ') ieee8021BridgeEvbVDPCommandsSucceeded = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setDescription('This object specifies the VDP number of successful commands since creation.') ieee8021BridgeEvbVDPCommandsFailed = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setDescription('This object specifies the VDP number of failed commands since creation ') ieee8021BridgeEvbVDPCommandReverts = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setDescription('This object specifies the VDP command reverts since creation ') ieee8021BridgeEvbVDPCounterDiscontinuity = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 19), TimeTicks()).setUnits('hundredths of a second').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setDescription('The time (in hundredths of a second) since the last counter discontinuity for any of the counters in the row.') ieee8021BridgeEvbVSIMgrID16 = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 20), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021BridgeEvbVSIFilterFormat = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("vid", 1), ("macVid", 2), ("groupidVid", 3), ("groupidMacVid", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setReference('41.2.8, 41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setDescription('This object specifies the MAC/VLAN format: vid (see 41.2.9.1) macVid (see 41.2.9.2) groupidVid (see 41.2.9.3) groupidMacVid (see 41.2.9.4) ') ieee8021BridgeEvbVSIDBMacTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2), ) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021BridgeEvbVSIDBMacEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIComponentID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIPortNumber"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIIDType"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbGroupID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMac"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIVlanId")) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setDescription('A list of objects containing database of the MAC/VLANs associated with Virtual Station Interfaces.') ieee8021BridgeEvbGroupID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setDescription('Group ID') ieee8021BridgeEvbVSIMac = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 2), MacAddress()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setDescription('The mac-address part of the MAC/VLANs for a VSI.') ieee8021BridgeEvbVSIVlanId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 3), VlanIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setDescription('The Vlan ID part of the MAC/VLANs for a VSI.') ieee8021BridgeEvbSChannelObjects = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 3)) ieee8021BridgeEvbUAPConfigTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1), ) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setReference('12.26.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setDescription('A table that contains configuration parameters for UAP.') ieee8021BridgeEvbUAPConfigEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1), ).setIndexNames((0, "IEEE8021-BRIDGE-MIB", "ieee8021BridgePhyPort")) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setDescription('A list of objects containing information to configure the attributes for UAP.') ieee8021BridgeEvbUAPComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 1), IEEE8021PbbComponentIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setDescription('The ComponentID of the port for the UAP.') ieee8021BridgeEvbUAPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 2), IEEE8021BridgePortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setDescription('The port number of the port for the UAP.') ieee8021BridgeEvbUapConfigIfIndex = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink.') ieee8021BridgeEvbUAPSchCdcpAdminEnable = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setDescription('Administrative staus of CDCP.') ieee8021BridgeEvbUAPSchAdminCDCPRole = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cdcpRoleB", 1), ("cdcpRoleS", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setDescription("The administratively configured value for the local port's role parameter. The value of AdminRole is not reflected in the S-channel TLV. The AdminRole may take the value S or B. S indicates the sender is unwilling to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing to accept SVID assignments from the neighbor. Stations usually take the S role. B indicates the sender is willing to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing do the best it can to fill the SVID assignments from the neighbor. Bridges usually take the B role.") ieee8021BridgeEvbUAPSchAdminCDCPChanCap = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 167))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setReference('42.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setDescription('The administratively configured value for the Number of Channels supported parameter. This value is included as the ChanCap parameter in the S-channel TLV.') ieee8021BridgeEvbUAPSchOperCDCPChanCap = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 167))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setReference('42.4.8') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setDescription('The operational value for the Number of Channels supported parameter. This value is included as the ChnCap parameter in the S-channel TLV.') ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 8), VlanIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setDescription('Determines the lowest S-VIDs available for assignment by CDCP.') ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 9), VlanIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setDescription('Determines the highest S-VIDs available for assignment by CDCP.') ieee8021BridgeEvbUAPSchOperState = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("running", 1), ("notRunning", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setDescription('The current runnning state of CDCP.') ieee8021BridgeEvbSchCdcpRemoteEnabled = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setDescription('CDCP state for the remote S-channel.') ieee8021BridgeEvbSchCdcpRemoteRole = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cdcpRoleB", 1), ("cdcpRoleS", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setReference('42.4.12') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setDescription("The value for the remote port's role parameter.") ieee8021BridgeEvbUAPConfigStorageType = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 13), StorageType().clone('nonVolatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setDescription('The storage type for this row. Rows in this table that were created through an external process may have a storage type of readOnly or permanent. For a storage type of permanent, none of the columns have to be writable.') ieee8021BridgeEvbUAPConfigRowStatus = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 14), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setDescription('RowStatus for creating a UAP table entry.') ieee8021BridgeEvbCAPConfigTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2), ) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setDescription('A table that contains configuration information for the S-Channel Access Ports (CAP).') ieee8021BridgeEvbCAPConfigEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1), ).setIndexNames((0, "IEEE8021-BRIDGE-MIB", "ieee8021BridgePhyPort"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbSchID")) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setDescription('A list of objects containing information for the S-Channel Access Ports (CAP)') ieee8021BridgeEvbSchID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))) if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setReference('42.4.3') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setDescription('This object represents the SVID for a ieee8021BridgeEvbSysType of evbBridge and a SCID(S-Channel ID) for a ieee8021BridgeEvbSysType of evbStation.') ieee8021BridgeEvbCAPComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 2), IEEE8021PbbComponentIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setDescription('Component ID for S-channel Access Port.') ieee8021BridgeEvbCapConfigIfIndex = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system.') ieee8021BridgeEvbCAPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 4), IEEE8021BridgePortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setDescription('Port number for the S-Channel Access Port.') ieee8021BridgeEvbCAPSChannelID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setDescription('S-Channel ID (SCID) for this CAP.') ieee8021BridgeEvbCAPAssociateSBPOrURPCompID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 6), IEEE8021PbbComponentIdentifier()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setDescription('Component ID of the Server Edge Port to be associated with the CAP.') ieee8021BridgeEvbCAPAssociateSBPOrURPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 7), IEEE8021BridgePortNumber()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setDescription('Port number of the Server Edge Port to be associated with the CAP.') ieee8021BridgeEvbCAPRowStatus = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setDescription('RowStatus to create/destroy this table.') ieee8021BridgeEvbURPTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3), ) if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setReference('12.26.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setDescription('A table that contains configuration information for the Uplink Relay Ports(URP).') ieee8021BridgeEvbURPEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPComponentId"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPPort")) if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setDescription('A list of objects containing information for the Uplink Relay Ports(URP).') ieee8021BridgeEvbURPComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setDescription('Component ID that the URP belongs to.') ieee8021BridgeEvbURPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setDescription('port number of the urp.') ieee8021BridgeEvbURPIfIndex = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. It is an implementation specific decision as to whether this object may be modified if it has been created or if 0 is a legal value. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system. ') ieee8021BridgeEvbURPBindToISSPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 4), IEEE8021BridgePortNumber()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setDescription('The evbURPBindToISSPort is the ISS Port Number where the URP is attached. This binding is optional and only required in some systems.') ieee8021BridgeEvbURPLldpManual = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setDescription('The evbUrpLldpManual parameter control how the EVB TLV determines the operating values for parameters. When set TRUE only the local EVB TLV will be used to determine the parameters.') ieee8021BridgeEvbURPVdpOperRsrcWaitDelay = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 9), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021BridgeEvbURPVdpOperRespWaitDelay = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 10), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setDescription('The evbUrpVdpOperRespWaitDelay is how long a EVb station VDP will wait for a response from the EVB Bridge VDP.') ieee8021BridgeEvbURPVdpOperReinitKeepAlive = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 11), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 13), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021BridgeEvbEcpTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4), ) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setDescription('A table that contains configuration information for the Edge Control Protocol (ECP).') ieee8021BridgeEvbEcpEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpComponentId"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpPort")) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setDescription('A list of objects containing information for theEdge Control Protocol (ECP).') ieee8021BridgeEvbEcpComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setDescription('Component ID .') ieee8021BridgeEvbEcpPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setDescription('Port number.') ieee8021BridgeEvbEcpOperAckTimerInit = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 3), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setDescription('The initial value used to initialize ackTimer (43.3.6.1).') ieee8021BridgeEvbEcpOperAckTimerInitExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setDescription('The initial value used to initialize ackTimer. Expressed as exp where 10*2exp microseconds is the duration of the ack timer(43.3.6.1).') ieee8021BridgeEvbEcpOperMaxRetries = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setDescription('This integer variable defines the maximum number of times that the ECP transmit state machine will retry a transmission if no ACK is received.') ieee8021BridgeEvbEcpTxFrameCount = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setDescription('The evbECPTxFrameCount is the number of ECP frame transmitted since ECP was instanciated.') ieee8021BridgeEvbEcpTxRetryCount = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setDescription('The evbECPTxRetryCount is the number of times ECP re-tried transmission since ECP was instanciated.') ieee8021BridgeEvbEcpTxFailures = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setDescription('The evbECPTxFailures is the number of times ECP failed to successfully deliver a frame since ECP was instanciated.') ieee8021BridgeEvbEcpRxFrameCount = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setDescription('The evbECPRxFrameCount is the number of frames received since ECP was instanciated.') ieee8021BridgeEvbGroups = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 1)) ieee8021BridgeEvbCompliances = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 2)) ieee8021BridgeEvbSysGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 1)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysNumExternalPorts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpTxEnable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpGidCapable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpAckTimer"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltReinitKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSysGroup = ieee8021BridgeEvbSysGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysGroup.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021BridgeEvbSbpGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 3)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperReinitKeepAlive"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperToutKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSbpGroup = ieee8021BridgeEvbSbpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpGroup.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021BridgeEvbVSIDBGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 4)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITimeSinceCreate"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiVdpOperCmd"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperRevert"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperHard"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperReason"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMgrID"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITypeVersion"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMvFormat"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSINumMACs"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPMachineState"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsSucceeded"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsFailed"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandReverts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCounterDiscontinuity"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIVlanId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbVSIDBGroup = ieee8021BridgeEvbVSIDBGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBGroup.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021BridgeEvbUAPGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 5)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPComponentId"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUapConfigIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchCdcpAdminEnable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPRole"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPChanCap"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchOperCDCPChanCap"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchOperState"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSchCdcpRemoteEnabled"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSchCdcpRemoteRole"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPConfigStorageType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPConfigRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbUAPGroup = ieee8021BridgeEvbUAPGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPGroup.setDescription('The collection of objects used to represent a EVB UAP table.') ieee8021BridgeEvbCAPConfigGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 6)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPComponentId"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCapConfigIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPSChannelID"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPAssociateSBPOrURPCompID"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPAssociateSBPOrURPPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbCAPConfigGroup = ieee8021BridgeEvbCAPConfigGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021BridgeEvbsURPGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 7)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPBindToISSPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRsrcWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRespWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperReinitKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsURPGroup = ieee8021BridgeEvbsURPGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPGroup.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021BridgeEvbEcpGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 8)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperAckTimerInit"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFrameCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxRetryCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFailures"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpRxFrameCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbEcpGroup = ieee8021BridgeEvbEcpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021BridgeEvbSysV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 9)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysNumExternalPorts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpTxEnable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpGidCapable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpDfltAckTimerExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSysV2Group = ieee8021BridgeEvbSysV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysV2Group.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021BridgeEvbSbpV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 10)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperToutKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSbpV2Group = ieee8021BridgeEvbSbpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpV2Group.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021BridgeEvbVSIDBV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 11)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITimeSinceCreate"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiVdpOperCmd"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperRevert"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperHard"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperReason"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMgrID16"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITypeVersion"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIFilterFormat"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSINumMACs"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPMachineState"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsSucceeded"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsFailed"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandReverts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCounterDiscontinuity"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIVlanId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbVSIDBV2Group = ieee8021BridgeEvbVSIDBV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBV2Group.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021BridgeEvbsURPV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 12)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPBindToISSPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRespWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsURPV2Group = ieee8021BridgeEvbsURPV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPV2Group.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021BridgeEvbEcpV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 13)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperAckTimerInitExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFrameCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxRetryCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFailures"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpRxFrameCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbEcpV2Group = ieee8021BridgeEvbEcpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpV2Group.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021BridgeEvbbCompliance = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 1)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbbCompliance = ieee8021BridgeEvbbCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbbCompliance.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021BridgeEvbsCompliance = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 2)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbsURPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsCompliance = ieee8021BridgeEvbsCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsCompliance.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') ieee8021BridgeEvbbComplianceV2 = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 3)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbbComplianceV2 = ieee8021BridgeEvbbComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbbComplianceV2.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021BridgeEvbsComplianceV2 = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 4)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbsURPV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsComplianceV2 = ieee8021BridgeEvbsComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsComplianceV2.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') mibBuilder.exportSymbols("IEEE8021-EVB-MIB", ieee8021BridgeEvbGroups=ieee8021BridgeEvbGroups, ieee8021BridgeEvbSysEvbLldpGidCapable=ieee8021BridgeEvbSysEvbLldpGidCapable, ieee8021BridgeEvbVsiOperHard=ieee8021BridgeEvbVsiOperHard, ieee8021BridgeEvbEcpGroup=ieee8021BridgeEvbEcpGroup, ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp=ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh, ieee8021BridgeEvbVSIType=ieee8021BridgeEvbVSIType, ieee8021BridgeEvbVSIPortNumber=ieee8021BridgeEvbVSIPortNumber, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbCAPConfigTable=ieee8021BridgeEvbCAPConfigTable, ieee8021BridgeEvbVsiVdpOperCmd=ieee8021BridgeEvbVsiVdpOperCmd, ieee8021BridgeEvbURPEntry=ieee8021BridgeEvbURPEntry, ieee8021BridgeEvbCapConfigIfIndex=ieee8021BridgeEvbCapConfigIfIndex, ieee8021BridgeEvbVDPCommandsSucceeded=ieee8021BridgeEvbVDPCommandsSucceeded, ieee8021BridgeEvbUAPSchOperCDCPChanCap=ieee8021BridgeEvbUAPSchOperCDCPChanCap, ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp=ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp, ieee8021BridgeEvbVSIDBEntry=ieee8021BridgeEvbVSIDBEntry, ieee8021BridgeEvbEcpComponentId=ieee8021BridgeEvbEcpComponentId, ieee8021BridgeEvbVDPCommandReverts=ieee8021BridgeEvbVDPCommandReverts, ieee8021BridgeEvbVSIMgrID16=ieee8021BridgeEvbVSIMgrID16, ieee8021BridgeEvbVSITimeSinceCreate=ieee8021BridgeEvbVSITimeSinceCreate, ieee8021BridgeEvbSysV2Group=ieee8021BridgeEvbSysV2Group, ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp=ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp, ieee8021BridgeEvbEcpOperMaxRetries=ieee8021BridgeEvbEcpOperMaxRetries, ieee8021BridgeEvbSysGroup=ieee8021BridgeEvbSysGroup, ieee8021BridgeEvbEcpV2Group=ieee8021BridgeEvbEcpV2Group, PYSNMP_MODULE_ID=ieee8021BridgeEvbMib, ieee8021BridgeEvbSbpVdpOperToutKeepAlive=ieee8021BridgeEvbSbpVdpOperToutKeepAlive, ieee8021BridgeEvbVSIMac=ieee8021BridgeEvbVSIMac, ieee8021BridgeEvbEcpTxFailures=ieee8021BridgeEvbEcpTxFailures, ieee8021BridgeEvbSchID=ieee8021BridgeEvbSchID, ieee8021BridgeEvbEcpOperAckTimerInitExp=ieee8021BridgeEvbEcpOperAckTimerInitExp, ieee8021BridgeEvbObjects=ieee8021BridgeEvbObjects, ieee8021BridgeEvbCAPComponentId=ieee8021BridgeEvbCAPComponentId, ieee8021BridgeEvbSchCdcpRemoteRole=ieee8021BridgeEvbSchCdcpRemoteRole, ieee8021BridgeEvbURPComponentId=ieee8021BridgeEvbURPComponentId, ieee8021BridgeEvbURPLldpManual=ieee8021BridgeEvbURPLldpManual, ieee8021BridgeEvbVDPMachineState=ieee8021BridgeEvbVDPMachineState, ieee8021BridgeEvbVSINumMACs=ieee8021BridgeEvbVSINumMACs, ieee8021BridgeEvbVSIID=ieee8021BridgeEvbVSIID, ieee8021BridgeEvbUAPSchAdminCDCPRole=ieee8021BridgeEvbUAPSchAdminCDCPRole, ieee8021BridgeEvbbComplianceV2=ieee8021BridgeEvbbComplianceV2, ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbsComplianceV2=ieee8021BridgeEvbsComplianceV2, ieee8021BridgeEvbURPVdpOperRespWaitDelay=ieee8021BridgeEvbURPVdpOperRespWaitDelay, ieee8021BridgeEvbSysEcpDfltAckTimerExp=ieee8021BridgeEvbSysEcpDfltAckTimerExp, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPAssociateSBPOrURPPort=ieee8021BridgeEvbCAPAssociateSBPOrURPPort, ieee8021BridgeEvbCAPSChannelID=ieee8021BridgeEvbCAPSChannelID, ieee8021BridgeEvbVSIDBMacTable=ieee8021BridgeEvbVSIDBMacTable, ieee8021BridgeEvbUAPConfigTable=ieee8021BridgeEvbUAPConfigTable, ieee8021BridgeEvbUAPConfigEntry=ieee8021BridgeEvbUAPConfigEntry, ieee8021BridgeEvbUAPComponentId=ieee8021BridgeEvbUAPComponentId, ieee8021BridgeEvbUAPGroup=ieee8021BridgeEvbUAPGroup, ieee8021BridgeEvbCAPRowStatus=ieee8021BridgeEvbCAPRowStatus, ieee8021BridgeEvbsURPV2Group=ieee8021BridgeEvbsURPV2Group, ieee8021BridgeEvbUAPSchOperState=ieee8021BridgeEvbUAPSchOperState, ieee8021BridgeEvbCompliances=ieee8021BridgeEvbCompliances, ieee8021BridgeEvbCAPPort=ieee8021BridgeEvbCAPPort, ieee8021BridgeEvbEcpRxFrameCount=ieee8021BridgeEvbEcpRxFrameCount, ieee8021BridgeEvbSbpComponentID=ieee8021BridgeEvbSbpComponentID, ieee8021BridgeEvbURPIfIndex=ieee8021BridgeEvbURPIfIndex, ieee8021BridgeEvbUAPPort=ieee8021BridgeEvbUAPPort, ieee8021BridgeEvbSysNumExternalPorts=ieee8021BridgeEvbSysNumExternalPorts, ieee8021BridgeEvbSbpVdpOperReinitKeepAlive=ieee8021BridgeEvbSbpVdpOperReinitKeepAlive, ieee8021BridgeEvbVSIMgrID=ieee8021BridgeEvbVSIMgrID, ieee8021BridgeEvbURPVdpOperRsrcWaitDelay=ieee8021BridgeEvbURPVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPConfigGroup=ieee8021BridgeEvbCAPConfigGroup, ieee8021BridgeEvbSbpV2Group=ieee8021BridgeEvbSbpV2Group, ieee8021BridgeEvbSys=ieee8021BridgeEvbSys, ieee8021BridgeEvbConformance=ieee8021BridgeEvbConformance, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay, ieee8021BridgeEvbSChannelObjects=ieee8021BridgeEvbSChannelObjects, ieee8021BridgeEvbVSITypeVersion=ieee8021BridgeEvbVSITypeVersion, ieee8021BridgeEvbEcpTxFrameCount=ieee8021BridgeEvbEcpTxFrameCount, ieee8021BridgeEvbSbpEntry=ieee8021BridgeEvbSbpEntry, ieee8021BridgeEvbSysEvbLldpTxEnable=ieee8021BridgeEvbSysEvbLldpTxEnable, ieee8021BridgeEvbVDPCommandsFailed=ieee8021BridgeEvbVDPCommandsFailed, ieee8021BridgeEvbUAPSchCdcpAdminEnable=ieee8021BridgeEvbUAPSchCdcpAdminEnable, ieee8021BridgeEvbUAPConfigRowStatus=ieee8021BridgeEvbUAPConfigRowStatus, ieee8021BridgeEvbNotifications=ieee8021BridgeEvbNotifications, ieee8021BridgeEvbVSIDBMacEntry=ieee8021BridgeEvbVSIDBMacEntry, ieee8021BridgeEvbSbpGroup=ieee8021BridgeEvbSbpGroup, ieee8021BridgeEvbVSIDBV2Group=ieee8021BridgeEvbVSIDBV2Group, ieee8021BridgeEvbURPVdpOperReinitKeepAlive=ieee8021BridgeEvbURPVdpOperReinitKeepAlive, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp, ieee8021BridgeEvbVsiOperRevert=ieee8021BridgeEvbVsiOperRevert, ieee8021BridgeEvbVSIComponentID=ieee8021BridgeEvbVSIComponentID, ieee8021BridgeEvbSysEcpMaxRetries=ieee8021BridgeEvbSysEcpMaxRetries, ieee8021BridgeEvbsCompliance=ieee8021BridgeEvbsCompliance, ieee8021BridgeEvbCAPAssociateSBPOrURPCompID=ieee8021BridgeEvbCAPAssociateSBPOrURPCompID, ieee8021BridgeEvbEcpTxRetryCount=ieee8021BridgeEvbEcpTxRetryCount, ieee8021BridgeEvbVSIDBGroup=ieee8021BridgeEvbVSIDBGroup, ieee8021BridgeEvbVSIDBTable=ieee8021BridgeEvbVSIDBTable, ieee8021BridgeEvbVSIDBObjects=ieee8021BridgeEvbVSIDBObjects, ieee8021BridgeEvbVSIVlanId=ieee8021BridgeEvbVSIVlanId, ieee8021BridgeEvbSysType=ieee8021BridgeEvbSysType, ieee8021BridgeEvbGroupID=ieee8021BridgeEvbGroupID, ieee8021BridgeEvbSbpTable=ieee8021BridgeEvbSbpTable, ieee8021BridgeEvbUAPConfigStorageType=ieee8021BridgeEvbUAPConfigStorageType, ieee8021BridgeEvbSysEvbLldpManual=ieee8021BridgeEvbSysEvbLldpManual, ieee8021BridgeEvbSysEcpAckTimer=ieee8021BridgeEvbSysEcpAckTimer, ieee8021BridgeEvbVSIFilterFormat=ieee8021BridgeEvbVSIFilterFormat, ieee8021BridgeEvbEcpPort=ieee8021BridgeEvbEcpPort, ieee8021BridgeEvbbCompliance=ieee8021BridgeEvbbCompliance, ieee8021BridgeEvbUapConfigIfIndex=ieee8021BridgeEvbUapConfigIfIndex, ieee8021BridgeEvbsURPGroup=ieee8021BridgeEvbsURPGroup, ieee8021BridgeEvbSchCdcpRemoteEnabled=ieee8021BridgeEvbSchCdcpRemoteEnabled, ieee8021BridgeEvbURPBindToISSPort=ieee8021BridgeEvbURPBindToISSPort, ieee8021BridgeEvbVSIMvFormat=ieee8021BridgeEvbVSIMvFormat, ieee8021BridgeEvbVSIIDType=ieee8021BridgeEvbVSIIDType, ieee8021BridgeEvbSbpLldpManual=ieee8021BridgeEvbSbpLldpManual, ieee8021BridgeEvbUAPSchAdminCDCPChanCap=ieee8021BridgeEvbUAPSchAdminCDCPChanCap, ieee8021BridgeEvbVDPCounterDiscontinuity=ieee8021BridgeEvbVDPCounterDiscontinuity, ieee8021BridgeEvbSbpPortNumber=ieee8021BridgeEvbSbpPortNumber, ieee8021BridgeEvbEcpEntry=ieee8021BridgeEvbEcpEntry, ieee8021BridgeEvbURPTable=ieee8021BridgeEvbURPTable, ieee8021BridgeEvbVsiOperReason=ieee8021BridgeEvbVsiOperReason, ieee8021BridgeEvbCAPConfigEntry=ieee8021BridgeEvbCAPConfigEntry, ieee8021BridgeEvbMib=ieee8021BridgeEvbMib, ieee8021BridgeEvbEcpTable=ieee8021BridgeEvbEcpTable, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow, ieee8021BridgeEvbURPPort=ieee8021BridgeEvbURPPort, ieee8021BridgeEvbEcpOperAckTimerInit=ieee8021BridgeEvbEcpOperAckTimerInit, ieee8021BridgeEvbSysVdpDfltReinitKeepAlive=ieee8021BridgeEvbSysVdpDfltReinitKeepAlive)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint') (ieee8021_bridge_phy_port,) = mibBuilder.importSymbols('IEEE8021-BRIDGE-MIB', 'ieee8021BridgePhyPort') (ieee802dot1mibs, ieee8021_bridge_port_number, ieee8021_pbb_component_identifier) = mibBuilder.importSymbols('IEEE8021-TC-MIB', 'ieee802dot1mibs', 'IEEE8021BridgePortNumber', 'IEEE8021PbbComponentIdentifier') (interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero') (vlan_index,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanIndex') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (time_ticks, module_identity, integer32, ip_address, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, counter64, notification_type, gauge32, object_identity, unsigned32, mib_identifier, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ModuleIdentity', 'Integer32', 'IpAddress', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Counter64', 'NotificationType', 'Gauge32', 'ObjectIdentity', 'Unsigned32', 'MibIdentifier', 'iso') (display_string, storage_type, mac_address, truth_value, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'StorageType', 'MacAddress', 'TruthValue', 'RowStatus', 'TextualConvention') ieee8021_bridge_evb_mib = module_identity((1, 3, 111, 2, 802, 1, 1, 24)) ieee8021BridgeEvbMib.setRevisions(('2014-12-15 00:00', '2012-02-15 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setRevisionsDescriptions(('Published as part of IEEE Std 802.1Q 2014 revision. Cross references updated and corrected. ieee8021BridgeEvbVSIMvFormat added. ieee8021BridgeEvbVsiMgrID16 added and ieee8021BridgeEvbVsiMgrID deprecated. ieee8021BridgeEvbVDPCounterDiscontinuity description clarified. Conformance and groups fixed. Fixed maintenance item to IEEE Std 802.1Qbg-2012.', 'Initial version published in IEEE Std 802.1Qbg.')) if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setLastUpdated('201412150000Z') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setOrganization('IEEE 802.1 Working Group') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setContactInfo(' WG-URL: http://www.ieee802.org/1 WG-EMail: stds-802-1@ieee.org Contact: IEEE 802.1 Working Group Chair Postal: C/O IEEE 802.1 Working Group IEEE Standards Association 445 Hoes Lane Piscataway NJ 08854 USA E-mail: STDS-802-1-L@LISTSERV.IEEE.ORG') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setDescription('The EVB MIB module for managing devices that support Ethernet Virtual Bridging. Unless otherwise indicated, the references in this MIB module are to IEEE Std 802.1Q-2014. Copyright (C) IEEE (2014). This version of this MIB module is part of IEEE802.1Q; see the draft itself for full legal notices.') ieee8021_bridge_evb_notifications = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 0)) ieee8021_bridge_evb_objects = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1)) ieee8021_bridge_evb_conformance = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 2)) ieee8021_bridge_evb_sys = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 1)) ieee8021_bridge_evb_sys_type = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('evbBridge', 1), ('evbStation', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setReference('5.23,5.24') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setDescription('The evbSysType determines if this is an EVB Bridge or EVB station.') ieee8021_bridge_evb_sys_num_external_ports = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setReference('12.4.2, 12.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setDescription('The evbSysNumExternalPorts parameter indicates how many externally accessible port are available.') ieee8021_bridge_evb_sys_evb_lldp_tx_enable = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'true' a new SBP or URP will place the local EVB objects in the LLDP nearest Customer database; when set to 'false' a new SBP or URP will not place the local EVB objects in the LLDP database.") ieee8021_bridge_evb_sys_evb_lldp_manual = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'false' the operating configuration will be determined by the comparison between the local and remote LLDP EVB objects (automatic), regardless of the setting of ieee8021BridgeEvbSysLldpTxEnable. When ieee8021BridgeEvbSysLldpManual is 'true' the configuration will be determined by the setting of the local EVB objects only (manual).") ieee8021_bridge_evb_sys_evb_lldp_gid_capable = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setDescription('The value of this object is used as the default value of the BGID or SGID bit of the EVB LLDP TLV string.') ieee8021_bridge_evb_sys_ecp_ack_timer = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setDescription('A value indicating the Bridge Proposed ECP ackTimer.') ieee8021_bridge_evb_sys_ecp_dflt_ack_timer_exp = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setDescription('The exponent of 2 indicating the Bridge Proposed ECP ackTimer in tens of microseconds.') ieee8021_bridge_evb_sys_ecp_max_retries = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 7)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setReference('D.2.13.5, 43.3.7.4') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setDescription('A value indicating the Bridge ECP maxRetries.') ieee8021_bridge_evb_sys_vdp_dflt_rsrc_wait_delay = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setDescription('A value indicating the Bridge Resource VDP Timeout.') ieee8021_bridge_evb_sys_vdp_dflt_rsrc_wait_delay_exp = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setDescription('The exponent of 2 indicating the Bridge Resource VDP Timeout in tens of microseconds.') ieee8021_bridge_evb_sys_vdp_dflt_reinit_keep_alive = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setDescription('A value indicating the Bridge Proposed VDP Keep Alive Timeout.') ieee8021_bridge_evb_sys_vdp_dflt_reinit_keep_alive_exp = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setDescription('The exponent of 2 indicating the Bridge Proposed VDP Keep Alive Timeout in tens of microseconds.') ieee8021_bridge_evb_sbp_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10)) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setReference('12.26.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setDescription('A table that contains Station-facing Bridge Port (SBP) details.') ieee8021_bridge_evb_sbp_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpComponentID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpPortNumber')) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setDescription('A list of objects describing SBP.') ieee8021_bridge_evb_sbp_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setDescription('The SBP component ID') ieee8021_bridge_evb_sbp_port_number = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setDescription('The SBP port number.') ieee8021_bridge_evb_sbp_lldp_manual = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setDescription('The evbSbpLldpManual parameter switches EVB TLVs to manual mode. In manual mode the running parameters are determined solely from the local LLDP database values.') ieee8021_bridge_evb_sbp_vdp_oper_rsrc_wait_delay = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 4), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setDescription('The value used to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021_bridge_evb_sbp_vdp_oper_rsrc_wait_delay_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021_bridge_evb_sbp_vdp_oper_reinit_keep_alive = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 5), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021_bridge_evb_sbp_vdp_oper_reinit_keep_alive_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021_bridge_evb_sbp_vdp_oper_tout_keep_alive = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 6), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setReference('D.2.13, 41.5.5.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.13) by the EVBCB VDP state machine in order to determine when to transmit a keep alive message.') ieee8021_bridge_evb_vsidb_objects = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 2)) ieee8021_bridge_evb_vsidb_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021_bridge_evb_vsidb_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIComponentID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIPortNumber'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIIDType'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIID')) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setDescription('A list of objects containing database of the active Virtual Station Interfaces.') ieee8021_bridge_evb_vsi_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setDescription('The evbVSIComponentID is the ComponentID for the C-VLAN component of the EVB Bridge or for the edge relay of the EVB station.') ieee8021_bridge_evb_vsi_port_number = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setDescription('The evbVSIPortNumber is the Port Number for the SBP or URP where the VSI is accessed.') ieee8021_bridge_evb_vsiid_type = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('vsiidIpv4', 1), ('vsiidIpv6', 2), ('vsiidMAC', 3), ('vsiidLocal', 4), ('vsiidUUID', 5)))) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setReference('41.2.6') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setDescription('This object specifies the VSIID Type for the VSIID in the DCN ') ieee8021_bridge_evb_vsiid = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setReference('41.2.7') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setDescription('This object specifies the VSIID that uniquely identifies the VSI in the DCN ') ieee8021_bridge_evb_vsi_time_since_create = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 5), unsigned32()).setUnits('centi-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setReference('41') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setDescription('This object specifies the time since creation ') ieee8021_bridge_evb_vsi_vdp_oper_cmd = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('preAssociate', 1), ('preAssociateWithRsrcReservation', 2), ('associate', 3), ('deAssociate', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setReference('41.2.1') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setDescription('This object identifies the type of TLV.') ieee8021_bridge_evb_vsi_oper_revert = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setDescription('The evbOperRevert status indicator shows the most recent value of the KEEP indicator from the VDP protocol exchange.') ieee8021_bridge_evb_vsi_oper_hard = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setDescription('The evbVsiHard status indicator shows the most recent value of the HARD indicator from the VDP protocol exchange.') ieee8021_bridge_evb_vsi_oper_reason = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 9), bits().clone(namedValues=named_values(('success', 0), ('invalidFormat', 1), ('insufficientResources', 2), ('otherfailure', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setDescription('This object indicates the outcome of a request.') ieee8021_bridge_evb_vsi_mgr_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021_bridge_evb_vsi_type = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setReference('41.2.4') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setDescription(' The VTID is an integer value used to identify a pre-configured set of controls and attributes that are associated with a set of VSIs.') ieee8021_bridge_evb_vsi_type_version = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setReference('41.2.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setDescription('The VSI Type Version is an integer identifier designating the expected/desired VTID version. The VTID version allows a VSI Manager Database to contain multiple versions of a given VSI Type, allowing smooth migration to newer VSI types.') ieee8021_bridge_evb_vsi_mv_format = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('basic', 1), ('partial', 2), ('vlanOnly', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setReference('41.2.8') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setDescription('This object specifies the MAC/VLAN format. basic - Basic MAC/VLAN format partial - Partial MAC/VLAN format vlanOnly - Vlan-only MAC/VLAN format ') ieee8021_bridge_evb_vsi_num_ma_cs = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setDescription('This object specifies the the number of MAC address/VLAN ID pairs contained in the repeated portion of the MAC/VLANs field in the VDP TLV.') ieee8021_bridge_evb_vdp_machine_state = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('preAssociate', 1), ('preAssociateWithRsrcReservation', 2), ('associate', 3), ('deAssociate', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setReference('41.5.5.14') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setDescription('This object specifies the VDP state machine. ') ieee8021_bridge_evb_vdp_commands_succeeded = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setDescription('This object specifies the VDP number of successful commands since creation.') ieee8021_bridge_evb_vdp_commands_failed = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setDescription('This object specifies the VDP number of failed commands since creation ') ieee8021_bridge_evb_vdp_command_reverts = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setDescription('This object specifies the VDP command reverts since creation ') ieee8021_bridge_evb_vdp_counter_discontinuity = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 19), time_ticks()).setUnits('hundredths of a second').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setDescription('The time (in hundredths of a second) since the last counter discontinuity for any of the counters in the row.') ieee8021_bridge_evb_vsi_mgr_id16 = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 20), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021_bridge_evb_vsi_filter_format = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('vid', 1), ('macVid', 2), ('groupidVid', 3), ('groupidMacVid', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setReference('41.2.8, 41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setDescription('This object specifies the MAC/VLAN format: vid (see 41.2.9.1) macVid (see 41.2.9.2) groupidVid (see 41.2.9.3) groupidMacVid (see 41.2.9.4) ') ieee8021_bridge_evb_vsidb_mac_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021_bridge_evb_vsidb_mac_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIComponentID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIPortNumber'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIIDType'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbGroupID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMac'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIVlanId')) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setDescription('A list of objects containing database of the MAC/VLANs associated with Virtual Station Interfaces.') ieee8021_bridge_evb_group_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setDescription('Group ID') ieee8021_bridge_evb_vsi_mac = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 2), mac_address()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setDescription('The mac-address part of the MAC/VLANs for a VSI.') ieee8021_bridge_evb_vsi_vlan_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 3), vlan_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setDescription('The Vlan ID part of the MAC/VLANs for a VSI.') ieee8021_bridge_evb_s_channel_objects = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 3)) ieee8021_bridge_evb_uap_config_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1)) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setReference('12.26.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setDescription('A table that contains configuration parameters for UAP.') ieee8021_bridge_evb_uap_config_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1)).setIndexNames((0, 'IEEE8021-BRIDGE-MIB', 'ieee8021BridgePhyPort')) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setDescription('A list of objects containing information to configure the attributes for UAP.') ieee8021_bridge_evb_uap_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 1), ieee8021_pbb_component_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setDescription('The ComponentID of the port for the UAP.') ieee8021_bridge_evb_uap_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 2), ieee8021_bridge_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setDescription('The port number of the port for the UAP.') ieee8021_bridge_evb_uap_config_if_index = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink.') ieee8021_bridge_evb_uap_sch_cdcp_admin_enable = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setDescription('Administrative staus of CDCP.') ieee8021_bridge_evb_uap_sch_admin_cdcp_role = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cdcpRoleB', 1), ('cdcpRoleS', 2))).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setDescription("The administratively configured value for the local port's role parameter. The value of AdminRole is not reflected in the S-channel TLV. The AdminRole may take the value S or B. S indicates the sender is unwilling to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing to accept SVID assignments from the neighbor. Stations usually take the S role. B indicates the sender is willing to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing do the best it can to fill the SVID assignments from the neighbor. Bridges usually take the B role.") ieee8021_bridge_evb_uap_sch_admin_cdcp_chan_cap = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 167))).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setReference('42.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setDescription('The administratively configured value for the Number of Channels supported parameter. This value is included as the ChanCap parameter in the S-channel TLV.') ieee8021_bridge_evb_uap_sch_oper_cdcp_chan_cap = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 167))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setReference('42.4.8') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setDescription('The operational value for the Number of Channels supported parameter. This value is included as the ChnCap parameter in the S-channel TLV.') ieee8021_bridge_evb_uap_sch_admin_cdcpsvid_pool_low = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 8), vlan_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setDescription('Determines the lowest S-VIDs available for assignment by CDCP.') ieee8021_bridge_evb_uap_sch_admin_cdcpsvid_pool_high = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 9), vlan_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setDescription('Determines the highest S-VIDs available for assignment by CDCP.') ieee8021_bridge_evb_uap_sch_oper_state = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('running', 1), ('notRunning', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setDescription('The current runnning state of CDCP.') ieee8021_bridge_evb_sch_cdcp_remote_enabled = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setDescription('CDCP state for the remote S-channel.') ieee8021_bridge_evb_sch_cdcp_remote_role = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cdcpRoleB', 1), ('cdcpRoleS', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setReference('42.4.12') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setDescription("The value for the remote port's role parameter.") ieee8021_bridge_evb_uap_config_storage_type = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 13), storage_type().clone('nonVolatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setDescription('The storage type for this row. Rows in this table that were created through an external process may have a storage type of readOnly or permanent. For a storage type of permanent, none of the columns have to be writable.') ieee8021_bridge_evb_uap_config_row_status = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 14), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setDescription('RowStatus for creating a UAP table entry.') ieee8021_bridge_evb_cap_config_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2)) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setDescription('A table that contains configuration information for the S-Channel Access Ports (CAP).') ieee8021_bridge_evb_cap_config_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1)).setIndexNames((0, 'IEEE8021-BRIDGE-MIB', 'ieee8021BridgePhyPort'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSchID')) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setDescription('A list of objects containing information for the S-Channel Access Ports (CAP)') ieee8021_bridge_evb_sch_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4094))) if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setReference('42.4.3') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setDescription('This object represents the SVID for a ieee8021BridgeEvbSysType of evbBridge and a SCID(S-Channel ID) for a ieee8021BridgeEvbSysType of evbStation.') ieee8021_bridge_evb_cap_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 2), ieee8021_pbb_component_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setDescription('Component ID for S-channel Access Port.') ieee8021_bridge_evb_cap_config_if_index = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system.') ieee8021_bridge_evb_cap_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 4), ieee8021_bridge_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setDescription('Port number for the S-Channel Access Port.') ieee8021_bridge_evb_caps_channel_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setDescription('S-Channel ID (SCID) for this CAP.') ieee8021_bridge_evb_cap_associate_sbp_or_urp_comp_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 6), ieee8021_pbb_component_identifier()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setDescription('Component ID of the Server Edge Port to be associated with the CAP.') ieee8021_bridge_evb_cap_associate_sbp_or_urp_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 7), ieee8021_bridge_port_number()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setDescription('Port number of the Server Edge Port to be associated with the CAP.') ieee8021_bridge_evb_cap_row_status = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setDescription('RowStatus to create/destroy this table.') ieee8021_bridge_evb_urp_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3)) if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setReference('12.26.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setDescription('A table that contains configuration information for the Uplink Relay Ports(URP).') ieee8021_bridge_evb_urp_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPComponentId'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPPort')) if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setDescription('A list of objects containing information for the Uplink Relay Ports(URP).') ieee8021_bridge_evb_urp_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setDescription('Component ID that the URP belongs to.') ieee8021_bridge_evb_urp_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setDescription('port number of the urp.') ieee8021_bridge_evb_urp_if_index = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 3), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. It is an implementation specific decision as to whether this object may be modified if it has been created or if 0 is a legal value. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system. ') ieee8021_bridge_evb_urp_bind_to_iss_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 4), ieee8021_bridge_port_number()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setDescription('The evbURPBindToISSPort is the ISS Port Number where the URP is attached. This binding is optional and only required in some systems.') ieee8021_bridge_evb_urp_lldp_manual = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setDescription('The evbUrpLldpManual parameter control how the EVB TLV determines the operating values for parameters. When set TRUE only the local EVB TLV will be used to determine the parameters.') ieee8021_bridge_evb_urp_vdp_oper_rsrc_wait_delay = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 9), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021_bridge_evb_urp_vdp_oper_rsrc_wait_delay_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021_bridge_evb_urp_vdp_oper_resp_wait_delay = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 10), unsigned32()).setUnits('micro-seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setDescription('The evbUrpVdpOperRespWaitDelay is how long a EVb station VDP will wait for a response from the EVB Bridge VDP.') ieee8021_bridge_evb_urp_vdp_oper_reinit_keep_alive = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 11), unsigned32()).setUnits('micro-seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021_bridge_evb_urp_vdp_oper_reinit_keep_alive_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 13), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021_bridge_evb_ecp_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4)) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setDescription('A table that contains configuration information for the Edge Control Protocol (ECP).') ieee8021_bridge_evb_ecp_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpComponentId'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpPort')) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setDescription('A list of objects containing information for theEdge Control Protocol (ECP).') ieee8021_bridge_evb_ecp_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setDescription('Component ID .') ieee8021_bridge_evb_ecp_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setDescription('Port number.') ieee8021_bridge_evb_ecp_oper_ack_timer_init = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 3), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setDescription('The initial value used to initialize ackTimer (43.3.6.1).') ieee8021_bridge_evb_ecp_oper_ack_timer_init_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setDescription('The initial value used to initialize ackTimer. Expressed as exp where 10*2exp microseconds is the duration of the ack timer(43.3.6.1).') ieee8021_bridge_evb_ecp_oper_max_retries = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setDescription('This integer variable defines the maximum number of times that the ECP transmit state machine will retry a transmission if no ACK is received.') ieee8021_bridge_evb_ecp_tx_frame_count = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setDescription('The evbECPTxFrameCount is the number of ECP frame transmitted since ECP was instanciated.') ieee8021_bridge_evb_ecp_tx_retry_count = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setDescription('The evbECPTxRetryCount is the number of times ECP re-tried transmission since ECP was instanciated.') ieee8021_bridge_evb_ecp_tx_failures = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setDescription('The evbECPTxFailures is the number of times ECP failed to successfully deliver a frame since ECP was instanciated.') ieee8021_bridge_evb_ecp_rx_frame_count = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setDescription('The evbECPRxFrameCount is the number of frames received since ECP was instanciated.') ieee8021_bridge_evb_groups = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 1)) ieee8021_bridge_evb_compliances = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 2)) ieee8021_bridge_evb_sys_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 1)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysNumExternalPorts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpTxEnable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpGidCapable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpAckTimer'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltReinitKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sys_group = ieee8021BridgeEvbSysGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysGroup.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021_bridge_evb_sbp_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 3)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperReinitKeepAlive'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperToutKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sbp_group = ieee8021BridgeEvbSbpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpGroup.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021_bridge_evb_vsidb_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 4)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITimeSinceCreate'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiVdpOperCmd'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperRevert'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperHard'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperReason'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMgrID'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITypeVersion'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMvFormat'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSINumMACs'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPMachineState'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsSucceeded'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsFailed'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandReverts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCounterDiscontinuity'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIVlanId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_vsidb_group = ieee8021BridgeEvbVSIDBGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBGroup.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021_bridge_evb_uap_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 5)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPComponentId'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUapConfigIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchCdcpAdminEnable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPRole'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPChanCap'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchOperCDCPChanCap'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchOperState'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSchCdcpRemoteEnabled'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSchCdcpRemoteRole'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPConfigStorageType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPConfigRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_uap_group = ieee8021BridgeEvbUAPGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPGroup.setDescription('The collection of objects used to represent a EVB UAP table.') ieee8021_bridge_evb_cap_config_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 6)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPComponentId'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCapConfigIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPSChannelID'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPAssociateSBPOrURPCompID'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPAssociateSBPOrURPPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_cap_config_group = ieee8021BridgeEvbCAPConfigGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021_bridge_evbs_urp_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 7)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPBindToISSPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRsrcWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRespWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperReinitKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_urp_group = ieee8021BridgeEvbsURPGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPGroup.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021_bridge_evb_ecp_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 8)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperAckTimerInit'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFrameCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxRetryCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFailures'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpRxFrameCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_ecp_group = ieee8021BridgeEvbEcpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021_bridge_evb_sys_v2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 9)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysNumExternalPorts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpTxEnable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpGidCapable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpDfltAckTimerExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sys_v2_group = ieee8021BridgeEvbSysV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysV2Group.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021_bridge_evb_sbp_v2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 10)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperToutKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sbp_v2_group = ieee8021BridgeEvbSbpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpV2Group.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021_bridge_evb_vsidbv2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 11)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITimeSinceCreate'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiVdpOperCmd'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperRevert'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperHard'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperReason'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMgrID16'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITypeVersion'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIFilterFormat'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSINumMACs'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPMachineState'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsSucceeded'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsFailed'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandReverts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCounterDiscontinuity'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIVlanId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_vsidbv2_group = ieee8021BridgeEvbVSIDBV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBV2Group.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021_bridge_evbs_urpv2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 12)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPBindToISSPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRespWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_urpv2_group = ieee8021BridgeEvbsURPV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPV2Group.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021_bridge_evb_ecp_v2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 13)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperAckTimerInitExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFrameCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxRetryCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFailures'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpRxFrameCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_ecp_v2_group = ieee8021BridgeEvbEcpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpV2Group.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021_bridge_evbb_compliance = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 1)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbb_compliance = ieee8021BridgeEvbbCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbbCompliance.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021_bridge_evbs_compliance = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 2)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbsURPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_compliance = ieee8021BridgeEvbsCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsCompliance.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') ieee8021_bridge_evbb_compliance_v2 = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 3)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbb_compliance_v2 = ieee8021BridgeEvbbComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbbComplianceV2.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021_bridge_evbs_compliance_v2 = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 4)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbsURPV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_compliance_v2 = ieee8021BridgeEvbsComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsComplianceV2.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') mibBuilder.exportSymbols('IEEE8021-EVB-MIB', ieee8021BridgeEvbGroups=ieee8021BridgeEvbGroups, ieee8021BridgeEvbSysEvbLldpGidCapable=ieee8021BridgeEvbSysEvbLldpGidCapable, ieee8021BridgeEvbVsiOperHard=ieee8021BridgeEvbVsiOperHard, ieee8021BridgeEvbEcpGroup=ieee8021BridgeEvbEcpGroup, ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp=ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh, ieee8021BridgeEvbVSIType=ieee8021BridgeEvbVSIType, ieee8021BridgeEvbVSIPortNumber=ieee8021BridgeEvbVSIPortNumber, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbCAPConfigTable=ieee8021BridgeEvbCAPConfigTable, ieee8021BridgeEvbVsiVdpOperCmd=ieee8021BridgeEvbVsiVdpOperCmd, ieee8021BridgeEvbURPEntry=ieee8021BridgeEvbURPEntry, ieee8021BridgeEvbCapConfigIfIndex=ieee8021BridgeEvbCapConfigIfIndex, ieee8021BridgeEvbVDPCommandsSucceeded=ieee8021BridgeEvbVDPCommandsSucceeded, ieee8021BridgeEvbUAPSchOperCDCPChanCap=ieee8021BridgeEvbUAPSchOperCDCPChanCap, ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp=ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp, ieee8021BridgeEvbVSIDBEntry=ieee8021BridgeEvbVSIDBEntry, ieee8021BridgeEvbEcpComponentId=ieee8021BridgeEvbEcpComponentId, ieee8021BridgeEvbVDPCommandReverts=ieee8021BridgeEvbVDPCommandReverts, ieee8021BridgeEvbVSIMgrID16=ieee8021BridgeEvbVSIMgrID16, ieee8021BridgeEvbVSITimeSinceCreate=ieee8021BridgeEvbVSITimeSinceCreate, ieee8021BridgeEvbSysV2Group=ieee8021BridgeEvbSysV2Group, ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp=ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp, ieee8021BridgeEvbEcpOperMaxRetries=ieee8021BridgeEvbEcpOperMaxRetries, ieee8021BridgeEvbSysGroup=ieee8021BridgeEvbSysGroup, ieee8021BridgeEvbEcpV2Group=ieee8021BridgeEvbEcpV2Group, PYSNMP_MODULE_ID=ieee8021BridgeEvbMib, ieee8021BridgeEvbSbpVdpOperToutKeepAlive=ieee8021BridgeEvbSbpVdpOperToutKeepAlive, ieee8021BridgeEvbVSIMac=ieee8021BridgeEvbVSIMac, ieee8021BridgeEvbEcpTxFailures=ieee8021BridgeEvbEcpTxFailures, ieee8021BridgeEvbSchID=ieee8021BridgeEvbSchID, ieee8021BridgeEvbEcpOperAckTimerInitExp=ieee8021BridgeEvbEcpOperAckTimerInitExp, ieee8021BridgeEvbObjects=ieee8021BridgeEvbObjects, ieee8021BridgeEvbCAPComponentId=ieee8021BridgeEvbCAPComponentId, ieee8021BridgeEvbSchCdcpRemoteRole=ieee8021BridgeEvbSchCdcpRemoteRole, ieee8021BridgeEvbURPComponentId=ieee8021BridgeEvbURPComponentId, ieee8021BridgeEvbURPLldpManual=ieee8021BridgeEvbURPLldpManual, ieee8021BridgeEvbVDPMachineState=ieee8021BridgeEvbVDPMachineState, ieee8021BridgeEvbVSINumMACs=ieee8021BridgeEvbVSINumMACs, ieee8021BridgeEvbVSIID=ieee8021BridgeEvbVSIID, ieee8021BridgeEvbUAPSchAdminCDCPRole=ieee8021BridgeEvbUAPSchAdminCDCPRole, ieee8021BridgeEvbbComplianceV2=ieee8021BridgeEvbbComplianceV2, ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbsComplianceV2=ieee8021BridgeEvbsComplianceV2, ieee8021BridgeEvbURPVdpOperRespWaitDelay=ieee8021BridgeEvbURPVdpOperRespWaitDelay, ieee8021BridgeEvbSysEcpDfltAckTimerExp=ieee8021BridgeEvbSysEcpDfltAckTimerExp, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPAssociateSBPOrURPPort=ieee8021BridgeEvbCAPAssociateSBPOrURPPort, ieee8021BridgeEvbCAPSChannelID=ieee8021BridgeEvbCAPSChannelID, ieee8021BridgeEvbVSIDBMacTable=ieee8021BridgeEvbVSIDBMacTable, ieee8021BridgeEvbUAPConfigTable=ieee8021BridgeEvbUAPConfigTable, ieee8021BridgeEvbUAPConfigEntry=ieee8021BridgeEvbUAPConfigEntry, ieee8021BridgeEvbUAPComponentId=ieee8021BridgeEvbUAPComponentId, ieee8021BridgeEvbUAPGroup=ieee8021BridgeEvbUAPGroup, ieee8021BridgeEvbCAPRowStatus=ieee8021BridgeEvbCAPRowStatus, ieee8021BridgeEvbsURPV2Group=ieee8021BridgeEvbsURPV2Group, ieee8021BridgeEvbUAPSchOperState=ieee8021BridgeEvbUAPSchOperState, ieee8021BridgeEvbCompliances=ieee8021BridgeEvbCompliances, ieee8021BridgeEvbCAPPort=ieee8021BridgeEvbCAPPort, ieee8021BridgeEvbEcpRxFrameCount=ieee8021BridgeEvbEcpRxFrameCount, ieee8021BridgeEvbSbpComponentID=ieee8021BridgeEvbSbpComponentID, ieee8021BridgeEvbURPIfIndex=ieee8021BridgeEvbURPIfIndex, ieee8021BridgeEvbUAPPort=ieee8021BridgeEvbUAPPort, ieee8021BridgeEvbSysNumExternalPorts=ieee8021BridgeEvbSysNumExternalPorts, ieee8021BridgeEvbSbpVdpOperReinitKeepAlive=ieee8021BridgeEvbSbpVdpOperReinitKeepAlive, ieee8021BridgeEvbVSIMgrID=ieee8021BridgeEvbVSIMgrID, ieee8021BridgeEvbURPVdpOperRsrcWaitDelay=ieee8021BridgeEvbURPVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPConfigGroup=ieee8021BridgeEvbCAPConfigGroup, ieee8021BridgeEvbSbpV2Group=ieee8021BridgeEvbSbpV2Group, ieee8021BridgeEvbSys=ieee8021BridgeEvbSys, ieee8021BridgeEvbConformance=ieee8021BridgeEvbConformance, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay, ieee8021BridgeEvbSChannelObjects=ieee8021BridgeEvbSChannelObjects, ieee8021BridgeEvbVSITypeVersion=ieee8021BridgeEvbVSITypeVersion, ieee8021BridgeEvbEcpTxFrameCount=ieee8021BridgeEvbEcpTxFrameCount, ieee8021BridgeEvbSbpEntry=ieee8021BridgeEvbSbpEntry, ieee8021BridgeEvbSysEvbLldpTxEnable=ieee8021BridgeEvbSysEvbLldpTxEnable, ieee8021BridgeEvbVDPCommandsFailed=ieee8021BridgeEvbVDPCommandsFailed, ieee8021BridgeEvbUAPSchCdcpAdminEnable=ieee8021BridgeEvbUAPSchCdcpAdminEnable, ieee8021BridgeEvbUAPConfigRowStatus=ieee8021BridgeEvbUAPConfigRowStatus, ieee8021BridgeEvbNotifications=ieee8021BridgeEvbNotifications, ieee8021BridgeEvbVSIDBMacEntry=ieee8021BridgeEvbVSIDBMacEntry, ieee8021BridgeEvbSbpGroup=ieee8021BridgeEvbSbpGroup, ieee8021BridgeEvbVSIDBV2Group=ieee8021BridgeEvbVSIDBV2Group, ieee8021BridgeEvbURPVdpOperReinitKeepAlive=ieee8021BridgeEvbURPVdpOperReinitKeepAlive, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp, ieee8021BridgeEvbVsiOperRevert=ieee8021BridgeEvbVsiOperRevert, ieee8021BridgeEvbVSIComponentID=ieee8021BridgeEvbVSIComponentID, ieee8021BridgeEvbSysEcpMaxRetries=ieee8021BridgeEvbSysEcpMaxRetries, ieee8021BridgeEvbsCompliance=ieee8021BridgeEvbsCompliance, ieee8021BridgeEvbCAPAssociateSBPOrURPCompID=ieee8021BridgeEvbCAPAssociateSBPOrURPCompID, ieee8021BridgeEvbEcpTxRetryCount=ieee8021BridgeEvbEcpTxRetryCount, ieee8021BridgeEvbVSIDBGroup=ieee8021BridgeEvbVSIDBGroup, ieee8021BridgeEvbVSIDBTable=ieee8021BridgeEvbVSIDBTable, ieee8021BridgeEvbVSIDBObjects=ieee8021BridgeEvbVSIDBObjects, ieee8021BridgeEvbVSIVlanId=ieee8021BridgeEvbVSIVlanId, ieee8021BridgeEvbSysType=ieee8021BridgeEvbSysType, ieee8021BridgeEvbGroupID=ieee8021BridgeEvbGroupID, ieee8021BridgeEvbSbpTable=ieee8021BridgeEvbSbpTable, ieee8021BridgeEvbUAPConfigStorageType=ieee8021BridgeEvbUAPConfigStorageType, ieee8021BridgeEvbSysEvbLldpManual=ieee8021BridgeEvbSysEvbLldpManual, ieee8021BridgeEvbSysEcpAckTimer=ieee8021BridgeEvbSysEcpAckTimer, ieee8021BridgeEvbVSIFilterFormat=ieee8021BridgeEvbVSIFilterFormat, ieee8021BridgeEvbEcpPort=ieee8021BridgeEvbEcpPort, ieee8021BridgeEvbbCompliance=ieee8021BridgeEvbbCompliance, ieee8021BridgeEvbUapConfigIfIndex=ieee8021BridgeEvbUapConfigIfIndex, ieee8021BridgeEvbsURPGroup=ieee8021BridgeEvbsURPGroup, ieee8021BridgeEvbSchCdcpRemoteEnabled=ieee8021BridgeEvbSchCdcpRemoteEnabled, ieee8021BridgeEvbURPBindToISSPort=ieee8021BridgeEvbURPBindToISSPort, ieee8021BridgeEvbVSIMvFormat=ieee8021BridgeEvbVSIMvFormat, ieee8021BridgeEvbVSIIDType=ieee8021BridgeEvbVSIIDType, ieee8021BridgeEvbSbpLldpManual=ieee8021BridgeEvbSbpLldpManual, ieee8021BridgeEvbUAPSchAdminCDCPChanCap=ieee8021BridgeEvbUAPSchAdminCDCPChanCap, ieee8021BridgeEvbVDPCounterDiscontinuity=ieee8021BridgeEvbVDPCounterDiscontinuity, ieee8021BridgeEvbSbpPortNumber=ieee8021BridgeEvbSbpPortNumber, ieee8021BridgeEvbEcpEntry=ieee8021BridgeEvbEcpEntry, ieee8021BridgeEvbURPTable=ieee8021BridgeEvbURPTable, ieee8021BridgeEvbVsiOperReason=ieee8021BridgeEvbVsiOperReason, ieee8021BridgeEvbCAPConfigEntry=ieee8021BridgeEvbCAPConfigEntry, ieee8021BridgeEvbMib=ieee8021BridgeEvbMib, ieee8021BridgeEvbEcpTable=ieee8021BridgeEvbEcpTable, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow, ieee8021BridgeEvbURPPort=ieee8021BridgeEvbURPPort, ieee8021BridgeEvbEcpOperAckTimerInit=ieee8021BridgeEvbEcpOperAckTimerInit, ieee8021BridgeEvbSysVdpDfltReinitKeepAlive=ieee8021BridgeEvbSysVdpDfltReinitKeepAlive)
c,b=map(int,input().split()) x=[*map(int,input().split())] oioi=set() ans=0 oioi.add(0) for i in x: tmp=[] for j in oioi: tmp.append(i+j) if i+j<=c: ans=max(ans,i+j) for j in tmp: oioi.add(j) print(ans)
(c, b) = map(int, input().split()) x = [*map(int, input().split())] oioi = set() ans = 0 oioi.add(0) for i in x: tmp = [] for j in oioi: tmp.append(i + j) if i + j <= c: ans = max(ans, i + j) for j in tmp: oioi.add(j) print(ans)
#!/usr/bin/env python NAME = 'Naxsi' def is_waf(self): # Sometimes naxsi waf returns 'x-data-origin: naxsi/waf' if self.matchheader(('X-Data-Origin', '^naxsi(.*)?')): return True # Found samples returning 'server: naxsi/2.0' if self.matchheader(('server', 'naxsi(.*)?')): return True for attack in self.attacks: r = attack(self) if r is None: return _, responsebody = r if any(i in responsebody for i in (b'Blocked By NAXSI', b'Naxsi Blocked Information')): return True return False
name = 'Naxsi' def is_waf(self): if self.matchheader(('X-Data-Origin', '^naxsi(.*)?')): return True if self.matchheader(('server', 'naxsi(.*)?')): return True for attack in self.attacks: r = attack(self) if r is None: return (_, responsebody) = r if any((i in responsebody for i in (b'Blocked By NAXSI', b'Naxsi Blocked Information'))): return True return False
consumer_key = 'v5bb7HD9PmYTvXuCBgCwa44qZ' consumer_secret = 'tlONgznY4y9S0E4D9JkDVABGGT8ACVgOySt3CPpsKUxU9IE2RS' twitter_token = '2888299528-05kwbmRfd82mneeJg2EMGhcMXXlFci6yaBWjxCA' twitter_token_secret = 'h0WLEeq7PNkC1Rd56eyM1oxi1KL4S9sXP8kigYxEB527B'
consumer_key = 'v5bb7HD9PmYTvXuCBgCwa44qZ' consumer_secret = 'tlONgznY4y9S0E4D9JkDVABGGT8ACVgOySt3CPpsKUxU9IE2RS' twitter_token = '2888299528-05kwbmRfd82mneeJg2EMGhcMXXlFci6yaBWjxCA' twitter_token_secret = 'h0WLEeq7PNkC1Rd56eyM1oxi1KL4S9sXP8kigYxEB527B'
def ip_to_int32(ip): temp="" ip=ip.split(".") for i in ip: temp+="{0:08b}".format(int(i)) return int(temp,2)
def ip_to_int32(ip): temp = '' ip = ip.split('.') for i in ip: temp += '{0:08b}'.format(int(i)) return int(temp, 2)
array = [] with open('input-p22.txt') as f: array = f.readlines() array = array[0].split(',') array.sort() print(array) asciA = ord('A') print("ascii A:", asciA) answer = 0 for i in range(0, len(array)): sum = 0 for letter in array[i]: if letter == '"': continue print(letter, ord(letter)) sum += ord(letter) - asciA +1 answer += (sum)*(i+1) print(answer)
array = [] with open('input-p22.txt') as f: array = f.readlines() array = array[0].split(',') array.sort() print(array) asci_a = ord('A') print('ascii A:', asciA) answer = 0 for i in range(0, len(array)): sum = 0 for letter in array[i]: if letter == '"': continue print(letter, ord(letter)) sum += ord(letter) - asciA + 1 answer += sum * (i + 1) print(answer)
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def bigIntegerCpp(): http_archive( name="big_integer_cpp" , build_file="//bazel/deps/big_integer_cpp:build.BUILD" , sha256="1c9505406accb1216947ca60299ed70726eade7c9458c7c7f94ca2aea68d288e" , strip_prefix="BigIntegerCPP-79e7b023bf5157c0f8d308d3791cf3b081d1e156" , urls = [ "https://github.com/Unilang/BigIntegerCPP/archive/79e7b023bf5157c0f8d308d3791cf3b081d1e156.tar.gz", ], )
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') def big_integer_cpp(): http_archive(name='big_integer_cpp', build_file='//bazel/deps/big_integer_cpp:build.BUILD', sha256='1c9505406accb1216947ca60299ed70726eade7c9458c7c7f94ca2aea68d288e', strip_prefix='BigIntegerCPP-79e7b023bf5157c0f8d308d3791cf3b081d1e156', urls=['https://github.com/Unilang/BigIntegerCPP/archive/79e7b023bf5157c0f8d308d3791cf3b081d1e156.tar.gz'])
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'file', 'isolated', 'json', 'path', 'runtime', 'step', ] def RunSteps(api): # Inspect the associated isolated server. api.isolated.isolate_server # Prepare files. temp = api.path.mkdtemp('isolated-example') api.step('touch a', ['touch', temp.join('a')]) api.step('touch b', ['touch', temp.join('b')]) api.step('touch c', ['touch', temp.join('c')]) api.file.ensure_directory('mkdirs', temp.join('sub', 'dir')) api.step('touch d', ['touch', temp.join('sub', 'dir', 'd')]) # Create an isolated. isolated = api.isolated.isolated(temp) isolated.add_file(temp.join('a')) isolated.add_files([temp.join('b'), temp.join('c')]) isolated.add_dir(temp.join('sub', 'dir')) # Archive with the default isolate server. first_hash = isolated.archive('archiving') # Or try isolating the whole root directory - and doing so to another server. isolated = api.isolated.isolated(temp) isolated.add_dir(temp) second_hash = isolated.archive( 'archiving root directory elsewhere', isolate_server='other-isolateserver.appspot.com', ) # Download your isolated tree. first_output_dir = api.path['cleanup'].join('first') api.isolated.download( 'download with first hash', isolated_hash=first_hash, output_dir=first_output_dir, ) second_output_dir = api.path['cleanup'].join('second') api.isolated.download( 'download with second hash', isolated_hash=second_hash, output_dir=second_output_dir, isolate_server='other-isolateserver.appspot.com', ) with api.isolated.on_path(): api.step('some step with isolated in path', []) def GenTests(api): yield api.test('basic') yield api.test('experimental') + api.runtime(is_experimental=True) yield (api.test('override isolated') + api.isolated.properties(server='bananas.example.com', version='release') )
deps = ['file', 'isolated', 'json', 'path', 'runtime', 'step'] def run_steps(api): api.isolated.isolate_server temp = api.path.mkdtemp('isolated-example') api.step('touch a', ['touch', temp.join('a')]) api.step('touch b', ['touch', temp.join('b')]) api.step('touch c', ['touch', temp.join('c')]) api.file.ensure_directory('mkdirs', temp.join('sub', 'dir')) api.step('touch d', ['touch', temp.join('sub', 'dir', 'd')]) isolated = api.isolated.isolated(temp) isolated.add_file(temp.join('a')) isolated.add_files([temp.join('b'), temp.join('c')]) isolated.add_dir(temp.join('sub', 'dir')) first_hash = isolated.archive('archiving') isolated = api.isolated.isolated(temp) isolated.add_dir(temp) second_hash = isolated.archive('archiving root directory elsewhere', isolate_server='other-isolateserver.appspot.com') first_output_dir = api.path['cleanup'].join('first') api.isolated.download('download with first hash', isolated_hash=first_hash, output_dir=first_output_dir) second_output_dir = api.path['cleanup'].join('second') api.isolated.download('download with second hash', isolated_hash=second_hash, output_dir=second_output_dir, isolate_server='other-isolateserver.appspot.com') with api.isolated.on_path(): api.step('some step with isolated in path', []) def gen_tests(api): yield api.test('basic') yield (api.test('experimental') + api.runtime(is_experimental=True)) yield (api.test('override isolated') + api.isolated.properties(server='bananas.example.com', version='release'))
#!-*- encoding=utf-8 class MegNoriBaseException(Exception): pass class NoAvaliableVolumeError(MegNoriBaseException): pass class PutFileException(MegNoriBaseException): pass class GetFileException(MegNoriBaseException): pass
class Megnoribaseexception(Exception): pass class Noavaliablevolumeerror(MegNoriBaseException): pass class Putfileexception(MegNoriBaseException): pass class Getfileexception(MegNoriBaseException): pass
{ 'target_defaults': { 'conditions': [ ['OS != "win"', { 'defines': [ '_GNU_SOURCE', ], 'conditions': [ ['OS=="solaris"', { 'cflags': ['-pthreads'], 'ldlags': ['-pthreads'], }, { 'cflags': ['-pthread'], 'ldlags': ['-pthread'], }], ], }], ], }, "targets": [ { "target_name": "lring", "type": "<(library)", "include_dirs": [ "include/", "src/" ], "sources": [ "src/lring.c" ] }, { "target_name": "tests", "type": "executable", "dependencies": [ "lring" ], "include_dirs": [ "include/", "test/" ], "sources": [ "test/ring-test.c" ] } ] }
{'target_defaults': {'conditions': [['OS != "win"', {'defines': ['_GNU_SOURCE'], 'conditions': [['OS=="solaris"', {'cflags': ['-pthreads'], 'ldlags': ['-pthreads']}, {'cflags': ['-pthread'], 'ldlags': ['-pthread']}]]}]]}, 'targets': [{'target_name': 'lring', 'type': '<(library)', 'include_dirs': ['include/', 'src/'], 'sources': ['src/lring.c']}, {'target_name': 'tests', 'type': 'executable', 'dependencies': ['lring'], 'include_dirs': ['include/', 'test/'], 'sources': ['test/ring-test.c']}]}
# # PySNMP MIB module CHEETAH-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHEETAH-TRAP-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:48:47 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) # slbCurCfgRealServerIndex, fltCurCfgIndx, slbCurCfgVirtServiceRealPort, fltCurCfgPortIndx, slbCurCfgRealServerName, slbCurCfgRealServerIpAddr, fltCurCfgSrcIp = mibBuilder.importSymbols("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex", "fltCurCfgIndx", "slbCurCfgVirtServiceRealPort", "fltCurCfgPortIndx", "slbCurCfgRealServerName", "slbCurCfgRealServerIpAddr", "fltCurCfgSrcIp") ipCurCfgGwAddr, vrrpCurCfgVirtRtrAddr, vrrpCurCfgVirtRtrIndx, vrrpCurCfgIfPasswd, ipCurCfgGwIndex, vrrpCurCfgIfIndx = mibBuilder.importSymbols("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr", "vrrpCurCfgVirtRtrAddr", "vrrpCurCfgVirtRtrIndx", "vrrpCurCfgIfPasswd", "ipCurCfgGwIndex", "vrrpCurCfgIfIndx") aws_switch, = mibBuilder.importSymbols("ALTEON-ROOT-MIB", "aws-switch") OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") sysContact, sysName, sysLocation = mibBuilder.importSymbols("SNMPv2-MIB", "sysContact", "sysName", "sysLocation") ObjectIdentity, Counter32, TimeTicks, MibIdentifier, ModuleIdentity, Gauge32, Integer32, IpAddress, NotificationType, iso, NotificationType, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter32", "TimeTicks", "MibIdentifier", "ModuleIdentity", "Gauge32", "Integer32", "IpAddress", "NotificationType", "iso", "NotificationType", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") altTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7)) altSwTrapDisplayString = MibScalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1000), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: altSwTrapDisplayString.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapDisplayString.setDescription('Temporary string object used to store information being sent in an Alteon Switch trap.') altSwTrapRate = MibScalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1001), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: altSwTrapRate.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapRate.setDescription('Temporary integer object used to store information being sent in an Alteon Switch trap.') altSwPrimaryPowerSupplyFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,1)) if mibBuilder.loadTexts: altSwPrimaryPowerSupplyFailure.setDescription('A altSwPrimaryPowerSupplyFailure trap signifies that the primary power supply failed.') altSwDefGwUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,2)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwUp.setDescription('A altSwDefGwUp trap signifies that the default gateway is alive. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwDefGwDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,3)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwDown.setDescription('A altSwDefGwDown trap signifies that the default gateway is down. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwDefGwInService = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,4)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwInService.setDescription('A altSwDefGwEnabled trap signifies that the default gateway is up and in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwDefGwNotInService = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,5)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwNotInService.setDescription('A altSwDefGwDisabled trap signifies that the default gateway is alive but not in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwSlbRealServerUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,6)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerUp.setDescription('A altSwSlbRealServerUp trap signifies that the real server (which had gone down )is back up and operational now. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbRealServerDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,7)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerDown.setDescription('A altSwSlbRealServerDown trap signifies that the real server has gone down and is out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbRealServerMaxConnReached = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,8)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerMaxConnReached.setDescription('A altSwSlbRealServerMaxConnReached trap signifies that the real server has reached maximum connections. The Real server will not be sent any more traffic from the switch until the number of connections drops below the maximum. If a backup server has been specified, it will be used to service additional requests, which is referred to as an Overflow server. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerAct = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,9)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerAct.setDescription('A altSwSlbBkupRealServerAct trap signifies that this backup real server has been activated because the Real server that it backs up went down.One might expect that a altSwSlbRealServerDown trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerDeact = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,10)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeact.setDescription('A altSwSlbBkupRealServerDeact trap signifies that the backup real server is deactivated because the primary real server has become available.One might expect that a altSwSlbRealServerUp trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerActOverflow = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,11)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerActOverflow.setDescription('A altSwSlbBkupRealServerActOverflow trap signifies that the backup real server is activated because the primary real server has reached the maximum allowed connections and is considered to be is in the Overflow state.One would expect an altSwSlbRealServerMaxConnReached trap from the Real server that just entered Overflow would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerDeactOverflow = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,12)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeactOverflow.setDescription('A altSwSlbBkupRealServerDeactOverflow trap signifies that the backup real server is deactivated because the primary real server is no longer in Overflow. The number of connections to the real server has fallen below the maximum allowed. The backup/overflow server is no longer needed. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwfltFilterFired = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,13)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "fltCurCfgIndx"), ("ALTEON-CHEETAH-LAYER4-MIB", "fltCurCfgPortIndx"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwfltFilterFired.setDescription('A altSwfltFilterFired trap signifies that the packet received on a switch port matches the filter rule. on a switch port matches the filter rule. fltCurCfgIndx is the affected filter index, referenced in fltCurCfgTable. The range is from 1 to fltCfgTableMaxSize. fltCurCfgPortIndx is the affected port index, referenced in fltCurCfgPortTable. The range is from 1 to agPortTableMaxEnt.') altSwSlbRealServerServiceUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,14)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgVirtServiceRealPort"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerServiceUp.setDescription('A altSwSlbRealServerServiceUp trap signifies that the service port of the real server is up and operational. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') altSwSlbRealServerServiceDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,15)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgVirtServiceRealPort"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerServiceDown.setDescription('A altSwSlbRealServerServiceDown trap signifies that the service port of the real server is down and out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') altSwVrrpNewMaster = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,16)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrIndx"), ("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwVrrpNewMaster.setDescription("The altSwVrrpNewMaster trap indicates that the sending agent has transitioned to 'Master' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") altSwVrrpNewBackup = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,17)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrIndx"), ("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwVrrpNewBackup.setDescription("The altSwVrrpNewBackup trap indicates that the sending agent has transitioned to 'Backup' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") altSwVrrpAuthFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,18)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgIfIndx"), ("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgIfPasswd"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwVrrpAuthFailure.setDescription("A altSwVrrpAuthFailure trap signifies that a packet has been received from a router whose authentication key or authentication type conflicts with this router's authentication key or authentication type. Implementation of this trap is optional. vrrpCurCfgIfIndx is the VRRP interface index. This is equivalent to IfIndex in RFC 1213 mib. The range is from 1 to vrrpIfTableMaxSize. vrrpCurCfgIfPasswd is the password for authentication. It is a DisplayString of 0 to 7 characters.") altSwLoginFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,19)).setObjects(("CHEETAH-TRAP-MIB", "altSwTrapDisplayString"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwLoginFailure.setDescription('A altSwLoginFailure trap signifies that someone failed to enter a valid username/password combination. altSwTrapDisplayString specifies whether the login attempt was from CONSOLE or TELNET. In case of TELNET login it also specifies the IP address of the host from which the attempt was made.') altSwSlbSynAttack = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,20)).setObjects(("CHEETAH-TRAP-MIB", "altSwTrapRate"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbSynAttack.setDescription('A altSwSlbSynAttack trap signifies that a SYN attack has been detected. altSwTrapRate specifies the number of new half-open sessions per second.') altSwTcpHoldDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,21)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "fltCurCfgSrcIp"), ("CHEETAH-TRAP-MIB", "altSwTrapRate"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwTcpHoldDown.setDescription('A altSwTcpHoldDown trap signifies that new TCP connection requests from a particular client will be blocked for a pre-determined amount of time since the rate of new TCP connections from that client has reached a pre-determined threshold. The fltCurCfgSrcIp is the client source IP address for which new TCP connection requests will be blocked. The altSwTrapRate specifies the amount of time in minutes that the particular client will be blocked.') altSwTempExceedThreshold = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,22)).setObjects(("CHEETAH-TRAP-MIB", "altSwTrapDisplayString"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwTempExceedThreshold.setDescription('A altSwTempExceedThreshold trap signifies that the switch temperature has exceeded maximum safety limits. altSwTrapDisplayString specifies the sensor, the current sensor temperature and the threshold for the particular sensor.') mibBuilder.exportSymbols("CHEETAH-TRAP-MIB", altSwTrapDisplayString=altSwTrapDisplayString, altSwSlbRealServerMaxConnReached=altSwSlbRealServerMaxConnReached, altSwVrrpNewBackup=altSwVrrpNewBackup, altTraps=altTraps, altSwSlbRealServerServiceUp=altSwSlbRealServerServiceUp, altSwPrimaryPowerSupplyFailure=altSwPrimaryPowerSupplyFailure, altSwTrapRate=altSwTrapRate, altSwVrrpNewMaster=altSwVrrpNewMaster, altSwSlbBkupRealServerActOverflow=altSwSlbBkupRealServerActOverflow, altSwDefGwDown=altSwDefGwDown, altSwSlbRealServerUp=altSwSlbRealServerUp, altSwfltFilterFired=altSwfltFilterFired, altSwLoginFailure=altSwLoginFailure, altSwSlbRealServerServiceDown=altSwSlbRealServerServiceDown, altSwSlbBkupRealServerDeact=altSwSlbBkupRealServerDeact, altSwSlbBkupRealServerAct=altSwSlbBkupRealServerAct, altSwTcpHoldDown=altSwTcpHoldDown, altSwSlbSynAttack=altSwSlbSynAttack, altSwTempExceedThreshold=altSwTempExceedThreshold, altSwVrrpAuthFailure=altSwVrrpAuthFailure, altSwDefGwNotInService=altSwDefGwNotInService, altSwSlbBkupRealServerDeactOverflow=altSwSlbBkupRealServerDeactOverflow, altSwDefGwUp=altSwDefGwUp, altSwSlbRealServerDown=altSwSlbRealServerDown, altSwDefGwInService=altSwDefGwInService)
(slb_cur_cfg_real_server_index, flt_cur_cfg_indx, slb_cur_cfg_virt_service_real_port, flt_cur_cfg_port_indx, slb_cur_cfg_real_server_name, slb_cur_cfg_real_server_ip_addr, flt_cur_cfg_src_ip) = mibBuilder.importSymbols('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex', 'fltCurCfgIndx', 'slbCurCfgVirtServiceRealPort', 'fltCurCfgPortIndx', 'slbCurCfgRealServerName', 'slbCurCfgRealServerIpAddr', 'fltCurCfgSrcIp') (ip_cur_cfg_gw_addr, vrrp_cur_cfg_virt_rtr_addr, vrrp_cur_cfg_virt_rtr_indx, vrrp_cur_cfg_if_passwd, ip_cur_cfg_gw_index, vrrp_cur_cfg_if_indx) = mibBuilder.importSymbols('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr', 'vrrpCurCfgVirtRtrAddr', 'vrrpCurCfgVirtRtrIndx', 'vrrpCurCfgIfPasswd', 'ipCurCfgGwIndex', 'vrrpCurCfgIfIndx') (aws_switch,) = mibBuilder.importSymbols('ALTEON-ROOT-MIB', 'aws-switch') (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_range_constraint, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (sys_contact, sys_name, sys_location) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysContact', 'sysName', 'sysLocation') (object_identity, counter32, time_ticks, mib_identifier, module_identity, gauge32, integer32, ip_address, notification_type, iso, notification_type, unsigned32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter32', 'TimeTicks', 'MibIdentifier', 'ModuleIdentity', 'Gauge32', 'Integer32', 'IpAddress', 'NotificationType', 'iso', 'NotificationType', 'Unsigned32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') alt_traps = mib_identifier((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7)) alt_sw_trap_display_string = mib_scalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1000), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: altSwTrapDisplayString.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapDisplayString.setDescription('Temporary string object used to store information being sent in an Alteon Switch trap.') alt_sw_trap_rate = mib_scalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1001), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: altSwTrapRate.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapRate.setDescription('Temporary integer object used to store information being sent in an Alteon Switch trap.') alt_sw_primary_power_supply_failure = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 1)) if mibBuilder.loadTexts: altSwPrimaryPowerSupplyFailure.setDescription('A altSwPrimaryPowerSupplyFailure trap signifies that the primary power supply failed.') alt_sw_def_gw_up = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 2)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwUp.setDescription('A altSwDefGwUp trap signifies that the default gateway is alive. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_def_gw_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 3)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwDown.setDescription('A altSwDefGwDown trap signifies that the default gateway is down. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_def_gw_in_service = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 4)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwInService.setDescription('A altSwDefGwEnabled trap signifies that the default gateway is up and in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_def_gw_not_in_service = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 5)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwNotInService.setDescription('A altSwDefGwDisabled trap signifies that the default gateway is alive but not in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_slb_real_server_up = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 6)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerUp.setDescription('A altSwSlbRealServerUp trap signifies that the real server (which had gone down )is back up and operational now. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_real_server_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 7)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerDown.setDescription('A altSwSlbRealServerDown trap signifies that the real server has gone down and is out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_real_server_max_conn_reached = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 8)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerMaxConnReached.setDescription('A altSwSlbRealServerMaxConnReached trap signifies that the real server has reached maximum connections. The Real server will not be sent any more traffic from the switch until the number of connections drops below the maximum. If a backup server has been specified, it will be used to service additional requests, which is referred to as an Overflow server. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_act = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 9)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerAct.setDescription('A altSwSlbBkupRealServerAct trap signifies that this backup real server has been activated because the Real server that it backs up went down.One might expect that a altSwSlbRealServerDown trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_deact = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 10)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeact.setDescription('A altSwSlbBkupRealServerDeact trap signifies that the backup real server is deactivated because the primary real server has become available.One might expect that a altSwSlbRealServerUp trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_act_overflow = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 11)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerActOverflow.setDescription('A altSwSlbBkupRealServerActOverflow trap signifies that the backup real server is activated because the primary real server has reached the maximum allowed connections and is considered to be is in the Overflow state.One would expect an altSwSlbRealServerMaxConnReached trap from the Real server that just entered Overflow would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_deact_overflow = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 12)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeactOverflow.setDescription('A altSwSlbBkupRealServerDeactOverflow trap signifies that the backup real server is deactivated because the primary real server is no longer in Overflow. The number of connections to the real server has fallen below the maximum allowed. The backup/overflow server is no longer needed. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_swflt_filter_fired = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 13)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'fltCurCfgIndx'), ('ALTEON-CHEETAH-LAYER4-MIB', 'fltCurCfgPortIndx'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwfltFilterFired.setDescription('A altSwfltFilterFired trap signifies that the packet received on a switch port matches the filter rule. on a switch port matches the filter rule. fltCurCfgIndx is the affected filter index, referenced in fltCurCfgTable. The range is from 1 to fltCfgTableMaxSize. fltCurCfgPortIndx is the affected port index, referenced in fltCurCfgPortTable. The range is from 1 to agPortTableMaxEnt.') alt_sw_slb_real_server_service_up = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 14)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgVirtServiceRealPort'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerServiceUp.setDescription('A altSwSlbRealServerServiceUp trap signifies that the service port of the real server is up and operational. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') alt_sw_slb_real_server_service_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 15)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgVirtServiceRealPort'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerServiceDown.setDescription('A altSwSlbRealServerServiceDown trap signifies that the service port of the real server is down and out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') alt_sw_vrrp_new_master = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 16)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrIndx'), ('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwVrrpNewMaster.setDescription("The altSwVrrpNewMaster trap indicates that the sending agent has transitioned to 'Master' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") alt_sw_vrrp_new_backup = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 17)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrIndx'), ('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwVrrpNewBackup.setDescription("The altSwVrrpNewBackup trap indicates that the sending agent has transitioned to 'Backup' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") alt_sw_vrrp_auth_failure = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 18)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgIfIndx'), ('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgIfPasswd'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwVrrpAuthFailure.setDescription("A altSwVrrpAuthFailure trap signifies that a packet has been received from a router whose authentication key or authentication type conflicts with this router's authentication key or authentication type. Implementation of this trap is optional. vrrpCurCfgIfIndx is the VRRP interface index. This is equivalent to IfIndex in RFC 1213 mib. The range is from 1 to vrrpIfTableMaxSize. vrrpCurCfgIfPasswd is the password for authentication. It is a DisplayString of 0 to 7 characters.") alt_sw_login_failure = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 19)).setObjects(('CHEETAH-TRAP-MIB', 'altSwTrapDisplayString'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwLoginFailure.setDescription('A altSwLoginFailure trap signifies that someone failed to enter a valid username/password combination. altSwTrapDisplayString specifies whether the login attempt was from CONSOLE or TELNET. In case of TELNET login it also specifies the IP address of the host from which the attempt was made.') alt_sw_slb_syn_attack = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 20)).setObjects(('CHEETAH-TRAP-MIB', 'altSwTrapRate'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbSynAttack.setDescription('A altSwSlbSynAttack trap signifies that a SYN attack has been detected. altSwTrapRate specifies the number of new half-open sessions per second.') alt_sw_tcp_hold_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 21)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'fltCurCfgSrcIp'), ('CHEETAH-TRAP-MIB', 'altSwTrapRate'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwTcpHoldDown.setDescription('A altSwTcpHoldDown trap signifies that new TCP connection requests from a particular client will be blocked for a pre-determined amount of time since the rate of new TCP connections from that client has reached a pre-determined threshold. The fltCurCfgSrcIp is the client source IP address for which new TCP connection requests will be blocked. The altSwTrapRate specifies the amount of time in minutes that the particular client will be blocked.') alt_sw_temp_exceed_threshold = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 22)).setObjects(('CHEETAH-TRAP-MIB', 'altSwTrapDisplayString'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwTempExceedThreshold.setDescription('A altSwTempExceedThreshold trap signifies that the switch temperature has exceeded maximum safety limits. altSwTrapDisplayString specifies the sensor, the current sensor temperature and the threshold for the particular sensor.') mibBuilder.exportSymbols('CHEETAH-TRAP-MIB', altSwTrapDisplayString=altSwTrapDisplayString, altSwSlbRealServerMaxConnReached=altSwSlbRealServerMaxConnReached, altSwVrrpNewBackup=altSwVrrpNewBackup, altTraps=altTraps, altSwSlbRealServerServiceUp=altSwSlbRealServerServiceUp, altSwPrimaryPowerSupplyFailure=altSwPrimaryPowerSupplyFailure, altSwTrapRate=altSwTrapRate, altSwVrrpNewMaster=altSwVrrpNewMaster, altSwSlbBkupRealServerActOverflow=altSwSlbBkupRealServerActOverflow, altSwDefGwDown=altSwDefGwDown, altSwSlbRealServerUp=altSwSlbRealServerUp, altSwfltFilterFired=altSwfltFilterFired, altSwLoginFailure=altSwLoginFailure, altSwSlbRealServerServiceDown=altSwSlbRealServerServiceDown, altSwSlbBkupRealServerDeact=altSwSlbBkupRealServerDeact, altSwSlbBkupRealServerAct=altSwSlbBkupRealServerAct, altSwTcpHoldDown=altSwTcpHoldDown, altSwSlbSynAttack=altSwSlbSynAttack, altSwTempExceedThreshold=altSwTempExceedThreshold, altSwVrrpAuthFailure=altSwVrrpAuthFailure, altSwDefGwNotInService=altSwDefGwNotInService, altSwSlbBkupRealServerDeactOverflow=altSwSlbBkupRealServerDeactOverflow, altSwDefGwUp=altSwDefGwUp, altSwSlbRealServerDown=altSwSlbRealServerDown, altSwDefGwInService=altSwDefGwInService)
def imagecreate(): image = open("theimage.ppm", "w") image.write("P3\n") image.write("500 500\n") image.write("255\n\n") for i in range(500): curline = "" for j in range(500): if i > 250: i = 250 - (i % 250) if j > 250: j = 250 - (j % 250) if i == 0 or j == 0: r = 0 g = 0 else: r = 255 % (i + j) g = 255 % (i + j) b = (i + j) % 255 curline += "%d %d %d "%(r,g,b) image.write(curline+"\n") image.close() imagecreate()
def imagecreate(): image = open('theimage.ppm', 'w') image.write('P3\n') image.write('500 500\n') image.write('255\n\n') for i in range(500): curline = '' for j in range(500): if i > 250: i = 250 - i % 250 if j > 250: j = 250 - j % 250 if i == 0 or j == 0: r = 0 g = 0 else: r = 255 % (i + j) g = 255 % (i + j) b = (i + j) % 255 curline += '%d %d %d ' % (r, g, b) image.write(curline + '\n') image.close() imagecreate()
def calculate_pi(n_terms: int) -> float: numerator: float = 4.0 denominator: float = 1.0 operation: float = 1.0 pi: float = 0.0 for _ in range(n_terms): pi += operation *(numerator/denominator) denominator += 2.0 operation *= -1.0 return pi if __name__ == "__main__": print(calculate_pi(100000))
def calculate_pi(n_terms: int) -> float: numerator: float = 4.0 denominator: float = 1.0 operation: float = 1.0 pi: float = 0.0 for _ in range(n_terms): pi += operation * (numerator / denominator) denominator += 2.0 operation *= -1.0 return pi if __name__ == '__main__': print(calculate_pi(100000))
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def addTwoNumbers(self, l1, l2): # create a Answer node and mark it's start node StartAns = Answer = ListNode(0) carry = 0 # keep counting until one of nodes is end while l1 and l2: carry, sumval = divmod( l1.val+l2.val+carry, 10 ) Answer.next = ListNode( sumval ) # to next node l1 = l1.next l2 = l2.next Answer = Answer.next # if l1 or l2 still have next node tmplist = l1 or l2 while tmplist: carry, sumval = divmod( tmplist.val+carry, 10 ) Answer.next = ListNode( sumval ) # to next node tmplist = tmplist.next Answer = Answer.next if carry != 0: Answer.next = ListNode(carry) #return without the first one node return StartAns.next
class Solution: def add_two_numbers(self, l1, l2): start_ans = answer = list_node(0) carry = 0 while l1 and l2: (carry, sumval) = divmod(l1.val + l2.val + carry, 10) Answer.next = list_node(sumval) l1 = l1.next l2 = l2.next answer = Answer.next tmplist = l1 or l2 while tmplist: (carry, sumval) = divmod(tmplist.val + carry, 10) Answer.next = list_node(sumval) tmplist = tmplist.next answer = Answer.next if carry != 0: Answer.next = list_node(carry) return StartAns.next
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None def deleteNode(head_ref, del_): if (head_ref == None or del_ == None): return if (head_ref == del_): head_ref = del_.next if (del_.next != None): del_.next.prev = del_.prev if (del_.prev != None): del_.prev.next = del_.next return head_ref def deleteNodeAtGivenPos(head_ref,n): if (head_ref == None or n <= 0): return current = head_ref i = 1 while ( current != None and i < n ): current = current.next i = i + 1 if (current == None): return deleteNode(head_ref, current) return head_ref def push(head_ref, new_data): new_node = Node(0) new_node.data = new_data new_node.prev = None new_node.next = (head_ref) if ((head_ref) != None): (head_ref).prev = new_node (head_ref) = new_node return head_ref def printList(head): while (head != None) : print( head.data ,end= " ") head = head.next head = None head = push(head, 6) head = push(head, 12) head = push(head, 4) head = push(head, 3) head = push(head, 8) print("Doubly linked list before deletion:") printList(head) n = 2 head = deleteNodeAtGivenPos(head, n) print("\nDoubly linked list after deletion:") printList(head)
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None def delete_node(head_ref, del_): if head_ref == None or del_ == None: return if head_ref == del_: head_ref = del_.next if del_.next != None: del_.next.prev = del_.prev if del_.prev != None: del_.prev.next = del_.next return head_ref def delete_node_at_given_pos(head_ref, n): if head_ref == None or n <= 0: return current = head_ref i = 1 while current != None and i < n: current = current.next i = i + 1 if current == None: return delete_node(head_ref, current) return head_ref def push(head_ref, new_data): new_node = node(0) new_node.data = new_data new_node.prev = None new_node.next = head_ref if head_ref != None: head_ref.prev = new_node head_ref = new_node return head_ref def print_list(head): while head != None: print(head.data, end=' ') head = head.next head = None head = push(head, 6) head = push(head, 12) head = push(head, 4) head = push(head, 3) head = push(head, 8) print('Doubly linked list before deletion:') print_list(head) n = 2 head = delete_node_at_given_pos(head, n) print('\nDoubly linked list after deletion:') print_list(head)
class Endereco: def __init__(self, rua="", bairro="", numero="", cidade="", estado="", cep=""): self.rua = rua self.bairro = bairro self.numero = numero self.cidade = cidade self.estado = estado self.cep = cep
class Endereco: def __init__(self, rua='', bairro='', numero='', cidade='', estado='', cep=''): self.rua = rua self.bairro = bairro self.numero = numero self.cidade = cidade self.estado = estado self.cep = cep
input = open('input', 'r').read().strip() input = [list(map(int, r)) for r in input.splitlines()] h, w = len(input), len(input[0]) def neighbours(x, y): return [(p, q) for u in range(-1, 2) for v in range(-1, 2) if 0 <= (p := x+u) < h and 0 <= (q := y+v) < w] def step(m): m = [[n+1 for n in r] for r in m] flashs, bag = set(), {(x, y) for x, r in enumerate(m) for y, n in enumerate(r) if n > 9} while bag: flashs |= bag expansion = set() for x, y in bag: for p, q in neighbours(x, y): if (p, q) in flashs: continue m[p][q] += 1 expansion.add((p, q)) bag = {(x, y) for x, y in expansion if m[x][y] > 9} for (x, y) in flashs: m[x][y] = 0 return len(flashs), m def p1(steps=100): s, m = 0, input for _ in range(steps): f, m = step(m) s += f return s def p2(): i, m = 0, input while 1: i += 1 f, m = step(m) if f == h*w: return i if (r1 := p1()) is not None: print(r1) if (r2 := p2()) is not None: print(r2)
input = open('input', 'r').read().strip() input = [list(map(int, r)) for r in input.splitlines()] (h, w) = (len(input), len(input[0])) def neighbours(x, y): return [(p, q) for u in range(-1, 2) for v in range(-1, 2) if 0 <= (p := (x + u)) < h and 0 <= (q := (y + v)) < w] def step(m): m = [[n + 1 for n in r] for r in m] (flashs, bag) = (set(), {(x, y) for (x, r) in enumerate(m) for (y, n) in enumerate(r) if n > 9}) while bag: flashs |= bag expansion = set() for (x, y) in bag: for (p, q) in neighbours(x, y): if (p, q) in flashs: continue m[p][q] += 1 expansion.add((p, q)) bag = {(x, y) for (x, y) in expansion if m[x][y] > 9} for (x, y) in flashs: m[x][y] = 0 return (len(flashs), m) def p1(steps=100): (s, m) = (0, input) for _ in range(steps): (f, m) = step(m) s += f return s def p2(): (i, m) = (0, input) while 1: i += 1 (f, m) = step(m) if f == h * w: return i if (r1 := p1()) is not None: print(r1) if (r2 := p2()) is not None: print(r2)
''' Automatically set `current_app` into context based on URL namespace. ''' def namespaced(request): ''' Set `current_app` to url namespace ''' request.current_app = request.resolver_match.namespace return {}
""" Automatically set `current_app` into context based on URL namespace. """ def namespaced(request): """ Set `current_app` to url namespace """ request.current_app = request.resolver_match.namespace return {}
#!/usr/bin/env python class AssembleError(Exception): def __init__(self, line_no, reason): message = '%d: %s' % (line_no, reason) super(AssembleError, self).__init__(message)
class Assembleerror(Exception): def __init__(self, line_no, reason): message = '%d: %s' % (line_no, reason) super(AssembleError, self).__init__(message)
#Boolean is a Data Type in Python which has 2 values - True and False print (bool(0)) #Python will return False print (bool(1)) #Python will return True print (bool(1.5)) #Pyton will return True print (bool(None)) #Python will return False print (bool('')) #Python will return False
print(bool(0)) print(bool(1)) print(bool(1.5)) print(bool(None)) print(bool(''))
n = int(input()) count = 0 for i in range(1, n + 1): if i < 100: count += 1 else: s = str(i) if int(s[1]) - int(s[0]) == int(s[2]) - int(s[1]): count += 1 print(count)
n = int(input()) count = 0 for i in range(1, n + 1): if i < 100: count += 1 else: s = str(i) if int(s[1]) - int(s[0]) == int(s[2]) - int(s[1]): count += 1 print(count)
l1 = list(range(10)) new_list = [x*x + 2*x + 1 for x in l1] print(l1) print(new_list)
l1 = list(range(10)) new_list = [x * x + 2 * x + 1 for x in l1] print(l1) print(new_list)
# md5 : 2cdb8e874f0950ea17a7135427b4f07d # sha1 : 73b16f132eb0247ea124b6243ca4109f179e564c # sha256 : 099b17422e1df0235e024ff5128a60571e72af451e1c59f4d61d3cf32c1539ed ord_names = { 3: b'mciExecute', 4: b'CloseDriver', 5: b'DefDriverProc', 6: b'DriverCallback', 7: b'DrvGetModuleHandle', 8: b'GetDriverModuleHandle', 9: b'NotifyCallbackData', 10: b'OpenDriver', 11: b'PlaySound', 12: b'PlaySoundA', 13: b'PlaySoundW', 14: b'SendDriverMessage', 15: b'WOW32DriverCallback', 16: b'WOW32ResolveMultiMediaHandle', 17: b'WOWAppExit', 18: b'aux32Message', 19: b'auxGetDevCapsA', 20: b'auxGetDevCapsW', 21: b'auxGetNumDevs', 22: b'auxGetVolume', 23: b'auxOutMessage', 24: b'auxSetVolume', 25: b'joy32Message', 26: b'joyConfigChanged', 27: b'joyGetDevCapsA', 28: b'joyGetDevCapsW', 29: b'joyGetNumDevs', 30: b'joyGetPos', 31: b'joyGetPosEx', 32: b'joyGetThreshold', 33: b'joyReleaseCapture', 34: b'joySetCapture', 35: b'joySetThreshold', 36: b'mci32Message', 37: b'mciDriverNotify', 38: b'mciDriverYield', 39: b'mciFreeCommandResource', 40: b'mciGetCreatorTask', 41: b'mciGetDeviceIDA', 42: b'mciGetDeviceIDFromElementIDA', 43: b'mciGetDeviceIDFromElementIDW', 44: b'mciGetDeviceIDW', 45: b'mciGetDriverData', 46: b'mciGetErrorStringA', 47: b'mciGetErrorStringW', 48: b'mciGetYieldProc', 49: b'mciLoadCommandResource', 50: b'mciSendCommandA', 51: b'mciSendCommandW', 52: b'mciSendStringA', 53: b'mciSendStringW', 54: b'mciSetDriverData', 55: b'mciSetYieldProc', 56: b'mid32Message', 57: b'midiConnect', 58: b'midiDisconnect', 59: b'midiInAddBuffer', 60: b'midiInClose', 61: b'midiInGetDevCapsA', 62: b'midiInGetDevCapsW', 63: b'midiInGetErrorTextA', 64: b'midiInGetErrorTextW', 65: b'midiInGetID', 66: b'midiInGetNumDevs', 67: b'midiInMessage', 68: b'midiInOpen', 69: b'midiInPrepareHeader', 70: b'midiInReset', 71: b'midiInStart', 72: b'midiInStop', 73: b'midiInUnprepareHeader', 74: b'midiOutCacheDrumPatches', 75: b'midiOutCachePatches', 76: b'midiOutClose', 77: b'midiOutGetDevCapsA', 78: b'midiOutGetDevCapsW', 79: b'midiOutGetErrorTextA', 80: b'midiOutGetErrorTextW', 81: b'midiOutGetID', 82: b'midiOutGetNumDevs', 83: b'midiOutGetVolume', 84: b'midiOutLongMsg', 85: b'midiOutMessage', 86: b'midiOutOpen', 87: b'midiOutPrepareHeader', 88: b'midiOutReset', 89: b'midiOutSetVolume', 90: b'midiOutShortMsg', 91: b'midiOutUnprepareHeader', 92: b'midiStreamClose', 93: b'midiStreamOpen', 94: b'midiStreamOut', 95: b'midiStreamPause', 96: b'midiStreamPosition', 97: b'midiStreamProperty', 98: b'midiStreamRestart', 99: b'midiStreamStop', 100: b'mixerClose', 101: b'mixerGetControlDetailsA', 102: b'mixerGetControlDetailsW', 103: b'mixerGetDevCapsA', 104: b'mixerGetDevCapsW', 105: b'mixerGetID', 106: b'mixerGetLineControlsA', 107: b'mixerGetLineControlsW', 108: b'mixerGetLineInfoA', 109: b'mixerGetLineInfoW', 110: b'mixerGetNumDevs', 111: b'mixerMessage', 112: b'mixerOpen', 113: b'mixerSetControlDetails', 114: b'mmDrvInstall', 115: b'mmGetCurrentTask', 116: b'mmTaskBlock', 117: b'mmTaskCreate', 118: b'mmTaskSignal', 119: b'mmTaskYield', 120: b'mmioAdvance', 121: b'mmioAscend', 122: b'mmioClose', 123: b'mmioCreateChunk', 124: b'mmioDescend', 125: b'mmioFlush', 126: b'mmioGetInfo', 127: b'mmioInstallIOProcA', 128: b'mmioInstallIOProcW', 129: b'mmioOpenA', 130: b'mmioOpenW', 131: b'mmioRead', 132: b'mmioRenameA', 133: b'mmioRenameW', 134: b'mmioSeek', 135: b'mmioSendMessage', 136: b'mmioSetBuffer', 137: b'mmioSetInfo', 138: b'mmioStringToFOURCCA', 139: b'mmioStringToFOURCCW', 140: b'mmioWrite', 141: b'mmsystemGetVersion', 142: b'mod32Message', 143: b'mxd32Message', 144: b'sndPlaySoundA', 145: b'sndPlaySoundW', 146: b'tid32Message', 147: b'timeBeginPeriod', 148: b'timeEndPeriod', 149: b'timeGetDevCaps', 150: b'timeGetSystemTime', 151: b'timeGetTime', 152: b'timeKillEvent', 153: b'timeSetEvent', 154: b'waveInAddBuffer', 155: b'waveInClose', 156: b'waveInGetDevCapsA', 157: b'waveInGetDevCapsW', 158: b'waveInGetErrorTextA', 159: b'waveInGetErrorTextW', 160: b'waveInGetID', 161: b'waveInGetNumDevs', 162: b'waveInGetPosition', 163: b'waveInMessage', 164: b'waveInOpen', 165: b'waveInPrepareHeader', 166: b'waveInReset', 167: b'waveInStart', 168: b'waveInStop', 169: b'waveInUnprepareHeader', 170: b'waveOutBreakLoop', 171: b'waveOutClose', 172: b'waveOutGetDevCapsA', 173: b'waveOutGetDevCapsW', 174: b'waveOutGetErrorTextA', 175: b'waveOutGetErrorTextW', 176: b'waveOutGetID', 177: b'waveOutGetNumDevs', 178: b'waveOutGetPitch', 179: b'waveOutGetPlaybackRate', 180: b'waveOutGetPosition', 181: b'waveOutGetVolume', 182: b'waveOutMessage', 183: b'waveOutOpen', 184: b'waveOutPause', 185: b'waveOutPrepareHeader', 186: b'waveOutReset', 187: b'waveOutRestart', 188: b'waveOutSetPitch', 189: b'waveOutSetPlaybackRate', 190: b'waveOutSetVolume', 191: b'waveOutUnprepareHeader', 192: b'waveOutWrite', 193: b'wid32Message', 194: b'wod32Message', }
ord_names = {3: b'mciExecute', 4: b'CloseDriver', 5: b'DefDriverProc', 6: b'DriverCallback', 7: b'DrvGetModuleHandle', 8: b'GetDriverModuleHandle', 9: b'NotifyCallbackData', 10: b'OpenDriver', 11: b'PlaySound', 12: b'PlaySoundA', 13: b'PlaySoundW', 14: b'SendDriverMessage', 15: b'WOW32DriverCallback', 16: b'WOW32ResolveMultiMediaHandle', 17: b'WOWAppExit', 18: b'aux32Message', 19: b'auxGetDevCapsA', 20: b'auxGetDevCapsW', 21: b'auxGetNumDevs', 22: b'auxGetVolume', 23: b'auxOutMessage', 24: b'auxSetVolume', 25: b'joy32Message', 26: b'joyConfigChanged', 27: b'joyGetDevCapsA', 28: b'joyGetDevCapsW', 29: b'joyGetNumDevs', 30: b'joyGetPos', 31: b'joyGetPosEx', 32: b'joyGetThreshold', 33: b'joyReleaseCapture', 34: b'joySetCapture', 35: b'joySetThreshold', 36: b'mci32Message', 37: b'mciDriverNotify', 38: b'mciDriverYield', 39: b'mciFreeCommandResource', 40: b'mciGetCreatorTask', 41: b'mciGetDeviceIDA', 42: b'mciGetDeviceIDFromElementIDA', 43: b'mciGetDeviceIDFromElementIDW', 44: b'mciGetDeviceIDW', 45: b'mciGetDriverData', 46: b'mciGetErrorStringA', 47: b'mciGetErrorStringW', 48: b'mciGetYieldProc', 49: b'mciLoadCommandResource', 50: b'mciSendCommandA', 51: b'mciSendCommandW', 52: b'mciSendStringA', 53: b'mciSendStringW', 54: b'mciSetDriverData', 55: b'mciSetYieldProc', 56: b'mid32Message', 57: b'midiConnect', 58: b'midiDisconnect', 59: b'midiInAddBuffer', 60: b'midiInClose', 61: b'midiInGetDevCapsA', 62: b'midiInGetDevCapsW', 63: b'midiInGetErrorTextA', 64: b'midiInGetErrorTextW', 65: b'midiInGetID', 66: b'midiInGetNumDevs', 67: b'midiInMessage', 68: b'midiInOpen', 69: b'midiInPrepareHeader', 70: b'midiInReset', 71: b'midiInStart', 72: b'midiInStop', 73: b'midiInUnprepareHeader', 74: b'midiOutCacheDrumPatches', 75: b'midiOutCachePatches', 76: b'midiOutClose', 77: b'midiOutGetDevCapsA', 78: b'midiOutGetDevCapsW', 79: b'midiOutGetErrorTextA', 80: b'midiOutGetErrorTextW', 81: b'midiOutGetID', 82: b'midiOutGetNumDevs', 83: b'midiOutGetVolume', 84: b'midiOutLongMsg', 85: b'midiOutMessage', 86: b'midiOutOpen', 87: b'midiOutPrepareHeader', 88: b'midiOutReset', 89: b'midiOutSetVolume', 90: b'midiOutShortMsg', 91: b'midiOutUnprepareHeader', 92: b'midiStreamClose', 93: b'midiStreamOpen', 94: b'midiStreamOut', 95: b'midiStreamPause', 96: b'midiStreamPosition', 97: b'midiStreamProperty', 98: b'midiStreamRestart', 99: b'midiStreamStop', 100: b'mixerClose', 101: b'mixerGetControlDetailsA', 102: b'mixerGetControlDetailsW', 103: b'mixerGetDevCapsA', 104: b'mixerGetDevCapsW', 105: b'mixerGetID', 106: b'mixerGetLineControlsA', 107: b'mixerGetLineControlsW', 108: b'mixerGetLineInfoA', 109: b'mixerGetLineInfoW', 110: b'mixerGetNumDevs', 111: b'mixerMessage', 112: b'mixerOpen', 113: b'mixerSetControlDetails', 114: b'mmDrvInstall', 115: b'mmGetCurrentTask', 116: b'mmTaskBlock', 117: b'mmTaskCreate', 118: b'mmTaskSignal', 119: b'mmTaskYield', 120: b'mmioAdvance', 121: b'mmioAscend', 122: b'mmioClose', 123: b'mmioCreateChunk', 124: b'mmioDescend', 125: b'mmioFlush', 126: b'mmioGetInfo', 127: b'mmioInstallIOProcA', 128: b'mmioInstallIOProcW', 129: b'mmioOpenA', 130: b'mmioOpenW', 131: b'mmioRead', 132: b'mmioRenameA', 133: b'mmioRenameW', 134: b'mmioSeek', 135: b'mmioSendMessage', 136: b'mmioSetBuffer', 137: b'mmioSetInfo', 138: b'mmioStringToFOURCCA', 139: b'mmioStringToFOURCCW', 140: b'mmioWrite', 141: b'mmsystemGetVersion', 142: b'mod32Message', 143: b'mxd32Message', 144: b'sndPlaySoundA', 145: b'sndPlaySoundW', 146: b'tid32Message', 147: b'timeBeginPeriod', 148: b'timeEndPeriod', 149: b'timeGetDevCaps', 150: b'timeGetSystemTime', 151: b'timeGetTime', 152: b'timeKillEvent', 153: b'timeSetEvent', 154: b'waveInAddBuffer', 155: b'waveInClose', 156: b'waveInGetDevCapsA', 157: b'waveInGetDevCapsW', 158: b'waveInGetErrorTextA', 159: b'waveInGetErrorTextW', 160: b'waveInGetID', 161: b'waveInGetNumDevs', 162: b'waveInGetPosition', 163: b'waveInMessage', 164: b'waveInOpen', 165: b'waveInPrepareHeader', 166: b'waveInReset', 167: b'waveInStart', 168: b'waveInStop', 169: b'waveInUnprepareHeader', 170: b'waveOutBreakLoop', 171: b'waveOutClose', 172: b'waveOutGetDevCapsA', 173: b'waveOutGetDevCapsW', 174: b'waveOutGetErrorTextA', 175: b'waveOutGetErrorTextW', 176: b'waveOutGetID', 177: b'waveOutGetNumDevs', 178: b'waveOutGetPitch', 179: b'waveOutGetPlaybackRate', 180: b'waveOutGetPosition', 181: b'waveOutGetVolume', 182: b'waveOutMessage', 183: b'waveOutOpen', 184: b'waveOutPause', 185: b'waveOutPrepareHeader', 186: b'waveOutReset', 187: b'waveOutRestart', 188: b'waveOutSetPitch', 189: b'waveOutSetPlaybackRate', 190: b'waveOutSetVolume', 191: b'waveOutUnprepareHeader', 192: b'waveOutWrite', 193: b'wid32Message', 194: b'wod32Message'}
dados = int(input()) pontos = input() pontos = pontos.split(' ') luisa = 0 antonio = 0 pessoa = 0 for vez in pontos: pessoa += 1 if pessoa == 3: pessoa = 1 if pessoa == 1: luisa += int(vez) elif pessoa == 2: antonio += int(vez) if int(vez) == 6 and pessoa == 1: pessoa = 0 elif int(vez) == 6 and pessoa == 2: pessoa = 1 elif pessoa == 2: pessoa = 0 if luisa > antonio: print('LUISA {}'.format(luisa)) elif antonio > luisa: print('ANTONIO {}'.format(antonio)) else: print('EMPATE {}'.format(antonio))
dados = int(input()) pontos = input() pontos = pontos.split(' ') luisa = 0 antonio = 0 pessoa = 0 for vez in pontos: pessoa += 1 if pessoa == 3: pessoa = 1 if pessoa == 1: luisa += int(vez) elif pessoa == 2: antonio += int(vez) if int(vez) == 6 and pessoa == 1: pessoa = 0 elif int(vez) == 6 and pessoa == 2: pessoa = 1 elif pessoa == 2: pessoa = 0 if luisa > antonio: print('LUISA {}'.format(luisa)) elif antonio > luisa: print('ANTONIO {}'.format(antonio)) else: print('EMPATE {}'.format(antonio))
def getCountLetterString(input): # get range space_index = input.find(" ") range = input[0:space_index] hyphen_index = input.find("-") start = range[0:hyphen_index] end = range[hyphen_index + 1:] # get letter colon_index = input.find(":") letter = input[space_index + 1:colon_index] # get password string password = input[colon_index + 1:] # Debug #print("Range: {} to {}; Letter: {}; Password: {}".format(start, end, letter, password)) return [int(start), int(end), letter, password] lines = [] with open('./input') as f: lines = f.read().splitlines() valid_pass_count = 0 for input in lines: count_letter_string = getCountLetterString(input) start = count_letter_string[0] end = count_letter_string[1] letter = count_letter_string[2] password = count_letter_string[3] first_letter = password[start] second_letter = password[end] if first_letter is letter and second_letter is not letter: valid_pass_count += 1 elif first_letter is not letter and second_letter is letter: valid_pass_count += 1 print("There are {} valid passwords".format(valid_pass_count))
def get_count_letter_string(input): space_index = input.find(' ') range = input[0:space_index] hyphen_index = input.find('-') start = range[0:hyphen_index] end = range[hyphen_index + 1:] colon_index = input.find(':') letter = input[space_index + 1:colon_index] password = input[colon_index + 1:] return [int(start), int(end), letter, password] lines = [] with open('./input') as f: lines = f.read().splitlines() valid_pass_count = 0 for input in lines: count_letter_string = get_count_letter_string(input) start = count_letter_string[0] end = count_letter_string[1] letter = count_letter_string[2] password = count_letter_string[3] first_letter = password[start] second_letter = password[end] if first_letter is letter and second_letter is not letter: valid_pass_count += 1 elif first_letter is not letter and second_letter is letter: valid_pass_count += 1 print('There are {} valid passwords'.format(valid_pass_count))
_base_ = [ '../_base_/models/retinanet_r50_fpn.py', '../_base_/datasets/own_data.py', '../_base_/schedules/schedule_1x_own_data.py', '../_base_/default_runtime.py' ] # optimizer optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001) load_from = 'https://download.openmmlab.com/mmdetection/v2.0/retinanet/retinanet_r50_fpn_1x_coco/retinanet_r50_fpn_1x_coco_20200130-c2398f9e.pth'
_base_ = ['../_base_/models/retinanet_r50_fpn.py', '../_base_/datasets/own_data.py', '../_base_/schedules/schedule_1x_own_data.py', '../_base_/default_runtime.py'] optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001) load_from = 'https://download.openmmlab.com/mmdetection/v2.0/retinanet/retinanet_r50_fpn_1x_coco/retinanet_r50_fpn_1x_coco_20200130-c2398f9e.pth'
# https://leetcode.com/problems/number-of-digit-one/ class Solution: def countDigitOne(self, n: int) -> int: result = threshold = 0 divisor = limit = 10 while n // limit > 0: limit *= 10 while divisor <= limit: div, mod = divmod(n, divisor) result += div * (divisor // 10) if mod > threshold: result += min(mod - threshold, divisor // 10) divisor, threshold = 10 * divisor, 10 * threshold + 9 return result
class Solution: def count_digit_one(self, n: int) -> int: result = threshold = 0 divisor = limit = 10 while n // limit > 0: limit *= 10 while divisor <= limit: (div, mod) = divmod(n, divisor) result += div * (divisor // 10) if mod > threshold: result += min(mod - threshold, divisor // 10) (divisor, threshold) = (10 * divisor, 10 * threshold + 9) return result
height = float(input("enter your height in m: ")) weight = float(input("enter your weight in kg: ")) bmi = weight/(height**2) if bmi <= 18.5 : print(f"you bmi is {bmi}, you are underweight") elif bmi <=25 : print(f"you bmi is {bmi}you have a normal weight") elif bmi <= 30 : print(f"you bmi is {bmi}you are slightly overweight") elif bmi <= 35 : print(f"you bmi is {bmi}you are obese") else : print(f"you bmi is {bmi}you are clinically obese")
height = float(input('enter your height in m: ')) weight = float(input('enter your weight in kg: ')) bmi = weight / height ** 2 if bmi <= 18.5: print(f'you bmi is {bmi}, you are underweight') elif bmi <= 25: print(f'you bmi is {bmi}you have a normal weight') elif bmi <= 30: print(f'you bmi is {bmi}you are slightly overweight') elif bmi <= 35: print(f'you bmi is {bmi}you are obese') else: print(f'you bmi is {bmi}you are clinically obese')
n, k = map(int,input().split()) cnt = 0 prime = [True]*(n+1) for i in range(2,n+1,1): if prime[i] == False: continue for j in range(i,n+1,i): if prime[j] == True: prime[j] = False;cnt+=1 if cnt == k: print(j);break
(n, k) = map(int, input().split()) cnt = 0 prime = [True] * (n + 1) for i in range(2, n + 1, 1): if prime[i] == False: continue for j in range(i, n + 1, i): if prime[j] == True: prime[j] = False cnt += 1 if cnt == k: print(j) break
def sum_iter(numbers): total = 0 for n in numbers: total = total + n return total def sum_rec(numbers): if len(numbers) == 0: return 0 return numbers[0] + sum_rec(numbers[1:])
def sum_iter(numbers): total = 0 for n in numbers: total = total + n return total def sum_rec(numbers): if len(numbers) == 0: return 0 return numbers[0] + sum_rec(numbers[1:])
with open('data.txt') as f: data = f.readlines() data = [int(i.rstrip()) for i in data] incr = 0 for idx, val in enumerate(data): if idx == 0: print(data[0]) continue if data[idx-1] < data[idx]: incr += 1 print(f"{data[idx]} increase") else: print(f"{data[idx]}") print(f"Loop Total {incr}") asdf = sum([int(second > first) for first, second in zip(data, data[1:])]) print(f"Generator count = {asdf}")
with open('data.txt') as f: data = f.readlines() data = [int(i.rstrip()) for i in data] incr = 0 for (idx, val) in enumerate(data): if idx == 0: print(data[0]) continue if data[idx - 1] < data[idx]: incr += 1 print(f'{data[idx]} increase') else: print(f'{data[idx]}') print(f'Loop Total {incr}') asdf = sum([int(second > first) for (first, second) in zip(data, data[1:])]) print(f'Generator count = {asdf}')
#!/usr/bin/python3 def this_fails(): x = 1/0 try: this_fails() except ZeroDivisionError as err: print('Handling run-time error: ', err)
def this_fails(): x = 1 / 0 try: this_fails() except ZeroDivisionError as err: print('Handling run-time error: ', err)
class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def mergeTrees(self, t1, t2): def recurse(a1, a2): if a1 == None: return a2 if a2 == None: return a1 cur = TreeNode(a1.val + a2.val) cur.left = recurse(a1.left, a2.left) cur.right = recurse(a1.right, a2.right) return cur return recurse(t1, t2) z = Solution() a = TreeNode(1) b = TreeNode(3) c = TreeNode(2) d = TreeNode(5) a.left = b a.right = c b.left = d e = TreeNode(2) f = TreeNode(1) g = TreeNode(3) h = TreeNode(4) i = TreeNode(7) e.left = f e.right = g f.right = h g.right = i res = (z.mergeTrees(a, e)) print(res.val) print(res.left.val) print(res.right.val) print(res.left.left.val) print(res.left.right.val) print(res.right.right.val)
class Treenode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def merge_trees(self, t1, t2): def recurse(a1, a2): if a1 == None: return a2 if a2 == None: return a1 cur = tree_node(a1.val + a2.val) cur.left = recurse(a1.left, a2.left) cur.right = recurse(a1.right, a2.right) return cur return recurse(t1, t2) z = solution() a = tree_node(1) b = tree_node(3) c = tree_node(2) d = tree_node(5) a.left = b a.right = c b.left = d e = tree_node(2) f = tree_node(1) g = tree_node(3) h = tree_node(4) i = tree_node(7) e.left = f e.right = g f.right = h g.right = i res = z.mergeTrees(a, e) print(res.val) print(res.left.val) print(res.right.val) print(res.left.left.val) print(res.left.right.val) print(res.right.right.val)
# -*- coding: utf-8 -*- class Config(object): DEBUG = False TESTING = False DATABASE_URI = ('postgresql+psycopg2://' 'taxo:taxo@localhost:5432/taxonwiki') ASSETS_DEBUG = False ASSETS_CACHE = True ASSETS_MANIFEST = 'json' UGLIFYJS_EXTRA_ARGS = ['--compress', '--mangle'] COMPASS_CONFIG = { 'output_style': ':compressed' } SECRET_KEY = 'I am not safe please do not use me' class ProductionConfig(Config): SECRET_KEY = None class DevelopmentConfig(Config): DEBUG = True ASSETS_CACHE = False UGLIFYJS_EXTRA_ARGS = ['--compress'] COMPASS_CONFIG = { 'output_style': ':extended' } class TestingConfig(Config): TESTING = True
class Config(object): debug = False testing = False database_uri = 'postgresql+psycopg2://taxo:taxo@localhost:5432/taxonwiki' assets_debug = False assets_cache = True assets_manifest = 'json' uglifyjs_extra_args = ['--compress', '--mangle'] compass_config = {'output_style': ':compressed'} secret_key = 'I am not safe please do not use me' class Productionconfig(Config): secret_key = None class Developmentconfig(Config): debug = True assets_cache = False uglifyjs_extra_args = ['--compress'] compass_config = {'output_style': ':extended'} class Testingconfig(Config): testing = True
buttons_dict = {1: [r"$|a|$", "abs"], 2: [r"$\sqrt{a}$", "sqrt"], 3: [r"$\log$", "log"], 4: [r"$\ln$", "ln"], 5: [r"$a^b$", "power"], 6: [r"$()$", "brackets"], 7: [r"%", "percent"], 8: [r"$=$", "equals"], 9: [r"$\lfloor{a}\rfloor$", "floor"], 10: [r"$f(x)$", "func"], 11: [r"$\cot$", "cot"], 12: [r"$\tan$", "tan"], 13: [r"$7$", "7"], 14: [r"$8$", "8"], 15: [r"$9$", "9"], 16: [r"$\div$", "div"], 17: [r"$\lceil{a}\rceil$", "ceil"], 18: [r"$\frac{d}{dx}$", "derivative"], 19: [r"$\sec$", "sec"], 20: [r"$\cos$", "cos"], 21: [r"$4$", "4"], 22: [r"$5$", "5"], 23: [r"$6$", "6"], 24: [r"$\times$", "times"], 25: [r"$x$", "x"], 26: [r"$\int$", "integral"], 27: [r"$\csc$", "csc"], 28: [r"$\sin$", "sin"], 29: [r"$1$", "1"], 30: [r"$2$", "2"], 31: [r"$3$", "3"], 32: [r"$-$", "minus"], 33: [r"$y$", "y"], 34: [r"$\int^a_b$", "def_integral"], 35: [r"$e$", "e"], 36: [r"$\pi$", "pi"], 37: [r"$\frac{a}{b}$", "fraction"], 38: [r"$0$", "0"], 39: [r"$.$", "decimal_point"], 40: [r"$+$", "plus"]} # these are the buttons in LaTeX maths mode format
buttons_dict = {1: ['$|a|$', 'abs'], 2: ['$\\sqrt{a}$', 'sqrt'], 3: ['$\\log$', 'log'], 4: ['$\\ln$', 'ln'], 5: ['$a^b$', 'power'], 6: ['$()$', 'brackets'], 7: ['%', 'percent'], 8: ['$=$', 'equals'], 9: ['$\\lfloor{a}\\rfloor$', 'floor'], 10: ['$f(x)$', 'func'], 11: ['$\\cot$', 'cot'], 12: ['$\\tan$', 'tan'], 13: ['$7$', '7'], 14: ['$8$', '8'], 15: ['$9$', '9'], 16: ['$\\div$', 'div'], 17: ['$\\lceil{a}\\rceil$', 'ceil'], 18: ['$\\frac{d}{dx}$', 'derivative'], 19: ['$\\sec$', 'sec'], 20: ['$\\cos$', 'cos'], 21: ['$4$', '4'], 22: ['$5$', '5'], 23: ['$6$', '6'], 24: ['$\\times$', 'times'], 25: ['$x$', 'x'], 26: ['$\\int$', 'integral'], 27: ['$\\csc$', 'csc'], 28: ['$\\sin$', 'sin'], 29: ['$1$', '1'], 30: ['$2$', '2'], 31: ['$3$', '3'], 32: ['$-$', 'minus'], 33: ['$y$', 'y'], 34: ['$\\int^a_b$', 'def_integral'], 35: ['$e$', 'e'], 36: ['$\\pi$', 'pi'], 37: ['$\\frac{a}{b}$', 'fraction'], 38: ['$0$', '0'], 39: ['$.$', 'decimal_point'], 40: ['$+$', 'plus']}
default_ingredient_list = ['lentils', 'kale', 'shallots', 'swiss cheese', 'anchovies', 'Quiche', 'cashew nut', 'Waffles', 'chicken liver', 'parsley', 'babaganoosh', 'Toast', 'bouillon', 'hamburger', 'hoisin sauce', 'chaurice sausage', 'fennel', 'curry', 'clams', 'spaghetti squash', 'haiku roll', 'ancho chili peppers', 'flax seed', 'remoulade', 'alfredo sauce', 'avacado', 'broccoli', 'moo shu wrappers', 'truffles', 'carne asada', 'Pancakes', 'tomato puree', 'steak', 'Guancamole', 'crab', 'bison', 'almond', 'snap peas', 'corn', 'basil', 'barley', 'grouper', 'romaine lettuce', 'tarragon', 'Spaghetti', 'edimame', 'Tater tots', 'jambalaya', 'amaretto', 'bean sauce', 'lobster', 'granola', 'sour cream', 'yogurt', 'cilantro', 'avocados', 'duck', 'dates', 'kumquats', 'spearmint', 'celery seeds', 'cider vinegar', 'sardines', 'bacon', 'jack cheese', 'haddock', 'shitakes', 'franks', 'pickles', 'ginger', 'ginger ale', 'french fries', 'Irish stew', 'breadfruit', 'dips', 'bass', 'potato chips', 'lemons', 'salmon', 'Wine', 'caviar', 'apple butter', 'bard', 'coconut oil', 'Cabbage', 'carrots', 'asparagus', 'kiwi', 'chocolate', 'unsweetened chocolate', 'tomato sauce', 'oatmeal', 'gumbo', 'panko bread crumbs', 'pancetta', 'Reuben', 'condensed milk', 'Pizza', 'curry paste', 'rosemary', 'ketchup', 'cornmeal', 'turkeys', 'rice', 'split peas', 'pink beans', 'maraschino cherries', 'dried leeks', 'bruschetta', 'molasses', 'spinach', 'cucumbers', 'cupcakes', 'mesclun greens', 'bagels', 'apples', 'Bruscetta', 'ice cream', 'asiago cheese', 'tomatoes', 'pistachios', 'eggs', 'vegemite', 'corn syrup', 'cake', 'hash browns', 'sazon', 'veal', 'habanero chilies', 'red chili powder', 'Tabasco sauce', 'fajita', 'portabella mushrooms', 'Goji berry', 'brazil nuts', 'parsnips', 'enchilada', 'Quesadilla', 'hummus', 'chimichangadates', 'sherry', 'bok choy', 'horseradish', 'rhubarb', 'quail', 'mint', 'Irish cream liqueur', 'Pepperoni', 'melons', 'pears', 'cocoa powder', 'bluefish', 'Mandarin oranges', 'cooking wine', 'tartar sauce', 'papayas', 'honey', 'shrimp', 'black olives', 'canola oil', 'cheddar cheese', 'alfalfa', 'cider', 'corn flour', 'feta cheese', 'fondu', 'onions', 'water', 'sauerkraut', 'cornstarch', 'bourbon', 'cabbage', 'brown rice', 'baguette', 'balsamic vinegar', 'ahi tuna ', 'mushrooms', 'pasta', 'chips', 'garlic', 'chicory', 'allspice', 'maple syrup', 'chickpeas', 'chard', 'hot dogs', 'baking soda', 'arugala', 'sausages', 'sweet peppers', 'five-spice powder', 'thyme', 'chili powder', 'Havarti cheese', 'artichokes', 'beef', 'fish ', 'tuna', 'eel sushi', 'sweet potatoes', 'donuts', 'sunflower seeds', 'coconuts', 'salsa', 'celery', 'prunes', 'crayfish', 'hamburger ', 'beer', 'jicama', 'rum', 'rice vinegar', 'bean threads', 'hazelnuts', 'kidney beans', 'halibut', 'grapes', 'chambord', 'adobo', 'chipotle peppers', 'capers', 'Ziti', 'cherries', 'hot sauce', 'eel', 'pico de gallo', 'green onions', 'sesame seeds', 'Zucchini', 'French toast', 'chai', 'focaccia', 'guavas', 'raspberries', 'huckleberries', 'zinfandel wine', 'croutons', 'mayonnaise', 'barbecue sauce', 'cumin', 'pea beans', 'tonic water', 'tortillas', 'squash', 'gorgonzola', 'squid', 'Graham crackers', 'brussels sprouts', 'coriander', 'summer squash', 'rose water', 'mustard seeds', 'borscht', 'gelatin', 'tofu', 'white beans', 'English muffins', 'jelly', 'cream cheese', 'snapper', 'mustard', 'broccoli raab', 'Romano cheese', 'buritto', 'paprika', 'acorn squash ', 'snow peas', 'cannellini beans', 'red snapper', 'ham', 'raisins', 'creme fraiche', 'watermelons', 'artificial sweetener', 'BBQ', 'Linguine', 'plantains', 'strawberries', 'monkfish', 'powdered sugar', 'Spinach', 'cheese', 'buckwheat', 'potatoes', 'goose', 'beets', 'lima beans', 'jelly beans', 'huenos rancheros', 'pumpkins', 'salt', 'blueberries', 'navy beans', 'graham crackers', 'custard', 'sushi', 'radishes', 'berries', 'red pepper flakes', 'ale', 'okra', 'soy sauce', 'tea', 'aioli', 'date sugar', 'pork', 'liver', 'cottage cheese', 'limes', 'orange peels', 'vinegar', 'olives', 'cactus', 'Kahlua', 'mackerel', 'apricots', 'green beans', 'Garlic', 'black-eyed peas', 'soybeans', 'andouille sausage', 'Marsala', 'jam', 'marshmallows', 'walnuts', 'geese', 'flour', 'coffee', 'heavy cream', 'red beans', 'lemon juice', 'poultry seasoning', 'Cappuccino Latte', 'red cabbage', 'blue cheese', 'chicken', 'Moose', 'Yogurt', 'baked beans', 'cream', 'figs', 'dill', 'swordfish', 'rice wine', 'peanuts', 'cayenne pepper', "pig's feet", 'fish sauce', 'barley sugar', 'acorn squash', 'rice paper', 'Lasagna', 'applesauce', 'cauliflower', 'kabobs', 'sea cucumbers', 'sugar', 'Ostrich', 'asian noodles ', 'zest', 'cinnamon', 'Venison', 'chowder', 'butter', 'almond butter', 'cream of tartar', 'dumpling', 'Milk', 'cantaloupes', 'apple pie spice', 'brown sugar', 'cod', 'lemon Peel', 'vermouth', 'provolone', 'Worcestershire sauce', 'beans', 'breadcrumbs', 'bay leaves', 'garlic powder', 'eggrolls', 'jerky', 'water chestnuts', 'scallops', 'Walnuts', 'almond paste', 'wasabi', 'cloves', 'marmalade', 'honeydew melons', 'brunoise', 'bread', 'white chocolate', 'chutney', 'chestnuts', 'Meatballs', 'baking powder', 'catfish', 'rabbits', 'olive oil', 'poppy seeds', 'margarine', 'pecans', 'nectarines', 'milk', 'eggplants', 'sweet chili sauce', 'bisque', 'venison', 'buttermilk', 'mascarpone', 'cereal', 'mozzarella', 'ricotta cheese', 'pumpkin seeds', 'half-and-half', 'Italian bread', 'dumplings', 'Noodles', 'pinto beans', 'jalapeno', 'plum tomatoes', 'curry powder', 'broth', 'Parmesan cheese', 'grapefruits', 'pepper', 'bacon grease', 'lettuce', 'crabs', 'plums', 'blackberries', 'pesto', 'cookies', 'succotash', 'soymilk', 'gouda', 'oranges', 'pine nuts', 'bean sprouts', 'artichoke', 'won ton skins', 'trout', 'pomegranates', 'French dip', 'cremini mushrooms', 'oregano', 'pheasants', 'corned beef', 'gnocchi', 'chili sauce', 'turtle', 'almond extract', 'antelope', 'lemon grass', 'Avocado roll', 'almonds', 'falafel', 'peanut butter', 'tomato paste', 'pineapples', 'wild rice', 'Milkshake', 'tomato juice', 'wine vinegar', 'alligator', 'albacore tuna', 'herring', 'mussels', 'lamb', 'cranberries', 'chives', 'onion powder', 'leeks', 'peaches', 'Lamb', 'fennel seeds', 'Indian food', 'Canadian bacon', 'prawns', 'coconut milk', 'peas', 'couscous', 'Apple juice', 'bananas', 'brandy', 'lobsters', 'sage', 'wine', 'prosciutto', 'chili peppers', 'kingfish', 'raw sugar', 'aquavit', 'Porter', 'curry leaves', 'black beans', 'vanilla', 'colby cheese', 'passion fruit', 'octopus', 'vanilla bean', 'grits', 'flounder', 'arugula', 'turnips', 'macaroni', 'anchovy paste']
default_ingredient_list = ['lentils', 'kale', 'shallots', 'swiss cheese', 'anchovies', 'Quiche', 'cashew nut', 'Waffles', 'chicken liver', 'parsley', 'babaganoosh', 'Toast', 'bouillon', 'hamburger', 'hoisin sauce', 'chaurice sausage', 'fennel', 'curry', 'clams', 'spaghetti squash', 'haiku roll', 'ancho chili peppers', 'flax seed', 'remoulade', 'alfredo sauce', 'avacado', 'broccoli', 'moo shu wrappers', 'truffles', 'carne asada', 'Pancakes', 'tomato puree', 'steak', 'Guancamole', 'crab', 'bison', 'almond', 'snap peas', 'corn', 'basil', 'barley', 'grouper', 'romaine lettuce', 'tarragon', 'Spaghetti', 'edimame', 'Tater tots', 'jambalaya', 'amaretto', 'bean sauce', 'lobster', 'granola', 'sour cream', 'yogurt', 'cilantro', 'avocados', 'duck', 'dates', 'kumquats', 'spearmint', 'celery seeds', 'cider vinegar', 'sardines', 'bacon', 'jack cheese', 'haddock', 'shitakes', 'franks', 'pickles', 'ginger', 'ginger ale', 'french fries', 'Irish stew', 'breadfruit', 'dips', 'bass', 'potato chips', 'lemons', 'salmon', 'Wine', 'caviar', 'apple butter', 'bard', 'coconut oil', 'Cabbage', 'carrots', 'asparagus', 'kiwi', 'chocolate', 'unsweetened chocolate', 'tomato sauce', 'oatmeal', 'gumbo', 'panko bread crumbs', 'pancetta', 'Reuben', 'condensed milk', 'Pizza', 'curry paste', 'rosemary', 'ketchup', 'cornmeal', 'turkeys', 'rice', 'split peas', 'pink beans', 'maraschino cherries', 'dried leeks', 'bruschetta', 'molasses', 'spinach', 'cucumbers', 'cupcakes', 'mesclun greens', 'bagels', 'apples', 'Bruscetta', 'ice cream', 'asiago cheese', 'tomatoes', 'pistachios', 'eggs', 'vegemite', 'corn syrup', 'cake', 'hash browns', 'sazon', 'veal', 'habanero chilies', 'red chili powder', 'Tabasco sauce', 'fajita', 'portabella mushrooms', 'Goji berry', 'brazil nuts', 'parsnips', 'enchilada', 'Quesadilla', 'hummus', 'chimichangadates', 'sherry', 'bok choy', 'horseradish', 'rhubarb', 'quail', 'mint', 'Irish cream liqueur', 'Pepperoni', 'melons', 'pears', 'cocoa powder', 'bluefish', 'Mandarin oranges', 'cooking wine', 'tartar sauce', 'papayas', 'honey', 'shrimp', 'black olives', 'canola oil', 'cheddar cheese', 'alfalfa', 'cider', 'corn flour', 'feta cheese', 'fondu', 'onions', 'water', 'sauerkraut', 'cornstarch', 'bourbon', 'cabbage', 'brown rice', 'baguette', 'balsamic vinegar', 'ahi tuna ', 'mushrooms', 'pasta', 'chips', 'garlic', 'chicory', 'allspice', 'maple syrup', 'chickpeas', 'chard', 'hot dogs', 'baking soda', 'arugala', 'sausages', 'sweet peppers', 'five-spice powder', 'thyme', 'chili powder', 'Havarti cheese', 'artichokes', 'beef', 'fish ', 'tuna', 'eel sushi', 'sweet potatoes', 'donuts', 'sunflower seeds', 'coconuts', 'salsa', 'celery', 'prunes', 'crayfish', 'hamburger ', 'beer', 'jicama', 'rum', 'rice vinegar', 'bean threads', 'hazelnuts', 'kidney beans', 'halibut', 'grapes', 'chambord', 'adobo', 'chipotle peppers', 'capers', 'Ziti', 'cherries', 'hot sauce', 'eel', 'pico de gallo', 'green onions', 'sesame seeds', 'Zucchini', 'French toast', 'chai', 'focaccia', 'guavas', 'raspberries', 'huckleberries', 'zinfandel wine', 'croutons', 'mayonnaise', 'barbecue sauce', 'cumin', 'pea beans', 'tonic water', 'tortillas', 'squash', 'gorgonzola', 'squid', 'Graham crackers', 'brussels sprouts', 'coriander', 'summer squash', 'rose water', 'mustard seeds', 'borscht', 'gelatin', 'tofu', 'white beans', 'English muffins', 'jelly', 'cream cheese', 'snapper', 'mustard', 'broccoli raab', 'Romano cheese', 'buritto', 'paprika', 'acorn squash ', 'snow peas', 'cannellini beans', 'red snapper', 'ham', 'raisins', 'creme fraiche', 'watermelons', 'artificial sweetener', 'BBQ', 'Linguine', 'plantains', 'strawberries', 'monkfish', 'powdered sugar', 'Spinach', 'cheese', 'buckwheat', 'potatoes', 'goose', 'beets', 'lima beans', 'jelly beans', 'huenos rancheros', 'pumpkins', 'salt', 'blueberries', 'navy beans', 'graham crackers', 'custard', 'sushi', 'radishes', 'berries', 'red pepper flakes', 'ale', 'okra', 'soy sauce', 'tea', 'aioli', 'date sugar', 'pork', 'liver', 'cottage cheese', 'limes', 'orange peels', 'vinegar', 'olives', 'cactus', 'Kahlua', 'mackerel', 'apricots', 'green beans', 'Garlic', 'black-eyed peas', 'soybeans', 'andouille sausage', 'Marsala', 'jam', 'marshmallows', 'walnuts', 'geese', 'flour', 'coffee', 'heavy cream', 'red beans', 'lemon juice', 'poultry seasoning', 'Cappuccino Latte', 'red cabbage', 'blue cheese', 'chicken', 'Moose', 'Yogurt', 'baked beans', 'cream', 'figs', 'dill', 'swordfish', 'rice wine', 'peanuts', 'cayenne pepper', "pig's feet", 'fish sauce', 'barley sugar', 'acorn squash', 'rice paper', 'Lasagna', 'applesauce', 'cauliflower', 'kabobs', 'sea cucumbers', 'sugar', 'Ostrich', 'asian noodles ', 'zest', 'cinnamon', 'Venison', 'chowder', 'butter', 'almond butter', 'cream of tartar', 'dumpling', 'Milk', 'cantaloupes', 'apple pie spice', 'brown sugar', 'cod', 'lemon Peel', 'vermouth', 'provolone', 'Worcestershire sauce', 'beans', 'breadcrumbs', 'bay leaves', 'garlic powder', 'eggrolls', 'jerky', 'water chestnuts', 'scallops', 'Walnuts', 'almond paste', 'wasabi', 'cloves', 'marmalade', 'honeydew melons', 'brunoise', 'bread', 'white chocolate', 'chutney', 'chestnuts', 'Meatballs', 'baking powder', 'catfish', 'rabbits', 'olive oil', 'poppy seeds', 'margarine', 'pecans', 'nectarines', 'milk', 'eggplants', 'sweet chili sauce', 'bisque', 'venison', 'buttermilk', 'mascarpone', 'cereal', 'mozzarella', 'ricotta cheese', 'pumpkin seeds', 'half-and-half', 'Italian bread', 'dumplings', 'Noodles', 'pinto beans', 'jalapeno', 'plum tomatoes', 'curry powder', 'broth', 'Parmesan cheese', 'grapefruits', 'pepper', 'bacon grease', 'lettuce', 'crabs', 'plums', 'blackberries', 'pesto', 'cookies', 'succotash', 'soymilk', 'gouda', 'oranges', 'pine nuts', 'bean sprouts', 'artichoke', 'won ton skins', 'trout', 'pomegranates', 'French dip', 'cremini mushrooms', 'oregano', 'pheasants', 'corned beef', 'gnocchi', 'chili sauce', 'turtle', 'almond extract', 'antelope', 'lemon grass', 'Avocado roll', 'almonds', 'falafel', 'peanut butter', 'tomato paste', 'pineapples', 'wild rice', 'Milkshake', 'tomato juice', 'wine vinegar', 'alligator', 'albacore tuna', 'herring', 'mussels', 'lamb', 'cranberries', 'chives', 'onion powder', 'leeks', 'peaches', 'Lamb', 'fennel seeds', 'Indian food', 'Canadian bacon', 'prawns', 'coconut milk', 'peas', 'couscous', 'Apple juice', 'bananas', 'brandy', 'lobsters', 'sage', 'wine', 'prosciutto', 'chili peppers', 'kingfish', 'raw sugar', 'aquavit', 'Porter', 'curry leaves', 'black beans', 'vanilla', 'colby cheese', 'passion fruit', 'octopus', 'vanilla bean', 'grits', 'flounder', 'arugula', 'turnips', 'macaroni', 'anchovy paste']
# coding:utf-8 # example 04: double_linked_list.py class Node(object): def __init__(self, val=None): self.val = val self.prev = None self.next = None class DoubleLinkedList(object): def __init__(self, maxsize=None): self.maxsize = maxsize self.root = Node() self.tailnode = None self.length = 0 def __len__(self): return self.length def iter_node(self): if self.length == 0: return cur = self.root for _ in range(self.length): cur = cur.next yield cur def __iter__(self): for node in self.iter_node(): yield node.val def iter_node_reverse(self): if self.length == 0: return cur = self.tailnode for _ in range(self.length): yield cur cur = cur.prev def empty(self): return self.root.next is None def append(self, val): # O(1) if self.maxsize is not None and self.length == self.maxsize: raise Exception("Full") node = Node(val) if self.length == 0: node.prev = self.root self.root.next = node else: node.prev = self.tailnode self.tailnode.next = node self.tailnode = node self.length += 1 def appendleft(self, val): # O(1) if self.maxsize is not None and self.length == self.maxsize: raise Exception("Full") node = Node(val) if self.length == 0: node.prev = self.root self.root.next = node self.tailnode = node else: node.prev = self.root node.next = self.root.next self.root.next.prev = node self.root.next = node self.length += 1 def pop(self): # O(1) if self.length == 0: raise Exception("pop form empty Double Linked List") val = self.tailnode.val tailnode = self.tailnode.prev tailnode.next = None del self.tailnode self.length -= 1 self.tailnode = None if self.length == 0 else tailnode return val def popleft(self): # O(1) if self.length == 0: raise Exception("pop form empty Double Linked List") headnode = self.root.next val = headnode.val self.root.next = headnode.next if headnode is self.tailnode: self.tailnode = None else: headnode.next.prev = self.root del headnode self.length -= 1 return val def find(self, val): # O(n) for idx, node in enumerate(self.iter_node()): if node.val == val: return idx return -1 def insert(self, pos, val): # O(n) if pos <= 0: self.appendleft(val) elif self.length - 1 < pos: self.append(val) else: node = Node(val) pre = self.root for _ in range(pos): pre = pre.next node.prev = pre node.next = pre.next node.next.prev = node pre.next = node self.length += 1 def remove(self, node): # O(1), node is not value if self.length == 0: return if self.length == 1: self.root.next = None self.tailnode = None elif node is self.tailnode: self.tailnode = node.prev self.tailnode.next = None else: node.prev.next = node.next node.next.prev = node.prev self.length -= 1 return node def clear(self): for node in self.iter_node(): del node self.root.next = None self.tailnode = None self.length = 0 # use pytest dll = DoubleLinkedList() class TestDoubleLinkedList(object): def test_append(self): dll.append(1) dll.append(2) dll.append(3) assert [node.val for node in dll.iter_node()] == [1, 2, 3] assert [node.val for node in dll.iter_node_reverse()] == [3, 2, 1] def test_appendleft(self): dll.appendleft(0) assert list(dll) == [0, 1, 2, 3] def test_len(self): assert len(dll) == 4 def test_pop(self): tail_val = dll.pop() assert tail_val == 3 def test_popleft(self): head_val = dll.popleft() assert head_val == 0 def test_find(self): assert dll.find(2) == 1 assert dll.find(4) == -1 def test_insert(self): dll.insert(1, 5) assert [node.val for node in dll.iter_node()] == [1, 5, 2] def test_remove(self): headnode = dll.root.next node = dll.remove(headnode) assert node.val == 1 assert [node.val for node in dll.iter_node()] == [5, 2] def test_clear_and_empty(self): dll.clear() assert dll.empty() is True
class Node(object): def __init__(self, val=None): self.val = val self.prev = None self.next = None class Doublelinkedlist(object): def __init__(self, maxsize=None): self.maxsize = maxsize self.root = node() self.tailnode = None self.length = 0 def __len__(self): return self.length def iter_node(self): if self.length == 0: return cur = self.root for _ in range(self.length): cur = cur.next yield cur def __iter__(self): for node in self.iter_node(): yield node.val def iter_node_reverse(self): if self.length == 0: return cur = self.tailnode for _ in range(self.length): yield cur cur = cur.prev def empty(self): return self.root.next is None def append(self, val): if self.maxsize is not None and self.length == self.maxsize: raise exception('Full') node = node(val) if self.length == 0: node.prev = self.root self.root.next = node else: node.prev = self.tailnode self.tailnode.next = node self.tailnode = node self.length += 1 def appendleft(self, val): if self.maxsize is not None and self.length == self.maxsize: raise exception('Full') node = node(val) if self.length == 0: node.prev = self.root self.root.next = node self.tailnode = node else: node.prev = self.root node.next = self.root.next self.root.next.prev = node self.root.next = node self.length += 1 def pop(self): if self.length == 0: raise exception('pop form empty Double Linked List') val = self.tailnode.val tailnode = self.tailnode.prev tailnode.next = None del self.tailnode self.length -= 1 self.tailnode = None if self.length == 0 else tailnode return val def popleft(self): if self.length == 0: raise exception('pop form empty Double Linked List') headnode = self.root.next val = headnode.val self.root.next = headnode.next if headnode is self.tailnode: self.tailnode = None else: headnode.next.prev = self.root del headnode self.length -= 1 return val def find(self, val): for (idx, node) in enumerate(self.iter_node()): if node.val == val: return idx return -1 def insert(self, pos, val): if pos <= 0: self.appendleft(val) elif self.length - 1 < pos: self.append(val) else: node = node(val) pre = self.root for _ in range(pos): pre = pre.next node.prev = pre node.next = pre.next node.next.prev = node pre.next = node self.length += 1 def remove(self, node): if self.length == 0: return if self.length == 1: self.root.next = None self.tailnode = None elif node is self.tailnode: self.tailnode = node.prev self.tailnode.next = None else: node.prev.next = node.next node.next.prev = node.prev self.length -= 1 return node def clear(self): for node in self.iter_node(): del node self.root.next = None self.tailnode = None self.length = 0 dll = double_linked_list() class Testdoublelinkedlist(object): def test_append(self): dll.append(1) dll.append(2) dll.append(3) assert [node.val for node in dll.iter_node()] == [1, 2, 3] assert [node.val for node in dll.iter_node_reverse()] == [3, 2, 1] def test_appendleft(self): dll.appendleft(0) assert list(dll) == [0, 1, 2, 3] def test_len(self): assert len(dll) == 4 def test_pop(self): tail_val = dll.pop() assert tail_val == 3 def test_popleft(self): head_val = dll.popleft() assert head_val == 0 def test_find(self): assert dll.find(2) == 1 assert dll.find(4) == -1 def test_insert(self): dll.insert(1, 5) assert [node.val for node in dll.iter_node()] == [1, 5, 2] def test_remove(self): headnode = dll.root.next node = dll.remove(headnode) assert node.val == 1 assert [node.val for node in dll.iter_node()] == [5, 2] def test_clear_and_empty(self): dll.clear() assert dll.empty() is True
def trinomial(cfg,i,j,k) : #function t=trinomial(i,j,k) #% Computes the trinomial of #% the three input arguments # aux_1=cfg.factorial(i+j+k) #aux_1=factorial(i+j+k); aux_2=cfg.factorial(i)*cfg.factorial(j)*cfg.factorial(k) #aux_2=factorial(i)*factorial(j)*factorial(k); t = aux_1/aux_2 #t= aux_1/aux_2; # return t
def trinomial(cfg, i, j, k): aux_1 = cfg.factorial(i + j + k) aux_2 = cfg.factorial(i) * cfg.factorial(j) * cfg.factorial(k) t = aux_1 / aux_2 return t
# -*- coding: utf-8 -*- name = 'tbb' version = '2017.0' def commands(): appendenv('LD_LIBRARY_PATH', '{root}/lib/intel64/gcc4.7') env.TBBROOT.set('{root}') env.TBB_LIBRARIES.set('{root}/lib/intel64/gcc4.7') env.TBB_INCLUDE_DIR.set('{root}/include')
name = 'tbb' version = '2017.0' def commands(): appendenv('LD_LIBRARY_PATH', '{root}/lib/intel64/gcc4.7') env.TBBROOT.set('{root}') env.TBB_LIBRARIES.set('{root}/lib/intel64/gcc4.7') env.TBB_INCLUDE_DIR.set('{root}/include')
budget = float(input()) season = input() if budget <= 100: destination = 'Bulgaria' money_spent = budget * 0.7 info = f'Hotel - {money_spent:.2f}' if season == 'summer': money_spent = budget * 0.3 info = f'Camp - {money_spent:.2f}' elif budget <= 1000: destination = 'Balkans' money_spent = budget * 0.8 info = f'Hotel - {money_spent:.2f}' if season == 'summer': money_spent = budget * 0.4 info = f'Camp - {money_spent:.2f}' else: destination = 'Europe' money_spent = budget * 0.9 info = f'Hotel - {money_spent:.2f}' print('Somewhere in ' + destination) print(info)
budget = float(input()) season = input() if budget <= 100: destination = 'Bulgaria' money_spent = budget * 0.7 info = f'Hotel - {money_spent:.2f}' if season == 'summer': money_spent = budget * 0.3 info = f'Camp - {money_spent:.2f}' elif budget <= 1000: destination = 'Balkans' money_spent = budget * 0.8 info = f'Hotel - {money_spent:.2f}' if season == 'summer': money_spent = budget * 0.4 info = f'Camp - {money_spent:.2f}' else: destination = 'Europe' money_spent = budget * 0.9 info = f'Hotel - {money_spent:.2f}' print('Somewhere in ' + destination) print(info)
def solution(movements): horizontal, vertical = 0, 0 for move in movements: direction, magnitude = move.split(' ') if direction == "forward": horizontal += int(magnitude) elif direction == "down": vertical += int(magnitude) elif direction == "up": vertical -= int(magnitude) return horizontal * vertical def solution2(movements): horizontal, vertical, aim = 0, 0, 0 for move in movements: direction, magnitude = move.split(' ') magnitude = int(magnitude) if direction == "forward": horizontal += magnitude vertical += (aim * magnitude) elif direction == "down": aim += int(magnitude) elif direction == "up": aim -= int(magnitude) return horizontal * vertical assert 150 == solution(["forward 5","down 5","forward 8","up 3","down 8","forward 2"]) assert 900 == solution2(["forward 5","down 5","forward 8","up 3","down 8","forward 2"]) def main(): with open('input.txt', 'r') as inp: input_data = inp.readlines() result1 = solution(input_data) print(f"Part 1 answer: {result1}") result2 = solution2(input_data) print(f"Part 2 answer: {result2}") main()
def solution(movements): (horizontal, vertical) = (0, 0) for move in movements: (direction, magnitude) = move.split(' ') if direction == 'forward': horizontal += int(magnitude) elif direction == 'down': vertical += int(magnitude) elif direction == 'up': vertical -= int(magnitude) return horizontal * vertical def solution2(movements): (horizontal, vertical, aim) = (0, 0, 0) for move in movements: (direction, magnitude) = move.split(' ') magnitude = int(magnitude) if direction == 'forward': horizontal += magnitude vertical += aim * magnitude elif direction == 'down': aim += int(magnitude) elif direction == 'up': aim -= int(magnitude) return horizontal * vertical assert 150 == solution(['forward 5', 'down 5', 'forward 8', 'up 3', 'down 8', 'forward 2']) assert 900 == solution2(['forward 5', 'down 5', 'forward 8', 'up 3', 'down 8', 'forward 2']) def main(): with open('input.txt', 'r') as inp: input_data = inp.readlines() result1 = solution(input_data) print(f'Part 1 answer: {result1}') result2 = solution2(input_data) print(f'Part 2 answer: {result2}') main()
class Solution: def combine(self, n: int, k: int) -> List[List[int]]: if k <= 0 or n < k: return [] res_lst = [] def dfs(i, curr_lst): if len(curr_lst) == k: res_lst.append(curr_lst) for value in range(i, n+1): dfs(value+1, curr_lst+[value]) dfs(1, []) return res_lst # time complexity : O(n!) # space complexity : O(k)
class Solution: def combine(self, n: int, k: int) -> List[List[int]]: if k <= 0 or n < k: return [] res_lst = [] def dfs(i, curr_lst): if len(curr_lst) == k: res_lst.append(curr_lst) for value in range(i, n + 1): dfs(value + 1, curr_lst + [value]) dfs(1, []) return res_lst
# -*- coding: utf-8 -*- __version__ = "0.2.4" __title__ = "pygcgen" __summary__ = "Automatic changelog generation" __uri__ = "https://github.com/topic2k/pygcgen" __author__ = "topic2k" __email__ = "topic2k+pypi@gmail.com" __license__ = "MIT" __copyright__ = "2016-2018 %s" % __author__
__version__ = '0.2.4' __title__ = 'pygcgen' __summary__ = 'Automatic changelog generation' __uri__ = 'https://github.com/topic2k/pygcgen' __author__ = 'topic2k' __email__ = 'topic2k+pypi@gmail.com' __license__ = 'MIT' __copyright__ = '2016-2018 %s' % __author__
class GraphEdgesMapping: def __init__(self, first_dual_edges_mapping, second_dual_edges_mapping): self._first = first_dual_edges_mapping self._second = second_dual_edges_mapping @property def size(self): return self._first.shape[0] @property def first(self): return self._first @property def second(self): return self._second
class Graphedgesmapping: def __init__(self, first_dual_edges_mapping, second_dual_edges_mapping): self._first = first_dual_edges_mapping self._second = second_dual_edges_mapping @property def size(self): return self._first.shape[0] @property def first(self): return self._first @property def second(self): return self._second
#!/usr/bin/env python3 data = open("in").read().split("\n\n") data = list(map(lambda x: x.split("\n"), data)) for i in range(len(data)): # todo this is stupid data[i] = list(filter(lambda x: x != '', data[i])) tot = 0 tot2 = 0 for d in data: a = set("".join(d)) tot += len(a) tota = 0 for q in a: if len(d) == len(list(filter(lambda x: x.count(q) > 0, d))): tot2 += 1 print(tot) print(tot2)
data = open('in').read().split('\n\n') data = list(map(lambda x: x.split('\n'), data)) for i in range(len(data)): data[i] = list(filter(lambda x: x != '', data[i])) tot = 0 tot2 = 0 for d in data: a = set(''.join(d)) tot += len(a) tota = 0 for q in a: if len(d) == len(list(filter(lambda x: x.count(q) > 0, d))): tot2 += 1 print(tot) print(tot2)
#operate with params OP_PARAMS_PATH = "/data/params/" def save_bool_param(param_name,param_value): try: real_param_value = 1 if param_value else 0 with open(OP_PARAMS_PATH+"/"+param_name, "w") as outfile: outfile.write(f'{real_param_value}') except IOError: print("Failed to save "+param_name+" with value ",param_value) def load_bool_param(param_name,param_def_value): try: with open(OP_PARAMS_PATH+"/"+param_name, 'r') as f: for line in f: value_saved = int(line) #print("Reading Params ",param_name , "value", value_saved) return True if value_saved == 1 else False except IOError: print("Initializing "+param_name+" with value ",param_def_value) save_bool_param(param_name,param_def_value) return param_def_value def save_float_param(param_name,param_value): try: real_param_value = param_value * 1.0 with open(OP_PARAMS_PATH+"/"+param_name, "w") as outfile: outfile.write(f'{real_param_value}') except IOError: print("Failed to save "+param_name+" with value ",real_param_value) def load_float_param(param_name,param_def_value): try: with open(OP_PARAMS_PATH+"/"+param_name, 'r') as f: for line in f: value_saved = float(line) #print("Reading Params ",param_name , "value", value_saved) return value_saved * 1.0 except IOError: print("Initializing "+param_name+" with value ",param_def_value*1.0) save_float_param(param_name,param_def_value * 1.0) return param_def_value * 1.0
op_params_path = '/data/params/' def save_bool_param(param_name, param_value): try: real_param_value = 1 if param_value else 0 with open(OP_PARAMS_PATH + '/' + param_name, 'w') as outfile: outfile.write(f'{real_param_value}') except IOError: print('Failed to save ' + param_name + ' with value ', param_value) def load_bool_param(param_name, param_def_value): try: with open(OP_PARAMS_PATH + '/' + param_name, 'r') as f: for line in f: value_saved = int(line) return True if value_saved == 1 else False except IOError: print('Initializing ' + param_name + ' with value ', param_def_value) save_bool_param(param_name, param_def_value) return param_def_value def save_float_param(param_name, param_value): try: real_param_value = param_value * 1.0 with open(OP_PARAMS_PATH + '/' + param_name, 'w') as outfile: outfile.write(f'{real_param_value}') except IOError: print('Failed to save ' + param_name + ' with value ', real_param_value) def load_float_param(param_name, param_def_value): try: with open(OP_PARAMS_PATH + '/' + param_name, 'r') as f: for line in f: value_saved = float(line) return value_saved * 1.0 except IOError: print('Initializing ' + param_name + ' with value ', param_def_value * 1.0) save_float_param(param_name, param_def_value * 1.0) return param_def_value * 1.0
# Hello! World! print("Hello, World!") # Learning Strings my_string = "This is a string" ## Make string uppercase my_string_upper = my_string.upper() print(my_string_upper) # Determine data type of string print(type(my_string)) # Slicing strings [python is zero-based and starts at 0 and not 1] print(my_string[0:4]) print(my_string[:1]) print(my_string[0:14])
print('Hello, World!') my_string = 'This is a string' my_string_upper = my_string.upper() print(my_string_upper) print(type(my_string)) print(my_string[0:4]) print(my_string[:1]) print(my_string[0:14])
class Solution: def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]: self.ret = [] self.counts = collections.Counter(candidates) nums = [k for k in set(sorted(candidates))] self.Backtrack(nums, target, [], 0) return self.ret def Backtrack(self, nums, target, combination, k): if target == 0: self.ret.append(combination) return combination for i in range(k, len(nums)): if target - nums[i] < 0: break temp_sum = 0 temp_list = [] for j in range(self.counts[nums[i]]): temp_sum += nums[i] temp_list.append(nums[i]) if target - temp_sum < 0: break combination += temp_list combination = self.Backtrack(nums, target - temp_sum, combination, i + 1) combination = combination[:-len(temp_list)] return combination
class Solution: def combination_sum2(self, candidates: List[int], target: int) -> List[List[int]]: self.ret = [] self.counts = collections.Counter(candidates) nums = [k for k in set(sorted(candidates))] self.Backtrack(nums, target, [], 0) return self.ret def backtrack(self, nums, target, combination, k): if target == 0: self.ret.append(combination) return combination for i in range(k, len(nums)): if target - nums[i] < 0: break temp_sum = 0 temp_list = [] for j in range(self.counts[nums[i]]): temp_sum += nums[i] temp_list.append(nums[i]) if target - temp_sum < 0: break combination += temp_list combination = self.Backtrack(nums, target - temp_sum, combination, i + 1) combination = combination[:-len(temp_list)] return combination
# Function that detects cycle in a directed graph def cycleCheck(vertices, adj): visited = set() ancestor = set() for vertex in range(vertices): if vertex not in visited: if dfs(vertex, adj, visited, ancestor)==True: return True return False # Recursive dfs function def dfs(vertex, adj, visited, ancestor): visited.add(vertex) ancestor.add(vertex) for neighbour in adj[vertex]: if neighbour not in visited: if dfs(neighbour, adj, visited, ancestor)==True: return True elif neighbour in ancestor: return True ancestor.remove(vertex) return False print('---------------------------------------------------------------------') print('\tCheck if a cycle exists in a directed graph') print('---------------------------------------------------------------------\n') t = int(input("Enter the number of testcases: ")) for _ in range(t): print('\n*************** Testcase', _+1, '***************\n') vertices, edges = map(int, input("Enter number of vertices & edges: ").split()) # Create an adjacency list adj = [[] for vertex in range(vertices)] for edge in range(edges): start, end = map(int, input("Enter edge: ").split()) adj[start].append(end) if cycleCheck(vertices, adj) == True: print('Cycle detected') else: print('No cycle detected')
def cycle_check(vertices, adj): visited = set() ancestor = set() for vertex in range(vertices): if vertex not in visited: if dfs(vertex, adj, visited, ancestor) == True: return True return False def dfs(vertex, adj, visited, ancestor): visited.add(vertex) ancestor.add(vertex) for neighbour in adj[vertex]: if neighbour not in visited: if dfs(neighbour, adj, visited, ancestor) == True: return True elif neighbour in ancestor: return True ancestor.remove(vertex) return False print('---------------------------------------------------------------------') print('\tCheck if a cycle exists in a directed graph') print('---------------------------------------------------------------------\n') t = int(input('Enter the number of testcases: ')) for _ in range(t): print('\n*************** Testcase', _ + 1, '***************\n') (vertices, edges) = map(int, input('Enter number of vertices & edges: ').split()) adj = [[] for vertex in range(vertices)] for edge in range(edges): (start, end) = map(int, input('Enter edge: ').split()) adj[start].append(end) if cycle_check(vertices, adj) == True: print('Cycle detected') else: print('No cycle detected')
class Config(object): SECRET_KEY = "CantStopAddictedToTheShinDigChopTopHeSaysImGonnaWinBig" HOST = "0a398d5f.ngrok.io" SHOPIFY_CONFIG = { 'API_KEY': '<API KEY HERE>', 'API_SECRET': '<API SECRET HERE>', 'APP_HOME': 'http://' + HOST, 'CALLBACK_URL': 'http://' + HOST + '/install', 'REDIRECT_URI': 'http://' + HOST + '/connect', 'SCOPE': 'read_products, read_collection_listings' }
class Config(object): secret_key = 'CantStopAddictedToTheShinDigChopTopHeSaysImGonnaWinBig' host = '0a398d5f.ngrok.io' shopify_config = {'API_KEY': '<API KEY HERE>', 'API_SECRET': '<API SECRET HERE>', 'APP_HOME': 'http://' + HOST, 'CALLBACK_URL': 'http://' + HOST + '/install', 'REDIRECT_URI': 'http://' + HOST + '/connect', 'SCOPE': 'read_products, read_collection_listings'}
#!/usr/bin/python # -*- coding: utf-8 -*- __version__ = "3.0.0" __author__ = "Amir Zeldes" __copyright__ = "Copyright 2015-2019, Amir Zeldes" __license__ = "Apache 2.0 License"
__version__ = '3.0.0' __author__ = 'Amir Zeldes' __copyright__ = 'Copyright 2015-2019, Amir Zeldes' __license__ = 'Apache 2.0 License'