content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# These commands are the saved state of coot. You can evaluate them # using "Calculate->Run Script...". #;;molecule-info: 0_PO4b.pdb #;;molecule-info: 1_PO4b.pdb #;;molecule-info: 2_PO4b.pdb #;;molecule-info: PO4.pdb #;;molecule-info: PO4_O.pdb #;;molecule-info: 0_PO4e.pdb #;;molecule-info: 1_PO4e.pdb #;;molecule-info: 2_PO4e.pdb #;;molecule-info: 0_ADPb.pdb #;;molecule-info: 2_PO4h.pdb #;;molecule-info: 1_PO4h.pdb #;;molecule-info: 2_ADPb.pdb #;;molecule-info: 0_PO4h.pdb set_graphics_window_size (1309, 1017) set_graphics_window_position (20, 20) set_display_control_dialog_position (1491, 37) vt_surface (2) set_clipping_front (-10.00) set_clipping_back (-10.00) set_map_radius (10.00) set_iso_level_increment ( 0.0500) set_diff_map_iso_level_increment ( 0.0050) set_colour_map_rotation_on_read_pdb (21.00) set_colour_map_rotation_on_read_pdb_flag (1) set_colour_map_rotation_on_read_pdb_c_only_flag (1) set_swap_difference_map_colours (0) set_background_colour ( 0.00, 0.00, 0.00) set_symmetry_size (13.00) set_symmetry_colour_merge ( 0.50) set_symmetry_colour ( 0.10, 0.20, 0.80) set_symmetry_atom_labels_expanded (0) set_active_map_drag_flag (1) set_show_aniso (0) set_aniso_probability (50.00) set_smooth_scroll_steps (40) set_smooth_scroll_limit (10.00) set_font_size (2) set_rotation_centre_size ( 0.10) set_do_anti_aliasing (0) set_default_bond_thickness (5) handle_read_draw_molecule ("0_PO4b.pdb") set_molecule_bonds_colour_map_rotation (0, 21.00) set_mol_displayed (0, 0) set_mol_active (0, 0) set_draw_hydrogens (0, 1) handle_read_draw_molecule ("1_PO4b.pdb") set_molecule_bonds_colour_map_rotation (1, 42.00) set_draw_hydrogens (1, 1) handle_read_draw_molecule ("2_PO4b.pdb") set_molecule_bonds_colour_map_rotation (2, 63.00) set_mol_displayed (2, 0) set_mol_active (2, 0) set_draw_hydrogens (2, 1) handle_read_draw_molecule ("/Users/stocklab/Documents/Callum/rt1NG/rt1/structureData/PO4.pdb") set_molecule_bonds_colour_map_rotation (3, 84.00) set_mol_displayed (3, 0) set_mol_active (3, 0) set_draw_hydrogens (3, 1) handle_read_draw_molecule ("/Users/stocklab/Documents/Callum/rt1NG/rt1/structureData/PO4_O.pdb") set_molecule_bonds_colour_map_rotation (4, 105.00) set_mol_displayed (4, 0) set_mol_active (4, 0) set_draw_hydrogens (4, 1) handle_read_draw_molecule ("0_PO4e.pdb") set_molecule_bonds_colour_map_rotation (5, 147.00) set_draw_hydrogens (5, 1) handle_read_draw_molecule ("1_PO4e.pdb") set_molecule_bonds_colour_map_rotation (6, 168.00) set_mol_displayed (6, 0) set_mol_active (6, 0) set_draw_hydrogens (6, 1) handle_read_draw_molecule ("2_PO4e.pdb") set_molecule_bonds_colour_map_rotation (7, 189.00) set_mol_displayed (7, 0) set_mol_active (7, 0) set_draw_hydrogens (7, 1) handle_read_draw_molecule ("0_ADPb.pdb") set_molecule_bonds_colour_map_rotation (8, 210.00) set_mol_displayed (8, 0) set_mol_active (8, 0) set_draw_hydrogens (8, 1) handle_read_draw_molecule ("2_PO4h.pdb") set_molecule_bonds_colour_map_rotation (9, 231.00) set_mol_displayed (9, 0) set_mol_active (9, 0) set_draw_hydrogens (9, 1) handle_read_draw_molecule ("1_PO4h.pdb") set_molecule_bonds_colour_map_rotation (10, 252.00) set_mol_displayed (10, 0) set_mol_active (10, 0) set_draw_hydrogens (10, 1) handle_read_draw_molecule ("2_ADPb.pdb") set_molecule_bonds_colour_map_rotation (11, 273.00) set_mol_displayed (11, 0) set_mol_active (11, 0) set_draw_hydrogens (11, 1) handle_read_draw_molecule ("0_PO4h.pdb") set_molecule_bonds_colour_map_rotation (12, 294.00) set_draw_hydrogens (12, 1) set_matrix (60.00) set_show_symmetry_master (0) set_go_to_atom_molecule (12) scale_zoom ( 0.51) set_rotation_centre (30.82, 5.32, 147.91) set_view_quaternion (-0.0927, -0.3578, -0.9256, -0.0821) post_display_control_window ()
set_graphics_window_size(1309, 1017) set_graphics_window_position(20, 20) set_display_control_dialog_position(1491, 37) vt_surface(2) set_clipping_front(-10.0) set_clipping_back(-10.0) set_map_radius(10.0) set_iso_level_increment(0.05) set_diff_map_iso_level_increment(0.005) set_colour_map_rotation_on_read_pdb(21.0) set_colour_map_rotation_on_read_pdb_flag(1) set_colour_map_rotation_on_read_pdb_c_only_flag(1) set_swap_difference_map_colours(0) set_background_colour(0.0, 0.0, 0.0) set_symmetry_size(13.0) set_symmetry_colour_merge(0.5) set_symmetry_colour(0.1, 0.2, 0.8) set_symmetry_atom_labels_expanded(0) set_active_map_drag_flag(1) set_show_aniso(0) set_aniso_probability(50.0) set_smooth_scroll_steps(40) set_smooth_scroll_limit(10.0) set_font_size(2) set_rotation_centre_size(0.1) set_do_anti_aliasing(0) set_default_bond_thickness(5) handle_read_draw_molecule('0_PO4b.pdb') set_molecule_bonds_colour_map_rotation(0, 21.0) set_mol_displayed(0, 0) set_mol_active(0, 0) set_draw_hydrogens(0, 1) handle_read_draw_molecule('1_PO4b.pdb') set_molecule_bonds_colour_map_rotation(1, 42.0) set_draw_hydrogens(1, 1) handle_read_draw_molecule('2_PO4b.pdb') set_molecule_bonds_colour_map_rotation(2, 63.0) set_mol_displayed(2, 0) set_mol_active(2, 0) set_draw_hydrogens(2, 1) handle_read_draw_molecule('/Users/stocklab/Documents/Callum/rt1NG/rt1/structureData/PO4.pdb') set_molecule_bonds_colour_map_rotation(3, 84.0) set_mol_displayed(3, 0) set_mol_active(3, 0) set_draw_hydrogens(3, 1) handle_read_draw_molecule('/Users/stocklab/Documents/Callum/rt1NG/rt1/structureData/PO4_O.pdb') set_molecule_bonds_colour_map_rotation(4, 105.0) set_mol_displayed(4, 0) set_mol_active(4, 0) set_draw_hydrogens(4, 1) handle_read_draw_molecule('0_PO4e.pdb') set_molecule_bonds_colour_map_rotation(5, 147.0) set_draw_hydrogens(5, 1) handle_read_draw_molecule('1_PO4e.pdb') set_molecule_bonds_colour_map_rotation(6, 168.0) set_mol_displayed(6, 0) set_mol_active(6, 0) set_draw_hydrogens(6, 1) handle_read_draw_molecule('2_PO4e.pdb') set_molecule_bonds_colour_map_rotation(7, 189.0) set_mol_displayed(7, 0) set_mol_active(7, 0) set_draw_hydrogens(7, 1) handle_read_draw_molecule('0_ADPb.pdb') set_molecule_bonds_colour_map_rotation(8, 210.0) set_mol_displayed(8, 0) set_mol_active(8, 0) set_draw_hydrogens(8, 1) handle_read_draw_molecule('2_PO4h.pdb') set_molecule_bonds_colour_map_rotation(9, 231.0) set_mol_displayed(9, 0) set_mol_active(9, 0) set_draw_hydrogens(9, 1) handle_read_draw_molecule('1_PO4h.pdb') set_molecule_bonds_colour_map_rotation(10, 252.0) set_mol_displayed(10, 0) set_mol_active(10, 0) set_draw_hydrogens(10, 1) handle_read_draw_molecule('2_ADPb.pdb') set_molecule_bonds_colour_map_rotation(11, 273.0) set_mol_displayed(11, 0) set_mol_active(11, 0) set_draw_hydrogens(11, 1) handle_read_draw_molecule('0_PO4h.pdb') set_molecule_bonds_colour_map_rotation(12, 294.0) set_draw_hydrogens(12, 1) set_matrix(60.0) set_show_symmetry_master(0) set_go_to_atom_molecule(12) scale_zoom(0.51) set_rotation_centre(30.82, 5.32, 147.91) set_view_quaternion(-0.0927, -0.3578, -0.9256, -0.0821) post_display_control_window()
#!/usr/bin/env python # coding: utf-8 # This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges). # # Solution Notebook # ## Problem: Find the length of the longest substring with at most k distinct characters. # # * [Constraints](#Constraints) # * [Test Cases](#Test-Cases) # * [Algorithm](#Algorithm) # * [Code](#Code) # * [Unit Test](#Unit-Test) # ## Constraints # # * Can we assume the inputs are valid? # * No # * Can we assume the strings are ASCII? # * Yes # * Is this case sensitive? # * Yes # * Is a substring a contiguous block of chars? # * Yes # * Do we expect an int as a result? # * Yes # * Can we assume this fits memory? # * Yes # ## Test Cases # # * None -> TypeError # * '', k = 3 -> 0 # * 'abcabcdefgghiij', k=3 -> 6 # * 'abcabcdefgghighij', k=3 -> 7 # ## Algorithm # # We'll use a `chars_to_index_map` dictionary: char (key) to index (val) map to maintain a sliding window. # # The index (val) will keep track of the character index in the input string. # # For each character in the string: # # * Add the char (key) and index (value) to the map # * If the length of our map is greater than k, then we'll need to eliminate one item # * Scan the map to find the lowest index and remove it # * The new lowest index will therefore be incremented by 1 # * The max length will be the current index minus the lower index + 1 # # Complexity: # * Time: O(n * k), where n is the number of chars, k is the length of the map due to the min() call # * Space: O(n) # ## Code # In[1]: class Solution(object): def longest_substr(self, string, k): if string is None: raise TypeError('string cannot be None') if k is None: raise TypeError('k cannot be None') low_index = 0 max_length = 0 chars_to_index_map = {} for index, char in enumerate(string): chars_to_index_map[char] = index if len(chars_to_index_map) > k: low_index = min(chars_to_index_map.values()) del chars_to_index_map[string[low_index]] low_index += 1 max_length = max(max_length, index - low_index + 1) return max_length # ## Unit Test # In[2]: get_ipython().run_cell_magic('writefile', 'test_longest_substr.py', "import unittest\n\n\nclass TestSolution(unittest.TestCase):\n\n def test_longest_substr(self):\n solution = Solution()\n self.assertRaises(TypeError, solution.longest_substr, None)\n self.assertEqual(solution.longest_substr('', k=3), 0)\n self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n print('Success: test_longest_substr')\n\n\ndef main():\n test = TestSolution()\n test.test_longest_substr()\n\n\nif __name__ == '__main__':\n main()") # In[3]: get_ipython().run_line_magic('run', '-i test_longest_substr.py')
class Solution(object): def longest_substr(self, string, k): if string is None: raise type_error('string cannot be None') if k is None: raise type_error('k cannot be None') low_index = 0 max_length = 0 chars_to_index_map = {} for (index, char) in enumerate(string): chars_to_index_map[char] = index if len(chars_to_index_map) > k: low_index = min(chars_to_index_map.values()) del chars_to_index_map[string[low_index]] low_index += 1 max_length = max(max_length, index - low_index + 1) return max_length get_ipython().run_cell_magic('writefile', 'test_longest_substr.py', "import unittest\n\n\nclass TestSolution(unittest.TestCase):\n\n def test_longest_substr(self):\n solution = Solution()\n self.assertRaises(TypeError, solution.longest_substr, None)\n self.assertEqual(solution.longest_substr('', k=3), 0)\n self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n print('Success: test_longest_substr')\n\n\ndef main():\n test = TestSolution()\n test.test_longest_substr()\n\n\nif __name__ == '__main__':\n main()") get_ipython().run_line_magic('run', '-i test_longest_substr.py')
class DBPrefix: DATA_Block = b'\x01' DATA_Transaction = b'\x02' ST_Account = b'\x40' ST_Coin = b'\x44' ST_SpentCoin = b'\x45' ST_Validator = b'\x48' ST_Asset = b'\x4c' ST_Contract = b'\x50' ST_Storage = b'\x70' IX_HeaderHashList = b'\x80' SYS_CurrentBlock = b'\xc0' SYS_CurrentHeader = b'\xc1' SYS_Version = b'\xf0'
class Dbprefix: data__block = b'\x01' data__transaction = b'\x02' st__account = b'@' st__coin = b'D' st__spent_coin = b'E' st__validator = b'H' st__asset = b'L' st__contract = b'P' st__storage = b'p' ix__header_hash_list = b'\x80' sys__current_block = b'\xc0' sys__current_header = b'\xc1' sys__version = b'\xf0'
class EthTokenTransferV2(object): def __init__(self): self.contract_address = None self.from_address = None self.to_address = None self.token_type = None self.token_id = None self.amount = None self.transaction_hash = None self.log_index = None self.block_number = None
class Ethtokentransferv2(object): def __init__(self): self.contract_address = None self.from_address = None self.to_address = None self.token_type = None self.token_id = None self.amount = None self.transaction_hash = None self.log_index = None self.block_number = None
class Node(object): def __init__(self, value=None, pointer=None): self.value = value self.pointer = None class Queue(object): def __init__(self): self.head = None self.tail = None def isEmpty(self): return not bool(self.head) def enqueue(self, value): node = Node(value) if not self.head: self.head = node self.tail = node else: if self.tail: self.tail.pointer = node self.tail = node def size(self): node = self.head count = 0 while node: count += 1 node = node.pointer return count def peek(self): return self.head.value def __repr__(self): items = [] node = self.head while node: items.append(node.value) node = node.pointer items.reverse() return '{}'.format(items) def dequeue(self): if self.head: value = self.head.value self.head = self.head.pointer return value else: print('Queue is empty') if __name__ == '__main__': queue = Queue() print(queue.isEmpty()) queue.enqueue(23) queue.enqueue(4) queue.enqueue(8) print("Size: ", queue.size()) print(queue) print("Peek: ", queue.peek()) print("Dequeue! ", queue.dequeue()) print(queue)
class Node(object): def __init__(self, value=None, pointer=None): self.value = value self.pointer = None class Queue(object): def __init__(self): self.head = None self.tail = None def is_empty(self): return not bool(self.head) def enqueue(self, value): node = node(value) if not self.head: self.head = node self.tail = node else: if self.tail: self.tail.pointer = node self.tail = node def size(self): node = self.head count = 0 while node: count += 1 node = node.pointer return count def peek(self): return self.head.value def __repr__(self): items = [] node = self.head while node: items.append(node.value) node = node.pointer items.reverse() return '{}'.format(items) def dequeue(self): if self.head: value = self.head.value self.head = self.head.pointer return value else: print('Queue is empty') if __name__ == '__main__': queue = queue() print(queue.isEmpty()) queue.enqueue(23) queue.enqueue(4) queue.enqueue(8) print('Size: ', queue.size()) print(queue) print('Peek: ', queue.peek()) print('Dequeue! ', queue.dequeue()) print(queue)
def reverseList(self, head: ListNode) -> ListNode: # begin with temporary node cur = ListNode(-1) # continue while list exists while head is not None: # create temp and make temp the new cur temp = ListNode(-1) cur.val = head.val temp.next = cur cur = temp head = head.next return cur.next
def reverse_list(self, head: ListNode) -> ListNode: cur = list_node(-1) while head is not None: temp = list_node(-1) cur.val = head.val temp.next = cur cur = temp head = head.next return cur.next
# terrascript/data/hashicorp/random.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:25:40 UTC) __all__ = []
__all__ = []
class CommonRescale(): def get_factor(self, a): raise NotImplementedError def __call__(self, init, mask): init_copy = init.clone() init_copy[~mask] = 1e-12 return self.get_factor(init) / self.get_factor(init_copy) class L1GlobalRescale(CommonRescale): def get_factor(self, a): return a.abs().sum() class L2GlobalRescale(CommonRescale): def get_factor(self, a): return a.norm() class L1LocalRescale(CommonRescale): def get_factor(self, a): if len(a.shape) == 1: return a.abs() if len(a.shape) == 2: # Linear return a.abs().sum(dim=1, keepdims=True) if len(a.shape) == 4: # Conv2d return a.abs().sum(dim=(1, 2, 3), keepdims=True) class L2LocalRescale(CommonRescale): def get_factor(self, a): if len(a.shape) == 1: # Bias return a.abs() if len(a.shape) == 2: # Linear return a.norm(dim=1).unsqueeze(1) if len(a.shape) == 4: # Conv2d return a.reshape(a.shape[0], -1).norm(dim=1)[(..., None, None, None)]
class Commonrescale: def get_factor(self, a): raise NotImplementedError def __call__(self, init, mask): init_copy = init.clone() init_copy[~mask] = 1e-12 return self.get_factor(init) / self.get_factor(init_copy) class L1Globalrescale(CommonRescale): def get_factor(self, a): return a.abs().sum() class L2Globalrescale(CommonRescale): def get_factor(self, a): return a.norm() class L1Localrescale(CommonRescale): def get_factor(self, a): if len(a.shape) == 1: return a.abs() if len(a.shape) == 2: return a.abs().sum(dim=1, keepdims=True) if len(a.shape) == 4: return a.abs().sum(dim=(1, 2, 3), keepdims=True) class L2Localrescale(CommonRescale): def get_factor(self, a): if len(a.shape) == 1: return a.abs() if len(a.shape) == 2: return a.norm(dim=1).unsqueeze(1) if len(a.shape) == 4: return a.reshape(a.shape[0], -1).norm(dim=1)[..., None, None, None]
# # PySNMP MIB module BEGEMOT-WIRELESS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BEGEMOT-WIRELESS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:20:14 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, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection") begemot, = mibBuilder.importSymbols("BEGEMOT-MIB", "begemot") InterfaceIndex, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, MibIdentifier, TimeTicks, Gauge32, Counter64, ModuleIdentity, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, mib_2, Bits, iso, IpAddress, ObjectIdentity, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibIdentifier", "TimeTicks", "Gauge32", "Counter64", "ModuleIdentity", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "mib-2", "Bits", "iso", "IpAddress", "ObjectIdentity", "NotificationType") MacAddress, RowStatus, TruthValue, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "RowStatus", "TruthValue", "TextualConvention", "DisplayString") begemotWlan = ModuleIdentity((1, 3, 6, 1, 4, 1, 12325, 1, 210)) begemotWlan.setRevisions(('2010-05-17 00:00',)) if mibBuilder.loadTexts: begemotWlan.setLastUpdated('201005170000Z') if mibBuilder.loadTexts: begemotWlan.setOrganization('The FreeBSD Foundation') class WlanMgmtReasonCode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 32, 33, 34, 35, 36, 37, 38, 39)) namedValues = NamedValues(("unspecified", 1), ("authenticationExpire", 2), ("authenticationLeave", 3), ("associationExpire", 4), ("associationTooMany", 5), ("notAuthenticated", 6), ("notAssociated", 7), ("associationLeave", 8), ("associationNotAuthenticated", 9), ("dissassocPwrcapBad", 10), ("dissassocSuperchanBad", 11), ("ieInvalid", 13), ("micFailure", 14), ("fourWayHandshakeTimeout", 15), ("groupKeyUpdateTimeout", 16), ("ieIn4FourWayDiffers", 17), ("groupCipherInvalid", 18), ("pairwiseCiherInvalid", 19), ("akmpInvalid", 20), ("unsupportedRsnIeVersion", 21), ("invalidRsnIeCap", 22), ("dot1xAuthFailed", 23), ("cipherSuiteRejected", 24), ("unspeciffiedQos", 32), ("insufficientBw", 33), ("tooManyFrames", 34), ("outsideTxOp", 35), ("leavingQbss", 36), ("badMechanism", 37), ("setupNeeded", 38), ("timeout", 39)) class WlanMgmtMeshReasonCode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)) namedValues = NamedValues(("peerLinkCancelled", 2), ("maxPeers", 3), ("cpViolation", 4), ("closeRcvd", 5), ("maxRetries", 6), ("confirmTimeout", 7), ("invalidGtk", 8), ("inconsistentParams", 9), ("invalidSecurity", 10), ("perrUnspecified", 11), ("perrNoFI", 12), ("perrDestUnreach", 13)) class WlanMgmtStatusCode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 40, 41, 42, 43, 44, 45, 46)) namedValues = NamedValues(("success", 0), ("unspecified", 1), ("capabilitiesInfo", 10), ("notAssociated", 11), ("other", 12), ("algorithm", 13), ("sequence", 14), ("challenge", 15), ("timeout", 16), ("tooMany", 17), ("basicRate", 18), ("spRequired", 19), ("pbccRequired", 20), ("caRequired", 21), ("specMgmtRequired", 22), ("pwrcapRequire", 23), ("superchanRequired", 24), ("shortSlotRequired", 25), ("dssofdmRequired", 26), ("missingHTCaps", 27), ("invalidIE", 40), ("groupCipherInvalid", 41), ("pairwiseCipherInvalid", 42), ("akmpInvalid", 43), ("unsupportedRsnIEVersion", 44), ("invalidRsnIECap", 45), ("cipherSuiteRejected", 46)) class WlanRegDomainCode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)) namedValues = NamedValues(("fcc", 1), ("ca", 2), ("etsi", 3), ("etsi2", 4), ("etsi3", 5), ("fcc3", 6), ("japan", 7), ("korea", 8), ("apac", 9), ("apac2", 10), ("apac3", 11), ("row", 12), ("none", 13), ("debug", 14), ("sr9", 15), ("xr9", 16), ("gz901", 17)) class WlanIfaceDot11nPduType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("disabled", 0), ("rxOnly", 1), ("txOnly", 2), ("txAndRx", 3)) class WlanPeerCapabilityFlags(TextualConvention, Bits): status = 'current' namedValues = NamedValues(("ess", 1), ("ibss", 2), ("cfPollable", 3), ("cfPollRequest", 4), ("privacy", 5), ("shortPreamble", 6), ("pbcc", 7), ("channelAgility", 8), ("shortSlotTime", 9), ("rsn", 10), ("dsssofdm", 11)) class WlanIfPhyMode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)) namedValues = NamedValues(("auto", 1), ("dot11a", 2), ("dot11b", 3), ("dot11g", 4), ("fh", 5), ("turboA", 6), ("turboG", 7), ("sturboA", 8), ("dot11na", 9), ("dot11ng", 10), ("ofdmHalf", 11), ("ofdmQuarter", 12)) begemotWlanNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 0)) begemotWlanInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1)) begemotWlanScanning = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2)) begemotWlanStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3)) begemotWlanWep = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4)) begemotWlanMACAccessControl = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5)) begemotWlanMeshRouting = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6)) wlanInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1), ) if mibBuilder.loadTexts: wlanInterfaceTable.setStatus('current') wlanInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanInterfaceEntry.setStatus('current') wlanIfaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceIndex.setStatus('current') wlanIfaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceName.setStatus('current') wlanParentIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanParentIfName.setStatus('current') wlanIfaceOperatingMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("ibss", 0), ("station", 1), ("wds", 2), ("adhocDemo", 3), ("hostAp", 4), ("monitor", 5), ("meshPoint", 6), ("tdma", 7))).clone('station')).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceOperatingMode.setStatus('current') wlanIfaceFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 5), Bits().clone(namedValues=NamedValues(("uniqueBssid", 1), ("noBeacons", 2), ("wdsLegacy", 3)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceFlags.setStatus('current') wlanIfaceBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 6), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceBssid.setStatus('current') wlanIfaceLocalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 7), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceLocalAddress.setStatus('current') wlanIfaceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceStatus.setStatus('current') wlanIfaceState = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanIfaceState.setStatus('current') wlanIfParentTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2), ) if mibBuilder.loadTexts: wlanIfParentTable.setStatus('current') wlanIfParentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1), ) wlanInterfaceEntry.registerAugmentions(("BEGEMOT-WIRELESS-MIB", "wlanIfParentEntry")) wlanIfParentEntry.setIndexNames(*wlanInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: wlanIfParentEntry.setStatus('current') wlanIfParentDriverCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1, 1), Bits().clone(namedValues=NamedValues(("station", 1), ("ieee8023encap", 2), ("athFastFrames", 3), ("athTurbo", 4), ("ibss", 5), ("pmgt", 6), ("hostAp", 7), ("ahDemo", 8), ("swRetry", 9), ("txPmgt", 10), ("shortSlot", 11), ("shortPreamble", 12), ("monitor", 13), ("dfs", 14), ("mbss", 15), ("wpa1", 16), ("wpa2", 17), ("burst", 18), ("wme", 19), ("wds", 20), ("bgScan", 21), ("txFrag", 22), ("tdma", 23)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfParentDriverCapabilities.setStatus('current') wlanIfParentCryptoCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1, 2), Bits().clone(namedValues=NamedValues(("wep", 1), ("tkip", 2), ("aes", 3), ("aesCcm", 4), ("tkipMic", 5), ("ckip", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfParentCryptoCapabilities.setStatus('current') wlanIfParentHTCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1, 3), Bits().clone(namedValues=NamedValues(("ldpc", 1), ("chwidth40", 2), ("greenField", 3), ("shortGi20", 4), ("shortGi40", 5), ("txStbc", 6), ("delba", 7), ("amsdu7935", 8), ("dssscck40", 9), ("psmp", 10), ("fortyMHzIntolerant", 11), ("lsigTxOpProt", 12), ("htcAmpdu", 13), ("htcAmsdu", 14), ("htcHt", 15), ("htcSmps", 16), ("htcRifs", 17)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfParentHTCapabilities.setStatus('current') wlanIfaceConfigTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3), ) if mibBuilder.loadTexts: wlanIfaceConfigTable.setStatus('current') wlanIfaceConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1), ) wlanInterfaceEntry.registerAugmentions(("BEGEMOT-WIRELESS-MIB", "wlanIfaceConfigEntry")) wlanIfaceConfigEntry.setIndexNames(*wlanInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: wlanIfaceConfigEntry.setStatus('current') wlanIfacePacketBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfacePacketBurst.setStatus('current') wlanIfaceCountryCode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceCountryCode.setStatus('current') wlanIfaceRegDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 3), WlanRegDomainCode()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceRegDomain.setStatus('current') wlanIfaceDesiredSsid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDesiredSsid.setStatus('current') wlanIfaceDesiredChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDesiredChannel.setStatus('current') wlanIfaceDynamicFreqSelection = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDynamicFreqSelection.setStatus('current') wlanIfaceFastFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 7), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceFastFrames.setStatus('current') wlanIfaceDturbo = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 8), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDturbo.setStatus('current') wlanIfaceTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceTxPower.setStatus('current') wlanIfaceFragmentThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(256, 2346)).clone(2346)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceFragmentThreshold.setStatus('current') wlanIfaceRTSThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2346)).clone(2346)).setUnits('bytes').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceRTSThreshold.setStatus('current') wlanIfaceWlanPrivacySubscribe = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 12), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceWlanPrivacySubscribe.setStatus('current') wlanIfaceBgScan = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceBgScan.setStatus('current') wlanIfaceBgScanIdle = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 14), Integer32().clone(250)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceBgScanIdle.setStatus('current') wlanIfaceBgScanInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 15), Integer32().clone(300)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceBgScanInterval.setStatus('current') wlanIfaceBeaconMissedThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(7)).setUnits('frames').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceBeaconMissedThreshold.setStatus('current') wlanIfaceDesiredBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 17), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDesiredBssid.setStatus('current') wlanIfaceRoamingMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("device", 1), ("auto", 2), ("manual", 3))).clone('auto')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceRoamingMode.setStatus('current') wlanIfaceDot11d = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 19), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11d.setStatus('current') wlanIfaceDot11h = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 20), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11h.setStatus('current') wlanIfaceDynamicWds = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 21), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDynamicWds.setStatus('current') wlanIfacePowerSave = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 22), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfacePowerSave.setStatus('current') wlanIfaceApBridge = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 23), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceApBridge.setStatus('current') wlanIfaceBeaconInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(25, 1000)).clone(100)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceBeaconInterval.setStatus('current') wlanIfaceDtimPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDtimPeriod.setStatus('current') wlanIfaceHideSsid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 26), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceHideSsid.setStatus('current') wlanIfaceInactivityProccess = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 27), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceInactivityProccess.setStatus('current') wlanIfaceDot11gProtMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("cts", 2), ("rtscts", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11gProtMode.setStatus('current') wlanIfaceDot11gPureMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 29), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11gPureMode.setStatus('current') wlanIfaceDot11nPureMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 30), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nPureMode.setStatus('current') wlanIfaceDot11nAmpdu = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 31), WlanIfaceDot11nPduType().clone('txAndRx')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nAmpdu.setStatus('current') wlanIfaceDot11nAmpduDensity = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(25, 25), ValueRangeConstraint(50, 50), ValueRangeConstraint(100, 100), ValueRangeConstraint(200, 200), ValueRangeConstraint(400, 400), ValueRangeConstraint(800, 800), ValueRangeConstraint(1600, 1600), ))).setUnits('1/100ths-of-microsecond').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nAmpduDensity.setStatus('current') wlanIfaceDot11nAmpduLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(8192, 8192), ValueRangeConstraint(16384, 16384), ValueRangeConstraint(32768, 32768), ValueRangeConstraint(65536, 65536), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nAmpduLimit.setStatus('current') wlanIfaceDot11nAmsdu = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 34), WlanIfaceDot11nPduType().clone('rxOnly')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nAmsdu.setStatus('current') wlanIfaceDot11nAmsduLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(3839, 3839), ValueRangeConstraint(7935, 7935), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nAmsduLimit.setStatus('current') wlanIfaceDot11nHighThroughput = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 36), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nHighThroughput.setStatus('current') wlanIfaceDot11nHTCompatible = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 37), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nHTCompatible.setStatus('current') wlanIfaceDot11nHTProtMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("rts", 2))).clone('rts')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nHTProtMode.setStatus('current') wlanIfaceDot11nRIFS = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 39), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nRIFS.setStatus('current') wlanIfaceDot11nShortGI = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 40), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nShortGI.setStatus('current') wlanIfaceDot11nSMPSMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("static", 2), ("dynamic", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceDot11nSMPSMode.setStatus('current') wlanIfaceTdmaSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 42), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceTdmaSlot.setStatus('current') wlanIfaceTdmaSlotCount = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 43), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceTdmaSlotCount.setStatus('current') wlanIfaceTdmaSlotLength = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 44), Integer32().subtype(subtypeSpec=ValueRangeConstraint(150, 65000)).clone(10000)).setUnits('microseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceTdmaSlotLength.setStatus('current') wlanIfaceTdmaBeaconInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 45), Integer32().clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfaceTdmaBeaconInterval.setStatus('current') wlanIfacePeerTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4), ) if mibBuilder.loadTexts: wlanIfacePeerTable.setStatus('current') wlanIfacePeerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanIfacePeerAddress")) if mibBuilder.loadTexts: wlanIfacePeerEntry.setStatus('current') wlanIfacePeerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerAddress.setStatus('current') wlanIfacePeerAssociationId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerAssociationId.setStatus('current') wlanIfacePeerVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4096))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfacePeerVlanTag.setStatus('current') wlanIfacePeerFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerFrequency.setStatus('current') wlanIfacePeerCurrentTXRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerCurrentTXRate.setStatus('current') wlanIfacePeerRxSignalStrength = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerRxSignalStrength.setStatus('current') wlanIfacePeerIdleTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 7), Integer32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerIdleTimer.setStatus('current') wlanIfacePeerTxSequenceNo = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerTxSequenceNo.setStatus('current') wlanIfacePeerRxSequenceNo = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerRxSequenceNo.setStatus('current') wlanIfacePeerTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerTxPower.setStatus('current') wlanIfacePeerCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 11), WlanPeerCapabilityFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerCapabilities.setStatus('current') wlanIfacePeerFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 12), Bits().clone(namedValues=NamedValues(("authorizedForData", 1), ("qosEnabled", 2), ("erpEnabled", 3), ("powerSaveMode", 4), ("authRefHeld", 5), ("htEnabled", 6), ("htCompat", 7), ("wpsAssoc", 8), ("tsnAssoc", 9), ("ampduRx", 10), ("ampduTx", 11), ("mimoPowerSave", 12), ("sendRts", 13), ("rifs", 14), ("shortGiHT20", 15), ("shortGiHT40", 16), ("amsduRx", 17), ("amsduTx", 18)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfacePeerFlags.setStatus('current') wlanIfaceChannelTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5), ) if mibBuilder.loadTexts: wlanIfaceChannelTable.setStatus('current') wlanIfaceChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceChannelId")) if mibBuilder.loadTexts: wlanIfaceChannelEntry.setStatus('current') wlanIfaceChannelId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1536))) if mibBuilder.loadTexts: wlanIfaceChannelId.setStatus('current') wlanIfaceChannelIeeeId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelIeeeId.setStatus('current') wlanIfaceChannelType = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("fhss", 1), ("dot11a", 2), ("dot11b", 3), ("dot11g", 4), ("tenMHz", 5), ("fiveMHz", 6), ("turbo", 7), ("ht", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelType.setStatus('current') wlanIfaceChannelFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 4), Bits().clone(namedValues=NamedValues(("turbo", 1), ("cck", 2), ("ofdm", 3), ("spectrum2Ghz", 4), ("spectrum5Ghz", 5), ("passiveScan", 6), ("dynamicCckOfdm", 7), ("gfsk", 8), ("spectrum900Mhz", 9), ("dot11aStaticTurbo", 10), ("halfRate", 11), ("quarterRate", 12), ("ht20", 13), ("ht40u", 14), ("ht40d", 15), ("dfs", 16), ("xmit4ms", 17), ("noAdhoc", 18), ("noHostAp", 19), ("dot11d", 20)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelFlags.setStatus('current') wlanIfaceChannelFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelFrequency.setStatus('current') wlanIfaceChannelMaxRegPower = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelMaxRegPower.setStatus('current') wlanIfaceChannelMaxTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelMaxTxPower.setStatus('current') wlanIfaceChannelMinTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelMinTxPower.setStatus('current') wlanIfaceChannelState = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 9), Bits().clone(namedValues=NamedValues(("radar", 1), ("cacDone", 2), ("interferenceDetected", 3), ("radarClear", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelState.setStatus('current') wlanIfaceChannelHTExtension = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelHTExtension.setStatus('current') wlanIfaceChannelMaxAntennaGain = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfaceChannelMaxAntennaGain.setStatus('current') wlanScanConfigTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1), ) if mibBuilder.loadTexts: wlanScanConfigTable.setStatus('current') wlanScanConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanScanConfigEntry.setStatus('current') wlanScanFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 1), Bits().clone(namedValues=NamedValues(("noSelection", 1), ("activeScan", 2), ("pickFirst", 3), ("backgroundScan", 4), ("once", 5), ("noBroadcast", 6), ("noAutoSequencing", 7), ("flushCashe", 8), ("chechCashe", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanScanFlags.setStatus('current') wlanScanDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanScanDuration.setStatus('current') wlanScanMinChannelDwellTime = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 3), Integer32()).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanScanMinChannelDwellTime.setStatus('current') wlanScanMaxChannelDwellTime = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 4), Integer32()).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanScanMaxChannelDwellTime.setStatus('current') wlanScanConfigStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 0), ("notStarted", 1), ("running", 2), ("finished", 3), ("cancel", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanScanConfigStatus.setStatus('current') wlanScanResultsTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2), ) if mibBuilder.loadTexts: wlanScanResultsTable.setStatus('current') wlanScanResultsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanScanResultID"), (0, "BEGEMOT-WIRELESS-MIB", "wlanScanResultBssid")) if mibBuilder.loadTexts: wlanScanResultsEntry.setStatus('current') wlanScanResultID = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultID.setStatus('current') wlanScanResultBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultBssid.setStatus('current') wlanScanResultChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultChannel.setStatus('current') wlanScanResultRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultRate.setStatus('current') wlanScanResultNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultNoise.setStatus('current') wlanScanResultBeaconInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultBeaconInterval.setStatus('current') wlanScanResultCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 7), WlanPeerCapabilityFlags()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanScanResultCapabilities.setStatus('current') wlanIfRoamParamsTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6), ) if mibBuilder.loadTexts: wlanIfRoamParamsTable.setStatus('current') wlanIfRoamParamsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanIfRoamPhyMode")) if mibBuilder.loadTexts: wlanIfRoamParamsEntry.setStatus('current') wlanIfRoamPhyMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1, 1), WlanIfPhyMode()) if mibBuilder.loadTexts: wlanIfRoamPhyMode.setStatus('current') wlanIfRoamRxSignalStrength = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfRoamRxSignalStrength.setStatus('current') wlanIfRoamTxRateThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanIfRoamTxRateThreshold.setStatus('current') wlanIfTxParamsTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7), ) if mibBuilder.loadTexts: wlanIfTxParamsTable.setStatus('current') wlanIfTxParamsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanIfTxPhyMode")) if mibBuilder.loadTexts: wlanIfTxParamsEntry.setStatus('current') wlanIfTxPhyMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 1), WlanIfPhyMode()) if mibBuilder.loadTexts: wlanIfTxPhyMode.setStatus('current') wlanIfTxUnicastRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfTxUnicastRate.setStatus('current') wlanIfTxMcastRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfTxMcastRate.setStatus('current') wlanIfTxMgmtRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfTxMgmtRate.setStatus('current') wlanIfTxMaxRetryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanIfTxMaxRetryCount.setStatus('current') wlanIfaceStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1), ) if mibBuilder.loadTexts: wlanIfaceStatisticsTable.setStatus('current') wlanIfaceStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1), ) wlanInterfaceEntry.registerAugmentions(("BEGEMOT-WIRELESS-MIB", "wlanIfaceStatisticsEntry")) wlanIfaceStatisticsEntry.setIndexNames(*wlanInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: wlanIfaceStatisticsEntry.setStatus('current') wlanStatsRxBadVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 1), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxBadVersion.setStatus('current') wlanStatsRxTooShort = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 2), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxTooShort.setStatus('current') wlanStatsRxWrongBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 3), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxWrongBssid.setStatus('current') wlanStatsRxDiscardedDups = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDiscardedDups.setStatus('current') wlanStatsRxWrongDir = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 5), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxWrongDir.setStatus('current') wlanStatsRxDiscardMcastEcho = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 6), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDiscardMcastEcho.setStatus('current') wlanStatsRxDiscardNoAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 7), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDiscardNoAssoc.setStatus('current') wlanStatsRxWepNoPrivacy = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 8), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxWepNoPrivacy.setStatus('current') wlanStatsRxWepUnencrypted = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 9), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxWepUnencrypted.setStatus('current') wlanStatsRxWepFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 10), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxWepFailed.setStatus('current') wlanStatsRxDecapsulationFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 11), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDecapsulationFailed.setStatus('current') wlanStatsRxDiscardMgmt = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 12), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDiscardMgmt.setStatus('current') wlanStatsRxControl = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 13), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxControl.setStatus('current') wlanStatsRxBeacon = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 14), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxBeacon.setStatus('current') wlanStatsRxRateSetTooBig = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 15), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxRateSetTooBig.setStatus('current') wlanStatsRxElemMissing = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 16), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxElemMissing.setStatus('current') wlanStatsRxElemTooBig = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 17), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxElemTooBig.setStatus('current') wlanStatsRxElemTooSmall = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 18), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxElemTooSmall.setStatus('current') wlanStatsRxElemUnknown = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 19), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxElemUnknown.setStatus('current') wlanStatsRxChannelMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 20), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxChannelMismatch.setStatus('current') wlanStatsRxDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 21), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDropped.setStatus('current') wlanStatsRxSsidMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 22), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxSsidMismatch.setStatus('current') wlanStatsRxAuthNotSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 23), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAuthNotSupported.setStatus('current') wlanStatsRxAuthFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 24), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAuthFailed.setStatus('current') wlanStatsRxAuthCM = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 25), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAuthCM.setStatus('current') wlanStatsRxAssocWrongBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 26), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAssocWrongBssid.setStatus('current') wlanStatsRxAssocNoAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 27), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAssocNoAuth.setStatus('current') wlanStatsRxAssocCapMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 28), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAssocCapMismatch.setStatus('current') wlanStatsRxAssocNoRateMatch = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 29), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAssocNoRateMatch.setStatus('current') wlanStatsRxBadWpaIE = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 30), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxBadWpaIE.setStatus('current') wlanStatsRxDeauthenticate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 31), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDeauthenticate.setStatus('current') wlanStatsRxDisassociate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 32), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDisassociate.setStatus('current') wlanStatsRxUnknownSubtype = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 33), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxUnknownSubtype.setStatus('current') wlanStatsRxFailedNoBuf = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 34), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxFailedNoBuf.setStatus('current') wlanStatsRxBadAuthRequest = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 35), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxBadAuthRequest.setStatus('current') wlanStatsRxUnAuthorized = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 36), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxUnAuthorized.setStatus('current') wlanStatsRxBadKeyId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 37), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxBadKeyId.setStatus('current') wlanStatsRxCCMPSeqViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 38), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxCCMPSeqViolation.setStatus('current') wlanStatsRxCCMPBadFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 39), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxCCMPBadFormat.setStatus('current') wlanStatsRxCCMPFailedMIC = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 40), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxCCMPFailedMIC.setStatus('current') wlanStatsRxTKIPSeqViolation = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 41), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxTKIPSeqViolation.setStatus('current') wlanStatsRxTKIPBadFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 42), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxTKIPBadFormat.setStatus('current') wlanStatsRxTKIPFailedMIC = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 43), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxTKIPFailedMIC.setStatus('current') wlanStatsRxTKIPFailedICV = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 44), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxTKIPFailedICV.setStatus('current') wlanStatsRxDiscardACL = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 45), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDiscardACL.setStatus('current') wlanStatsTxFailedNoBuf = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 46), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxFailedNoBuf.setStatus('current') wlanStatsTxFailedNoNode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 47), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxFailedNoNode.setStatus('current') wlanStatsTxUnknownMgmt = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 48), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxUnknownMgmt.setStatus('current') wlanStatsTxBadCipher = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 49), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxBadCipher.setStatus('current') wlanStatsTxNoDefKey = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 50), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxNoDefKey.setStatus('current') wlanStatsTxFragmented = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 51), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxFragmented.setStatus('current') wlanStatsTxFragmentsCreated = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 52), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxFragmentsCreated.setStatus('current') wlanStatsActiveScans = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 53), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsActiveScans.setStatus('current') wlanStatsPassiveScans = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 54), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsPassiveScans.setStatus('current') wlanStatsTimeoutInactivity = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 55), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTimeoutInactivity.setStatus('current') wlanStatsCryptoNoMem = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 56), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoNoMem.setStatus('current') wlanStatsSwCryptoTKIP = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 57), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsSwCryptoTKIP.setStatus('current') wlanStatsSwCryptoTKIPEnMIC = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 58), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsSwCryptoTKIPEnMIC.setStatus('current') wlanStatsSwCryptoTKIPDeMIC = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 59), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsSwCryptoTKIPDeMIC.setStatus('current') wlanStatsCryptoTKIPCM = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 60), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoTKIPCM.setStatus('current') wlanStatsSwCryptoCCMP = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsSwCryptoCCMP.setStatus('current') wlanStatsSwCryptoWEP = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsSwCryptoWEP.setStatus('current') wlanStatsCryptoCipherKeyRejected = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoCipherKeyRejected.setStatus('current') wlanStatsCryptoNoKey = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoNoKey.setStatus('current') wlanStatsCryptoDeleteKeyFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoDeleteKeyFailed.setStatus('current') wlanStatsCryptoUnknownCipher = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoUnknownCipher.setStatus('current') wlanStatsCryptoAttachFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 67), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoAttachFailed.setStatus('current') wlanStatsCryptoKeyFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 68), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoKeyFailed.setStatus('current') wlanStatsCryptoEnMICFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 69), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsCryptoEnMICFailed.setStatus('current') wlanStatsIBSSCapMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 70), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsIBSSCapMismatch.setStatus('current') wlanStatsUnassocStaPSPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 71), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsUnassocStaPSPoll.setStatus('current') wlanStatsBadAidPSPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 72), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsBadAidPSPoll.setStatus('current') wlanStatsEmptyPSPoll = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 73), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsEmptyPSPoll.setStatus('current') wlanStatsRxFFBadHdr = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 74), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxFFBadHdr.setStatus('current') wlanStatsRxFFTooShort = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 75), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxFFTooShort.setStatus('current') wlanStatsRxFFSplitError = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 76), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxFFSplitError.setStatus('current') wlanStatsRxFFDecap = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 77), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxFFDecap.setStatus('current') wlanStatsTxFFEncap = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 78), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxFFEncap.setStatus('current') wlanStatsRxBadBintval = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 79), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxBadBintval.setStatus('current') wlanStatsRxDemicFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 80), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDemicFailed.setStatus('current') wlanStatsRxDefragFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 81), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDefragFailed.setStatus('current') wlanStatsRxMgmt = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 82), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxMgmt.setStatus('current') wlanStatsRxActionMgmt = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 83), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxActionMgmt.setStatus('current') wlanStatsRxAMSDUTooShort = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 84), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAMSDUTooShort.setStatus('current') wlanStatsRxAMSDUSplitError = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 85), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAMSDUSplitError.setStatus('current') wlanStatsRxAMSDUDecap = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 86), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxAMSDUDecap.setStatus('current') wlanStatsTxAMSDUEncap = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 87), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxAMSDUEncap.setStatus('current') wlanStatsAMPDUBadBAR = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 88), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDUBadBAR.setStatus('current') wlanStatsAMPDUOowBar = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 89), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDUOowBar.setStatus('current') wlanStatsAMPDUMovedBAR = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 90), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDUMovedBAR.setStatus('current') wlanStatsAMPDURxBAR = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 91), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURxBAR.setStatus('current') wlanStatsAMPDURxOor = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 92), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURxOor.setStatus('current') wlanStatsAMPDURxCopied = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 93), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURxCopied.setStatus('current') wlanStatsAMPDURxDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 94), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURxDropped.setStatus('current') wlanStatsTxDiscardBadState = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 95), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxDiscardBadState.setStatus('current') wlanStatsTxFailedNoAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 96), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxFailedNoAssoc.setStatus('current') wlanStatsTxClassifyFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 97), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxClassifyFailed.setStatus('current') wlanStatsDwdsMcastDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 98), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsDwdsMcastDiscard.setStatus('current') wlanStatsHTAssocRejectNoHT = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 99), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsHTAssocRejectNoHT.setStatus('current') wlanStatsHTAssocDowngrade = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 100), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsHTAssocDowngrade.setStatus('current') wlanStatsHTAssocRateMismatch = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 101), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsHTAssocRateMismatch.setStatus('current') wlanStatsAMPDURxAge = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 102), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURxAge.setStatus('current') wlanStatsAMPDUMoved = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 103), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDUMoved.setStatus('current') wlanStatsADDBADisabledReject = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 104), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsADDBADisabledReject.setStatus('current') wlanStatsADDBANoRequest = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 105), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsADDBANoRequest.setStatus('current') wlanStatsADDBABadToken = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 106), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsADDBABadToken.setStatus('current') wlanStatsADDBABadPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 107), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsADDBABadPolicy.setStatus('current') wlanStatsAMPDUStopped = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 108), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDUStopped.setStatus('current') wlanStatsAMPDUStopFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 109), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDUStopFailed.setStatus('current') wlanStatsAMPDURxReorder = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 110), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURxReorder.setStatus('current') wlanStatsScansBackground = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 111), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsScansBackground.setStatus('current') wlanLastDeauthReason = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 112), WlanMgmtReasonCode()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanLastDeauthReason.setStatus('current') wlanLastDissasocReason = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 113), WlanMgmtReasonCode()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanLastDissasocReason.setStatus('current') wlanLastAuthFailReason = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 114), WlanMgmtReasonCode()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanLastAuthFailReason.setStatus('current') wlanStatsBeaconMissedEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 115), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsBeaconMissedEvents.setStatus('current') wlanStatsRxDiscardBadStates = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 116), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsRxDiscardBadStates.setStatus('current') wlanStatsFFFlushed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 117), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsFFFlushed.setStatus('current') wlanStatsTxControlFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 118), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsTxControlFrames.setStatus('current') wlanStatsAMPDURexmt = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 119), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURexmt.setStatus('current') wlanStatsAMPDURexmtFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 120), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanStatsAMPDURexmtFailed.setStatus('current') wlanStatsReset = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 121), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no-op", 1), ("clear", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanStatsReset.setStatus('current') wlanWepInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1), ) if mibBuilder.loadTexts: wlanWepInterfaceTable.setStatus('current') wlanWepInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanWepInterfaceEntry.setStatus('current') wlanWepMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("off", 0), ("on", 1), ("mixed", 2))).clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanWepMode.setStatus('current') wlanWepDefTxKey = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanWepDefTxKey.setStatus('current') wlanWepKeyTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2), ) if mibBuilder.loadTexts: wlanWepKeyTable.setStatus('current') wlanWepKeyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanWepKeyID")) if mibBuilder.loadTexts: wlanWepKeyEntry.setStatus('current') wlanWepKeyID = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanWepKeyID.setStatus('current') wlanWepKeyLength = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanWepKeyLength.setStatus('current') wlanWepKeySet = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 3), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanWepKeySet.setStatus('current') wlanWepKeyHash = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanWepKeyHash.setStatus('current') wlanWepKeyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 5), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanWepKeyStatus.setStatus('current') wlanMACAccessControlTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1), ) if mibBuilder.loadTexts: wlanMACAccessControlTable.setStatus('current') wlanMACAccessControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanMACAccessControlEntry.setStatus('current') wlanMACAccessControlPolicy = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 7))).clone(namedValues=NamedValues(("open", 0), ("allow", 1), ("deny", 2), ("radius", 7))).clone('open')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMACAccessControlPolicy.setStatus('current') wlanMACAccessControlNacl = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMACAccessControlNacl.setStatus('current') wlanMACAccessControlFlush = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no-op", 0), ("flush", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMACAccessControlFlush.setStatus('current') wlanMACAccessControlMACTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2), ) if mibBuilder.loadTexts: wlanMACAccessControlMACTable.setStatus('current') wlanMACAccessControlMACEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanMACAccessControlMAC")) if mibBuilder.loadTexts: wlanMACAccessControlMACEntry.setStatus('current') wlanMACAccessControlMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2, 1, 1), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMACAccessControlMAC.setStatus('current') wlanMACAccessControlMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2, 1, 2), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMACAccessControlMACStatus.setStatus('current') wlanMeshRoutingConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1)) wlanMeshInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2)) wlanMeshRoute = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3)) wlanMeshStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4)) wlanMeshRouteProtocols = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5)) wlanMeshMaxRetries = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 1), Integer32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshMaxRetries.setStatus('current') wlanMeshConfirmTimeout = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 2), Integer32().clone(40)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshConfirmTimeout.setStatus('current') wlanMeshHoldingTimeout = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 3), Integer32().clone(40)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshHoldingTimeout.setStatus('current') wlanMeshRetryTimeout = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 4), Integer32().clone(40)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshRetryTimeout.setStatus('current') wlanMeshInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1), ) if mibBuilder.loadTexts: wlanMeshInterfaceTable.setStatus('current') wlanMeshInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanMeshInterfaceEntry.setStatus('current') wlanMeshId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshId.setStatus('current') wlanMeshTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 2), Integer32().clone(31)).setUnits('hops').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshTTL.setStatus('current') wlanMeshPeeringEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshPeeringEnabled.setStatus('current') wlanMeshForwardingEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 4), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshForwardingEnabled.setStatus('current') wlanMeshMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("unknown", 0), ("airtime", 1))).clone('airtime')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshMetric.setStatus('current') wlanMeshPath = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("unknown", 0), ("hwmp", 1))).clone('hwmp')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshPath.setStatus('current') wlanMeshRoutesFlush = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no-op", 0), ("flush", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshRoutesFlush.setStatus('current') wlanMeshNeighborTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2), ) if mibBuilder.loadTexts: wlanMeshNeighborTable.setStatus('current') wlanMeshNeighborEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanMeshNeighborAddress")) if mibBuilder.loadTexts: wlanMeshNeighborEntry.setStatus('current') wlanMeshNeighborAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborAddress.setStatus('current') wlanMeshNeighborFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborFrequency.setStatus('current') wlanMeshNeighborLocalId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborLocalId.setStatus('current') wlanMeshNeighborPeerId = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborPeerId.setStatus('current') wlanMeshNeighborPeerState = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("idle", 0), ("openTx", 1), ("openRx", 2), ("confirmRx", 3), ("established", 4), ("closing", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborPeerState.setStatus('current') wlanMeshNeighborCurrentTXRate = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborCurrentTXRate.setStatus('current') wlanMeshNeighborRxSignalStrength = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborRxSignalStrength.setStatus('current') wlanMeshNeighborIdleTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 8), Integer32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborIdleTimer.setStatus('current') wlanMeshNeighborTxSequenceNo = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborTxSequenceNo.setStatus('current') wlanMeshNeighborRxSequenceNo = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNeighborRxSequenceNo.setStatus('current') wlanMeshRouteTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1), ) if mibBuilder.loadTexts: wlanMeshRouteTable.setStatus('current') wlanMeshRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName"), (0, "BEGEMOT-WIRELESS-MIB", "wlanMeshRouteDestination")) if mibBuilder.loadTexts: wlanMeshRouteEntry.setStatus('current') wlanMeshRouteDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 1), MacAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: wlanMeshRouteDestination.setStatus('current') wlanMeshRouteNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteNextHop.setStatus('current') wlanMeshRouteHops = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteHops.setStatus('current') wlanMeshRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteMetric.setStatus('current') wlanMeshRouteLifeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 5), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteLifeTime.setStatus('current') wlanMeshRouteLastMseq = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteLastMseq.setStatus('current') wlanMeshRouteFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 7), Bits().clone(namedValues=NamedValues(("valid", 1), ("proxy", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteFlags.setStatus('current') wlanMeshRouteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 8), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanMeshRouteStatus.setStatus('current') wlanMeshStatsTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1), ) if mibBuilder.loadTexts: wlanMeshStatsTable.setStatus('current') wlanMeshStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanMeshStatsEntry.setStatus('current') wlanMeshDroppedBadSta = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 1), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshDroppedBadSta.setStatus('current') wlanMeshDroppedNoLink = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 2), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshDroppedNoLink.setStatus('current') wlanMeshNoFwdTtl = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 3), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNoFwdTtl.setStatus('current') wlanMeshNoFwdBuf = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNoFwdBuf.setStatus('current') wlanMeshNoFwdTooShort = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 5), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNoFwdTooShort.setStatus('current') wlanMeshNoFwdDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 6), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNoFwdDisabled.setStatus('current') wlanMeshNoFwdPathUnknown = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 7), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshNoFwdPathUnknown.setStatus('current') wlanMeshDroppedBadAE = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 8), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshDroppedBadAE.setStatus('current') wlanMeshRouteAddFailed = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshRouteAddFailed.setStatus('current') wlanMeshDroppedNoProxy = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 10), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshDroppedNoProxy.setStatus('current') wlanMeshDroppedMisaligned = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 11), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshDroppedMisaligned.setStatus('current') wlanMeshProtoHWMP = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1)) wlanMeshHWMPConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1)) wlanMeshHWMPInterface = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2)) wlanMeshHWMPStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3)) wlanHWMPRouteInactiveTimeout = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 1), Integer32().clone(5000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPRouteInactiveTimeout.setStatus('current') wlanHWMPRootAnnounceInterval = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 2), Integer32().clone(1000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPRootAnnounceInterval.setStatus('current') wlanHWMPRootInterval = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 3), Integer32().clone(2000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPRootInterval.setStatus('current') wlanHWMPRootTimeout = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 4), Integer32().clone(5000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPRootTimeout.setStatus('current') wlanHWMPPathLifetime = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 5), Integer32().clone(500)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPPathLifetime.setStatus('current') wlanHWMPReplyForwardBit = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 6), Integer32().clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPReplyForwardBit.setStatus('current') wlanHWMPTargetOnlyBit = MibScalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPTargetOnlyBit.setStatus('current') wlanHWMPInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1), ) if mibBuilder.loadTexts: wlanHWMPInterfaceTable.setStatus('current') wlanHWMPInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanHWMPInterfaceEntry.setStatus('current') wlanHWMPRootMode = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("normal", 2), ("proactive", 3), ("rann", 4))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPRootMode.setStatus('current') wlanHWMPMaxHops = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1, 1, 2), Integer32().clone(31)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wlanHWMPMaxHops.setStatus('current') wlanMeshHWMPStatsTable = MibTable((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1), ) if mibBuilder.loadTexts: wlanMeshHWMPStatsTable.setStatus('current') wlanMeshHWMPStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1), ).setIndexNames((0, "BEGEMOT-WIRELESS-MIB", "wlanIfaceName")) if mibBuilder.loadTexts: wlanMeshHWMPStatsEntry.setStatus('current') wlanMeshHWMPWrongSeqNo = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 1), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshHWMPWrongSeqNo.setStatus('current') wlanMeshHWMPTxRootPREQ = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 2), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshHWMPTxRootPREQ.setStatus('current') wlanMeshHWMPTxRootRANN = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 3), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshHWMPTxRootRANN.setStatus('current') wlanMeshHWMPProxy = MibTableColumn((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: wlanMeshHWMPProxy.setStatus('current') mibBuilder.exportSymbols("BEGEMOT-WIRELESS-MIB", wlanMeshNeighborRxSequenceNo=wlanMeshNeighborRxSequenceNo, wlanIfaceHideSsid=wlanIfaceHideSsid, wlanIfacePeerIdleTimer=wlanIfacePeerIdleTimer, wlanStatsRxBadVersion=wlanStatsRxBadVersion, wlanIfaceDot11nAmpdu=wlanIfaceDot11nAmpdu, wlanStatsRxRateSetTooBig=wlanStatsRxRateSetTooBig, wlanIfaceFastFrames=wlanIfaceFastFrames, wlanIfRoamParamsEntry=wlanIfRoamParamsEntry, wlanStatsRxActionMgmt=wlanStatsRxActionMgmt, wlanStatsRxDiscardNoAssoc=wlanStatsRxDiscardNoAssoc, wlanIfaceBgScanIdle=wlanIfaceBgScanIdle, wlanStatsRxFFDecap=wlanStatsRxFFDecap, wlanStatsRxUnknownSubtype=wlanStatsRxUnknownSubtype, wlanStatsScansBackground=wlanStatsScansBackground, wlanStatsRxFFBadHdr=wlanStatsRxFFBadHdr, wlanIfaceState=wlanIfaceState, wlanMACAccessControlMACTable=wlanMACAccessControlMACTable, wlanIfaceTdmaBeaconInterval=wlanIfaceTdmaBeaconInterval, wlanMeshNoFwdDisabled=wlanMeshNoFwdDisabled, wlanIfaceChannelMaxTxPower=wlanIfaceChannelMaxTxPower, wlanMeshRoutingConfig=wlanMeshRoutingConfig, wlanIfaceRegDomain=wlanIfaceRegDomain, WlanMgmtReasonCode=WlanMgmtReasonCode, wlanStatsRxDropped=wlanStatsRxDropped, wlanIfaceRoamingMode=wlanIfaceRoamingMode, wlanIfaceDot11gPureMode=wlanIfaceDot11gPureMode, wlanScanResultBeaconInterval=wlanScanResultBeaconInterval, wlanIfaceStatisticsEntry=wlanIfaceStatisticsEntry, WlanRegDomainCode=WlanRegDomainCode, wlanStatsTxFailedNoNode=wlanStatsTxFailedNoNode, wlanStatsRxElemTooSmall=wlanStatsRxElemTooSmall, begemotWlanScanning=begemotWlanScanning, wlanIfaceChannelHTExtension=wlanIfaceChannelHTExtension, wlanStatsRxBadWpaIE=wlanStatsRxBadWpaIE, wlanMeshPath=wlanMeshPath, wlanIfParentTable=wlanIfParentTable, wlanMACAccessControlTable=wlanMACAccessControlTable, wlanStatsRxAuthCM=wlanStatsRxAuthCM, wlanStatsSwCryptoWEP=wlanStatsSwCryptoWEP, wlanIfaceConfigEntry=wlanIfaceConfigEntry, wlanStatsAMPDURxDropped=wlanStatsAMPDURxDropped, wlanScanResultBssid=wlanScanResultBssid, wlanMeshDroppedNoLink=wlanMeshDroppedNoLink, wlanMeshHWMPInterface=wlanMeshHWMPInterface, wlanIfaceFragmentThreshold=wlanIfaceFragmentThreshold, wlanHWMPInterfaceEntry=wlanHWMPInterfaceEntry, wlanMeshNoFwdPathUnknown=wlanMeshNoFwdPathUnknown, wlanScanFlags=wlanScanFlags, wlanScanResultsTable=wlanScanResultsTable, wlanStatsRxDiscardACL=wlanStatsRxDiscardACL, wlanMeshProtoHWMP=wlanMeshProtoHWMP, wlanStatsTxUnknownMgmt=wlanStatsTxUnknownMgmt, wlanIfaceDot11nPureMode=wlanIfaceDot11nPureMode, wlanIfaceDynamicWds=wlanIfaceDynamicWds, wlanIfacePeerVlanTag=wlanIfacePeerVlanTag, wlanStatsRxFFTooShort=wlanStatsRxFFTooShort, wlanStatsRxDefragFailed=wlanStatsRxDefragFailed, wlanScanResultChannel=wlanScanResultChannel, wlanStatsRxMgmt=wlanStatsRxMgmt, wlanIfaceBgScanInterval=wlanIfaceBgScanInterval, wlanIfaceDot11gProtMode=wlanIfaceDot11gProtMode, wlanStatsSwCryptoTKIP=wlanStatsSwCryptoTKIP, wlanStatsRxTKIPFailedICV=wlanStatsRxTKIPFailedICV, wlanStatsCryptoKeyFailed=wlanStatsCryptoKeyFailed, wlanIfacePeerTxSequenceNo=wlanIfacePeerTxSequenceNo, begemotWlanNotifications=begemotWlanNotifications, wlanIfParentEntry=wlanIfParentEntry, wlanStatsAMPDUStopFailed=wlanStatsAMPDUStopFailed, wlanMeshMaxRetries=wlanMeshMaxRetries, wlanStatsAMPDUOowBar=wlanStatsAMPDUOowBar, wlanIfacePeerFlags=wlanIfacePeerFlags, wlanStatsRxElemMissing=wlanStatsRxElemMissing, begemotWlanMACAccessControl=begemotWlanMACAccessControl, wlanStatsAMPDURxReorder=wlanStatsAMPDURxReorder, wlanMeshNeighborLocalId=wlanMeshNeighborLocalId, wlanMeshNeighborCurrentTXRate=wlanMeshNeighborCurrentTXRate, wlanStatsTxNoDefKey=wlanStatsTxNoDefKey, wlanWepKeyID=wlanWepKeyID, wlanMeshRouteTable=wlanMeshRouteTable, wlanStatsRxTooShort=wlanStatsRxTooShort, wlanIfaceDot11d=wlanIfaceDot11d, begemotWlanInterface=begemotWlanInterface, begemotWlanMeshRouting=begemotWlanMeshRouting, wlanMACAccessControlFlush=wlanMACAccessControlFlush, wlanStatsAMPDURxCopied=wlanStatsAMPDURxCopied, wlanIfaceChannelFlags=wlanIfaceChannelFlags, wlanScanResultCapabilities=wlanScanResultCapabilities, WlanIfPhyMode=WlanIfPhyMode, wlanStatsRxDemicFailed=wlanStatsRxDemicFailed, wlanMACAccessControlMACStatus=wlanMACAccessControlMACStatus, wlanIfacePowerSave=wlanIfacePowerSave, wlanIfacePeerTable=wlanIfacePeerTable, wlanMeshRouteProtocols=wlanMeshRouteProtocols, wlanWepMode=wlanWepMode, wlanIfaceDesiredBssid=wlanIfaceDesiredBssid, wlanStatsRxAssocWrongBssid=wlanStatsRxAssocWrongBssid, wlanIfRoamPhyMode=wlanIfRoamPhyMode, wlanMeshNeighborFrequency=wlanMeshNeighborFrequency, wlanScanConfigTable=wlanScanConfigTable, wlanIfaceDot11nShortGI=wlanIfaceDot11nShortGI, wlanWepKeyLength=wlanWepKeyLength, wlanMeshDroppedMisaligned=wlanMeshDroppedMisaligned, wlanMeshHWMPTxRootRANN=wlanMeshHWMPTxRootRANN, wlanStatsRxAuthNotSupported=wlanStatsRxAuthNotSupported, wlanStatsRxElemUnknown=wlanStatsRxElemUnknown, wlanStatsRxAssocNoAuth=wlanStatsRxAssocNoAuth, wlanHWMPRootMode=wlanHWMPRootMode, wlanLastDeauthReason=wlanLastDeauthReason, wlanIfacePeerCurrentTXRate=wlanIfacePeerCurrentTXRate, wlanIfTxParamsEntry=wlanIfTxParamsEntry, wlanIfaceDot11nAmpduDensity=wlanIfaceDot11nAmpduDensity, wlanIfacePeerAssociationId=wlanIfacePeerAssociationId, wlanHWMPTargetOnlyBit=wlanHWMPTargetOnlyBit, wlanIfaceApBridge=wlanIfaceApBridge, wlanInterfaceTable=wlanInterfaceTable, wlanStatsEmptyPSPoll=wlanStatsEmptyPSPoll, wlanStatsADDBABadPolicy=wlanStatsADDBABadPolicy, wlanStatsRxDisassociate=wlanStatsRxDisassociate, WlanMgmtMeshReasonCode=WlanMgmtMeshReasonCode, begemotWlan=begemotWlan, wlanMeshRouteFlags=wlanMeshRouteFlags, wlanMeshStatistics=wlanMeshStatistics, wlanLastAuthFailReason=wlanLastAuthFailReason, wlanScanConfigStatus=wlanScanConfigStatus, wlanMeshDroppedBadSta=wlanMeshDroppedBadSta, wlanWepInterfaceTable=wlanWepInterfaceTable, wlanStatsRxDeauthenticate=wlanStatsRxDeauthenticate, WlanPeerCapabilityFlags=WlanPeerCapabilityFlags, wlanStatsIBSSCapMismatch=wlanStatsIBSSCapMismatch, wlanIfTxParamsTable=wlanIfTxParamsTable, wlanStatsHTAssocDowngrade=wlanStatsHTAssocDowngrade, wlanMeshStatsTable=wlanMeshStatsTable, wlanMeshRouteDestination=wlanMeshRouteDestination, wlanMeshHWMPProxy=wlanMeshHWMPProxy, wlanIfTxUnicastRate=wlanIfTxUnicastRate, wlanMeshNeighborEntry=wlanMeshNeighborEntry, wlanStatsCryptoNoKey=wlanStatsCryptoNoKey, wlanIfaceInactivityProccess=wlanIfaceInactivityProccess, wlanIfaceName=wlanIfaceName, wlanIfaceChannelMinTxPower=wlanIfaceChannelMinTxPower, wlanIfTxMcastRate=wlanIfTxMcastRate, wlanIfRoamRxSignalStrength=wlanIfRoamRxSignalStrength, wlanLastDissasocReason=wlanLastDissasocReason, wlanIfaceChannelType=wlanIfaceChannelType, wlanScanResultID=wlanScanResultID, wlanIfaceDot11nAmsduLimit=wlanIfaceDot11nAmsduLimit, wlanMeshMetric=wlanMeshMetric, wlanStatsRxDiscardMcastEcho=wlanStatsRxDiscardMcastEcho, wlanStatsRxWepUnencrypted=wlanStatsRxWepUnencrypted, wlanMeshForwardingEnabled=wlanMeshForwardingEnabled, wlanIfaceConfigTable=wlanIfaceConfigTable, begemotWlanWep=begemotWlanWep, wlanMeshNoFwdTtl=wlanMeshNoFwdTtl, wlanMeshNoFwdBuf=wlanMeshNoFwdBuf, wlanMACAccessControlMAC=wlanMACAccessControlMAC, wlanStatsADDBABadToken=wlanStatsADDBABadToken, wlanMeshPeeringEnabled=wlanMeshPeeringEnabled, wlanIfaceBssid=wlanIfaceBssid, wlanIfaceChannelIeeeId=wlanIfaceChannelIeeeId, wlanIfaceChannelMaxRegPower=wlanIfaceChannelMaxRegPower, wlanScanMinChannelDwellTime=wlanScanMinChannelDwellTime, wlanMeshHoldingTimeout=wlanMeshHoldingTimeout, wlanStatsCryptoEnMICFailed=wlanStatsCryptoEnMICFailed, wlanWepKeySet=wlanWepKeySet, wlanScanConfigEntry=wlanScanConfigEntry, wlanStatsHTAssocRejectNoHT=wlanStatsHTAssocRejectNoHT, wlanStatsRxAssocNoRateMatch=wlanStatsRxAssocNoRateMatch, wlanIfParentDriverCapabilities=wlanIfParentDriverCapabilities, wlanMeshHWMPStatsEntry=wlanMeshHWMPStatsEntry, wlanIfaceDynamicFreqSelection=wlanIfaceDynamicFreqSelection, begemotWlanStatistics=begemotWlanStatistics, wlanStatsAMPDUBadBAR=wlanStatsAMPDUBadBAR, wlanIfaceDot11h=wlanIfaceDot11h, wlanIfaceBeaconMissedThreshold=wlanIfaceBeaconMissedThreshold, wlanMeshTTL=wlanMeshTTL, wlanMeshInterfaceTable=wlanMeshInterfaceTable, wlanMeshConfirmTimeout=wlanMeshConfirmTimeout, wlanStatsTxFragmented=wlanStatsTxFragmented, wlanStatsTxDiscardBadState=wlanStatsTxDiscardBadState, wlanIfaceStatisticsTable=wlanIfaceStatisticsTable, wlanIfaceChannelTable=wlanIfaceChannelTable, wlanMeshHWMPStatsTable=wlanMeshHWMPStatsTable, wlanWepKeyHash=wlanWepKeyHash, wlanMACAccessControlPolicy=wlanMACAccessControlPolicy, wlanMeshHWMPTxRootPREQ=wlanMeshHWMPTxRootPREQ, wlanStatsTimeoutInactivity=wlanStatsTimeoutInactivity, wlanWepKeyEntry=wlanWepKeyEntry, wlanIfaceCountryCode=wlanIfaceCountryCode, wlanIfacePeerFrequency=wlanIfacePeerFrequency, wlanStatsRxAMSDUSplitError=wlanStatsRxAMSDUSplitError, wlanStatsRxAMSDUTooShort=wlanStatsRxAMSDUTooShort, wlanHWMPReplyForwardBit=wlanHWMPReplyForwardBit, wlanIfRoamParamsTable=wlanIfRoamParamsTable, wlanStatsTxClassifyFailed=wlanStatsTxClassifyFailed, wlanIfaceDesiredChannel=wlanIfaceDesiredChannel, wlanIfaceStatus=wlanIfaceStatus, wlanStatsRxWrongDir=wlanStatsRxWrongDir, wlanIfTxMgmtRate=wlanIfTxMgmtRate, wlanMeshHWMPWrongSeqNo=wlanMeshHWMPWrongSeqNo, wlanHWMPRootInterval=wlanHWMPRootInterval, wlanMeshDroppedBadAE=wlanMeshDroppedBadAE, wlanHWMPRootAnnounceInterval=wlanHWMPRootAnnounceInterval, wlanStatsTxFailedNoBuf=wlanStatsTxFailedNoBuf, wlanStatsRxAMSDUDecap=wlanStatsRxAMSDUDecap, wlanStatsTxFailedNoAssoc=wlanStatsTxFailedNoAssoc, wlanStatsHTAssocRateMismatch=wlanStatsHTAssocRateMismatch, wlanIfaceDturbo=wlanIfaceDturbo, wlanScanDuration=wlanScanDuration, wlanInterfaceEntry=wlanInterfaceEntry, wlanIfaceDot11nAmsdu=wlanIfaceDot11nAmsdu, wlanMeshRoute=wlanMeshRoute, wlanIfaceTxPower=wlanIfaceTxPower, wlanIfaceDtimPeriod=wlanIfaceDtimPeriod, wlanHWMPMaxHops=wlanHWMPMaxHops, wlanIfRoamTxRateThreshold=wlanIfRoamTxRateThreshold, wlanStatsReset=wlanStatsReset, wlanStatsCryptoDeleteKeyFailed=wlanStatsCryptoDeleteKeyFailed, wlanIfaceChannelId=wlanIfaceChannelId, wlanStatsRxWrongBssid=wlanStatsRxWrongBssid, wlanStatsTxAMSDUEncap=wlanStatsTxAMSDUEncap, wlanMeshRouteNextHop=wlanMeshRouteNextHop, wlanStatsRxControl=wlanStatsRxControl, wlanStatsCryptoNoMem=wlanStatsCryptoNoMem, wlanStatsSwCryptoCCMP=wlanStatsSwCryptoCCMP, wlanIfaceLocalAddress=wlanIfaceLocalAddress, wlanStatsRxUnAuthorized=wlanStatsRxUnAuthorized, wlanStatsSwCryptoTKIPEnMIC=wlanStatsSwCryptoTKIPEnMIC, wlanStatsRxElemTooBig=wlanStatsRxElemTooBig, wlanIfaceBeaconInterval=wlanIfaceBeaconInterval, wlanIfaceTdmaSlotCount=wlanIfaceTdmaSlotCount, wlanStatsDwdsMcastDiscard=wlanStatsDwdsMcastDiscard, wlanWepDefTxKey=wlanWepDefTxKey, wlanStatsTxBadCipher=wlanStatsTxBadCipher, wlanIfaceTdmaSlotLength=wlanIfaceTdmaSlotLength, wlanStatsAMPDURxAge=wlanStatsAMPDURxAge, wlanIfacePeerRxSignalStrength=wlanIfacePeerRxSignalStrength, wlanWepKeyTable=wlanWepKeyTable, wlanStatsCryptoCipherKeyRejected=wlanStatsCryptoCipherKeyRejected, wlanMeshNeighborPeerId=wlanMeshNeighborPeerId, wlanMeshRouteHops=wlanMeshRouteHops, wlanMeshRouteAddFailed=wlanMeshRouteAddFailed, wlanStatsRxTKIPFailedMIC=wlanStatsRxTKIPFailedMIC, wlanMeshRouteLifeTime=wlanMeshRouteLifeTime, wlanIfaceDot11nHTProtMode=wlanIfaceDot11nHTProtMode, wlanStatsCryptoAttachFailed=wlanStatsCryptoAttachFailed, wlanStatsFFFlushed=wlanStatsFFFlushed, wlanStatsRxAssocCapMismatch=wlanStatsRxAssocCapMismatch, wlanIfaceTdmaSlot=wlanIfaceTdmaSlot, wlanMeshRouteStatus=wlanMeshRouteStatus, wlanHWMPPathLifetime=wlanHWMPPathLifetime, wlanIfacePeerRxSequenceNo=wlanIfacePeerRxSequenceNo, wlanMeshNeighborRxSignalStrength=wlanMeshNeighborRxSignalStrength, WlanMgmtStatusCode=WlanMgmtStatusCode, wlanScanResultsEntry=wlanScanResultsEntry) mibBuilder.exportSymbols("BEGEMOT-WIRELESS-MIB", wlanMeshHWMPStatistics=wlanMeshHWMPStatistics, wlanStatsRxSsidMismatch=wlanStatsRxSsidMismatch, wlanHWMPRouteInactiveTimeout=wlanHWMPRouteInactiveTimeout, wlanStatsTxFFEncap=wlanStatsTxFFEncap, wlanIfaceChannelEntry=wlanIfaceChannelEntry, wlanStatsBeaconMissedEvents=wlanStatsBeaconMissedEvents, wlanStatsRxDecapsulationFailed=wlanStatsRxDecapsulationFailed, wlanMeshNoFwdTooShort=wlanMeshNoFwdTooShort, wlanMeshId=wlanMeshId, wlanStatsRxBadKeyId=wlanStatsRxBadKeyId, wlanStatsCryptoUnknownCipher=wlanStatsCryptoUnknownCipher, wlanMACAccessControlNacl=wlanMACAccessControlNacl, wlanIfaceChannelFrequency=wlanIfaceChannelFrequency, wlanIfacePeerEntry=wlanIfacePeerEntry, wlanIfaceDot11nSMPSMode=wlanIfaceDot11nSMPSMode, wlanMACAccessControlMACEntry=wlanMACAccessControlMACEntry, wlanStatsRxTKIPSeqViolation=wlanStatsRxTKIPSeqViolation, wlanStatsRxDiscardMgmt=wlanStatsRxDiscardMgmt, wlanStatsTxFragmentsCreated=wlanStatsTxFragmentsCreated, wlanIfTxPhyMode=wlanIfTxPhyMode, wlanStatsRxBeacon=wlanStatsRxBeacon, wlanIfacePacketBurst=wlanIfacePacketBurst, wlanStatsAMPDURexmt=wlanStatsAMPDURexmt, wlanHWMPRootTimeout=wlanHWMPRootTimeout, wlanStatsRxFFSplitError=wlanStatsRxFFSplitError, wlanMeshInterface=wlanMeshInterface, wlanMeshNeighborIdleTimer=wlanMeshNeighborIdleTimer, wlanIfParentHTCapabilities=wlanIfParentHTCapabilities, wlanStatsRxDiscardedDups=wlanStatsRxDiscardedDups, wlanMeshRouteMetric=wlanMeshRouteMetric, wlanStatsRxChannelMismatch=wlanStatsRxChannelMismatch, WlanIfaceDot11nPduType=WlanIfaceDot11nPduType, wlanStatsAMPDURxOor=wlanStatsAMPDURxOor, wlanMeshInterfaceEntry=wlanMeshInterfaceEntry, wlanStatsRxWepFailed=wlanStatsRxWepFailed, wlanStatsAMPDUMoved=wlanStatsAMPDUMoved, wlanMeshNeighborPeerState=wlanMeshNeighborPeerState, wlanIfTxMaxRetryCount=wlanIfTxMaxRetryCount, wlanMeshRetryTimeout=wlanMeshRetryTimeout, wlanIfaceDot11nAmpduLimit=wlanIfaceDot11nAmpduLimit, wlanStatsRxBadAuthRequest=wlanStatsRxBadAuthRequest, PYSNMP_MODULE_ID=begemotWlan, wlanIfParentCryptoCapabilities=wlanIfParentCryptoCapabilities, wlanMeshNeighborAddress=wlanMeshNeighborAddress, wlanIfaceFlags=wlanIfaceFlags, wlanIfaceChannelState=wlanIfaceChannelState, wlanStatsAMPDURxBAR=wlanStatsAMPDURxBAR, wlanStatsRxCCMPFailedMIC=wlanStatsRxCCMPFailedMIC, wlanHWMPInterfaceTable=wlanHWMPInterfaceTable, wlanIfaceDot11nHighThroughput=wlanIfaceDot11nHighThroughput, wlanIfaceDot11nHTCompatible=wlanIfaceDot11nHTCompatible, wlanStatsUnassocStaPSPoll=wlanStatsUnassocStaPSPoll, wlanStatsRxCCMPBadFormat=wlanStatsRxCCMPBadFormat, wlanIfaceDesiredSsid=wlanIfaceDesiredSsid, wlanIfacePeerAddress=wlanIfacePeerAddress, wlanStatsAMPDUStopped=wlanStatsAMPDUStopped, wlanStatsAMPDURexmtFailed=wlanStatsAMPDURexmtFailed, wlanStatsRxFailedNoBuf=wlanStatsRxFailedNoBuf, wlanIfaceOperatingMode=wlanIfaceOperatingMode, wlanIfacePeerCapabilities=wlanIfacePeerCapabilities, wlanScanMaxChannelDwellTime=wlanScanMaxChannelDwellTime, wlanStatsSwCryptoTKIPDeMIC=wlanStatsSwCryptoTKIPDeMIC, wlanStatsADDBADisabledReject=wlanStatsADDBADisabledReject, wlanIfaceRTSThreshold=wlanIfaceRTSThreshold, wlanStatsRxWepNoPrivacy=wlanStatsRxWepNoPrivacy, wlanStatsActiveScans=wlanStatsActiveScans, wlanIfaceBgScan=wlanIfaceBgScan, wlanStatsRxDiscardBadStates=wlanStatsRxDiscardBadStates, wlanWepInterfaceEntry=wlanWepInterfaceEntry, wlanMeshRouteEntry=wlanMeshRouteEntry, wlanStatsRxAuthFailed=wlanStatsRxAuthFailed, wlanScanResultNoise=wlanScanResultNoise, wlanParentIfName=wlanParentIfName, wlanStatsAMPDUMovedBAR=wlanStatsAMPDUMovedBAR, wlanStatsRxCCMPSeqViolation=wlanStatsRxCCMPSeqViolation, wlanIfaceDot11nRIFS=wlanIfaceDot11nRIFS, wlanMeshRouteLastMseq=wlanMeshRouteLastMseq, wlanStatsRxTKIPBadFormat=wlanStatsRxTKIPBadFormat, wlanMACAccessControlEntry=wlanMACAccessControlEntry, wlanMeshDroppedNoProxy=wlanMeshDroppedNoProxy, wlanWepKeyStatus=wlanWepKeyStatus, wlanMeshRoutesFlush=wlanMeshRoutesFlush, wlanIfacePeerTxPower=wlanIfacePeerTxPower, wlanStatsCryptoTKIPCM=wlanStatsCryptoTKIPCM, wlanIfaceWlanPrivacySubscribe=wlanIfaceWlanPrivacySubscribe, wlanScanResultRate=wlanScanResultRate, wlanStatsADDBANoRequest=wlanStatsADDBANoRequest, wlanIfaceChannelMaxAntennaGain=wlanIfaceChannelMaxAntennaGain, wlanStatsTxControlFrames=wlanStatsTxControlFrames, wlanMeshStatsEntry=wlanMeshStatsEntry, wlanStatsPassiveScans=wlanStatsPassiveScans, wlanMeshNeighborTable=wlanMeshNeighborTable, wlanStatsRxBadBintval=wlanStatsRxBadBintval, wlanMeshHWMPConfig=wlanMeshHWMPConfig, wlanMeshNeighborTxSequenceNo=wlanMeshNeighborTxSequenceNo, wlanIfaceIndex=wlanIfaceIndex, wlanStatsBadAidPSPoll=wlanStatsBadAidPSPoll)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (begemot,) = mibBuilder.importSymbols('BEGEMOT-MIB', 'begemot') (interface_index, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'ifIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, mib_identifier, time_ticks, gauge32, counter64, module_identity, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, mib_2, bits, iso, ip_address, object_identity, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibIdentifier', 'TimeTicks', 'Gauge32', 'Counter64', 'ModuleIdentity', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'mib-2', 'Bits', 'iso', 'IpAddress', 'ObjectIdentity', 'NotificationType') (mac_address, row_status, truth_value, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'RowStatus', 'TruthValue', 'TextualConvention', 'DisplayString') begemot_wlan = module_identity((1, 3, 6, 1, 4, 1, 12325, 1, 210)) begemotWlan.setRevisions(('2010-05-17 00:00',)) if mibBuilder.loadTexts: begemotWlan.setLastUpdated('201005170000Z') if mibBuilder.loadTexts: begemotWlan.setOrganization('The FreeBSD Foundation') class Wlanmgmtreasoncode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 32, 33, 34, 35, 36, 37, 38, 39)) named_values = named_values(('unspecified', 1), ('authenticationExpire', 2), ('authenticationLeave', 3), ('associationExpire', 4), ('associationTooMany', 5), ('notAuthenticated', 6), ('notAssociated', 7), ('associationLeave', 8), ('associationNotAuthenticated', 9), ('dissassocPwrcapBad', 10), ('dissassocSuperchanBad', 11), ('ieInvalid', 13), ('micFailure', 14), ('fourWayHandshakeTimeout', 15), ('groupKeyUpdateTimeout', 16), ('ieIn4FourWayDiffers', 17), ('groupCipherInvalid', 18), ('pairwiseCiherInvalid', 19), ('akmpInvalid', 20), ('unsupportedRsnIeVersion', 21), ('invalidRsnIeCap', 22), ('dot1xAuthFailed', 23), ('cipherSuiteRejected', 24), ('unspeciffiedQos', 32), ('insufficientBw', 33), ('tooManyFrames', 34), ('outsideTxOp', 35), ('leavingQbss', 36), ('badMechanism', 37), ('setupNeeded', 38), ('timeout', 39)) class Wlanmgmtmeshreasoncode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)) named_values = named_values(('peerLinkCancelled', 2), ('maxPeers', 3), ('cpViolation', 4), ('closeRcvd', 5), ('maxRetries', 6), ('confirmTimeout', 7), ('invalidGtk', 8), ('inconsistentParams', 9), ('invalidSecurity', 10), ('perrUnspecified', 11), ('perrNoFI', 12), ('perrDestUnreach', 13)) class Wlanmgmtstatuscode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 40, 41, 42, 43, 44, 45, 46)) named_values = named_values(('success', 0), ('unspecified', 1), ('capabilitiesInfo', 10), ('notAssociated', 11), ('other', 12), ('algorithm', 13), ('sequence', 14), ('challenge', 15), ('timeout', 16), ('tooMany', 17), ('basicRate', 18), ('spRequired', 19), ('pbccRequired', 20), ('caRequired', 21), ('specMgmtRequired', 22), ('pwrcapRequire', 23), ('superchanRequired', 24), ('shortSlotRequired', 25), ('dssofdmRequired', 26), ('missingHTCaps', 27), ('invalidIE', 40), ('groupCipherInvalid', 41), ('pairwiseCipherInvalid', 42), ('akmpInvalid', 43), ('unsupportedRsnIEVersion', 44), ('invalidRsnIECap', 45), ('cipherSuiteRejected', 46)) class Wlanregdomaincode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)) named_values = named_values(('fcc', 1), ('ca', 2), ('etsi', 3), ('etsi2', 4), ('etsi3', 5), ('fcc3', 6), ('japan', 7), ('korea', 8), ('apac', 9), ('apac2', 10), ('apac3', 11), ('row', 12), ('none', 13), ('debug', 14), ('sr9', 15), ('xr9', 16), ('gz901', 17)) class Wlanifacedot11Npdutype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('disabled', 0), ('rxOnly', 1), ('txOnly', 2), ('txAndRx', 3)) class Wlanpeercapabilityflags(TextualConvention, Bits): status = 'current' named_values = named_values(('ess', 1), ('ibss', 2), ('cfPollable', 3), ('cfPollRequest', 4), ('privacy', 5), ('shortPreamble', 6), ('pbcc', 7), ('channelAgility', 8), ('shortSlotTime', 9), ('rsn', 10), ('dsssofdm', 11)) class Wlanifphymode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)) named_values = named_values(('auto', 1), ('dot11a', 2), ('dot11b', 3), ('dot11g', 4), ('fh', 5), ('turboA', 6), ('turboG', 7), ('sturboA', 8), ('dot11na', 9), ('dot11ng', 10), ('ofdmHalf', 11), ('ofdmQuarter', 12)) begemot_wlan_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 0)) begemot_wlan_interface = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1)) begemot_wlan_scanning = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2)) begemot_wlan_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3)) begemot_wlan_wep = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4)) begemot_wlan_mac_access_control = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5)) begemot_wlan_mesh_routing = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6)) wlan_interface_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1)) if mibBuilder.loadTexts: wlanInterfaceTable.setStatus('current') wlan_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanInterfaceEntry.setStatus('current') wlan_iface_index = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceIndex.setStatus('current') wlan_iface_name = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceName.setStatus('current') wlan_parent_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanParentIfName.setStatus('current') wlan_iface_operating_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('ibss', 0), ('station', 1), ('wds', 2), ('adhocDemo', 3), ('hostAp', 4), ('monitor', 5), ('meshPoint', 6), ('tdma', 7))).clone('station')).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceOperatingMode.setStatus('current') wlan_iface_flags = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 5), bits().clone(namedValues=named_values(('uniqueBssid', 1), ('noBeacons', 2), ('wdsLegacy', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceFlags.setStatus('current') wlan_iface_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 6), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceBssid.setStatus('current') wlan_iface_local_address = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 7), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceLocalAddress.setStatus('current') wlan_iface_status = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceStatus.setStatus('current') wlan_iface_state = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanIfaceState.setStatus('current') wlan_if_parent_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2)) if mibBuilder.loadTexts: wlanIfParentTable.setStatus('current') wlan_if_parent_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1)) wlanInterfaceEntry.registerAugmentions(('BEGEMOT-WIRELESS-MIB', 'wlanIfParentEntry')) wlanIfParentEntry.setIndexNames(*wlanInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: wlanIfParentEntry.setStatus('current') wlan_if_parent_driver_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1, 1), bits().clone(namedValues=named_values(('station', 1), ('ieee8023encap', 2), ('athFastFrames', 3), ('athTurbo', 4), ('ibss', 5), ('pmgt', 6), ('hostAp', 7), ('ahDemo', 8), ('swRetry', 9), ('txPmgt', 10), ('shortSlot', 11), ('shortPreamble', 12), ('monitor', 13), ('dfs', 14), ('mbss', 15), ('wpa1', 16), ('wpa2', 17), ('burst', 18), ('wme', 19), ('wds', 20), ('bgScan', 21), ('txFrag', 22), ('tdma', 23)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfParentDriverCapabilities.setStatus('current') wlan_if_parent_crypto_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1, 2), bits().clone(namedValues=named_values(('wep', 1), ('tkip', 2), ('aes', 3), ('aesCcm', 4), ('tkipMic', 5), ('ckip', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfParentCryptoCapabilities.setStatus('current') wlan_if_parent_ht_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 2, 1, 3), bits().clone(namedValues=named_values(('ldpc', 1), ('chwidth40', 2), ('greenField', 3), ('shortGi20', 4), ('shortGi40', 5), ('txStbc', 6), ('delba', 7), ('amsdu7935', 8), ('dssscck40', 9), ('psmp', 10), ('fortyMHzIntolerant', 11), ('lsigTxOpProt', 12), ('htcAmpdu', 13), ('htcAmsdu', 14), ('htcHt', 15), ('htcSmps', 16), ('htcRifs', 17)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfParentHTCapabilities.setStatus('current') wlan_iface_config_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3)) if mibBuilder.loadTexts: wlanIfaceConfigTable.setStatus('current') wlan_iface_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1)) wlanInterfaceEntry.registerAugmentions(('BEGEMOT-WIRELESS-MIB', 'wlanIfaceConfigEntry')) wlanIfaceConfigEntry.setIndexNames(*wlanInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: wlanIfaceConfigEntry.setStatus('current') wlan_iface_packet_burst = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfacePacketBurst.setStatus('current') wlan_iface_country_code = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(3, 3)).setFixedLength(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceCountryCode.setStatus('current') wlan_iface_reg_domain = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 3), wlan_reg_domain_code()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceRegDomain.setStatus('current') wlan_iface_desired_ssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDesiredSsid.setStatus('current') wlan_iface_desired_channel = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDesiredChannel.setStatus('current') wlan_iface_dynamic_freq_selection = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDynamicFreqSelection.setStatus('current') wlan_iface_fast_frames = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 7), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceFastFrames.setStatus('current') wlan_iface_dturbo = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 8), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDturbo.setStatus('current') wlan_iface_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceTxPower.setStatus('current') wlan_iface_fragment_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(256, 2346)).clone(2346)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceFragmentThreshold.setStatus('current') wlan_iface_rts_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 2346)).clone(2346)).setUnits('bytes').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceRTSThreshold.setStatus('current') wlan_iface_wlan_privacy_subscribe = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 12), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceWlanPrivacySubscribe.setStatus('current') wlan_iface_bg_scan = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 13), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceBgScan.setStatus('current') wlan_iface_bg_scan_idle = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 14), integer32().clone(250)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceBgScanIdle.setStatus('current') wlan_iface_bg_scan_interval = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 15), integer32().clone(300)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceBgScanInterval.setStatus('current') wlan_iface_beacon_missed_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(7)).setUnits('frames').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceBeaconMissedThreshold.setStatus('current') wlan_iface_desired_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 17), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDesiredBssid.setStatus('current') wlan_iface_roaming_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('device', 1), ('auto', 2), ('manual', 3))).clone('auto')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceRoamingMode.setStatus('current') wlan_iface_dot11d = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 19), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11d.setStatus('current') wlan_iface_dot11h = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 20), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11h.setStatus('current') wlan_iface_dynamic_wds = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 21), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDynamicWds.setStatus('current') wlan_iface_power_save = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 22), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfacePowerSave.setStatus('current') wlan_iface_ap_bridge = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 23), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceApBridge.setStatus('current') wlan_iface_beacon_interval = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(25, 1000)).clone(100)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceBeaconInterval.setStatus('current') wlan_iface_dtim_period = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDtimPeriod.setStatus('current') wlan_iface_hide_ssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 26), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceHideSsid.setStatus('current') wlan_iface_inactivity_proccess = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 27), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceInactivityProccess.setStatus('current') wlan_iface_dot11g_prot_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('cts', 2), ('rtscts', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11gProtMode.setStatus('current') wlan_iface_dot11g_pure_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 29), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11gPureMode.setStatus('current') wlan_iface_dot11n_pure_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 30), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nPureMode.setStatus('current') wlan_iface_dot11n_ampdu = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 31), wlan_iface_dot11n_pdu_type().clone('txAndRx')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nAmpdu.setStatus('current') wlan_iface_dot11n_ampdu_density = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 32), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(25, 25), value_range_constraint(50, 50), value_range_constraint(100, 100), value_range_constraint(200, 200), value_range_constraint(400, 400), value_range_constraint(800, 800), value_range_constraint(1600, 1600)))).setUnits('1/100ths-of-microsecond').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nAmpduDensity.setStatus('current') wlan_iface_dot11n_ampdu_limit = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 33), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(8192, 8192), value_range_constraint(16384, 16384), value_range_constraint(32768, 32768), value_range_constraint(65536, 65536)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nAmpduLimit.setStatus('current') wlan_iface_dot11n_amsdu = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 34), wlan_iface_dot11n_pdu_type().clone('rxOnly')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nAmsdu.setStatus('current') wlan_iface_dot11n_amsdu_limit = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 35), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(3839, 3839), value_range_constraint(7935, 7935)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nAmsduLimit.setStatus('current') wlan_iface_dot11n_high_throughput = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 36), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nHighThroughput.setStatus('current') wlan_iface_dot11n_ht_compatible = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 37), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nHTCompatible.setStatus('current') wlan_iface_dot11n_ht_prot_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('rts', 2))).clone('rts')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nHTProtMode.setStatus('current') wlan_iface_dot11n_rifs = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 39), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nRIFS.setStatus('current') wlan_iface_dot11n_short_gi = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 40), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nShortGI.setStatus('current') wlan_iface_dot11n_smps_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('static', 2), ('dynamic', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceDot11nSMPSMode.setStatus('current') wlan_iface_tdma_slot = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 42), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceTdmaSlot.setStatus('current') wlan_iface_tdma_slot_count = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 43), integer32().subtype(subtypeSpec=value_range_constraint(0, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceTdmaSlotCount.setStatus('current') wlan_iface_tdma_slot_length = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 44), integer32().subtype(subtypeSpec=value_range_constraint(150, 65000)).clone(10000)).setUnits('microseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceTdmaSlotLength.setStatus('current') wlan_iface_tdma_beacon_interval = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 3, 1, 45), integer32().clone(5)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfaceTdmaBeaconInterval.setStatus('current') wlan_iface_peer_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4)) if mibBuilder.loadTexts: wlanIfacePeerTable.setStatus('current') wlan_iface_peer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfacePeerAddress')) if mibBuilder.loadTexts: wlanIfacePeerEntry.setStatus('current') wlan_iface_peer_address = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 1), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerAddress.setStatus('current') wlan_iface_peer_association_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerAssociationId.setStatus('current') wlan_iface_peer_vlan_tag = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4096))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfacePeerVlanTag.setStatus('current') wlan_iface_peer_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerFrequency.setStatus('current') wlan_iface_peer_current_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerCurrentTXRate.setStatus('current') wlan_iface_peer_rx_signal_strength = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerRxSignalStrength.setStatus('current') wlan_iface_peer_idle_timer = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 7), integer32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerIdleTimer.setStatus('current') wlan_iface_peer_tx_sequence_no = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerTxSequenceNo.setStatus('current') wlan_iface_peer_rx_sequence_no = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerRxSequenceNo.setStatus('current') wlan_iface_peer_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerTxPower.setStatus('current') wlan_iface_peer_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 11), wlan_peer_capability_flags()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerCapabilities.setStatus('current') wlan_iface_peer_flags = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 4, 1, 12), bits().clone(namedValues=named_values(('authorizedForData', 1), ('qosEnabled', 2), ('erpEnabled', 3), ('powerSaveMode', 4), ('authRefHeld', 5), ('htEnabled', 6), ('htCompat', 7), ('wpsAssoc', 8), ('tsnAssoc', 9), ('ampduRx', 10), ('ampduTx', 11), ('mimoPowerSave', 12), ('sendRts', 13), ('rifs', 14), ('shortGiHT20', 15), ('shortGiHT40', 16), ('amsduRx', 17), ('amsduTx', 18)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfacePeerFlags.setStatus('current') wlan_iface_channel_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5)) if mibBuilder.loadTexts: wlanIfaceChannelTable.setStatus('current') wlan_iface_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceChannelId')) if mibBuilder.loadTexts: wlanIfaceChannelEntry.setStatus('current') wlan_iface_channel_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 1536))) if mibBuilder.loadTexts: wlanIfaceChannelId.setStatus('current') wlan_iface_channel_ieee_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelIeeeId.setStatus('current') wlan_iface_channel_type = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('fhss', 1), ('dot11a', 2), ('dot11b', 3), ('dot11g', 4), ('tenMHz', 5), ('fiveMHz', 6), ('turbo', 7), ('ht', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelType.setStatus('current') wlan_iface_channel_flags = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 4), bits().clone(namedValues=named_values(('turbo', 1), ('cck', 2), ('ofdm', 3), ('spectrum2Ghz', 4), ('spectrum5Ghz', 5), ('passiveScan', 6), ('dynamicCckOfdm', 7), ('gfsk', 8), ('spectrum900Mhz', 9), ('dot11aStaticTurbo', 10), ('halfRate', 11), ('quarterRate', 12), ('ht20', 13), ('ht40u', 14), ('ht40d', 15), ('dfs', 16), ('xmit4ms', 17), ('noAdhoc', 18), ('noHostAp', 19), ('dot11d', 20)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelFlags.setStatus('current') wlan_iface_channel_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelFrequency.setStatus('current') wlan_iface_channel_max_reg_power = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelMaxRegPower.setStatus('current') wlan_iface_channel_max_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelMaxTxPower.setStatus('current') wlan_iface_channel_min_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelMinTxPower.setStatus('current') wlan_iface_channel_state = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 9), bits().clone(namedValues=named_values(('radar', 1), ('cacDone', 2), ('interferenceDetected', 3), ('radarClear', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelState.setStatus('current') wlan_iface_channel_ht_extension = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelHTExtension.setStatus('current') wlan_iface_channel_max_antenna_gain = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 5, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfaceChannelMaxAntennaGain.setStatus('current') wlan_scan_config_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1)) if mibBuilder.loadTexts: wlanScanConfigTable.setStatus('current') wlan_scan_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanScanConfigEntry.setStatus('current') wlan_scan_flags = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 1), bits().clone(namedValues=named_values(('noSelection', 1), ('activeScan', 2), ('pickFirst', 3), ('backgroundScan', 4), ('once', 5), ('noBroadcast', 6), ('noAutoSequencing', 7), ('flushCashe', 8), ('chechCashe', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanScanFlags.setStatus('current') wlan_scan_duration = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanScanDuration.setStatus('current') wlan_scan_min_channel_dwell_time = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 3), integer32()).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanScanMinChannelDwellTime.setStatus('current') wlan_scan_max_channel_dwell_time = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 4), integer32()).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanScanMaxChannelDwellTime.setStatus('current') wlan_scan_config_status = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 0), ('notStarted', 1), ('running', 2), ('finished', 3), ('cancel', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanScanConfigStatus.setStatus('current') wlan_scan_results_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2)) if mibBuilder.loadTexts: wlanScanResultsTable.setStatus('current') wlan_scan_results_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanScanResultID'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanScanResultBssid')) if mibBuilder.loadTexts: wlanScanResultsEntry.setStatus('current') wlan_scan_result_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultID.setStatus('current') wlan_scan_result_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultBssid.setStatus('current') wlan_scan_result_channel = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultChannel.setStatus('current') wlan_scan_result_rate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultRate.setStatus('current') wlan_scan_result_noise = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultNoise.setStatus('current') wlan_scan_result_beacon_interval = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultBeaconInterval.setStatus('current') wlan_scan_result_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 2, 2, 1, 7), wlan_peer_capability_flags()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanScanResultCapabilities.setStatus('current') wlan_if_roam_params_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6)) if mibBuilder.loadTexts: wlanIfRoamParamsTable.setStatus('current') wlan_if_roam_params_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfRoamPhyMode')) if mibBuilder.loadTexts: wlanIfRoamParamsEntry.setStatus('current') wlan_if_roam_phy_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1, 1), wlan_if_phy_mode()) if mibBuilder.loadTexts: wlanIfRoamPhyMode.setStatus('current') wlan_if_roam_rx_signal_strength = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfRoamRxSignalStrength.setStatus('current') wlan_if_roam_tx_rate_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanIfRoamTxRateThreshold.setStatus('current') wlan_if_tx_params_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7)) if mibBuilder.loadTexts: wlanIfTxParamsTable.setStatus('current') wlan_if_tx_params_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfTxPhyMode')) if mibBuilder.loadTexts: wlanIfTxParamsEntry.setStatus('current') wlan_if_tx_phy_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 1), wlan_if_phy_mode()) if mibBuilder.loadTexts: wlanIfTxPhyMode.setStatus('current') wlan_if_tx_unicast_rate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfTxUnicastRate.setStatus('current') wlan_if_tx_mcast_rate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfTxMcastRate.setStatus('current') wlan_if_tx_mgmt_rate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfTxMgmtRate.setStatus('current') wlan_if_tx_max_retry_count = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 1, 7, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanIfTxMaxRetryCount.setStatus('current') wlan_iface_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1)) if mibBuilder.loadTexts: wlanIfaceStatisticsTable.setStatus('current') wlan_iface_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1)) wlanInterfaceEntry.registerAugmentions(('BEGEMOT-WIRELESS-MIB', 'wlanIfaceStatisticsEntry')) wlanIfaceStatisticsEntry.setIndexNames(*wlanInterfaceEntry.getIndexNames()) if mibBuilder.loadTexts: wlanIfaceStatisticsEntry.setStatus('current') wlan_stats_rx_bad_version = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 1), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxBadVersion.setStatus('current') wlan_stats_rx_too_short = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 2), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxTooShort.setStatus('current') wlan_stats_rx_wrong_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 3), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxWrongBssid.setStatus('current') wlan_stats_rx_discarded_dups = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDiscardedDups.setStatus('current') wlan_stats_rx_wrong_dir = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 5), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxWrongDir.setStatus('current') wlan_stats_rx_discard_mcast_echo = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 6), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDiscardMcastEcho.setStatus('current') wlan_stats_rx_discard_no_assoc = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 7), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDiscardNoAssoc.setStatus('current') wlan_stats_rx_wep_no_privacy = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 8), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxWepNoPrivacy.setStatus('current') wlan_stats_rx_wep_unencrypted = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 9), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxWepUnencrypted.setStatus('current') wlan_stats_rx_wep_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 10), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxWepFailed.setStatus('current') wlan_stats_rx_decapsulation_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 11), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDecapsulationFailed.setStatus('current') wlan_stats_rx_discard_mgmt = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 12), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDiscardMgmt.setStatus('current') wlan_stats_rx_control = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 13), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxControl.setStatus('current') wlan_stats_rx_beacon = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 14), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxBeacon.setStatus('current') wlan_stats_rx_rate_set_too_big = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 15), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxRateSetTooBig.setStatus('current') wlan_stats_rx_elem_missing = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 16), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxElemMissing.setStatus('current') wlan_stats_rx_elem_too_big = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 17), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxElemTooBig.setStatus('current') wlan_stats_rx_elem_too_small = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 18), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxElemTooSmall.setStatus('current') wlan_stats_rx_elem_unknown = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 19), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxElemUnknown.setStatus('current') wlan_stats_rx_channel_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 20), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxChannelMismatch.setStatus('current') wlan_stats_rx_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 21), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDropped.setStatus('current') wlan_stats_rx_ssid_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 22), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxSsidMismatch.setStatus('current') wlan_stats_rx_auth_not_supported = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 23), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAuthNotSupported.setStatus('current') wlan_stats_rx_auth_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 24), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAuthFailed.setStatus('current') wlan_stats_rx_auth_cm = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 25), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAuthCM.setStatus('current') wlan_stats_rx_assoc_wrong_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 26), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAssocWrongBssid.setStatus('current') wlan_stats_rx_assoc_no_auth = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 27), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAssocNoAuth.setStatus('current') wlan_stats_rx_assoc_cap_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 28), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAssocCapMismatch.setStatus('current') wlan_stats_rx_assoc_no_rate_match = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 29), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAssocNoRateMatch.setStatus('current') wlan_stats_rx_bad_wpa_ie = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 30), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxBadWpaIE.setStatus('current') wlan_stats_rx_deauthenticate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 31), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDeauthenticate.setStatus('current') wlan_stats_rx_disassociate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 32), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDisassociate.setStatus('current') wlan_stats_rx_unknown_subtype = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 33), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxUnknownSubtype.setStatus('current') wlan_stats_rx_failed_no_buf = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 34), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxFailedNoBuf.setStatus('current') wlan_stats_rx_bad_auth_request = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 35), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxBadAuthRequest.setStatus('current') wlan_stats_rx_un_authorized = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 36), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxUnAuthorized.setStatus('current') wlan_stats_rx_bad_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 37), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxBadKeyId.setStatus('current') wlan_stats_rx_ccmp_seq_violation = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 38), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxCCMPSeqViolation.setStatus('current') wlan_stats_rx_ccmp_bad_format = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 39), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxCCMPBadFormat.setStatus('current') wlan_stats_rx_ccmp_failed_mic = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 40), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxCCMPFailedMIC.setStatus('current') wlan_stats_rx_tkip_seq_violation = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 41), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxTKIPSeqViolation.setStatus('current') wlan_stats_rx_tkip_bad_format = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 42), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxTKIPBadFormat.setStatus('current') wlan_stats_rx_tkip_failed_mic = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 43), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxTKIPFailedMIC.setStatus('current') wlan_stats_rx_tkip_failed_icv = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 44), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxTKIPFailedICV.setStatus('current') wlan_stats_rx_discard_acl = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 45), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDiscardACL.setStatus('current') wlan_stats_tx_failed_no_buf = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 46), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxFailedNoBuf.setStatus('current') wlan_stats_tx_failed_no_node = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 47), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxFailedNoNode.setStatus('current') wlan_stats_tx_unknown_mgmt = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 48), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxUnknownMgmt.setStatus('current') wlan_stats_tx_bad_cipher = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 49), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxBadCipher.setStatus('current') wlan_stats_tx_no_def_key = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 50), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxNoDefKey.setStatus('current') wlan_stats_tx_fragmented = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 51), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxFragmented.setStatus('current') wlan_stats_tx_fragments_created = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 52), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxFragmentsCreated.setStatus('current') wlan_stats_active_scans = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 53), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsActiveScans.setStatus('current') wlan_stats_passive_scans = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 54), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsPassiveScans.setStatus('current') wlan_stats_timeout_inactivity = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 55), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTimeoutInactivity.setStatus('current') wlan_stats_crypto_no_mem = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 56), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoNoMem.setStatus('current') wlan_stats_sw_crypto_tkip = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 57), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsSwCryptoTKIP.setStatus('current') wlan_stats_sw_crypto_tkip_en_mic = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 58), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsSwCryptoTKIPEnMIC.setStatus('current') wlan_stats_sw_crypto_tkip_de_mic = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 59), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsSwCryptoTKIPDeMIC.setStatus('current') wlan_stats_crypto_tkipcm = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 60), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoTKIPCM.setStatus('current') wlan_stats_sw_crypto_ccmp = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsSwCryptoCCMP.setStatus('current') wlan_stats_sw_crypto_wep = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsSwCryptoWEP.setStatus('current') wlan_stats_crypto_cipher_key_rejected = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoCipherKeyRejected.setStatus('current') wlan_stats_crypto_no_key = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 64), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoNoKey.setStatus('current') wlan_stats_crypto_delete_key_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 65), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoDeleteKeyFailed.setStatus('current') wlan_stats_crypto_unknown_cipher = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 66), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoUnknownCipher.setStatus('current') wlan_stats_crypto_attach_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 67), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoAttachFailed.setStatus('current') wlan_stats_crypto_key_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 68), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoKeyFailed.setStatus('current') wlan_stats_crypto_en_mic_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 69), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsCryptoEnMICFailed.setStatus('current') wlan_stats_ibss_cap_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 70), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsIBSSCapMismatch.setStatus('current') wlan_stats_unassoc_sta_ps_poll = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 71), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsUnassocStaPSPoll.setStatus('current') wlan_stats_bad_aid_ps_poll = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 72), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsBadAidPSPoll.setStatus('current') wlan_stats_empty_ps_poll = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 73), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsEmptyPSPoll.setStatus('current') wlan_stats_rx_ff_bad_hdr = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 74), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxFFBadHdr.setStatus('current') wlan_stats_rx_ff_too_short = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 75), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxFFTooShort.setStatus('current') wlan_stats_rx_ff_split_error = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 76), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxFFSplitError.setStatus('current') wlan_stats_rx_ff_decap = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 77), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxFFDecap.setStatus('current') wlan_stats_tx_ff_encap = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 78), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxFFEncap.setStatus('current') wlan_stats_rx_bad_bintval = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 79), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxBadBintval.setStatus('current') wlan_stats_rx_demic_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 80), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDemicFailed.setStatus('current') wlan_stats_rx_defrag_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 81), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDefragFailed.setStatus('current') wlan_stats_rx_mgmt = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 82), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxMgmt.setStatus('current') wlan_stats_rx_action_mgmt = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 83), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxActionMgmt.setStatus('current') wlan_stats_rx_amsdu_too_short = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 84), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAMSDUTooShort.setStatus('current') wlan_stats_rx_amsdu_split_error = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 85), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAMSDUSplitError.setStatus('current') wlan_stats_rx_amsdu_decap = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 86), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxAMSDUDecap.setStatus('current') wlan_stats_tx_amsdu_encap = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 87), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxAMSDUEncap.setStatus('current') wlan_stats_ampdu_bad_bar = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 88), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDUBadBAR.setStatus('current') wlan_stats_ampdu_oow_bar = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 89), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDUOowBar.setStatus('current') wlan_stats_ampdu_moved_bar = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 90), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDUMovedBAR.setStatus('current') wlan_stats_ampdu_rx_bar = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 91), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURxBAR.setStatus('current') wlan_stats_ampdu_rx_oor = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 92), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURxOor.setStatus('current') wlan_stats_ampdu_rx_copied = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 93), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURxCopied.setStatus('current') wlan_stats_ampdu_rx_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 94), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURxDropped.setStatus('current') wlan_stats_tx_discard_bad_state = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 95), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxDiscardBadState.setStatus('current') wlan_stats_tx_failed_no_assoc = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 96), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxFailedNoAssoc.setStatus('current') wlan_stats_tx_classify_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 97), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxClassifyFailed.setStatus('current') wlan_stats_dwds_mcast_discard = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 98), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsDwdsMcastDiscard.setStatus('current') wlan_stats_ht_assoc_reject_no_ht = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 99), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsHTAssocRejectNoHT.setStatus('current') wlan_stats_ht_assoc_downgrade = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 100), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsHTAssocDowngrade.setStatus('current') wlan_stats_ht_assoc_rate_mismatch = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 101), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsHTAssocRateMismatch.setStatus('current') wlan_stats_ampdu_rx_age = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 102), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURxAge.setStatus('current') wlan_stats_ampdu_moved = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 103), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDUMoved.setStatus('current') wlan_stats_addba_disabled_reject = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 104), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsADDBADisabledReject.setStatus('current') wlan_stats_addba_no_request = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 105), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsADDBANoRequest.setStatus('current') wlan_stats_addba_bad_token = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 106), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsADDBABadToken.setStatus('current') wlan_stats_addba_bad_policy = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 107), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsADDBABadPolicy.setStatus('current') wlan_stats_ampdu_stopped = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 108), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDUStopped.setStatus('current') wlan_stats_ampdu_stop_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 109), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDUStopFailed.setStatus('current') wlan_stats_ampdu_rx_reorder = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 110), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURxReorder.setStatus('current') wlan_stats_scans_background = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 111), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsScansBackground.setStatus('current') wlan_last_deauth_reason = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 112), wlan_mgmt_reason_code()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanLastDeauthReason.setStatus('current') wlan_last_dissasoc_reason = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 113), wlan_mgmt_reason_code()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanLastDissasocReason.setStatus('current') wlan_last_auth_fail_reason = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 114), wlan_mgmt_reason_code()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanLastAuthFailReason.setStatus('current') wlan_stats_beacon_missed_events = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 115), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsBeaconMissedEvents.setStatus('current') wlan_stats_rx_discard_bad_states = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 116), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsRxDiscardBadStates.setStatus('current') wlan_stats_ff_flushed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 117), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsFFFlushed.setStatus('current') wlan_stats_tx_control_frames = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 118), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsTxControlFrames.setStatus('current') wlan_stats_ampdu_rexmt = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 119), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURexmt.setStatus('current') wlan_stats_ampdu_rexmt_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 120), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanStatsAMPDURexmtFailed.setStatus('current') wlan_stats_reset = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 3, 1, 1, 121), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no-op', 1), ('clear', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanStatsReset.setStatus('current') wlan_wep_interface_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1)) if mibBuilder.loadTexts: wlanWepInterfaceTable.setStatus('current') wlan_wep_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanWepInterfaceEntry.setStatus('current') wlan_wep_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('off', 0), ('on', 1), ('mixed', 2))).clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanWepMode.setStatus('current') wlan_wep_def_tx_key = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanWepDefTxKey.setStatus('current') wlan_wep_key_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2)) if mibBuilder.loadTexts: wlanWepKeyTable.setStatus('current') wlan_wep_key_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanWepKeyID')) if mibBuilder.loadTexts: wlanWepKeyEntry.setStatus('current') wlan_wep_key_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanWepKeyID.setStatus('current') wlan_wep_key_length = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanWepKeyLength.setStatus('current') wlan_wep_key_set = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 3), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanWepKeySet.setStatus('current') wlan_wep_key_hash = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanWepKeyHash.setStatus('current') wlan_wep_key_status = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 4, 2, 1, 5), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanWepKeyStatus.setStatus('current') wlan_mac_access_control_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1)) if mibBuilder.loadTexts: wlanMACAccessControlTable.setStatus('current') wlan_mac_access_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanMACAccessControlEntry.setStatus('current') wlan_mac_access_control_policy = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 7))).clone(namedValues=named_values(('open', 0), ('allow', 1), ('deny', 2), ('radius', 7))).clone('open')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMACAccessControlPolicy.setStatus('current') wlan_mac_access_control_nacl = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMACAccessControlNacl.setStatus('current') wlan_mac_access_control_flush = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no-op', 0), ('flush', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMACAccessControlFlush.setStatus('current') wlan_mac_access_control_mac_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2)) if mibBuilder.loadTexts: wlanMACAccessControlMACTable.setStatus('current') wlan_mac_access_control_mac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanMACAccessControlMAC')) if mibBuilder.loadTexts: wlanMACAccessControlMACEntry.setStatus('current') wlan_mac_access_control_mac = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2, 1, 1), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMACAccessControlMAC.setStatus('current') wlan_mac_access_control_mac_status = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 5, 2, 1, 2), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMACAccessControlMACStatus.setStatus('current') wlan_mesh_routing_config = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1)) wlan_mesh_interface = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2)) wlan_mesh_route = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3)) wlan_mesh_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4)) wlan_mesh_route_protocols = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5)) wlan_mesh_max_retries = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 1), integer32().clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshMaxRetries.setStatus('current') wlan_mesh_confirm_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 2), integer32().clone(40)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshConfirmTimeout.setStatus('current') wlan_mesh_holding_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 3), integer32().clone(40)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshHoldingTimeout.setStatus('current') wlan_mesh_retry_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 1, 4), integer32().clone(40)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshRetryTimeout.setStatus('current') wlan_mesh_interface_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1)) if mibBuilder.loadTexts: wlanMeshInterfaceTable.setStatus('current') wlan_mesh_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanMeshInterfaceEntry.setStatus('current') wlan_mesh_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshId.setStatus('current') wlan_mesh_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 2), integer32().clone(31)).setUnits('hops').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshTTL.setStatus('current') wlan_mesh_peering_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshPeeringEnabled.setStatus('current') wlan_mesh_forwarding_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 4), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshForwardingEnabled.setStatus('current') wlan_mesh_metric = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('unknown', 0), ('airtime', 1))).clone('airtime')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshMetric.setStatus('current') wlan_mesh_path = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('unknown', 0), ('hwmp', 1))).clone('hwmp')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshPath.setStatus('current') wlan_mesh_routes_flush = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no-op', 0), ('flush', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshRoutesFlush.setStatus('current') wlan_mesh_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2)) if mibBuilder.loadTexts: wlanMeshNeighborTable.setStatus('current') wlan_mesh_neighbor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanMeshNeighborAddress')) if mibBuilder.loadTexts: wlanMeshNeighborEntry.setStatus('current') wlan_mesh_neighbor_address = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 1), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborAddress.setStatus('current') wlan_mesh_neighbor_frequency = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborFrequency.setStatus('current') wlan_mesh_neighbor_local_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborLocalId.setStatus('current') wlan_mesh_neighbor_peer_id = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborPeerId.setStatus('current') wlan_mesh_neighbor_peer_state = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('idle', 0), ('openTx', 1), ('openRx', 2), ('confirmRx', 3), ('established', 4), ('closing', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborPeerState.setStatus('current') wlan_mesh_neighbor_current_tx_rate = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborCurrentTXRate.setStatus('current') wlan_mesh_neighbor_rx_signal_strength = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborRxSignalStrength.setStatus('current') wlan_mesh_neighbor_idle_timer = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 8), integer32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborIdleTimer.setStatus('current') wlan_mesh_neighbor_tx_sequence_no = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborTxSequenceNo.setStatus('current') wlan_mesh_neighbor_rx_sequence_no = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 2, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNeighborRxSequenceNo.setStatus('current') wlan_mesh_route_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1)) if mibBuilder.loadTexts: wlanMeshRouteTable.setStatus('current') wlan_mesh_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName'), (0, 'BEGEMOT-WIRELESS-MIB', 'wlanMeshRouteDestination')) if mibBuilder.loadTexts: wlanMeshRouteEntry.setStatus('current') wlan_mesh_route_destination = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 1), mac_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: wlanMeshRouteDestination.setStatus('current') wlan_mesh_route_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteNextHop.setStatus('current') wlan_mesh_route_hops = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteHops.setStatus('current') wlan_mesh_route_metric = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteMetric.setStatus('current') wlan_mesh_route_life_time = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 5), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteLifeTime.setStatus('current') wlan_mesh_route_last_mseq = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteLastMseq.setStatus('current') wlan_mesh_route_flags = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 7), bits().clone(namedValues=named_values(('valid', 1), ('proxy', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteFlags.setStatus('current') wlan_mesh_route_status = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 3, 1, 1, 8), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanMeshRouteStatus.setStatus('current') wlan_mesh_stats_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1)) if mibBuilder.loadTexts: wlanMeshStatsTable.setStatus('current') wlan_mesh_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanMeshStatsEntry.setStatus('current') wlan_mesh_dropped_bad_sta = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 1), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshDroppedBadSta.setStatus('current') wlan_mesh_dropped_no_link = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 2), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshDroppedNoLink.setStatus('current') wlan_mesh_no_fwd_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 3), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNoFwdTtl.setStatus('current') wlan_mesh_no_fwd_buf = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNoFwdBuf.setStatus('current') wlan_mesh_no_fwd_too_short = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 5), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNoFwdTooShort.setStatus('current') wlan_mesh_no_fwd_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 6), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNoFwdDisabled.setStatus('current') wlan_mesh_no_fwd_path_unknown = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 7), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshNoFwdPathUnknown.setStatus('current') wlan_mesh_dropped_bad_ae = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 8), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshDroppedBadAE.setStatus('current') wlan_mesh_route_add_failed = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshRouteAddFailed.setStatus('current') wlan_mesh_dropped_no_proxy = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 10), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshDroppedNoProxy.setStatus('current') wlan_mesh_dropped_misaligned = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 4, 1, 1, 11), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshDroppedMisaligned.setStatus('current') wlan_mesh_proto_hwmp = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1)) wlan_mesh_hwmp_config = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1)) wlan_mesh_hwmp_interface = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2)) wlan_mesh_hwmp_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3)) wlan_hwmp_route_inactive_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 1), integer32().clone(5000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPRouteInactiveTimeout.setStatus('current') wlan_hwmp_root_announce_interval = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 2), integer32().clone(1000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPRootAnnounceInterval.setStatus('current') wlan_hwmp_root_interval = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 3), integer32().clone(2000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPRootInterval.setStatus('current') wlan_hwmp_root_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 4), integer32().clone(5000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPRootTimeout.setStatus('current') wlan_hwmp_path_lifetime = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 5), integer32().clone(500)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPPathLifetime.setStatus('current') wlan_hwmp_reply_forward_bit = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 6), integer32().clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPReplyForwardBit.setStatus('current') wlan_hwmp_target_only_bit = mib_scalar((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPTargetOnlyBit.setStatus('current') wlan_hwmp_interface_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1)) if mibBuilder.loadTexts: wlanHWMPInterfaceTable.setStatus('current') wlan_hwmp_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanHWMPInterfaceEntry.setStatus('current') wlan_hwmp_root_mode = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('disabled', 1), ('normal', 2), ('proactive', 3), ('rann', 4))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPRootMode.setStatus('current') wlan_hwmp_max_hops = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 2, 1, 1, 2), integer32().clone(31)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wlanHWMPMaxHops.setStatus('current') wlan_mesh_hwmp_stats_table = mib_table((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1)) if mibBuilder.loadTexts: wlanMeshHWMPStatsTable.setStatus('current') wlan_mesh_hwmp_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1)).setIndexNames((0, 'BEGEMOT-WIRELESS-MIB', 'wlanIfaceName')) if mibBuilder.loadTexts: wlanMeshHWMPStatsEntry.setStatus('current') wlan_mesh_hwmp_wrong_seq_no = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 1), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshHWMPWrongSeqNo.setStatus('current') wlan_mesh_hwmp_tx_root_preq = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 2), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshHWMPTxRootPREQ.setStatus('current') wlan_mesh_hwmp_tx_root_rann = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 3), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshHWMPTxRootRANN.setStatus('current') wlan_mesh_hwmp_proxy = mib_table_column((1, 3, 6, 1, 4, 1, 12325, 1, 210, 6, 5, 1, 3, 1, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: wlanMeshHWMPProxy.setStatus('current') mibBuilder.exportSymbols('BEGEMOT-WIRELESS-MIB', wlanMeshNeighborRxSequenceNo=wlanMeshNeighborRxSequenceNo, wlanIfaceHideSsid=wlanIfaceHideSsid, wlanIfacePeerIdleTimer=wlanIfacePeerIdleTimer, wlanStatsRxBadVersion=wlanStatsRxBadVersion, wlanIfaceDot11nAmpdu=wlanIfaceDot11nAmpdu, wlanStatsRxRateSetTooBig=wlanStatsRxRateSetTooBig, wlanIfaceFastFrames=wlanIfaceFastFrames, wlanIfRoamParamsEntry=wlanIfRoamParamsEntry, wlanStatsRxActionMgmt=wlanStatsRxActionMgmt, wlanStatsRxDiscardNoAssoc=wlanStatsRxDiscardNoAssoc, wlanIfaceBgScanIdle=wlanIfaceBgScanIdle, wlanStatsRxFFDecap=wlanStatsRxFFDecap, wlanStatsRxUnknownSubtype=wlanStatsRxUnknownSubtype, wlanStatsScansBackground=wlanStatsScansBackground, wlanStatsRxFFBadHdr=wlanStatsRxFFBadHdr, wlanIfaceState=wlanIfaceState, wlanMACAccessControlMACTable=wlanMACAccessControlMACTable, wlanIfaceTdmaBeaconInterval=wlanIfaceTdmaBeaconInterval, wlanMeshNoFwdDisabled=wlanMeshNoFwdDisabled, wlanIfaceChannelMaxTxPower=wlanIfaceChannelMaxTxPower, wlanMeshRoutingConfig=wlanMeshRoutingConfig, wlanIfaceRegDomain=wlanIfaceRegDomain, WlanMgmtReasonCode=WlanMgmtReasonCode, wlanStatsRxDropped=wlanStatsRxDropped, wlanIfaceRoamingMode=wlanIfaceRoamingMode, wlanIfaceDot11gPureMode=wlanIfaceDot11gPureMode, wlanScanResultBeaconInterval=wlanScanResultBeaconInterval, wlanIfaceStatisticsEntry=wlanIfaceStatisticsEntry, WlanRegDomainCode=WlanRegDomainCode, wlanStatsTxFailedNoNode=wlanStatsTxFailedNoNode, wlanStatsRxElemTooSmall=wlanStatsRxElemTooSmall, begemotWlanScanning=begemotWlanScanning, wlanIfaceChannelHTExtension=wlanIfaceChannelHTExtension, wlanStatsRxBadWpaIE=wlanStatsRxBadWpaIE, wlanMeshPath=wlanMeshPath, wlanIfParentTable=wlanIfParentTable, wlanMACAccessControlTable=wlanMACAccessControlTable, wlanStatsRxAuthCM=wlanStatsRxAuthCM, wlanStatsSwCryptoWEP=wlanStatsSwCryptoWEP, wlanIfaceConfigEntry=wlanIfaceConfigEntry, wlanStatsAMPDURxDropped=wlanStatsAMPDURxDropped, wlanScanResultBssid=wlanScanResultBssid, wlanMeshDroppedNoLink=wlanMeshDroppedNoLink, wlanMeshHWMPInterface=wlanMeshHWMPInterface, wlanIfaceFragmentThreshold=wlanIfaceFragmentThreshold, wlanHWMPInterfaceEntry=wlanHWMPInterfaceEntry, wlanMeshNoFwdPathUnknown=wlanMeshNoFwdPathUnknown, wlanScanFlags=wlanScanFlags, wlanScanResultsTable=wlanScanResultsTable, wlanStatsRxDiscardACL=wlanStatsRxDiscardACL, wlanMeshProtoHWMP=wlanMeshProtoHWMP, wlanStatsTxUnknownMgmt=wlanStatsTxUnknownMgmt, wlanIfaceDot11nPureMode=wlanIfaceDot11nPureMode, wlanIfaceDynamicWds=wlanIfaceDynamicWds, wlanIfacePeerVlanTag=wlanIfacePeerVlanTag, wlanStatsRxFFTooShort=wlanStatsRxFFTooShort, wlanStatsRxDefragFailed=wlanStatsRxDefragFailed, wlanScanResultChannel=wlanScanResultChannel, wlanStatsRxMgmt=wlanStatsRxMgmt, wlanIfaceBgScanInterval=wlanIfaceBgScanInterval, wlanIfaceDot11gProtMode=wlanIfaceDot11gProtMode, wlanStatsSwCryptoTKIP=wlanStatsSwCryptoTKIP, wlanStatsRxTKIPFailedICV=wlanStatsRxTKIPFailedICV, wlanStatsCryptoKeyFailed=wlanStatsCryptoKeyFailed, wlanIfacePeerTxSequenceNo=wlanIfacePeerTxSequenceNo, begemotWlanNotifications=begemotWlanNotifications, wlanIfParentEntry=wlanIfParentEntry, wlanStatsAMPDUStopFailed=wlanStatsAMPDUStopFailed, wlanMeshMaxRetries=wlanMeshMaxRetries, wlanStatsAMPDUOowBar=wlanStatsAMPDUOowBar, wlanIfacePeerFlags=wlanIfacePeerFlags, wlanStatsRxElemMissing=wlanStatsRxElemMissing, begemotWlanMACAccessControl=begemotWlanMACAccessControl, wlanStatsAMPDURxReorder=wlanStatsAMPDURxReorder, wlanMeshNeighborLocalId=wlanMeshNeighborLocalId, wlanMeshNeighborCurrentTXRate=wlanMeshNeighborCurrentTXRate, wlanStatsTxNoDefKey=wlanStatsTxNoDefKey, wlanWepKeyID=wlanWepKeyID, wlanMeshRouteTable=wlanMeshRouteTable, wlanStatsRxTooShort=wlanStatsRxTooShort, wlanIfaceDot11d=wlanIfaceDot11d, begemotWlanInterface=begemotWlanInterface, begemotWlanMeshRouting=begemotWlanMeshRouting, wlanMACAccessControlFlush=wlanMACAccessControlFlush, wlanStatsAMPDURxCopied=wlanStatsAMPDURxCopied, wlanIfaceChannelFlags=wlanIfaceChannelFlags, wlanScanResultCapabilities=wlanScanResultCapabilities, WlanIfPhyMode=WlanIfPhyMode, wlanStatsRxDemicFailed=wlanStatsRxDemicFailed, wlanMACAccessControlMACStatus=wlanMACAccessControlMACStatus, wlanIfacePowerSave=wlanIfacePowerSave, wlanIfacePeerTable=wlanIfacePeerTable, wlanMeshRouteProtocols=wlanMeshRouteProtocols, wlanWepMode=wlanWepMode, wlanIfaceDesiredBssid=wlanIfaceDesiredBssid, wlanStatsRxAssocWrongBssid=wlanStatsRxAssocWrongBssid, wlanIfRoamPhyMode=wlanIfRoamPhyMode, wlanMeshNeighborFrequency=wlanMeshNeighborFrequency, wlanScanConfigTable=wlanScanConfigTable, wlanIfaceDot11nShortGI=wlanIfaceDot11nShortGI, wlanWepKeyLength=wlanWepKeyLength, wlanMeshDroppedMisaligned=wlanMeshDroppedMisaligned, wlanMeshHWMPTxRootRANN=wlanMeshHWMPTxRootRANN, wlanStatsRxAuthNotSupported=wlanStatsRxAuthNotSupported, wlanStatsRxElemUnknown=wlanStatsRxElemUnknown, wlanStatsRxAssocNoAuth=wlanStatsRxAssocNoAuth, wlanHWMPRootMode=wlanHWMPRootMode, wlanLastDeauthReason=wlanLastDeauthReason, wlanIfacePeerCurrentTXRate=wlanIfacePeerCurrentTXRate, wlanIfTxParamsEntry=wlanIfTxParamsEntry, wlanIfaceDot11nAmpduDensity=wlanIfaceDot11nAmpduDensity, wlanIfacePeerAssociationId=wlanIfacePeerAssociationId, wlanHWMPTargetOnlyBit=wlanHWMPTargetOnlyBit, wlanIfaceApBridge=wlanIfaceApBridge, wlanInterfaceTable=wlanInterfaceTable, wlanStatsEmptyPSPoll=wlanStatsEmptyPSPoll, wlanStatsADDBABadPolicy=wlanStatsADDBABadPolicy, wlanStatsRxDisassociate=wlanStatsRxDisassociate, WlanMgmtMeshReasonCode=WlanMgmtMeshReasonCode, begemotWlan=begemotWlan, wlanMeshRouteFlags=wlanMeshRouteFlags, wlanMeshStatistics=wlanMeshStatistics, wlanLastAuthFailReason=wlanLastAuthFailReason, wlanScanConfigStatus=wlanScanConfigStatus, wlanMeshDroppedBadSta=wlanMeshDroppedBadSta, wlanWepInterfaceTable=wlanWepInterfaceTable, wlanStatsRxDeauthenticate=wlanStatsRxDeauthenticate, WlanPeerCapabilityFlags=WlanPeerCapabilityFlags, wlanStatsIBSSCapMismatch=wlanStatsIBSSCapMismatch, wlanIfTxParamsTable=wlanIfTxParamsTable, wlanStatsHTAssocDowngrade=wlanStatsHTAssocDowngrade, wlanMeshStatsTable=wlanMeshStatsTable, wlanMeshRouteDestination=wlanMeshRouteDestination, wlanMeshHWMPProxy=wlanMeshHWMPProxy, wlanIfTxUnicastRate=wlanIfTxUnicastRate, wlanMeshNeighborEntry=wlanMeshNeighborEntry, wlanStatsCryptoNoKey=wlanStatsCryptoNoKey, wlanIfaceInactivityProccess=wlanIfaceInactivityProccess, wlanIfaceName=wlanIfaceName, wlanIfaceChannelMinTxPower=wlanIfaceChannelMinTxPower, wlanIfTxMcastRate=wlanIfTxMcastRate, wlanIfRoamRxSignalStrength=wlanIfRoamRxSignalStrength, wlanLastDissasocReason=wlanLastDissasocReason, wlanIfaceChannelType=wlanIfaceChannelType, wlanScanResultID=wlanScanResultID, wlanIfaceDot11nAmsduLimit=wlanIfaceDot11nAmsduLimit, wlanMeshMetric=wlanMeshMetric, wlanStatsRxDiscardMcastEcho=wlanStatsRxDiscardMcastEcho, wlanStatsRxWepUnencrypted=wlanStatsRxWepUnencrypted, wlanMeshForwardingEnabled=wlanMeshForwardingEnabled, wlanIfaceConfigTable=wlanIfaceConfigTable, begemotWlanWep=begemotWlanWep, wlanMeshNoFwdTtl=wlanMeshNoFwdTtl, wlanMeshNoFwdBuf=wlanMeshNoFwdBuf, wlanMACAccessControlMAC=wlanMACAccessControlMAC, wlanStatsADDBABadToken=wlanStatsADDBABadToken, wlanMeshPeeringEnabled=wlanMeshPeeringEnabled, wlanIfaceBssid=wlanIfaceBssid, wlanIfaceChannelIeeeId=wlanIfaceChannelIeeeId, wlanIfaceChannelMaxRegPower=wlanIfaceChannelMaxRegPower, wlanScanMinChannelDwellTime=wlanScanMinChannelDwellTime, wlanMeshHoldingTimeout=wlanMeshHoldingTimeout, wlanStatsCryptoEnMICFailed=wlanStatsCryptoEnMICFailed, wlanWepKeySet=wlanWepKeySet, wlanScanConfigEntry=wlanScanConfigEntry, wlanStatsHTAssocRejectNoHT=wlanStatsHTAssocRejectNoHT, wlanStatsRxAssocNoRateMatch=wlanStatsRxAssocNoRateMatch, wlanIfParentDriverCapabilities=wlanIfParentDriverCapabilities, wlanMeshHWMPStatsEntry=wlanMeshHWMPStatsEntry, wlanIfaceDynamicFreqSelection=wlanIfaceDynamicFreqSelection, begemotWlanStatistics=begemotWlanStatistics, wlanStatsAMPDUBadBAR=wlanStatsAMPDUBadBAR, wlanIfaceDot11h=wlanIfaceDot11h, wlanIfaceBeaconMissedThreshold=wlanIfaceBeaconMissedThreshold, wlanMeshTTL=wlanMeshTTL, wlanMeshInterfaceTable=wlanMeshInterfaceTable, wlanMeshConfirmTimeout=wlanMeshConfirmTimeout, wlanStatsTxFragmented=wlanStatsTxFragmented, wlanStatsTxDiscardBadState=wlanStatsTxDiscardBadState, wlanIfaceStatisticsTable=wlanIfaceStatisticsTable, wlanIfaceChannelTable=wlanIfaceChannelTable, wlanMeshHWMPStatsTable=wlanMeshHWMPStatsTable, wlanWepKeyHash=wlanWepKeyHash, wlanMACAccessControlPolicy=wlanMACAccessControlPolicy, wlanMeshHWMPTxRootPREQ=wlanMeshHWMPTxRootPREQ, wlanStatsTimeoutInactivity=wlanStatsTimeoutInactivity, wlanWepKeyEntry=wlanWepKeyEntry, wlanIfaceCountryCode=wlanIfaceCountryCode, wlanIfacePeerFrequency=wlanIfacePeerFrequency, wlanStatsRxAMSDUSplitError=wlanStatsRxAMSDUSplitError, wlanStatsRxAMSDUTooShort=wlanStatsRxAMSDUTooShort, wlanHWMPReplyForwardBit=wlanHWMPReplyForwardBit, wlanIfRoamParamsTable=wlanIfRoamParamsTable, wlanStatsTxClassifyFailed=wlanStatsTxClassifyFailed, wlanIfaceDesiredChannel=wlanIfaceDesiredChannel, wlanIfaceStatus=wlanIfaceStatus, wlanStatsRxWrongDir=wlanStatsRxWrongDir, wlanIfTxMgmtRate=wlanIfTxMgmtRate, wlanMeshHWMPWrongSeqNo=wlanMeshHWMPWrongSeqNo, wlanHWMPRootInterval=wlanHWMPRootInterval, wlanMeshDroppedBadAE=wlanMeshDroppedBadAE, wlanHWMPRootAnnounceInterval=wlanHWMPRootAnnounceInterval, wlanStatsTxFailedNoBuf=wlanStatsTxFailedNoBuf, wlanStatsRxAMSDUDecap=wlanStatsRxAMSDUDecap, wlanStatsTxFailedNoAssoc=wlanStatsTxFailedNoAssoc, wlanStatsHTAssocRateMismatch=wlanStatsHTAssocRateMismatch, wlanIfaceDturbo=wlanIfaceDturbo, wlanScanDuration=wlanScanDuration, wlanInterfaceEntry=wlanInterfaceEntry, wlanIfaceDot11nAmsdu=wlanIfaceDot11nAmsdu, wlanMeshRoute=wlanMeshRoute, wlanIfaceTxPower=wlanIfaceTxPower, wlanIfaceDtimPeriod=wlanIfaceDtimPeriod, wlanHWMPMaxHops=wlanHWMPMaxHops, wlanIfRoamTxRateThreshold=wlanIfRoamTxRateThreshold, wlanStatsReset=wlanStatsReset, wlanStatsCryptoDeleteKeyFailed=wlanStatsCryptoDeleteKeyFailed, wlanIfaceChannelId=wlanIfaceChannelId, wlanStatsRxWrongBssid=wlanStatsRxWrongBssid, wlanStatsTxAMSDUEncap=wlanStatsTxAMSDUEncap, wlanMeshRouteNextHop=wlanMeshRouteNextHop, wlanStatsRxControl=wlanStatsRxControl, wlanStatsCryptoNoMem=wlanStatsCryptoNoMem, wlanStatsSwCryptoCCMP=wlanStatsSwCryptoCCMP, wlanIfaceLocalAddress=wlanIfaceLocalAddress, wlanStatsRxUnAuthorized=wlanStatsRxUnAuthorized, wlanStatsSwCryptoTKIPEnMIC=wlanStatsSwCryptoTKIPEnMIC, wlanStatsRxElemTooBig=wlanStatsRxElemTooBig, wlanIfaceBeaconInterval=wlanIfaceBeaconInterval, wlanIfaceTdmaSlotCount=wlanIfaceTdmaSlotCount, wlanStatsDwdsMcastDiscard=wlanStatsDwdsMcastDiscard, wlanWepDefTxKey=wlanWepDefTxKey, wlanStatsTxBadCipher=wlanStatsTxBadCipher, wlanIfaceTdmaSlotLength=wlanIfaceTdmaSlotLength, wlanStatsAMPDURxAge=wlanStatsAMPDURxAge, wlanIfacePeerRxSignalStrength=wlanIfacePeerRxSignalStrength, wlanWepKeyTable=wlanWepKeyTable, wlanStatsCryptoCipherKeyRejected=wlanStatsCryptoCipherKeyRejected, wlanMeshNeighborPeerId=wlanMeshNeighborPeerId, wlanMeshRouteHops=wlanMeshRouteHops, wlanMeshRouteAddFailed=wlanMeshRouteAddFailed, wlanStatsRxTKIPFailedMIC=wlanStatsRxTKIPFailedMIC, wlanMeshRouteLifeTime=wlanMeshRouteLifeTime, wlanIfaceDot11nHTProtMode=wlanIfaceDot11nHTProtMode, wlanStatsCryptoAttachFailed=wlanStatsCryptoAttachFailed, wlanStatsFFFlushed=wlanStatsFFFlushed, wlanStatsRxAssocCapMismatch=wlanStatsRxAssocCapMismatch, wlanIfaceTdmaSlot=wlanIfaceTdmaSlot, wlanMeshRouteStatus=wlanMeshRouteStatus, wlanHWMPPathLifetime=wlanHWMPPathLifetime, wlanIfacePeerRxSequenceNo=wlanIfacePeerRxSequenceNo, wlanMeshNeighborRxSignalStrength=wlanMeshNeighborRxSignalStrength, WlanMgmtStatusCode=WlanMgmtStatusCode, wlanScanResultsEntry=wlanScanResultsEntry) mibBuilder.exportSymbols('BEGEMOT-WIRELESS-MIB', wlanMeshHWMPStatistics=wlanMeshHWMPStatistics, wlanStatsRxSsidMismatch=wlanStatsRxSsidMismatch, wlanHWMPRouteInactiveTimeout=wlanHWMPRouteInactiveTimeout, wlanStatsTxFFEncap=wlanStatsTxFFEncap, wlanIfaceChannelEntry=wlanIfaceChannelEntry, wlanStatsBeaconMissedEvents=wlanStatsBeaconMissedEvents, wlanStatsRxDecapsulationFailed=wlanStatsRxDecapsulationFailed, wlanMeshNoFwdTooShort=wlanMeshNoFwdTooShort, wlanMeshId=wlanMeshId, wlanStatsRxBadKeyId=wlanStatsRxBadKeyId, wlanStatsCryptoUnknownCipher=wlanStatsCryptoUnknownCipher, wlanMACAccessControlNacl=wlanMACAccessControlNacl, wlanIfaceChannelFrequency=wlanIfaceChannelFrequency, wlanIfacePeerEntry=wlanIfacePeerEntry, wlanIfaceDot11nSMPSMode=wlanIfaceDot11nSMPSMode, wlanMACAccessControlMACEntry=wlanMACAccessControlMACEntry, wlanStatsRxTKIPSeqViolation=wlanStatsRxTKIPSeqViolation, wlanStatsRxDiscardMgmt=wlanStatsRxDiscardMgmt, wlanStatsTxFragmentsCreated=wlanStatsTxFragmentsCreated, wlanIfTxPhyMode=wlanIfTxPhyMode, wlanStatsRxBeacon=wlanStatsRxBeacon, wlanIfacePacketBurst=wlanIfacePacketBurst, wlanStatsAMPDURexmt=wlanStatsAMPDURexmt, wlanHWMPRootTimeout=wlanHWMPRootTimeout, wlanStatsRxFFSplitError=wlanStatsRxFFSplitError, wlanMeshInterface=wlanMeshInterface, wlanMeshNeighborIdleTimer=wlanMeshNeighborIdleTimer, wlanIfParentHTCapabilities=wlanIfParentHTCapabilities, wlanStatsRxDiscardedDups=wlanStatsRxDiscardedDups, wlanMeshRouteMetric=wlanMeshRouteMetric, wlanStatsRxChannelMismatch=wlanStatsRxChannelMismatch, WlanIfaceDot11nPduType=WlanIfaceDot11nPduType, wlanStatsAMPDURxOor=wlanStatsAMPDURxOor, wlanMeshInterfaceEntry=wlanMeshInterfaceEntry, wlanStatsRxWepFailed=wlanStatsRxWepFailed, wlanStatsAMPDUMoved=wlanStatsAMPDUMoved, wlanMeshNeighborPeerState=wlanMeshNeighborPeerState, wlanIfTxMaxRetryCount=wlanIfTxMaxRetryCount, wlanMeshRetryTimeout=wlanMeshRetryTimeout, wlanIfaceDot11nAmpduLimit=wlanIfaceDot11nAmpduLimit, wlanStatsRxBadAuthRequest=wlanStatsRxBadAuthRequest, PYSNMP_MODULE_ID=begemotWlan, wlanIfParentCryptoCapabilities=wlanIfParentCryptoCapabilities, wlanMeshNeighborAddress=wlanMeshNeighborAddress, wlanIfaceFlags=wlanIfaceFlags, wlanIfaceChannelState=wlanIfaceChannelState, wlanStatsAMPDURxBAR=wlanStatsAMPDURxBAR, wlanStatsRxCCMPFailedMIC=wlanStatsRxCCMPFailedMIC, wlanHWMPInterfaceTable=wlanHWMPInterfaceTable, wlanIfaceDot11nHighThroughput=wlanIfaceDot11nHighThroughput, wlanIfaceDot11nHTCompatible=wlanIfaceDot11nHTCompatible, wlanStatsUnassocStaPSPoll=wlanStatsUnassocStaPSPoll, wlanStatsRxCCMPBadFormat=wlanStatsRxCCMPBadFormat, wlanIfaceDesiredSsid=wlanIfaceDesiredSsid, wlanIfacePeerAddress=wlanIfacePeerAddress, wlanStatsAMPDUStopped=wlanStatsAMPDUStopped, wlanStatsAMPDURexmtFailed=wlanStatsAMPDURexmtFailed, wlanStatsRxFailedNoBuf=wlanStatsRxFailedNoBuf, wlanIfaceOperatingMode=wlanIfaceOperatingMode, wlanIfacePeerCapabilities=wlanIfacePeerCapabilities, wlanScanMaxChannelDwellTime=wlanScanMaxChannelDwellTime, wlanStatsSwCryptoTKIPDeMIC=wlanStatsSwCryptoTKIPDeMIC, wlanStatsADDBADisabledReject=wlanStatsADDBADisabledReject, wlanIfaceRTSThreshold=wlanIfaceRTSThreshold, wlanStatsRxWepNoPrivacy=wlanStatsRxWepNoPrivacy, wlanStatsActiveScans=wlanStatsActiveScans, wlanIfaceBgScan=wlanIfaceBgScan, wlanStatsRxDiscardBadStates=wlanStatsRxDiscardBadStates, wlanWepInterfaceEntry=wlanWepInterfaceEntry, wlanMeshRouteEntry=wlanMeshRouteEntry, wlanStatsRxAuthFailed=wlanStatsRxAuthFailed, wlanScanResultNoise=wlanScanResultNoise, wlanParentIfName=wlanParentIfName, wlanStatsAMPDUMovedBAR=wlanStatsAMPDUMovedBAR, wlanStatsRxCCMPSeqViolation=wlanStatsRxCCMPSeqViolation, wlanIfaceDot11nRIFS=wlanIfaceDot11nRIFS, wlanMeshRouteLastMseq=wlanMeshRouteLastMseq, wlanStatsRxTKIPBadFormat=wlanStatsRxTKIPBadFormat, wlanMACAccessControlEntry=wlanMACAccessControlEntry, wlanMeshDroppedNoProxy=wlanMeshDroppedNoProxy, wlanWepKeyStatus=wlanWepKeyStatus, wlanMeshRoutesFlush=wlanMeshRoutesFlush, wlanIfacePeerTxPower=wlanIfacePeerTxPower, wlanStatsCryptoTKIPCM=wlanStatsCryptoTKIPCM, wlanIfaceWlanPrivacySubscribe=wlanIfaceWlanPrivacySubscribe, wlanScanResultRate=wlanScanResultRate, wlanStatsADDBANoRequest=wlanStatsADDBANoRequest, wlanIfaceChannelMaxAntennaGain=wlanIfaceChannelMaxAntennaGain, wlanStatsTxControlFrames=wlanStatsTxControlFrames, wlanMeshStatsEntry=wlanMeshStatsEntry, wlanStatsPassiveScans=wlanStatsPassiveScans, wlanMeshNeighborTable=wlanMeshNeighborTable, wlanStatsRxBadBintval=wlanStatsRxBadBintval, wlanMeshHWMPConfig=wlanMeshHWMPConfig, wlanMeshNeighborTxSequenceNo=wlanMeshNeighborTxSequenceNo, wlanIfaceIndex=wlanIfaceIndex, wlanStatsBadAidPSPoll=wlanStatsBadAidPSPoll)
epochs = 7 tau = 1.0 dropout = 0.2 validation_split = None batch_size = 32 lengthscale = 0.01
epochs = 7 tau = 1.0 dropout = 0.2 validation_split = None batch_size = 32 lengthscale = 0.01
# MEDIUM # TLE if decrement divisor only # Bit manipulation. # input: 100 / 3 # times = 0 # 3 << 0 = 3 # 3 << 1 = 6 # 3 << 2 = 12 # 3 << 3 = 24 # 3 << 4 = 48 # 3 << 5 = 96 # 3 << 6 = 192 => greater than dividend 100 => stop here # times -=1 because 3 << 6 is too big # result += 1 << times => divided by 32 # set dividend to dividend -= divisor << times # times O(log N) Space O(1) class Solution: def divide(self, dividend: int, divisor: int) -> int: if dividend == -2**31 and divisor == -1: return 2**31-1 if dividend == 0: return 0 sign = dividend>=0 and divisor>=0 or (dividend<0 and divisor<0) left,right = abs(dividend),abs(divisor) result = 0 while left>= right: count = 0 while left >= right<< count: count += 1 #print('count',count) # count -1 because right * count > left result += 1 << (count-1) #print("result",result) left -= right << (count-1) #print("dividend",left) return result if sign else -result
class Solution: def divide(self, dividend: int, divisor: int) -> int: if dividend == -2 ** 31 and divisor == -1: return 2 ** 31 - 1 if dividend == 0: return 0 sign = dividend >= 0 and divisor >= 0 or (dividend < 0 and divisor < 0) (left, right) = (abs(dividend), abs(divisor)) result = 0 while left >= right: count = 0 while left >= right << count: count += 1 result += 1 << count - 1 left -= right << count - 1 return result if sign else -result
class Test: def __init__(self): self.prop1 = None raise Exception('Interrupt init') def __del__(self): print('instance deleted') print(self.prop1) class Test2(Test): pass Test2()
class Test: def __init__(self): self.prop1 = None raise exception('Interrupt init') def __del__(self): print('instance deleted') print(self.prop1) class Test2(Test): pass test2()
def custom_filter(record): info = record.INFO support = info['SU'][0] paired_end_support = info['PE'][0] split_read_support = info['SR'][0] if support > 10 and paired_end_support > 5 and split_read_support > 5: yield record
def custom_filter(record): info = record.INFO support = info['SU'][0] paired_end_support = info['PE'][0] split_read_support = info['SR'][0] if support > 10 and paired_end_support > 5 and (split_read_support > 5): yield record
def from_socket(node, socket): pass
def from_socket(node, socket): pass
def append_helper(initial_list, append_this): if type(initial_list) is not list: raise TypeError("initial_list must be a list") if type(append_this) == list: return initial_list + append_this else: initial_list.append(append_this) return initial_list
def append_helper(initial_list, append_this): if type(initial_list) is not list: raise type_error('initial_list must be a list') if type(append_this) == list: return initial_list + append_this else: initial_list.append(append_this) return initial_list
def imageF(): image = imread(r"E:\Python Working\png") if __name__ =="__main__": imageF()
def image_f(): image = imread('E:\\Python Working\\png') if __name__ == '__main__': image_f()
class IGetCurrencies: def __init__(self, data): self.success = data.get('success') self.message = data.get('message', '') self.currencies_raw = data.get('currencies', {}) self.earbuds = Currency(self.currencies_raw.get('earbuds', {})) self.keys = Currency(self.currencies_raw.get('keys', {})) self.metal = Currency(self.currencies_raw.get('metal', {})) self.hat = Currency(self.currencies_raw.get('hat', {})) class Currency: def __init__(self, data): self.name = data.get('name') self.quality = data.get('quality') self.priceindex = data.get('priceindex') self.single = data.get('single') self.round = data.get('round') self.craftable = data.get('craftable') self.defindex = data.get('defindex') self.active = data.get('active') self.price_raw = data.get('price') self.value = self.price_raw.get('value')
class Igetcurrencies: def __init__(self, data): self.success = data.get('success') self.message = data.get('message', '') self.currencies_raw = data.get('currencies', {}) self.earbuds = currency(self.currencies_raw.get('earbuds', {})) self.keys = currency(self.currencies_raw.get('keys', {})) self.metal = currency(self.currencies_raw.get('metal', {})) self.hat = currency(self.currencies_raw.get('hat', {})) class Currency: def __init__(self, data): self.name = data.get('name') self.quality = data.get('quality') self.priceindex = data.get('priceindex') self.single = data.get('single') self.round = data.get('round') self.craftable = data.get('craftable') self.defindex = data.get('defindex') self.active = data.get('active') self.price_raw = data.get('price') self.value = self.price_raw.get('value')
class TestFile(): test = temp def temp_method(): print('temp_method')
class Testfile: test = temp def temp_method(): print('temp_method')
WORKER_THREAD = 'thread' WORKER_GREENLET = 'greenlet' WORKER_PROCESS = 'process' WORKER_TYPES = (WORKER_THREAD, WORKER_GREENLET, WORKER_PROCESS) class EmptyData(object): pass
worker_thread = 'thread' worker_greenlet = 'greenlet' worker_process = 'process' worker_types = (WORKER_THREAD, WORKER_GREENLET, WORKER_PROCESS) class Emptydata(object): pass
description = 'RESI NICOS startup setup' group = 'basic' includes = ['system'] #, 'lakeshore', 'cascade', 'detector'] modules = ['nicos_mlz.resi.scan'] devices = dict( resi = device('nicos_mlz.resi.devices.residevice.ResiDevice', description = 'main RESI device', unit = 'special', ), theta = device('nicos_mlz.resi.devices.residevice.ResiVAxis', description = 'theta axis', basedevice = 'resi', mapped_axis = 'theta', unit = 'degree', ), omega = device('nicos_mlz.resi.devices.residevice.ResiVAxis', description = 'omega axis', basedevice = 'resi', mapped_axis = 'omega', unit = 'degree', ), phi = device('nicos_mlz.resi.devices.residevice.ResiVAxis', description = 'phi axis', basedevice = 'resi', mapped_axis = 'phi', unit = 'degree', ), chi = device('nicos_mlz.resi.devices.residevice.ResiVAxis', description = 'chi axis', basedevice = 'resi', mapped_axis = 'chi', unit = 'degree', ), Sample = device('nicos_mlz.resi.devices.residevice.ResiSample', description = 'currently used sample', basedevice = 'resi', ), ) startupcode = ''' hw = resi._hardware '''
description = 'RESI NICOS startup setup' group = 'basic' includes = ['system'] modules = ['nicos_mlz.resi.scan'] devices = dict(resi=device('nicos_mlz.resi.devices.residevice.ResiDevice', description='main RESI device', unit='special'), theta=device('nicos_mlz.resi.devices.residevice.ResiVAxis', description='theta axis', basedevice='resi', mapped_axis='theta', unit='degree'), omega=device('nicos_mlz.resi.devices.residevice.ResiVAxis', description='omega axis', basedevice='resi', mapped_axis='omega', unit='degree'), phi=device('nicos_mlz.resi.devices.residevice.ResiVAxis', description='phi axis', basedevice='resi', mapped_axis='phi', unit='degree'), chi=device('nicos_mlz.resi.devices.residevice.ResiVAxis', description='chi axis', basedevice='resi', mapped_axis='chi', unit='degree'), Sample=device('nicos_mlz.resi.devices.residevice.ResiSample', description='currently used sample', basedevice='resi')) startupcode = '\nhw = resi._hardware\n'
def translate(phrase): translation = "" for letter in phrase: if letter in "AEIOUaeiou": if letter.isupper(): translation = translation + "M" else: translation = translation + "m" else: translation = translation + letter return translation print(translate(input("Enter a phrase: ")))
def translate(phrase): translation = '' for letter in phrase: if letter in 'AEIOUaeiou': if letter.isupper(): translation = translation + 'M' else: translation = translation + 'm' else: translation = translation + letter return translation print(translate(input('Enter a phrase: ')))
class Quote(object): def __init__(self, root, **kwargs): self._data = kwargs self._root = root def __getattr__(self, item): return self._data.get(item, None) def to_primitive(self): return self._data @staticmethod def from_primitive(root, primitive): if primitive['type'] == 'root_gadgets': return GadgetQuote(root, **primitive) if primitive['type'] == 'root_funeral': return GadgetQuote(root, **primitive) if primitive['type'] == 'root_term': return GadgetQuote(root, **primitive) def get_quote(self): response = self._root.post('quote', **self.to_primitive()) # TODO: add some error checking print("Response [%s] - %s" % (response.status_code, response.text)) if response.status_code != 200: raise AttributeError("Invalid Quote") return [QuotePackage(self._root, **x) for x in response.json()] class GadgetQuote(Quote): def __init__(self, root, model_name=None, make=None, model=None, type='root_gadgets'): opts = { 'type': type, 'model_name': model_name, 'make': make, 'model': model, } super(GadgetQuote, self).__init__(root, **opts) def set_requirements(self, serial_number): return {'serial_number': serial_number} class FuneralQuote(Quote): def __init__(self, root, cover_amount, has_spouse, number_of_children, extended_family_ages, type='root_funeral'): opts = { 'type': type, 'cover_amount': cover_amount, 'has_spouse': has_spouse, 'number_of_children': number_of_children, 'extended_family_ages': extended_family_ages } super(FuneralQuote, self).__init__(root, **opts) def set_requirements(self, spouse_id=None, children_ids=None, extended_family_ids=None): return {'spouse_id': spouse_id, 'children_ids': children_ids, 'extended_family_ids': extended_family_ids} class TermQuote(Quote): DURATION_1_YEAR = '1_year' DURATION_2_YEAR = '2_years' DURATION_5_YEAR = '5_years' DURATION_10_YEAR = '10_years' DURATION_15_YEAR = '15_years' DURATION_20_YEAR = '20_years' DURATION_LIFE = 'whole_life' GENDER_MALE = 'male' GENDER_FEMALE = 'female' EDUCATION_NO_MATRIC = 'grade_12_no_matric' EDUCATION_MATRIC = 'grade_12_matric' EDUCATION_DIPLOMA = 'diploma_or_btech' EDUCATION_UNDERGRADUATE = 'undergraduate_degree' EDUCATION_PROFESSIONAL = 'professional_degree' def __init__(self, root, cover_amount, cover_period, basic_income_per_month, education_status, smoker, gender, age, type='root_term'): opts = { 'type': type, 'cover_amount': cover_amount, 'cover_period': cover_period, 'basic_income_per_month': basic_income_per_month, 'education_status': education_status, 'smoker': smoker, 'gender': gender, 'age': age } super(TermQuote, self).__init__(root, **opts) def set_requirements(self): return {} class QuotePackage(object): def __init__(self, root, **primitive): self._root = root self._v = primitive self._application = {} def __getitem__(self, item): return self._v.get(item, None) def __getattr__(self, item): if item == "module": return Quote.from_primitive(self._root, self._v[item]) return self._v.get(item, None) def set_requirements(self, **kwargs): self._application = self.module.set_requirements(**kwargs) def get_requirements(self): return self._application
class Quote(object): def __init__(self, root, **kwargs): self._data = kwargs self._root = root def __getattr__(self, item): return self._data.get(item, None) def to_primitive(self): return self._data @staticmethod def from_primitive(root, primitive): if primitive['type'] == 'root_gadgets': return gadget_quote(root, **primitive) if primitive['type'] == 'root_funeral': return gadget_quote(root, **primitive) if primitive['type'] == 'root_term': return gadget_quote(root, **primitive) def get_quote(self): response = self._root.post('quote', **self.to_primitive()) print('Response [%s] - %s' % (response.status_code, response.text)) if response.status_code != 200: raise attribute_error('Invalid Quote') return [quote_package(self._root, **x) for x in response.json()] class Gadgetquote(Quote): def __init__(self, root, model_name=None, make=None, model=None, type='root_gadgets'): opts = {'type': type, 'model_name': model_name, 'make': make, 'model': model} super(GadgetQuote, self).__init__(root, **opts) def set_requirements(self, serial_number): return {'serial_number': serial_number} class Funeralquote(Quote): def __init__(self, root, cover_amount, has_spouse, number_of_children, extended_family_ages, type='root_funeral'): opts = {'type': type, 'cover_amount': cover_amount, 'has_spouse': has_spouse, 'number_of_children': number_of_children, 'extended_family_ages': extended_family_ages} super(FuneralQuote, self).__init__(root, **opts) def set_requirements(self, spouse_id=None, children_ids=None, extended_family_ids=None): return {'spouse_id': spouse_id, 'children_ids': children_ids, 'extended_family_ids': extended_family_ids} class Termquote(Quote): duration_1_year = '1_year' duration_2_year = '2_years' duration_5_year = '5_years' duration_10_year = '10_years' duration_15_year = '15_years' duration_20_year = '20_years' duration_life = 'whole_life' gender_male = 'male' gender_female = 'female' education_no_matric = 'grade_12_no_matric' education_matric = 'grade_12_matric' education_diploma = 'diploma_or_btech' education_undergraduate = 'undergraduate_degree' education_professional = 'professional_degree' def __init__(self, root, cover_amount, cover_period, basic_income_per_month, education_status, smoker, gender, age, type='root_term'): opts = {'type': type, 'cover_amount': cover_amount, 'cover_period': cover_period, 'basic_income_per_month': basic_income_per_month, 'education_status': education_status, 'smoker': smoker, 'gender': gender, 'age': age} super(TermQuote, self).__init__(root, **opts) def set_requirements(self): return {} class Quotepackage(object): def __init__(self, root, **primitive): self._root = root self._v = primitive self._application = {} def __getitem__(self, item): return self._v.get(item, None) def __getattr__(self, item): if item == 'module': return Quote.from_primitive(self._root, self._v[item]) return self._v.get(item, None) def set_requirements(self, **kwargs): self._application = self.module.set_requirements(**kwargs) def get_requirements(self): return self._application
DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', } } INSTALLED_APPS = [ 'django_nose', 'tests.testapp', ] ROOT_URLCONF = 'tests.urls' SECRET_KEY = "shh...it's a seakret" CACHES = { 'default': { 'BACKEND': 'redis_cache.RedisCache', 'LOCATION': '127.0.0.1:6381', 'OPTIONS': { 'DB': 15, 'PASSWORD': 'yadayada', 'PARSER_CLASS': 'redis.connection.HiredisParser', 'PICKLE_VERSION': 2, 'CONNECTION_POOL_CLASS': 'redis.ConnectionPool', 'CONNECTION_POOL_CLASS_KWARGS': { 'max_connections': 2, } }, }, } TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' MIDDLEWARE_CLASSES = tuple()
debug = True databases = {'default': {'ENGINE': 'django.db.backends.sqlite3'}} installed_apps = ['django_nose', 'tests.testapp'] root_urlconf = 'tests.urls' secret_key = "shh...it's a seakret" caches = {'default': {'BACKEND': 'redis_cache.RedisCache', 'LOCATION': '127.0.0.1:6381', 'OPTIONS': {'DB': 15, 'PASSWORD': 'yadayada', 'PARSER_CLASS': 'redis.connection.HiredisParser', 'PICKLE_VERSION': 2, 'CONNECTION_POOL_CLASS': 'redis.ConnectionPool', 'CONNECTION_POOL_CLASS_KWARGS': {'max_connections': 2}}}} test_runner = 'django_nose.NoseTestSuiteRunner' middleware_classes = tuple()
# Example test module for nose # run with: nosetests -v # or: nosetests -s # Simple test functions first: def test_ok(): print("test_ok") # def fail_test(): # print "fail_test: will always fail" # assert False # Private functions are however not recognized: def _test_notseen(): print("_test_notseen") assert False def _notseen_test(): print("_notseen_test") assert False # The following is reported as an ERROR (should have zero params): # def test_notreally(something): # assert False # test generators def test_evens(): for i in range(0, 5, 2): yield check_even, i def check_even(n): assert n % 2 == 0 # test with setup, teardown methods def setup_func(): "set up test fixtures" def teardown_func(): "tear down test fixtures" def test_with_setup(): "test ... " test_with_setup.setup = setup_func test_with_setup.teardown = teardown_func # or use decorator: @with_setup(setup_func, teardown_func) # requires: from nose import with_setup # module-level setup and teardown: def setup_module(module): print("") # this is to get a newline after the dots print("setup_module before anything in this file") def teardown_module(module): print("teardown_module after everything in this file") # test class class TestA: def setup(self): print("TestA:setup() before each test method") def teardown(self): print("TestA:teardown() after each test method") @classmethod def setup_class(cls): print("setup_class() before any methods in this class") @classmethod def teardown_class(cls): print("teardown_class() after any methods in this class") def test_numbers_5_6(self): print("test_numbers_5_6()") assert 5 * 6 == 30 def test_strings_b_2(self): print("test_strings_b_2()") assert "b" * 2 == "bb" # Optional API for cleaner output: # from nose.tools import assert_equal # from nose.tools import assert_not_equal # from nose.tools import assert_raises # from nose.tools import raises # Nose finds and runs unittests with no problem, and with no extra steps. # Nose can run doctests
def test_ok(): print('test_ok') def _test_notseen(): print('_test_notseen') assert False def _notseen_test(): print('_notseen_test') assert False def test_evens(): for i in range(0, 5, 2): yield (check_even, i) def check_even(n): assert n % 2 == 0 def setup_func(): """set up test fixtures""" def teardown_func(): """tear down test fixtures""" def test_with_setup(): """test ... """ test_with_setup.setup = setup_func test_with_setup.teardown = teardown_func def setup_module(module): print('') print('setup_module before anything in this file') def teardown_module(module): print('teardown_module after everything in this file') class Testa: def setup(self): print('TestA:setup() before each test method') def teardown(self): print('TestA:teardown() after each test method') @classmethod def setup_class(cls): print('setup_class() before any methods in this class') @classmethod def teardown_class(cls): print('teardown_class() after any methods in this class') def test_numbers_5_6(self): print('test_numbers_5_6()') assert 5 * 6 == 30 def test_strings_b_2(self): print('test_strings_b_2()') assert 'b' * 2 == 'bb'
#!/usr/bin/env python3 num = int(input()) if num % 3 == 0 and num % 5 == 0: print('fizzbuzz') elif num % 3 == 0: print("fizz") elif num % 5 == 0: print("buzz") else: print('you are wrong kiddo') # the point of fizzbuzz is to see if a number is divisible by 3 and 5, or just one, or neither. # for more info check out https://blog.codinghorror.com/why-cant-programmers-program/
num = int(input()) if num % 3 == 0 and num % 5 == 0: print('fizzbuzz') elif num % 3 == 0: print('fizz') elif num % 5 == 0: print('buzz') else: print('you are wrong kiddo')
class BuildError(Exception): def __init__(self, message: str): super().__init__(message) class MissedRequiredParamError(BuildError): def __init__(self, param_name: str): message = f'Required param "{param_name}" is missed' super().__init__(message) class FunctionNotExistError(BuildError): def __init__(self, function_name: str): message = f'Function "{function_name}" does not exist' super().__init__(message) class MissedItemError(BuildError): def __init__(self, item: str): message = f'Item "{item}" is missed. ' \ f'Check if function_path correct.' super().__init__(message) class UnsupportedDBDialectError(BuildError): def __init__(self, dialect: str): message = f'Dialect "{dialect}" is not supported. ' \ f'See SUPPORTED_DIALECTS.' super().__init__(message) class UnsupportedDBDriverError(BuildError): def __init__(self, driver_name: str): message = f'Driver "{driver_name}" is not supported. ' \ f'See SUPPORTED_DB_DRIVERS.' super().__init__(message) class WrongDriverForDialectError(BuildError): def __init__(self, driver_name: str, dialect: str): message = f'Driver "{driver_name}" ' \ f'cannot be used with {dialect}. ' \ f'See SUPPORTED_DB_DRIVERS.' super().__init__(message) class InvalidConfigError(BuildError): def __init__(self, config_path: str): message = f'Config path is invalid. ' \ f'"{config_path}" is incorrect value.' super().__init__(message)
class Builderror(Exception): def __init__(self, message: str): super().__init__(message) class Missedrequiredparamerror(BuildError): def __init__(self, param_name: str): message = f'Required param "{param_name}" is missed' super().__init__(message) class Functionnotexisterror(BuildError): def __init__(self, function_name: str): message = f'Function "{function_name}" does not exist' super().__init__(message) class Misseditemerror(BuildError): def __init__(self, item: str): message = f'Item "{item}" is missed. Check if function_path correct.' super().__init__(message) class Unsupporteddbdialecterror(BuildError): def __init__(self, dialect: str): message = f'Dialect "{dialect}" is not supported. See SUPPORTED_DIALECTS.' super().__init__(message) class Unsupporteddbdrivererror(BuildError): def __init__(self, driver_name: str): message = f'Driver "{driver_name}" is not supported. See SUPPORTED_DB_DRIVERS.' super().__init__(message) class Wrongdriverfordialecterror(BuildError): def __init__(self, driver_name: str, dialect: str): message = f'Driver "{driver_name}" cannot be used with {dialect}. See SUPPORTED_DB_DRIVERS.' super().__init__(message) class Invalidconfigerror(BuildError): def __init__(self, config_path: str): message = f'Config path is invalid. "{config_path}" is incorrect value.' super().__init__(message)
def func(arg, opt=1, *args, **kwargs): print(arg, opt, args, kwargs) func(0) func(0, 10) func(0, 10, 20) func(0, 10, 20, 30) func(0, 10, 20, 30, key='value') func(0, 10, 20, 30, key='value', key2='v2')
def func(arg, opt=1, *args, **kwargs): print(arg, opt, args, kwargs) func(0) func(0, 10) func(0, 10, 20) func(0, 10, 20, 30) func(0, 10, 20, 30, key='value') func(0, 10, 20, 30, key='value', key2='v2')
# class definition class MyClass: pass # The __init__() Method # attributes # methods class People: def __init__(self, name, age): self.__name = name self.__age = age def sayhi(self): print("Hi, my name is %s, and I'm %s" % (self.__name, self.__age)) def get_age(self): return self.__age def set_age(self, num): if isinstance(num, int): if num > 0: self.__age = num return print('format error') # class instance someone = People(name='Jack', age=20) print(someone.get_age()) someone.set_age(num='ab') print(someone.get_age())
class Myclass: pass class People: def __init__(self, name, age): self.__name = name self.__age = age def sayhi(self): print("Hi, my name is %s, and I'm %s" % (self.__name, self.__age)) def get_age(self): return self.__age def set_age(self, num): if isinstance(num, int): if num > 0: self.__age = num return print('format error') someone = people(name='Jack', age=20) print(someone.get_age()) someone.set_age(num='ab') print(someone.get_age())
print('Opening dummy.txt') #open dummy.txt to read it as "in_stream" (in_stream is the variable) with open('dummy.txt', 'r') as in_stream: print('Opening output.txt') #open output.txt to write in it, call it "out_stream" with open('output.txt', 'w') as out_stream: #for every line in the dummy.txt input file #enumerate will keep it going line-by-line, but will return an index of the line called as well for line_index, line in enumerate(in_stream): #call the strip method on each line. This will remove whitespace at the end of each line. line = line.strip() #call the split method on each line. This splits the string into a list, where each word is one element in the list. word_list = line.split() #call the sort method on the list from the previous line. word_list.sort() #for every element of the word list, write it out to out_stream for word in word_list: out_stream.write('{0}\t{1}\n'.format(line_index, word)) print("Done!") print('dummy.txt is closed?', in_stream.closed) print('output.txt is clsoed?', out_stream.closed)
print('Opening dummy.txt') with open('dummy.txt', 'r') as in_stream: print('Opening output.txt') with open('output.txt', 'w') as out_stream: for (line_index, line) in enumerate(in_stream): line = line.strip() word_list = line.split() word_list.sort() for word in word_list: out_stream.write('{0}\t{1}\n'.format(line_index, word)) print('Done!') print('dummy.txt is closed?', in_stream.closed) print('output.txt is clsoed?', out_stream.closed)
count = int(input()) numbers_list = [] for _x in range(count): numbers_list.append(int(input())) sum_numbers = 0 count_numbers = len(numbers_list) for x in numbers_list: sum_numbers += x mean = sum_numbers / count_numbers print(mean)
count = int(input()) numbers_list = [] for _x in range(count): numbers_list.append(int(input())) sum_numbers = 0 count_numbers = len(numbers_list) for x in numbers_list: sum_numbers += x mean = sum_numbers / count_numbers print(mean)
#! /usr/bin/env python3 AsciiBinFmt, AsciiGrayFmt, AsciiPixelFmt = range(1, 4) BinBinFmt, BinGrayFmt, BinPixelFmt = range(4, 7) ext = ["", "pbm", "pgm", "ppm", "pbm", "pgm", "ppm"] def isBinFmt(fmt): return fmt % 3 == 1 def isGrayFmt(fmt): return fmt % 3 == 2 def isPixelFmt(fmt): return fmt % 3 == 0 class Gen(): def __init__(self, width, height, fmt, maxval=255): self.width = width self.height = height self.fmt = fmt self.maxval = 1 if isBinFmt(fmt) else maxval def gen(self, x, y): wid = 1 xx, yy = x // wid, y // wid v = (xx + yy) % 2 # print (x, y, xx, yy, v) if v == 1: v = self.maxval return '%3d' % (v) def PPMHeader(width, height, fmt=AsciiPixelFmt, maxval=255): s = "P%d\n" % (fmt) s += "%d %d\n" % (width, height) if not isBinFmt(fmt): s += "%d\n" % (maxval) return s def main(w, h, fmt, GEN): g = GEN(w, h, fmt) with open("test." + ext[fmt], "w") as fp: print("width: %d height: %d fmt: %d" % (w, h, fmt)) fp.write(PPMHeader(w, h, fmt)) for i in range(h): for j in range(w): fp.write(" %s" % (g.gen(j, i))) fp.write("\n") if __name__ == "__main__": v = 64 w, h = v, v fmt = AsciiBinFmt main(w, h, fmt, Gen)
(ascii_bin_fmt, ascii_gray_fmt, ascii_pixel_fmt) = range(1, 4) (bin_bin_fmt, bin_gray_fmt, bin_pixel_fmt) = range(4, 7) ext = ['', 'pbm', 'pgm', 'ppm', 'pbm', 'pgm', 'ppm'] def is_bin_fmt(fmt): return fmt % 3 == 1 def is_gray_fmt(fmt): return fmt % 3 == 2 def is_pixel_fmt(fmt): return fmt % 3 == 0 class Gen: def __init__(self, width, height, fmt, maxval=255): self.width = width self.height = height self.fmt = fmt self.maxval = 1 if is_bin_fmt(fmt) else maxval def gen(self, x, y): wid = 1 (xx, yy) = (x // wid, y // wid) v = (xx + yy) % 2 if v == 1: v = self.maxval return '%3d' % v def ppm_header(width, height, fmt=AsciiPixelFmt, maxval=255): s = 'P%d\n' % fmt s += '%d %d\n' % (width, height) if not is_bin_fmt(fmt): s += '%d\n' % maxval return s def main(w, h, fmt, GEN): g = gen(w, h, fmt) with open('test.' + ext[fmt], 'w') as fp: print('width: %d height: %d fmt: %d' % (w, h, fmt)) fp.write(ppm_header(w, h, fmt)) for i in range(h): for j in range(w): fp.write(' %s' % g.gen(j, i)) fp.write('\n') if __name__ == '__main__': v = 64 (w, h) = (v, v) fmt = AsciiBinFmt main(w, h, fmt, Gen)
''' The function has been made even more general by parameterizing the size of one sub box. ''' def drawBox(length, cellSize): for i in range(length): printBoxLines(length, cellSize, "*", "---", 1) printBoxLines(length, cellSize, "|", " ", cellSize) printBoxLines(length, cellSize, "*", "---", 1) def printBoxLines(length, cellSize, char1, char2, n): for i in range(n): print((char1 + (char2 * cellSize)) * length + char1) drawBox(10, 1)
""" The function has been made even more general by parameterizing the size of one sub box. """ def draw_box(length, cellSize): for i in range(length): print_box_lines(length, cellSize, '*', '---', 1) print_box_lines(length, cellSize, '|', ' ', cellSize) print_box_lines(length, cellSize, '*', '---', 1) def print_box_lines(length, cellSize, char1, char2, n): for i in range(n): print((char1 + char2 * cellSize) * length + char1) draw_box(10, 1)
GRID_SIZE = 5 # Bingo numbers and grids. def get_b_and_g(lines): bingo_numbers = [] grids = [] is_first = True for line in lines: if is_first: bingo_numbers = [int(s) for s in line.split(",") if s.isdigit()] is_first = False continue if line == "": grids.append([]) else: grids[-1].extend([int(s) for s in line.split(" ") if s.isdigit()]) return (bingo_numbers, grids) # (win_order, win_numbers) def play_data(bingo_numbers, grids): grid_win_order = [] grid_win_numbers = [-1] * len(grids) # If a number is 5, It's a win. grid_rows = [[0] * GRID_SIZE for grid in grids] grid_cols = [[0] * GRID_SIZE for grid in grids] # I hate Python. # [[0] * 5] * 5 != [[0] * 5 for i in range(5)] for number in bingo_numbers: for gi, grid in enumerate(grids): if grid_win_numbers[gi] != -1: continue y = -1 for ci, cell in enumerate(grid): if ci % GRID_SIZE == 0: y += 1 if cell == number: x = ci - y * GRID_SIZE grid_rows[gi][x] += 1 grid_cols[gi][y] += 1 if grid_rows[gi][x] == GRID_SIZE \ or grid_cols[gi][y] == GRID_SIZE: grid_win_numbers[gi] = number grid_win_order.append(gi) break return (grid_win_order, grid_win_numbers) def part1(): with open("day04.input") as file: lines = file.read().split("\n") if lines[-1] == "": lines.pop() bingo_numbers, grids = get_b_and_g(lines) grid_win_order, grid_win_numbers = play_data(bingo_numbers, grids) # Print the first winner and the score. win_number = grid_win_numbers[grid_win_order[0]] win_bingo_numbers = bingo_numbers[:bingo_numbers.index(win_number) + 1] unmarked_sum = 0 for cell in grids[grid_win_order[0]]: if cell not in win_bingo_numbers: unmarked_sum += cell score = unmarked_sum * win_number print(f"[First board]") print(f"Board: {grid_win_order[0] + 1}") print(f"Score: {score}") def part2(): with open("day04.input") as file: lines = file.read().split("\n") if lines[-1] == "": lines.pop() bingo_numbers, grids = get_b_and_g(lines) grid_win_order, grid_win_numbers = play_data(bingo_numbers, grids) # Print the last winner and the score. win_number = grid_win_numbers[grid_win_order[-1]] win_bingo_numbers = bingo_numbers[:bingo_numbers.index(win_number) + 1] unmarked_sum = 0 for cell in grids[grid_win_order[-1]]: if cell not in win_bingo_numbers: unmarked_sum += cell score = unmarked_sum * win_number print(f"[Last board]") print(f"Board: {grid_win_order[-1] + 1}") print(f"Score: {score}") part1() part2()
grid_size = 5 def get_b_and_g(lines): bingo_numbers = [] grids = [] is_first = True for line in lines: if is_first: bingo_numbers = [int(s) for s in line.split(',') if s.isdigit()] is_first = False continue if line == '': grids.append([]) else: grids[-1].extend([int(s) for s in line.split(' ') if s.isdigit()]) return (bingo_numbers, grids) def play_data(bingo_numbers, grids): grid_win_order = [] grid_win_numbers = [-1] * len(grids) grid_rows = [[0] * GRID_SIZE for grid in grids] grid_cols = [[0] * GRID_SIZE for grid in grids] for number in bingo_numbers: for (gi, grid) in enumerate(grids): if grid_win_numbers[gi] != -1: continue y = -1 for (ci, cell) in enumerate(grid): if ci % GRID_SIZE == 0: y += 1 if cell == number: x = ci - y * GRID_SIZE grid_rows[gi][x] += 1 grid_cols[gi][y] += 1 if grid_rows[gi][x] == GRID_SIZE or grid_cols[gi][y] == GRID_SIZE: grid_win_numbers[gi] = number grid_win_order.append(gi) break return (grid_win_order, grid_win_numbers) def part1(): with open('day04.input') as file: lines = file.read().split('\n') if lines[-1] == '': lines.pop() (bingo_numbers, grids) = get_b_and_g(lines) (grid_win_order, grid_win_numbers) = play_data(bingo_numbers, grids) win_number = grid_win_numbers[grid_win_order[0]] win_bingo_numbers = bingo_numbers[:bingo_numbers.index(win_number) + 1] unmarked_sum = 0 for cell in grids[grid_win_order[0]]: if cell not in win_bingo_numbers: unmarked_sum += cell score = unmarked_sum * win_number print(f'[First board]') print(f'Board: {grid_win_order[0] + 1}') print(f'Score: {score}') def part2(): with open('day04.input') as file: lines = file.read().split('\n') if lines[-1] == '': lines.pop() (bingo_numbers, grids) = get_b_and_g(lines) (grid_win_order, grid_win_numbers) = play_data(bingo_numbers, grids) win_number = grid_win_numbers[grid_win_order[-1]] win_bingo_numbers = bingo_numbers[:bingo_numbers.index(win_number) + 1] unmarked_sum = 0 for cell in grids[grid_win_order[-1]]: if cell not in win_bingo_numbers: unmarked_sum += cell score = unmarked_sum * win_number print(f'[Last board]') print(f'Board: {grid_win_order[-1] + 1}') print(f'Score: {score}') part1() part2()
# Even Fibonacci numbers # Each new term in the Fibonacci sequence is generated # by adding the previous two terms. By starting with # 1 and 2, the first 10 terms will be: # # 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... # # By considering the terms in the Fibonacci sequence # whose values do not exceed four million, find the sum # of the even-valued terms. # # This requires efficient Fibonacci generation: the classical # recursive solution of fib(n) = fib(n-1) + fib(n-2) will grow # at O(2^n) (or more precisely, O(fib(n)) complexity). # # We see that the other basic solution of simply iteratively # adding numbers will work. UPPER_BOUND = 4000000 def run(): even_fib_sum = 0 fib_last = 1 fib_current = 1 # Loop until fibonacci numbers get too large # Fibonacci computed iteratively while fib_current <= UPPER_BOUND: if fib_current % 2 == 0: even_fib_sum += fib_current fib_new = fib_last + fib_current fib_last = fib_current fib_current = fib_new print("The sum of even-valued fibonacci numbers not exceeding {0} is {1}".format(UPPER_BOUND, even_fib_sum)) # Sample Output: # The sum of even-valued fibonacci numbers not exceeding 4000000 is 4613732 # # Total running time for Problem2.py is 0.0001370123105817635 seconds
upper_bound = 4000000 def run(): even_fib_sum = 0 fib_last = 1 fib_current = 1 while fib_current <= UPPER_BOUND: if fib_current % 2 == 0: even_fib_sum += fib_current fib_new = fib_last + fib_current fib_last = fib_current fib_current = fib_new print('The sum of even-valued fibonacci numbers not exceeding {0} is {1}'.format(UPPER_BOUND, even_fib_sum))
#!/usr/bin/env python # -*- coding: utf-8 -*- def f1(a,b,c=0,*args,**kwargs): print('a=',a,'b=',b,'c=',c,'args=',args,'kwargs=',kwargs) def f2(a,b,c=0,*,d,**kw): print('a=',a,'b=',b,'c=',c,'d=',d,'kw=',kw) #f1(1,2,3,'a','b',x=99) #f2(1,2,d=99,ext=None) args=(1,2,3,4) kw={'d':99,'x':'#'} f1(*args,**kw) args=(1,2,3) kw={'d':88,'*':'#'} f2(*args,**kw)
def f1(a, b, c=0, *args, **kwargs): print('a=', a, 'b=', b, 'c=', c, 'args=', args, 'kwargs=', kwargs) def f2(a, b, c=0, *, d, **kw): print('a=', a, 'b=', b, 'c=', c, 'd=', d, 'kw=', kw) args = (1, 2, 3, 4) kw = {'d': 99, 'x': '#'} f1(*args, **kw) args = (1, 2, 3) kw = {'d': 88, '*': '#'} f2(*args, **kw)
# Robot variable file using Python syntax # Installed browser selection # BROWSER = "chrome" # BROWSER = "firefox" BROWSER = "headlessfirefox" # Helmi login credentials: # replace <helmiurl> with your area specific value https://alue.helmi.fi # replace <user> and <pass> with your Helmi username and password HELMI_LOGIN_PAGE = "<helmiurl>" HELMI_USERNAME = "<user>" HELMI_PASSWORD = "<pass>" # Gmail credentials: # replace <email> with your Gmail account to use for sending email GMAIL_USERID = "<email>" # Email address for message reading # replace <email> with address that receives message emails HELMI_TARGET_EMAIL = "<email>"
browser = 'headlessfirefox' helmi_login_page = '<helmiurl>' helmi_username = '<user>' helmi_password = '<pass>' gmail_userid = '<email>' helmi_target_email = '<email>'
class Solution: def printMinNumberForPattern(ob, S): # code here count = 1 stack = [] ans = "" for i in S: if i == "D": stack.append(count) count += 1 else: stack.append(count) count += 1 while stack: ans += str(stack.pop()) stack.append(count) while stack: ans += str(stack.pop()) # print(ans) return int(ans) #{ # Driver Code Starts #Initial Template for Python 3 if __name__ == '__main__': t = int(input()) for _ in range(t): S = str(input()) ob = Solution() print(ob.printMinNumberForPattern(S)) # } Driver Code Ends
class Solution: def print_min_number_for_pattern(ob, S): count = 1 stack = [] ans = '' for i in S: if i == 'D': stack.append(count) count += 1 else: stack.append(count) count += 1 while stack: ans += str(stack.pop()) stack.append(count) while stack: ans += str(stack.pop()) return int(ans) if __name__ == '__main__': t = int(input()) for _ in range(t): s = str(input()) ob = solution() print(ob.printMinNumberForPattern(S))
class Solution: def removeDuplicates(self, nums): if len(nums) == 0: return 0 nextAvail = 1 for i in range(1, len(nums)): if nums[i] == nums[nextAvail-1]: i += 1 else: nums[nextAvail] = nums[i] nextAvail += 1 continue return nextAvail
class Solution: def remove_duplicates(self, nums): if len(nums) == 0: return 0 next_avail = 1 for i in range(1, len(nums)): if nums[i] == nums[nextAvail - 1]: i += 1 else: nums[nextAvail] = nums[i] next_avail += 1 continue return nextAvail
class Solution: def numberOfArithmeticSlices(self, nums: List[int]) -> int: dp = 0 ans = 0 n = len(nums) for i in range(2, n): pre = nums[i - 1] - nums[i - 2] now = nums[i] - nums[i - 1] if now == pre: dp += 1 ans += dp else: dp = 0 pre = now return ans
class Solution: def number_of_arithmetic_slices(self, nums: List[int]) -> int: dp = 0 ans = 0 n = len(nums) for i in range(2, n): pre = nums[i - 1] - nums[i - 2] now = nums[i] - nums[i - 1] if now == pre: dp += 1 ans += dp else: dp = 0 pre = now return ans
def findMax(some_dict): positions = set() # output variable max_value = -1 for k, v in some_dict.items(): if v == max_value: positions.add(k) if v > max_value: max_value = v positions = set() # output variable positions.add(k) return positions, max_value def getChangeTimes(cowLog: list, milkLog: dict) -> int: board, maxMilk = findMax(milkLog) count = 0 # return this for c in cowLog: milkLog[c[1]] += c[2] if c[1] in board: if c[2] < 0: if len(board) == 1: # the one cow on board decreased newBoard, maxMilk = findMax(milkLog) if newBoard != board: count += 1 board = newBoard else: # one cow on board just got bad board.remove(c[1]) count += 1 else: # one cow on board just got new record if len(board) != 1: board = set([c[1]]) count += 1 maxMilk = milkLog[c[1]] else: if milkLog[c[1]] > maxMilk: # one cow got new record maxMilk = milkLog[c[1]] board = set([c[1]]) count += 1 elif milkLog[c[1]] == maxMilk: # tied with old cow board.add(c[1]) count += 1 if count == 0: return 1 return count def main(inputFile, outputFile): measurementInput = open(inputFile, 'r') measurementOutput = open(outputFile, 'w') cowLog = [] milkLog = {} N, G = measurementInput.readline().strip().split() N, G = int(N), int(G) for _ in range(N): line = measurementInput.readline().strip().split() cow = int(line[1]) cowLog.append((int(line[0]), cow, int(line[2]),)) if cow not in milkLog: milkLog[cow] = G measurementOutput.write(str(getChangeTimes(sorted(cowLog), milkLog)) + '\n') measurementInput.close() measurementOutput.close() main('measurement.in', 'measurement.out')
def find_max(some_dict): positions = set() max_value = -1 for (k, v) in some_dict.items(): if v == max_value: positions.add(k) if v > max_value: max_value = v positions = set() positions.add(k) return (positions, max_value) def get_change_times(cowLog: list, milkLog: dict) -> int: (board, max_milk) = find_max(milkLog) count = 0 for c in cowLog: milkLog[c[1]] += c[2] if c[1] in board: if c[2] < 0: if len(board) == 1: (new_board, max_milk) = find_max(milkLog) if newBoard != board: count += 1 board = newBoard else: board.remove(c[1]) count += 1 else: if len(board) != 1: board = set([c[1]]) count += 1 max_milk = milkLog[c[1]] elif milkLog[c[1]] > maxMilk: max_milk = milkLog[c[1]] board = set([c[1]]) count += 1 elif milkLog[c[1]] == maxMilk: board.add(c[1]) count += 1 if count == 0: return 1 return count def main(inputFile, outputFile): measurement_input = open(inputFile, 'r') measurement_output = open(outputFile, 'w') cow_log = [] milk_log = {} (n, g) = measurementInput.readline().strip().split() (n, g) = (int(N), int(G)) for _ in range(N): line = measurementInput.readline().strip().split() cow = int(line[1]) cowLog.append((int(line[0]), cow, int(line[2]))) if cow not in milkLog: milkLog[cow] = G measurementOutput.write(str(get_change_times(sorted(cowLog), milkLog)) + '\n') measurementInput.close() measurementOutput.close() main('measurement.in', 'measurement.out')
def mdc(a,b): if a<b: return mdc(b,a) else: if b==0: return a else: return mdc(b, a % b) print(mdc(12,8)) print(mdc(12,10))
def mdc(a, b): if a < b: return mdc(b, a) elif b == 0: return a else: return mdc(b, a % b) print(mdc(12, 8)) print(mdc(12, 10))
# -*- coding: utf-8 -*- ''' module used while testing mock hubs provided in 'testing'. ''' __contracts__ = ['testing'] def noparam(hub): pass def echo(hub, param): return param def signature_func(hub, param1, param2='default'): pass def attr_func(hub): pass attr_func.test = True attr_func.__test__ = True async def async_echo(hub, param): return param
""" module used while testing mock hubs provided in 'testing'. """ __contracts__ = ['testing'] def noparam(hub): pass def echo(hub, param): return param def signature_func(hub, param1, param2='default'): pass def attr_func(hub): pass attr_func.test = True attr_func.__test__ = True async def async_echo(hub, param): return param
code = "he.elk.set.to" decode = code.split("e") print(decode[-1])
code = 'he.elk.set.to' decode = code.split('e') print(decode[-1])
# you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(M, A): hash = [0] * (M + 1) slices = 0 max_slices = 1000000000 head = 0 for tail in range(len(A)): while head < len(A) and ( not hash[A[head]]): hash[A[head]] = 1 slices += head - tail + 1 if slices > max_slices: return max_slices head += 1 hash[A[tail]] = False return slices solution(6, [3, 4, 5, 5, 2])
def solution(M, A): hash = [0] * (M + 1) slices = 0 max_slices = 1000000000 head = 0 for tail in range(len(A)): while head < len(A) and (not hash[A[head]]): hash[A[head]] = 1 slices += head - tail + 1 if slices > max_slices: return max_slices head += 1 hash[A[tail]] = False return slices solution(6, [3, 4, 5, 5, 2])
#less than operator print(4<10) # --- L1 print(10<4) # --- L2 print(4<4.0) # --- L3 print(4.0<4) # --- L4 print('python'<'Python') #--- L5 print('python'<'python') # --- L6 print('Python'<'python') #--- L7
print(4 < 10) print(10 < 4) print(4 < 4.0) print(4.0 < 4) print('python' < 'Python') print('python' < 'python') print('Python' < 'python')
DIGITS = "0123456789abcdef" def convert_base_stack(decimal_number, base): remainder_stack = [] while decimal_number > 0: remainder = decimal_number % base remainder_stack.append(remainder) decimal_number = decimal_number // base new_digits = [] while remainder_stack: new_digits.append(DIGITS[remainder_stack.pop()]) return "".join(new_digits) def convert_base_rec(decimal_number, base): if decimal_number < base: return DIGITS[decimal_number] return convert_base_rec(decimal_number // base, base) + DIGITS[decimal_number % base]
digits = '0123456789abcdef' def convert_base_stack(decimal_number, base): remainder_stack = [] while decimal_number > 0: remainder = decimal_number % base remainder_stack.append(remainder) decimal_number = decimal_number // base new_digits = [] while remainder_stack: new_digits.append(DIGITS[remainder_stack.pop()]) return ''.join(new_digits) def convert_base_rec(decimal_number, base): if decimal_number < base: return DIGITS[decimal_number] return convert_base_rec(decimal_number // base, base) + DIGITS[decimal_number % base]
def add(a,b): return a+b def substract(a,b): return a * b ## Imagine I made a valid change def absolut(a,b): return np.abs(a,b)
def add(a, b): return a + b def substract(a, b): return a * b def absolut(a, b): return np.abs(a, b)
class Solution: def findRestaurant(self, list1, list2): mp1, mp2 = {x: i for i, x in enumerate(list1)}, {x: i for i, x in enumerate(list2)} ans = [10 ** 4, []] for k, v in mp1.items(): if k in mp2 and v + mp2[k] == ans[0]: ans[1].append(k) elif k in mp2 and v + mp2[k] < ans[0]: ans = [v + mp2[k], [k]] return ans[1]
class Solution: def find_restaurant(self, list1, list2): (mp1, mp2) = ({x: i for (i, x) in enumerate(list1)}, {x: i for (i, x) in enumerate(list2)}) ans = [10 ** 4, []] for (k, v) in mp1.items(): if k in mp2 and v + mp2[k] == ans[0]: ans[1].append(k) elif k in mp2 and v + mp2[k] < ans[0]: ans = [v + mp2[k], [k]] return ans[1]
# Solution 1 # O(n) time / O(n) space def branchSums(root): sums = [] calculateBranchSums(root, 0, sums) return sums def calculateBranchSums(node, runningSum, sums): if node is None: return sums newRunningSum = runningSum + node.value if node.left is None and node.right is None: sums.append(newRunningSum) return calculateBranchSums(node.left, newRunningSum, sums) calculateBranchSums(node.right, newRunningSum, sums)
def branch_sums(root): sums = [] calculate_branch_sums(root, 0, sums) return sums def calculate_branch_sums(node, runningSum, sums): if node is None: return sums new_running_sum = runningSum + node.value if node.left is None and node.right is None: sums.append(newRunningSum) return calculate_branch_sums(node.left, newRunningSum, sums) calculate_branch_sums(node.right, newRunningSum, sums)
def minInsertions(s: str) -> int: dp = [[0] * len(s) for _ in range(len(s))] for left in range(len(s) - 1, -1, -1): for right in range(0, len(s)): if left >= right: continue if s[left] == s[right]: dp[left][right] = dp[left+1][right-1] else: dp[left][right] = 1 + min(dp[left+1][right], dp[left][right-1]) return dp[0][len(s) - 1]
def min_insertions(s: str) -> int: dp = [[0] * len(s) for _ in range(len(s))] for left in range(len(s) - 1, -1, -1): for right in range(0, len(s)): if left >= right: continue if s[left] == s[right]: dp[left][right] = dp[left + 1][right - 1] else: dp[left][right] = 1 + min(dp[left + 1][right], dp[left][right - 1]) return dp[0][len(s) - 1]
# -*- coding: UTF-8 -*- PROXYSOCKET = '' RETRY_TIMES = 5 HEADERS = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', 'Accept': 'application/json,application/xml' } INPUT_FILE = 'dependencies/input.xlsx' API_DEBUG = True API_PORT = 5678 POST_TIME = 60
proxysocket = '' retry_times = 5 headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', 'Accept': 'application/json,application/xml'} input_file = 'dependencies/input.xlsx' api_debug = True api_port = 5678 post_time = 60
N = int(input("")) for x in range(0, N): if N > 0: s = input("") s = s.split() #separar if s[0] == s[1]: print("empate") else: if s[0] == "tesoura": if s[1] == "papel" or s[1] =="lagarto": print("rajesh") elif s[1] == "pedra" or s[1]=="spock": print("sheldon") elif s[0] == "papel": if s[1] == "pedra" or s[1] =="spock": print("rajesh") elif s[1] == "tesoura" or s[1]=="lagarto": print("sheldon") elif s[0] == "pedra": if s[1] == "lagarto" or s[1] =="tesoura": print("rajesh") elif s[1] == "spock" or s[1]=="papel": print("sheldon") elif s[0] == "lagarto": if s[1] == "spock" or s[1] =="papel": print("rajesh") elif s[1] == "pedra" or s[1]=="tesoura": print("sheldon") elif s[0] == "spock": if s[1] == "tesoura" or s[1] =="pedra": print("rajesh") elif s[1] == "lagarto" or s[1]=="papel": print("sheldon") else: print("invalido")
n = int(input('')) for x in range(0, N): if N > 0: s = input('') s = s.split() if s[0] == s[1]: print('empate') elif s[0] == 'tesoura': if s[1] == 'papel' or s[1] == 'lagarto': print('rajesh') elif s[1] == 'pedra' or s[1] == 'spock': print('sheldon') elif s[0] == 'papel': if s[1] == 'pedra' or s[1] == 'spock': print('rajesh') elif s[1] == 'tesoura' or s[1] == 'lagarto': print('sheldon') elif s[0] == 'pedra': if s[1] == 'lagarto' or s[1] == 'tesoura': print('rajesh') elif s[1] == 'spock' or s[1] == 'papel': print('sheldon') elif s[0] == 'lagarto': if s[1] == 'spock' or s[1] == 'papel': print('rajesh') elif s[1] == 'pedra' or s[1] == 'tesoura': print('sheldon') elif s[0] == 'spock': if s[1] == 'tesoura' or s[1] == 'pedra': print('rajesh') elif s[1] == 'lagarto' or s[1] == 'papel': print('sheldon') else: print('invalido')
#=============================================================================== # Copyright 2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #=============================================================================== load("@onedal//dev/bazel:utils.bzl", "utils", "paths") def _create_symlinks(repo_ctx, root, entries, substitutions={}): for entry in entries: entry_fmt = utils.substitude(entry, substitutions) src_entry_path = paths.join(root, entry_fmt) dst_entry_path = entry_fmt repo_ctx.symlink(src_entry_path, dst_entry_path) def _download(repo_ctx): output = repo_ctx.path("archive") repo_ctx.download_and_extract( url = repo_ctx.attr.url, sha256 = repo_ctx.attr.sha256, output = output, stripPrefix = repo_ctx.attr.strip_prefix, ) return str(output) def _prebuilt_libs_repo_impl(repo_ctx): root = repo_ctx.os.environ.get(repo_ctx.attr.root_env_var) if not root: if repo_ctx.attr.url: root = _download(repo_ctx) elif repo_ctx.attr.fallback_root: root = repo_ctx.attr.fallback_root else: fail("Cannot locate {} dependency".format(repo_ctx.name)) substitutions = { # TODO: Detect OS "%{os}": "lnx", } _create_symlinks(repo_ctx, root, repo_ctx.attr.includes, substitutions) _create_symlinks(repo_ctx, root, repo_ctx.attr.libs, substitutions) repo_ctx.template( "BUILD", repo_ctx.attr.build_template, substitutions = substitutions, ) def prebuilt_libs_repo_rule(includes, libs, build_template, root_env_var="", fallback_root="", url="", sha256="", strip_prefix=""): return repository_rule( implementation = _prebuilt_libs_repo_impl, environ = [ root_env_var, ], local = True, configure = True, attrs = { "root_env_var": attr.string(default=root_env_var), "fallback_root": attr.string(default=fallback_root), "url": attr.string(default=url), "sha256": attr.string(default=sha256), "strip_prefix": attr.string(default=strip_prefix), "includes": attr.string_list(default=includes), "libs": attr.string_list(default=libs), "build_template": attr.label(allow_files=True, default=Label(build_template)), } ) repos = struct( prebuilt_libs_repo_rule = prebuilt_libs_repo_rule, )
load('@onedal//dev/bazel:utils.bzl', 'utils', 'paths') def _create_symlinks(repo_ctx, root, entries, substitutions={}): for entry in entries: entry_fmt = utils.substitude(entry, substitutions) src_entry_path = paths.join(root, entry_fmt) dst_entry_path = entry_fmt repo_ctx.symlink(src_entry_path, dst_entry_path) def _download(repo_ctx): output = repo_ctx.path('archive') repo_ctx.download_and_extract(url=repo_ctx.attr.url, sha256=repo_ctx.attr.sha256, output=output, stripPrefix=repo_ctx.attr.strip_prefix) return str(output) def _prebuilt_libs_repo_impl(repo_ctx): root = repo_ctx.os.environ.get(repo_ctx.attr.root_env_var) if not root: if repo_ctx.attr.url: root = _download(repo_ctx) elif repo_ctx.attr.fallback_root: root = repo_ctx.attr.fallback_root else: fail('Cannot locate {} dependency'.format(repo_ctx.name)) substitutions = {'%{os}': 'lnx'} _create_symlinks(repo_ctx, root, repo_ctx.attr.includes, substitutions) _create_symlinks(repo_ctx, root, repo_ctx.attr.libs, substitutions) repo_ctx.template('BUILD', repo_ctx.attr.build_template, substitutions=substitutions) def prebuilt_libs_repo_rule(includes, libs, build_template, root_env_var='', fallback_root='', url='', sha256='', strip_prefix=''): return repository_rule(implementation=_prebuilt_libs_repo_impl, environ=[root_env_var], local=True, configure=True, attrs={'root_env_var': attr.string(default=root_env_var), 'fallback_root': attr.string(default=fallback_root), 'url': attr.string(default=url), 'sha256': attr.string(default=sha256), 'strip_prefix': attr.string(default=strip_prefix), 'includes': attr.string_list(default=includes), 'libs': attr.string_list(default=libs), 'build_template': attr.label(allow_files=True, default=label(build_template))}) repos = struct(prebuilt_libs_repo_rule=prebuilt_libs_repo_rule)
def intersects(line1, line2): def onSeg(p, q, r): if (q[0] <= max(p[0],r[0]) and q[0] >= min(p[0],r[0]) and q[0] <= max(p[1],r[1]) and q[1] >= min(p[1],r[1])): return True return False #0 -> colinear, 1 -> clockwise, 2 -> ccw def orientation(p,q,r): val = (q[1]-p[1]) * (r[0] - q[0]) - (q[0]-p[0]) * (r[1] - q[1]) if val == 0: return 0 if val > 0: return 1 return 2 p1 , q1 = line1 p2 , q2 = line2 o1 = orientation(p1, q1, p2) o2 = orientation(p1, q1, q2) o3 = orientation(p2, q2, p1) o4 = orientation(p2, q2, q1) x1, y1 = p1 x2, y2 = q1 x3, y3 = p2 x4, y4 = q2 if (o1 != o2 and o3 != o4): #general xd = (x1*y2 - y1*x2)*(x3-x4)-(x1-x2)*(x3*y4-y3*x4) xn = (x1-x2)*(y3-y4) - (y1-y2)*(x3-x4) yd = (x1*y2 - y1*x2)*(y3-y4)-(y1-y2)*(x3*y4-y3*x4) yn = (x1-x2)*(y3-y4) - (y1-y2)*(x3-x4) return (xd/xn , yd/yn) if (o1 == 0 and onSeg(p1,p2,q1)): #p2 lies on p1q1 return p2 if (o2 == 0 and onSeg(p1,q2,q1)): #q2 lies on p1q1 return q2 if (o3 == 0 and onSeg(p2,p1,q2)): #p1 lies on p2q2 return p1 if (o4 == 0 and onSeg(p2,q1,q2)): #q1 lies on p2q2 return q1 return (-1,-1)
def intersects(line1, line2): def on_seg(p, q, r): if q[0] <= max(p[0], r[0]) and q[0] >= min(p[0], r[0]) and (q[0] <= max(p[1], r[1])) and (q[1] >= min(p[1], r[1])): return True return False def orientation(p, q, r): val = (q[1] - p[1]) * (r[0] - q[0]) - (q[0] - p[0]) * (r[1] - q[1]) if val == 0: return 0 if val > 0: return 1 return 2 (p1, q1) = line1 (p2, q2) = line2 o1 = orientation(p1, q1, p2) o2 = orientation(p1, q1, q2) o3 = orientation(p2, q2, p1) o4 = orientation(p2, q2, q1) (x1, y1) = p1 (x2, y2) = q1 (x3, y3) = p2 (x4, y4) = q2 if o1 != o2 and o3 != o4: xd = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4) xn = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4) yd = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4) yn = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4) return (xd / xn, yd / yn) if o1 == 0 and on_seg(p1, p2, q1): return p2 if o2 == 0 and on_seg(p1, q2, q1): return q2 if o3 == 0 and on_seg(p2, p1, q2): return p1 if o4 == 0 and on_seg(p2, q1, q2): return q1 return (-1, -1)
# Q1 class Thing: pass example = Thing() print(Thing) print(example) # Q2 class Thing2: letters = 'abc' print(Thing2.letters) # Q3 class Thing3: def __init__(self): self.letters = 'xyz' thing3 = Thing3() print(thing3.letters) # Q4 class Element: def __init__(self, name, symbol, number): self.name = name self.symbol = symbol self.number = number hydrogen = Element('Hydrogen', 'H', 1) # Q5 kargs = {'name': 'Hydrogen', 'symbol': 'H', 'number': 1} hydrogen = Element(**kargs) # Q6 class Element: def __init__(self, name, symbol, number): self.name = name self.symbol = symbol self.number = number def dump(self): print(f'Name:{self.name}, Symbol:{self.symbol}, Number:{self.number}') hydrogen = Element('Hydrogen', 'H', 1) hydrogen.dump() # Q7 class Element: def __init__(self, name, symbol, number): self.name = name self.symbol = symbol self.number = number def __str__(self): return f'Name:{self.name}, Symbol:{self.symbol}, Number:{self.number}' hydrogen = Element('Hydrogen', 'H', 1) print(hydrogen) # Q9 class Element: def __init__(self, name, symbol, number): self.__name = name self.__symbol = symbol self.__number = number @property def name(self): return self.__name @property def symbol(self): return self.__symbol @property def number(self): return self.__number def __str__(self): return f'Name:{self.__name}, Symbol:{self.__symbol}, Number:{self.__number}' # Q9 class Bear: def eats(self): return 'berries' class Rabbit: def eats(self): return 'clover' class Octothorpe: def eats(self): return 'campers' bear = Bear() rabbit = Rabbit() octothorpe = Octothorpe() bear.eats() rabbit.eats() octothorpe.eats() # Q10 class Lasor: def does(self): return 'disintegrate' class Claw: def does(self): return 'crush' class SmartPhone: def does(self): return 'ring' class Robot: def __init__(self): self.lasor = Lasor() self.claw = Claw() self.smartPhone = SmartPhone() def does(self): print(f'{self.lasor.does()} {self.claw.does()} {self.smartPhone.does()}') robot = Robot() robot.does()
class Thing: pass example = thing() print(Thing) print(example) class Thing2: letters = 'abc' print(Thing2.letters) class Thing3: def __init__(self): self.letters = 'xyz' thing3 = thing3() print(thing3.letters) class Element: def __init__(self, name, symbol, number): self.name = name self.symbol = symbol self.number = number hydrogen = element('Hydrogen', 'H', 1) kargs = {'name': 'Hydrogen', 'symbol': 'H', 'number': 1} hydrogen = element(**kargs) class Element: def __init__(self, name, symbol, number): self.name = name self.symbol = symbol self.number = number def dump(self): print(f'Name:{self.name}, Symbol:{self.symbol}, Number:{self.number}') hydrogen = element('Hydrogen', 'H', 1) hydrogen.dump() class Element: def __init__(self, name, symbol, number): self.name = name self.symbol = symbol self.number = number def __str__(self): return f'Name:{self.name}, Symbol:{self.symbol}, Number:{self.number}' hydrogen = element('Hydrogen', 'H', 1) print(hydrogen) class Element: def __init__(self, name, symbol, number): self.__name = name self.__symbol = symbol self.__number = number @property def name(self): return self.__name @property def symbol(self): return self.__symbol @property def number(self): return self.__number def __str__(self): return f'Name:{self.__name}, Symbol:{self.__symbol}, Number:{self.__number}' class Bear: def eats(self): return 'berries' class Rabbit: def eats(self): return 'clover' class Octothorpe: def eats(self): return 'campers' bear = bear() rabbit = rabbit() octothorpe = octothorpe() bear.eats() rabbit.eats() octothorpe.eats() class Lasor: def does(self): return 'disintegrate' class Claw: def does(self): return 'crush' class Smartphone: def does(self): return 'ring' class Robot: def __init__(self): self.lasor = lasor() self.claw = claw() self.smartPhone = smart_phone() def does(self): print(f'{self.lasor.does()} {self.claw.does()} {self.smartPhone.does()}') robot = robot() robot.does()
j = 7 for i in range(1,(10),2): for jump in range(0,3): print("I={0} J={1}".format(i,j)) j = j - 1 j = 7
j = 7 for i in range(1, 10, 2): for jump in range(0, 3): print('I={0} J={1}'.format(i, j)) j = j - 1 j = 7
result = [ [0.6, 0.7], {'a': 'b'}, None, [ 'uu', 'ii', [None], [7, 8, 9, {}] ] ]
result = [[0.6, 0.7], {'a': 'b'}, None, ['uu', 'ii', [None], [7, 8, 9, {}]]]
def DependsOn(pack, deps): return And([ Implies(pack, dep) for dep in deps ]) def Conflict(p1, p2): return Or(Not(p1), Not(p2)) a, b, c, d, e, f, g, z = Bools('a b c d e f g z') solve(DependsOn(a, [b, c, z]), DependsOn(b, [d]), DependsOn(c, [Or(d, e), Or(f, g)]), Conflict(d, e), a, z)
def depends_on(pack, deps): return and([implies(pack, dep) for dep in deps]) def conflict(p1, p2): return or(not(p1), not(p2)) (a, b, c, d, e, f, g, z) = bools('a b c d e f g z') solve(depends_on(a, [b, c, z]), depends_on(b, [d]), depends_on(c, [or(d, e), or(f, g)]), conflict(d, e), a, z)
# # PySNMP MIB module SW-LAYER2-PORT-MANAGEMENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SW-LAYER2-PORT-MANAGEMENT-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:12:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, MibIdentifier, NotificationType, Integer32, NotificationType, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, iso, ModuleIdentity, Counter32, Gauge32, Bits, ObjectIdentity, enterprises, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibIdentifier", "NotificationType", "Integer32", "NotificationType", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "iso", "ModuleIdentity", "Counter32", "Gauge32", "Bits", "ObjectIdentity", "enterprises", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") marconi = MibIdentifier((1, 3, 6, 1, 4, 1, 326)) systems = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2)) external = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20)) dlink = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1)) dlinkcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1)) golf = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2)) golfproducts = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1)) es2000 = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3)) golfcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2)) marconi_products = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1)).setLabel("marconi-products") marconi_es2000Prod = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1, 28)).setLabel("marconi-es2000Prod") swProperty = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1, 28, 1)) marconi_mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel("marconi-mgmt") es2000Mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28)) swL2Mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2)) swL2PortMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4)) swL2PortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1), ) if mibBuilder.loadTexts: swL2PortInfoTable.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoTable.setDescription('A table that contains information about every port.') swL2PortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1), ).setIndexNames((0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex")) if mibBuilder.loadTexts: swL2PortInfoEntry.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoEntry.setDescription('A list of information for each port of the device.') swL2PortInfoUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setDescription('Indicates ID of the unit in the device.') swL2PortInfoModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoModuleIndex.setDescription('Indicates ID of the module on the unit.') swL2PortInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoIndex.setDescription('Indicates ID of the port on the module.') swL2PortInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("portType-100TX", 1), ("portType-100FX", 2), ("portType-GIGA-MTRJSX", 3), ("portType-GIGA-MTRJLX", 4), ("portType-GIGA-SCSX", 5), ("portType-GIGA-SCLX", 6), ("other", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoType.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoType.setDescription('Indicates the connector type of this port.') swL2PortInfoDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoDescr.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoDescr.setDescription('Provides port type information in displayed string format.') swL2PortInfoLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("link-pass", 2), ("link-fail", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setDescription('Indicates port link status.') swL2PortInfoNwayStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("half-10Mbps", 2), ("full-10Mbps", 3), ("half-100Mbps", 4), ("full-100Mbps", 5), ("half-1Gigabps", 6), ("full-1Gigabps", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setDescription('This object indicates the port speed and duplex mode.') swL2PortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2), ) if mibBuilder.loadTexts: swL2PortCtrlTable.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlTable.setDescription('A table that contains control information about every port.') swL2PortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1), ).setIndexNames((0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortCtrlUnitIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortCtrlModuleIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortCtrlIndex")) if mibBuilder.loadTexts: swL2PortCtrlEntry.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlEntry.setDescription('A list of control information for each port of the device.') swL2PortCtrlUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setDescription('Indicates ID of the unit in the device.') swL2PortCtrlModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortCtrlModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlModuleIndex.setDescription('Indicates ID of the module on the unit.') swL2PortCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortCtrlIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlIndex.setDescription('This object indicates the device port number.(1..Max port number).') swL2PortCtrlAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlAdminState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlAdminState.setDescription('This object decides the port to be enabled or disabled.') swL2PortCtrlLinkStatusAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlLinkStatusAlarmState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlLinkStatusAlarmState.setDescription('Depends on this object to determine to send a trap or not when link status changes.') swL2PortCtrlNwayState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 10))).clone(namedValues=NamedValues(("other", 1), ("nway-enabled", 2), ("nway-disabled-10Mbps-Half", 3), ("nway-disabled-10Mbps-Full", 4), ("nway-disabled-100Mbps-Half", 5), ("nway-disabled-100Mbps-Full", 6), ("nway-disabled-1Gigabps-Half", 7), ("nway-disabled-1Gigabps-Full", 8), ("notAvailable", 10)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlNwayState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlNwayState.setDescription('Chooses the port speed, duplex mode, and N-Way function mode.') swL2PortCtrlFlowCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setDescription('Sets IEEE 802.3x compliant flow control function as enabled or disabled. And IEEE 802.3x compliant flow control function work only when the port is in full duplex mode.The setting is effective the next time you reset or power on the hub.') swL2PortCtrlBackPressState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlBackPressState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlBackPressState.setDescription('Depends on this object to determine to enable or disable the backpressure function when the port is working in half duplex mode.') swL2PortCtrlLockState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3), ("notAvailable", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlLockState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlLockState.setDescription('The state of this entry. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - Port lock funtion disable. enable(3) - Locking a port provides the CPU with the ability to decide which address are permitted to reside on such port, who knows about these address, and unknown packet forwarding to/from such ports. This is a way to prevent undesired traffic from being received or transmmited on the port.') swL2PortCtrlPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("default", 2), ("force-low-priority", 3), ("force-high-priority", 4), ("notAvailable", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlPriority.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlPriority.setDescription('The priority queueing for packets received on this port, except for BPDU/IGMP packets and packets with unknown unicast destination address. IGMP and BPDU packets are always routed with high priority; packets with unknown unicast destination addresses are always routed with low priority. Other packets follow the rules below: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. default(2) - A packet is normally classified as low priority, unless at least one of the following is true: (a)The packet contained a TAG (per 802.1Q definition) with the priority greater or equal to 4. (b)The address-table entry for the destination address had Pd=HIGH. force-low_priority(3) - A packet is normally classified as low priority. force-high_priority(4) - A packet is normally classified as high priority.') swL2PortCtrlStpState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlStpState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlStpState.setDescription("The state of STP(spanning tree algorithm) operation on this port. That's meaning the port whether add in the STP. The value enabled(3) indicates that STP is enabled on this port, as long as swDevCtrlStpState is also enabled for this device. When disabled(2) but swDevCtrlStpState is still enabled for the device, STP is disabled on this port : any BPDU packets received will be discarded and no BPDU packets will be propagated from the port.") swL2PortCtrlHOLState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("notAvailable", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlHOLState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlHOLState.setDescription("The object provides a way to prevent HOL (Head Of Line) blocking between ports. HOL protection may prevent forwarding a packet to a blocking port. The idea relies on the assumption that it is better to discard packets destined to blocking ports, then to let them consume more and more buffers in the input-port's Rx-counters because eventually these input ports may become totally blocked. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - HOL function disable. enabled(3) - HOL function enable.") swL2PortCtrlBcastRisingAct = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("do-nothing", 2), ("blocking", 3), ("blocking-trap", 4), ("notAvailable", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlBcastRisingAct.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlBcastRisingAct.setDescription('This object indicates the system action when broadcast storm rising threshold is met. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. do-nothing(2) - no action. blocking(3) - the port can discard any coming broadcast frame. blocking-trap(4) - the port can discard any coming broadcast frame. And the device can send a broadcast rising trap.') swL2PortCtrlBcastFallingAct = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("do-nothing", 2), ("forwarding", 3), ("forwarding-trap", 4), ("notAvailable", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swL2PortCtrlBcastFallingAct.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlBcastFallingAct.setDescription('This object indicates the device action when broadcast storm falling threshold is met. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. do-nothing(2) - no action. forwarding(3) - the port has returned to normal operation mode. forwarding-trap(4) - the port has returned to normal operation mode. And the device can send a broadcast falling trap.') swL2PortCtrlClearCounter = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 15), Integer32()).setMaxAccess("writeonly") if mibBuilder.loadTexts: swL2PortCtrlClearCounter.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlClearCounter.setDescription('Sets choosed port to clear counter. First of all, any unsigned integer can be used to set.') swL2PortStTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3), ) if mibBuilder.loadTexts: swL2PortStTable.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStTable.setDescription('A list of port statistic Counter entries.') swL2PortStEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1), ).setIndexNames((0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortStUnitIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortStModuleIndex"), (0, "SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortStIndex")) if mibBuilder.loadTexts: swL2PortStEntry.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStEntry.setDescription('This entry include all the port statistic Counter which support by the device, like Bytes received, Bytes Sent ...') swL2PortStUnitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStUnitIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStUnitIndex.setDescription('Indicates ID of the unit in the device.') swL2PortStModuleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStModuleIndex.setDescription('Indicates ID of the module on the unit.') swL2PortStIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStIndex.setDescription('This object indicates the device port number.(1..Max port number)') swL2PortStByteRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStByteRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStByteRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every data octet of good packets(unicast + multicast + broadcast) received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every data octet of good packets(unicast + multicast + broadcast packets) and for local and dropped packets.') swL2PortStByteTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStByteTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStByteTx.setDescription('This counter is incremented once for every data octet of a transmitted good packet.') swL2PortStFrameRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrameRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrameRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good packet(unicast + multicast + broadcast) received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good packet(unicast + multicast + broadcast packets) and for local and dropped packets received.') swL2PortStFrameTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrameTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrameTx.setDescription('This counter is incremented once for every transmitted good packet.') swL2PortStTotalBytesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStTotalBytesRx.setDescription('This counter is incremented once for every data octet of all received packets. This include data octets of rejected and local packets which are not forwarded to the switching core for transmission. This counter should reflect all the data octets received on the line. Note: A nibble is not counted as a whole byte.') swL2PortStTotalFramesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStTotalFramesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStTotalFramesRx.setDescription('This counter is incremented once for every received packets. This include rejected and local packets which are not forwarded to the switching core for transmission. This counter should reflect all packets received on the line.') swL2PortStBroadcastFramesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStBroadcastFramesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStBroadcastFramesRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good broadcast packet received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good broadcast packet received and for local and dropped broadcast packets.') swL2PortStMulticastFramesRx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStMulticastFramesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStMulticastFramesRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good multicast packet received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good multicast packet received and for local and dropped multicast packets. This counter does not include broadcast packets.') swL2PortStCRCError = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStCRCError.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStCRCError.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is between 64 and 1536 bytes inclusive. 2. Packet has invalid CRC. 3. Collision event, late collision event and receive error event have not been detected.') swL2PortStOversizeFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStOversizeFrames.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStOversizeFrames.setDescription('The number of good frames with length more than 1536 bytes.') swL2PortStFragments = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFragments.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFragments.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is less than 64 bytes or packet withourt SFD and is less than 64 bytes in length. 2. Packet has invalid CRC. 3. Collision event, late collision event and receive error event have not been detected.') swL2PortStJabber = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStJabber.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStJabber.setDescription('The number of frames with length more than 1536 bytes and with CRC error or misaligned.') swL2PortStCollision = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStCollision.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStCollision.setDescription('The number of Collisions.') swL2PortStLateCollision = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStLateCollision.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStLateCollision.setDescription('The number of Late Collision(collision occurring later than 576th transmitted bit).') swL2PortStFrames_64_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 18), Counter32()).setLabel("swL2PortStFrames-64-bytes").setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrames_64_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_64_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 64 bytes. This counter includes rejected received and transmitted packets.') swL2PortStFrames_65_127_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 19), Counter32()).setLabel("swL2PortStFrames-65-127-bytes").setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrames_65_127_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_65_127_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 65 to 127 bytes. This counter includes rejected received and transmitted packets.') swL2PortStFrames_128_255_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 20), Counter32()).setLabel("swL2PortStFrames-128-255-bytes").setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrames_128_255_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_128_255_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 128 to 255 bytes. This counter includes rejected received and transmitted packets.') swL2PortStFrames_256_511_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 21), Counter32()).setLabel("swL2PortStFrames-256-511-bytes").setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrames_256_511_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_256_511_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 256 to 511 bytes. This counter includes rejected received and transmitted packets.') swL2PortStFrames_512_1023_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 22), Counter32()).setLabel("swL2PortStFrames-512-1023-bytes").setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrames_512_1023_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_512_1023_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 512 to 1023 bytes. This counter includes rejected received and transmitted packets.') swL2PortStFrames_1024_1536_bytes = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 23), Counter32()).setLabel("swL2PortStFrames-1024-1536-bytes").setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFrames_1024_1536_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_1024_1536_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 1024 to 1536 bytes. This counter includes rejected received and transmitted packets.') swL2PortStFramesDroppedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStFramesDroppedFrames.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFramesDroppedFrames.setDescription('This counter is incremented once for every received dropped packet.') swL2PortStMulticastFramesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStMulticastFramesTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStMulticastFramesTx.setDescription('The number of multicast frames sent. This counter does not include broadcast packets.') swL2PortStBroadcastFramesTx = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStBroadcastFramesTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStBroadcastFramesTx.setDescription('The number of broadcast frames sent.') swL2PortStUndersizeFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: swL2PortStUndersizeFrames.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStUndersizeFrames.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is less than 64 bytes. 2. Packet has valid CRC. 3. Collision event, late collision event and receive error event have not been detected.') swEventPortPartition = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,1)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex")) if mibBuilder.loadTexts: swEventPortPartition.setDescription('The trap is sent whenever the port state enter the Partion mode when more than 61 collisions occur while trasmitting.') swEventlinkChangeEvent = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,2)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex")) if mibBuilder.loadTexts: swEventlinkChangeEvent.setDescription('The trap is sent whenever the link state of a port changes from link up to link down or from link down to link up') swEventBcastRisingStorm = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,3)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex")) if mibBuilder.loadTexts: swEventBcastRisingStorm.setDescription('The trap indicates that broadcast higher rising threshold. This trap including the port ID') swEventBcastFallingStorm = NotificationType((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0,4)).setObjects(("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoUnitIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoModuleIndex"), ("SW-LAYER2-PORT-MANAGEMENT-MIB", "swL2PortInfoIndex")) if mibBuilder.loadTexts: swEventBcastFallingStorm.setDescription('The trap indicates that broadcast higher falling threshold. This trap including the port ID') mibBuilder.exportSymbols("SW-LAYER2-PORT-MANAGEMENT-MIB", swL2PortStCRCError=swL2PortStCRCError, swL2PortStFrames_1024_1536_bytes=swL2PortStFrames_1024_1536_bytes, swL2PortCtrlModuleIndex=swL2PortCtrlModuleIndex, swL2PortStLateCollision=swL2PortStLateCollision, swL2PortStOversizeFrames=swL2PortStOversizeFrames, systems=systems, swL2PortInfoTable=swL2PortInfoTable, golfcommon=golfcommon, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2PortStByteRx=swL2PortStByteRx, swL2PortCtrlEntry=swL2PortCtrlEntry, es2000=es2000, swL2PortStFragments=swL2PortStFragments, swL2Mgmt=swL2Mgmt, swL2PortCtrlClearCounter=swL2PortCtrlClearCounter, swL2PortStJabber=swL2PortStJabber, dlinkcommon=dlinkcommon, es2000Mgmt=es2000Mgmt, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2PortStUnitIndex=swL2PortStUnitIndex, swL2PortInfoUnitIndex=swL2PortInfoUnitIndex, swL2PortStFrames_128_255_bytes=swL2PortStFrames_128_255_bytes, swL2PortStModuleIndex=swL2PortStModuleIndex, swL2PortCtrlStpState=swL2PortCtrlStpState, marconi=marconi, swL2PortCtrlLockState=swL2PortCtrlLockState, swL2PortInfoType=swL2PortInfoType, swL2PortStTotalBytesRx=swL2PortStTotalBytesRx, swL2PortStTable=swL2PortStTable, swL2PortMgmt=swL2PortMgmt, swL2PortInfoIndex=swL2PortInfoIndex, swEventBcastFallingStorm=swEventBcastFallingStorm, swL2PortStMulticastFramesRx=swL2PortStMulticastFramesRx, swL2PortStFramesDroppedFrames=swL2PortStFramesDroppedFrames, swL2PortStFrames_64_bytes=swL2PortStFrames_64_bytes, swL2PortStMulticastFramesTx=swL2PortStMulticastFramesTx, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, marconi_products=marconi_products, swL2PortStFrames_65_127_bytes=swL2PortStFrames_65_127_bytes, swL2PortStUndersizeFrames=swL2PortStUndersizeFrames, swL2PortStBroadcastFramesTx=swL2PortStBroadcastFramesTx, dlink=dlink, swL2PortStEntry=swL2PortStEntry, external=external, golfproducts=golfproducts, swL2PortStIndex=swL2PortStIndex, swL2PortStFrameRx=swL2PortStFrameRx, marconi_mgmt=marconi_mgmt, golf=golf, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swL2PortCtrlTable=swL2PortCtrlTable, swL2PortCtrlLinkStatusAlarmState=swL2PortCtrlLinkStatusAlarmState, swL2PortCtrlHOLState=swL2PortCtrlHOLState, swL2PortCtrlBackPressState=swL2PortCtrlBackPressState, swL2PortStByteTx=swL2PortStByteTx, swL2PortStTotalFramesRx=swL2PortStTotalFramesRx, swL2PortStFrames_256_511_bytes=swL2PortStFrames_256_511_bytes, swEventBcastRisingStorm=swEventBcastRisingStorm, swL2PortCtrlUnitIndex=swL2PortCtrlUnitIndex, swL2PortStFrames_512_1023_bytes=swL2PortStFrames_512_1023_bytes, swL2PortInfoModuleIndex=swL2PortInfoModuleIndex, swL2PortCtrlBcastFallingAct=swL2PortCtrlBcastFallingAct, swL2PortStFrameTx=swL2PortStFrameTx, swL2PortInfoEntry=swL2PortInfoEntry, swProperty=swProperty, swL2PortStBroadcastFramesRx=swL2PortStBroadcastFramesRx, swEventPortPartition=swEventPortPartition, marconi_es2000Prod=marconi_es2000Prod, swEventlinkChangeEvent=swEventlinkChangeEvent, swL2PortStCollision=swL2PortStCollision, swL2PortCtrlBcastRisingAct=swL2PortCtrlBcastRisingAct, swL2PortInfoDescr=swL2PortInfoDescr, swL2PortCtrlPriority=swL2PortCtrlPriority, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2PortCtrlIndex=swL2PortCtrlIndex)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, single_value_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (time_ticks, mib_identifier, notification_type, integer32, notification_type, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, iso, module_identity, counter32, gauge32, bits, object_identity, enterprises, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'MibIdentifier', 'NotificationType', 'Integer32', 'NotificationType', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'iso', 'ModuleIdentity', 'Counter32', 'Gauge32', 'Bits', 'ObjectIdentity', 'enterprises', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') marconi = mib_identifier((1, 3, 6, 1, 4, 1, 326)) systems = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2)) external = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20)) dlink = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1)) dlinkcommon = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1)) golf = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2)) golfproducts = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1)) es2000 = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3)) golfcommon = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2)) marconi_products = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1)).setLabel('marconi-products') marconi_es2000_prod = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1, 28)).setLabel('marconi-es2000Prod') sw_property = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 1, 28, 1)) marconi_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel('marconi-mgmt') es2000_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28)) sw_l2_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2)) sw_l2_port_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4)) sw_l2_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1)) if mibBuilder.loadTexts: swL2PortInfoTable.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoTable.setDescription('A table that contains information about every port.') sw_l2_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1)).setIndexNames((0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoUnitIndex'), (0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoModuleIndex'), (0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoIndex')) if mibBuilder.loadTexts: swL2PortInfoEntry.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoEntry.setDescription('A list of information for each port of the device.') sw_l2_port_info_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoUnitIndex.setDescription('Indicates ID of the unit in the device.') sw_l2_port_info_module_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoModuleIndex.setDescription('Indicates ID of the module on the unit.') sw_l2_port_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoIndex.setDescription('Indicates ID of the port on the module.') sw_l2_port_info_type = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('portType-100TX', 1), ('portType-100FX', 2), ('portType-GIGA-MTRJSX', 3), ('portType-GIGA-MTRJLX', 4), ('portType-GIGA-SCSX', 5), ('portType-GIGA-SCLX', 6), ('other', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoType.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoType.setDescription('Indicates the connector type of this port.') sw_l2_port_info_descr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoDescr.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoDescr.setDescription('Provides port type information in displayed string format.') sw_l2_port_info_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('link-pass', 2), ('link-fail', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoLinkStatus.setDescription('Indicates port link status.') sw_l2_port_info_nway_status = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('half-10Mbps', 2), ('full-10Mbps', 3), ('half-100Mbps', 4), ('full-100Mbps', 5), ('half-1Gigabps', 6), ('full-1Gigabps', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortInfoNwayStatus.setDescription('This object indicates the port speed and duplex mode.') sw_l2_port_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2)) if mibBuilder.loadTexts: swL2PortCtrlTable.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlTable.setDescription('A table that contains control information about every port.') sw_l2_port_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1)).setIndexNames((0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortCtrlUnitIndex'), (0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortCtrlModuleIndex'), (0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortCtrlIndex')) if mibBuilder.loadTexts: swL2PortCtrlEntry.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlEntry.setDescription('A list of control information for each port of the device.') sw_l2_port_ctrl_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlUnitIndex.setDescription('Indicates ID of the unit in the device.') sw_l2_port_ctrl_module_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortCtrlModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlModuleIndex.setDescription('Indicates ID of the module on the unit.') sw_l2_port_ctrl_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortCtrlIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlIndex.setDescription('This object indicates the device port number.(1..Max port number).') sw_l2_port_ctrl_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('notAvailable', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlAdminState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlAdminState.setDescription('This object decides the port to be enabled or disabled.') sw_l2_port_ctrl_link_status_alarm_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('notAvailable', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlLinkStatusAlarmState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlLinkStatusAlarmState.setDescription('Depends on this object to determine to send a trap or not when link status changes.') sw_l2_port_ctrl_nway_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 10))).clone(namedValues=named_values(('other', 1), ('nway-enabled', 2), ('nway-disabled-10Mbps-Half', 3), ('nway-disabled-10Mbps-Full', 4), ('nway-disabled-100Mbps-Half', 5), ('nway-disabled-100Mbps-Full', 6), ('nway-disabled-1Gigabps-Half', 7), ('nway-disabled-1Gigabps-Full', 8), ('notAvailable', 10)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlNwayState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlNwayState.setDescription('Chooses the port speed, duplex mode, and N-Way function mode.') sw_l2_port_ctrl_flow_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlFlowCtrlState.setDescription('Sets IEEE 802.3x compliant flow control function as enabled or disabled. And IEEE 802.3x compliant flow control function work only when the port is in full duplex mode.The setting is effective the next time you reset or power on the hub.') sw_l2_port_ctrl_back_press_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlBackPressState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlBackPressState.setDescription('Depends on this object to determine to enable or disable the backpressure function when the port is working in half duplex mode.') sw_l2_port_ctrl_lock_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3), ('notAvailable', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlLockState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlLockState.setDescription('The state of this entry. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - Port lock funtion disable. enable(3) - Locking a port provides the CPU with the ability to decide which address are permitted to reside on such port, who knows about these address, and unknown packet forwarding to/from such ports. This is a way to prevent undesired traffic from being received or transmmited on the port.') sw_l2_port_ctrl_priority = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('default', 2), ('force-low-priority', 3), ('force-high-priority', 4), ('notAvailable', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlPriority.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlPriority.setDescription('The priority queueing for packets received on this port, except for BPDU/IGMP packets and packets with unknown unicast destination address. IGMP and BPDU packets are always routed with high priority; packets with unknown unicast destination addresses are always routed with low priority. Other packets follow the rules below: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. default(2) - A packet is normally classified as low priority, unless at least one of the following is true: (a)The packet contained a TAG (per 802.1Q definition) with the priority greater or equal to 4. (b)The address-table entry for the destination address had Pd=HIGH. force-low_priority(3) - A packet is normally classified as low priority. force-high_priority(4) - A packet is normally classified as high priority.') sw_l2_port_ctrl_stp_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('notAvailable', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlStpState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlStpState.setDescription("The state of STP(spanning tree algorithm) operation on this port. That's meaning the port whether add in the STP. The value enabled(3) indicates that STP is enabled on this port, as long as swDevCtrlStpState is also enabled for this device. When disabled(2) but swDevCtrlStpState is still enabled for the device, STP is disabled on this port : any BPDU packets received will be discarded and no BPDU packets will be propagated from the port.") sw_l2_port_ctrl_hol_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('notAvailable', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlHOLState.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlHOLState.setDescription("The object provides a way to prevent HOL (Head Of Line) blocking between ports. HOL protection may prevent forwarding a packet to a blocking port. The idea relies on the assumption that it is better to discard packets destined to blocking ports, then to let them consume more and more buffers in the input-port's Rx-counters because eventually these input ports may become totally blocked. The meanings of the values are: other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disabled(2) - HOL function disable. enabled(3) - HOL function enable.") sw_l2_port_ctrl_bcast_rising_act = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('do-nothing', 2), ('blocking', 3), ('blocking-trap', 4), ('notAvailable', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlBcastRisingAct.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlBcastRisingAct.setDescription('This object indicates the system action when broadcast storm rising threshold is met. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. do-nothing(2) - no action. blocking(3) - the port can discard any coming broadcast frame. blocking-trap(4) - the port can discard any coming broadcast frame. And the device can send a broadcast rising trap.') sw_l2_port_ctrl_bcast_falling_act = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('do-nothing', 2), ('forwarding', 3), ('forwarding-trap', 4), ('notAvailable', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swL2PortCtrlBcastFallingAct.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlBcastFallingAct.setDescription('This object indicates the device action when broadcast storm falling threshold is met. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. do-nothing(2) - no action. forwarding(3) - the port has returned to normal operation mode. forwarding-trap(4) - the port has returned to normal operation mode. And the device can send a broadcast falling trap.') sw_l2_port_ctrl_clear_counter = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 2, 1, 15), integer32()).setMaxAccess('writeonly') if mibBuilder.loadTexts: swL2PortCtrlClearCounter.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortCtrlClearCounter.setDescription('Sets choosed port to clear counter. First of all, any unsigned integer can be used to set.') sw_l2_port_st_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3)) if mibBuilder.loadTexts: swL2PortStTable.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStTable.setDescription('A list of port statistic Counter entries.') sw_l2_port_st_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1)).setIndexNames((0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortStUnitIndex'), (0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortStModuleIndex'), (0, 'SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortStIndex')) if mibBuilder.loadTexts: swL2PortStEntry.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStEntry.setDescription('This entry include all the port statistic Counter which support by the device, like Bytes received, Bytes Sent ...') sw_l2_port_st_unit_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStUnitIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStUnitIndex.setDescription('Indicates ID of the unit in the device.') sw_l2_port_st_module_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStModuleIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStModuleIndex.setDescription('Indicates ID of the module on the unit.') sw_l2_port_st_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStIndex.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStIndex.setDescription('This object indicates the device port number.(1..Max port number)') sw_l2_port_st_byte_rx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStByteRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStByteRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every data octet of good packets(unicast + multicast + broadcast) received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every data octet of good packets(unicast + multicast + broadcast packets) and for local and dropped packets.') sw_l2_port_st_byte_tx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStByteTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStByteTx.setDescription('This counter is incremented once for every data octet of a transmitted good packet.') sw_l2_port_st_frame_rx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrameRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrameRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good packet(unicast + multicast + broadcast) received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good packet(unicast + multicast + broadcast packets) and for local and dropped packets received.') sw_l2_port_st_frame_tx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrameTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrameTx.setDescription('This counter is incremented once for every transmitted good packet.') sw_l2_port_st_total_bytes_rx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStTotalBytesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStTotalBytesRx.setDescription('This counter is incremented once for every data octet of all received packets. This include data octets of rejected and local packets which are not forwarded to the switching core for transmission. This counter should reflect all the data octets received on the line. Note: A nibble is not counted as a whole byte.') sw_l2_port_st_total_frames_rx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStTotalFramesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStTotalFramesRx.setDescription('This counter is incremented once for every received packets. This include rejected and local packets which are not forwarded to the switching core for transmission. This counter should reflect all packets received on the line.') sw_l2_port_st_broadcast_frames_rx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStBroadcastFramesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStBroadcastFramesRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good broadcast packet received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good broadcast packet received and for local and dropped broadcast packets.') sw_l2_port_st_multicast_frames_rx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStMulticastFramesRx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStMulticastFramesRx.setDescription('swDevCtrlCounterMode = 2(switched-frames) : This counter is incremented once for every good multicast packet received. swDevCtrlCounterMode = 3(all-frames) : This counter is incremented once for every good multicast packet received and for local and dropped multicast packets. This counter does not include broadcast packets.') sw_l2_port_st_crc_error = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStCRCError.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStCRCError.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is between 64 and 1536 bytes inclusive. 2. Packet has invalid CRC. 3. Collision event, late collision event and receive error event have not been detected.') sw_l2_port_st_oversize_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStOversizeFrames.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStOversizeFrames.setDescription('The number of good frames with length more than 1536 bytes.') sw_l2_port_st_fragments = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFragments.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFragments.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is less than 64 bytes or packet withourt SFD and is less than 64 bytes in length. 2. Packet has invalid CRC. 3. Collision event, late collision event and receive error event have not been detected.') sw_l2_port_st_jabber = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStJabber.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStJabber.setDescription('The number of frames with length more than 1536 bytes and with CRC error or misaligned.') sw_l2_port_st_collision = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStCollision.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStCollision.setDescription('The number of Collisions.') sw_l2_port_st_late_collision = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStLateCollision.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStLateCollision.setDescription('The number of Late Collision(collision occurring later than 576th transmitted bit).') sw_l2_port_st_frames_64_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 18), counter32()).setLabel('swL2PortStFrames-64-bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrames_64_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_64_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 64 bytes. This counter includes rejected received and transmitted packets.') sw_l2_port_st_frames_65_127_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 19), counter32()).setLabel('swL2PortStFrames-65-127-bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrames_65_127_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_65_127_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 65 to 127 bytes. This counter includes rejected received and transmitted packets.') sw_l2_port_st_frames_128_255_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 20), counter32()).setLabel('swL2PortStFrames-128-255-bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrames_128_255_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_128_255_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 128 to 255 bytes. This counter includes rejected received and transmitted packets.') sw_l2_port_st_frames_256_511_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 21), counter32()).setLabel('swL2PortStFrames-256-511-bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrames_256_511_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_256_511_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 256 to 511 bytes. This counter includes rejected received and transmitted packets.') sw_l2_port_st_frames_512_1023_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 22), counter32()).setLabel('swL2PortStFrames-512-1023-bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrames_512_1023_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_512_1023_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 512 to 1023 bytes. This counter includes rejected received and transmitted packets.') sw_l2_port_st_frames_1024_1536_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 23), counter32()).setLabel('swL2PortStFrames-1024-1536-bytes').setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFrames_1024_1536_bytes.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFrames_1024_1536_bytes.setDescription('This counter is incremented once for every received and transmitted packet with size of 1024 to 1536 bytes. This counter includes rejected received and transmitted packets.') sw_l2_port_st_frames_dropped_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStFramesDroppedFrames.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStFramesDroppedFrames.setDescription('This counter is incremented once for every received dropped packet.') sw_l2_port_st_multicast_frames_tx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStMulticastFramesTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStMulticastFramesTx.setDescription('The number of multicast frames sent. This counter does not include broadcast packets.') sw_l2_port_st_broadcast_frames_tx = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStBroadcastFramesTx.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStBroadcastFramesTx.setDescription('The number of broadcast frames sent.') sw_l2_port_st_undersize_frames = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 28, 2, 4, 3, 1, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: swL2PortStUndersizeFrames.setStatus('mandatory') if mibBuilder.loadTexts: swL2PortStUndersizeFrames.setDescription('This counter is incremented once for every received packet which meets all the following conditions: 1. Packet data length is less than 64 bytes. 2. Packet has valid CRC. 3. Collision event, late collision event and receive error event have not been detected.') sw_event_port_partition = notification_type((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0, 1)).setObjects(('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoUnitIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoModuleIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoIndex')) if mibBuilder.loadTexts: swEventPortPartition.setDescription('The trap is sent whenever the port state enter the Partion mode when more than 61 collisions occur while trasmitting.') sw_eventlink_change_event = notification_type((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0, 2)).setObjects(('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoUnitIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoModuleIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoIndex')) if mibBuilder.loadTexts: swEventlinkChangeEvent.setDescription('The trap is sent whenever the link state of a port changes from link up to link down or from link down to link up') sw_event_bcast_rising_storm = notification_type((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0, 3)).setObjects(('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoUnitIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoModuleIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoIndex')) if mibBuilder.loadTexts: swEventBcastRisingStorm.setDescription('The trap indicates that broadcast higher rising threshold. This trap including the port ID') sw_event_bcast_falling_storm = notification_type((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1, 3) + (0, 4)).setObjects(('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoUnitIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoModuleIndex'), ('SW-LAYER2-PORT-MANAGEMENT-MIB', 'swL2PortInfoIndex')) if mibBuilder.loadTexts: swEventBcastFallingStorm.setDescription('The trap indicates that broadcast higher falling threshold. This trap including the port ID') mibBuilder.exportSymbols('SW-LAYER2-PORT-MANAGEMENT-MIB', swL2PortStCRCError=swL2PortStCRCError, swL2PortStFrames_1024_1536_bytes=swL2PortStFrames_1024_1536_bytes, swL2PortCtrlModuleIndex=swL2PortCtrlModuleIndex, swL2PortStLateCollision=swL2PortStLateCollision, swL2PortStOversizeFrames=swL2PortStOversizeFrames, systems=systems, swL2PortInfoTable=swL2PortInfoTable, golfcommon=golfcommon, swL2PortCtrlAdminState=swL2PortCtrlAdminState, swL2PortStByteRx=swL2PortStByteRx, swL2PortCtrlEntry=swL2PortCtrlEntry, es2000=es2000, swL2PortStFragments=swL2PortStFragments, swL2Mgmt=swL2Mgmt, swL2PortCtrlClearCounter=swL2PortCtrlClearCounter, swL2PortStJabber=swL2PortStJabber, dlinkcommon=dlinkcommon, es2000Mgmt=es2000Mgmt, swL2PortInfoNwayStatus=swL2PortInfoNwayStatus, swL2PortStUnitIndex=swL2PortStUnitIndex, swL2PortInfoUnitIndex=swL2PortInfoUnitIndex, swL2PortStFrames_128_255_bytes=swL2PortStFrames_128_255_bytes, swL2PortStModuleIndex=swL2PortStModuleIndex, swL2PortCtrlStpState=swL2PortCtrlStpState, marconi=marconi, swL2PortCtrlLockState=swL2PortCtrlLockState, swL2PortInfoType=swL2PortInfoType, swL2PortStTotalBytesRx=swL2PortStTotalBytesRx, swL2PortStTable=swL2PortStTable, swL2PortMgmt=swL2PortMgmt, swL2PortInfoIndex=swL2PortInfoIndex, swEventBcastFallingStorm=swEventBcastFallingStorm, swL2PortStMulticastFramesRx=swL2PortStMulticastFramesRx, swL2PortStFramesDroppedFrames=swL2PortStFramesDroppedFrames, swL2PortStFrames_64_bytes=swL2PortStFrames_64_bytes, swL2PortStMulticastFramesTx=swL2PortStMulticastFramesTx, swL2PortCtrlFlowCtrlState=swL2PortCtrlFlowCtrlState, marconi_products=marconi_products, swL2PortStFrames_65_127_bytes=swL2PortStFrames_65_127_bytes, swL2PortStUndersizeFrames=swL2PortStUndersizeFrames, swL2PortStBroadcastFramesTx=swL2PortStBroadcastFramesTx, dlink=dlink, swL2PortStEntry=swL2PortStEntry, external=external, golfproducts=golfproducts, swL2PortStIndex=swL2PortStIndex, swL2PortStFrameRx=swL2PortStFrameRx, marconi_mgmt=marconi_mgmt, golf=golf, swL2PortInfoLinkStatus=swL2PortInfoLinkStatus, swL2PortCtrlTable=swL2PortCtrlTable, swL2PortCtrlLinkStatusAlarmState=swL2PortCtrlLinkStatusAlarmState, swL2PortCtrlHOLState=swL2PortCtrlHOLState, swL2PortCtrlBackPressState=swL2PortCtrlBackPressState, swL2PortStByteTx=swL2PortStByteTx, swL2PortStTotalFramesRx=swL2PortStTotalFramesRx, swL2PortStFrames_256_511_bytes=swL2PortStFrames_256_511_bytes, swEventBcastRisingStorm=swEventBcastRisingStorm, swL2PortCtrlUnitIndex=swL2PortCtrlUnitIndex, swL2PortStFrames_512_1023_bytes=swL2PortStFrames_512_1023_bytes, swL2PortInfoModuleIndex=swL2PortInfoModuleIndex, swL2PortCtrlBcastFallingAct=swL2PortCtrlBcastFallingAct, swL2PortStFrameTx=swL2PortStFrameTx, swL2PortInfoEntry=swL2PortInfoEntry, swProperty=swProperty, swL2PortStBroadcastFramesRx=swL2PortStBroadcastFramesRx, swEventPortPartition=swEventPortPartition, marconi_es2000Prod=marconi_es2000Prod, swEventlinkChangeEvent=swEventlinkChangeEvent, swL2PortStCollision=swL2PortStCollision, swL2PortCtrlBcastRisingAct=swL2PortCtrlBcastRisingAct, swL2PortInfoDescr=swL2PortInfoDescr, swL2PortCtrlPriority=swL2PortCtrlPriority, swL2PortCtrlNwayState=swL2PortCtrlNwayState, swL2PortCtrlIndex=swL2PortCtrlIndex)
class Queue: # Constructor to initiate queue def __init__(self, queue=None): if queue is None: queue = [] self.queue = queue # push to append an item into queue def push(self, value): self.queue.append(value) # front to return starting element from queue def front(self): if Queue.empty(self) is False: return self.queue[0] else: raise IndexError("You are trying to front in an empty queue.") # pop to remove front element from queue def pop(self): if Queue.empty(self) is False: self.queue.pop(0) else: raise IndexError("You are trying to pop in an empty queue.") # to check queue size def size(self): return len(self.queue) # to check queue is empty or not def empty(self): if self.size() > 0: return False else: return True # to see elements of queue def display(self): return self.queue
class Queue: def __init__(self, queue=None): if queue is None: queue = [] self.queue = queue def push(self, value): self.queue.append(value) def front(self): if Queue.empty(self) is False: return self.queue[0] else: raise index_error('You are trying to front in an empty queue.') def pop(self): if Queue.empty(self) is False: self.queue.pop(0) else: raise index_error('You are trying to pop in an empty queue.') def size(self): return len(self.queue) def empty(self): if self.size() > 0: return False else: return True def display(self): return self.queue
class EnumType(object): # Internal data storage uses integer running from 0 to range_end # range_end is set to the number of possible values that the Enum can take on # External representation of Enum starts at 1 and goes to range_end + 1 def __init__(self, initial_value): self.set(initial_value) def load_json(self, json_struct): self.set(json_struct) def json_serializer(self): # Returns a string # This could be changed to encode enums as integers when transmitting messages if self.value < 0: return None else: return type(self).possible_values[self.value] def __str__(self): return str(self.json_serializer()) def get(self): # Returns an integer, using the external representation return self.value + 1 def set(self, value): # The value to set can be either a string or an integer if type(value) is str: # This will raise ValueError for wrong assignments try: self.value = type(self).possible_values.index(value) except ValueError: raise ValueError('', value, type(self).possible_values) elif type(value) is int: if value >= 0 and value <= type(self).range_end: # External representation of Enum starts at 1, internal at 0. External value 0 by default # to indicate empty object. value = value - 1 self.value = value else: raise ValueError('', value, type(self).range_end) else: raise TypeError('', value, 'string or integer')
class Enumtype(object): def __init__(self, initial_value): self.set(initial_value) def load_json(self, json_struct): self.set(json_struct) def json_serializer(self): if self.value < 0: return None else: return type(self).possible_values[self.value] def __str__(self): return str(self.json_serializer()) def get(self): return self.value + 1 def set(self, value): if type(value) is str: try: self.value = type(self).possible_values.index(value) except ValueError: raise value_error('', value, type(self).possible_values) elif type(value) is int: if value >= 0 and value <= type(self).range_end: value = value - 1 self.value = value else: raise value_error('', value, type(self).range_end) else: raise type_error('', value, 'string or integer')
# -*- coding: utf-8 -*- # class LineLoop(object): _ID = 0 dimension = 1 def __init__(self, lines): self.lines = lines self.id = 'll{}'.format(LineLoop._ID) LineLoop._ID += 1 self.code = '\n'.join([ '{} = newll;'.format(self.id), 'Line Loop({}) = {{{}}};'.format( self.id, ', '.join([l.id for l in lines]) )]) return def __len__(self): return len(self.lines)
class Lineloop(object): _id = 0 dimension = 1 def __init__(self, lines): self.lines = lines self.id = 'll{}'.format(LineLoop._ID) LineLoop._ID += 1 self.code = '\n'.join(['{} = newll;'.format(self.id), 'Line Loop({}) = {{{}}};'.format(self.id, ', '.join([l.id for l in lines]))]) return def __len__(self): return len(self.lines)
# Binary search def binary_search(A: list, x: int): i = 0 j = len(A) while i < j: m = (i + j) // 2 if A[m] == x: return True elif A[m] > x: j = m else: i = m + 1 return False def recursive_binary_search(A: list, x: int, start: int, end: int): if end >= start: m = start + (end - start) // 2 if A[m] == x: return m elif A[m] > m: return recursive_binary_search(A, start, m - 1, x) else: return recursive_binary_search(A, m + 1, end, x) else: return -1
def binary_search(A: list, x: int): i = 0 j = len(A) while i < j: m = (i + j) // 2 if A[m] == x: return True elif A[m] > x: j = m else: i = m + 1 return False def recursive_binary_search(A: list, x: int, start: int, end: int): if end >= start: m = start + (end - start) // 2 if A[m] == x: return m elif A[m] > m: return recursive_binary_search(A, start, m - 1, x) else: return recursive_binary_search(A, m + 1, end, x) else: return -1
class Solution: def numberOfLines(self, widths: List[int], s: str) -> List[int]: s = list(s); lines = 1; line = 0 while s: if line + widths[ord(s[0])-97] > 100: lines += 1; line = 0 else: line += widths[ord(s.pop(0))-97] return [lines, line]
class Solution: def number_of_lines(self, widths: List[int], s: str) -> List[int]: s = list(s) lines = 1 line = 0 while s: if line + widths[ord(s[0]) - 97] > 100: lines += 1 line = 0 else: line += widths[ord(s.pop(0)) - 97] return [lines, line]
Lakh = 100 * 1000 Crore = 100 * Lakh biggerNumbers = { 100 : "sau", 1000 : "hazaar", Lakh : "laakh", Crore : "karoD" }
lakh = 100 * 1000 crore = 100 * Lakh bigger_numbers = {100: 'sau', 1000: 'hazaar', Lakh: 'laakh', Crore: 'karoD'}
class Match: def __init__(self): self.date = "" self.round = "" self.tournament = "" self.home = "" self.score = "" self.away = "" self.channels = ""
class Match: def __init__(self): self.date = '' self.round = '' self.tournament = '' self.home = '' self.score = '' self.away = '' self.channels = ''
class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: prod = 1 prods = [1]*len(nums) for i in range(len(nums)): prods[i] = prod prod *= nums[i] prod = 1 for i in range(len(nums)-1, -1, -1): prods[i] *= prod prod *= nums[i] return prods
class Solution: def product_except_self(self, nums: List[int]) -> List[int]: prod = 1 prods = [1] * len(nums) for i in range(len(nums)): prods[i] = prod prod *= nums[i] prod = 1 for i in range(len(nums) - 1, -1, -1): prods[i] *= prod prod *= nums[i] return prods
def all_index(array, num): indx = [] for i in range(0,len(array)): for j in range(0,array[i].count(num)): if j == 0: indx.append([i, array[i].index(num)]) else: indx.append([i, array[i].index(num,indx[j-1][1]+1)]) return indx tic = [[1,1,0],[0,2,1],[1,2,2]] print(all_index(tic, 1))
def all_index(array, num): indx = [] for i in range(0, len(array)): for j in range(0, array[i].count(num)): if j == 0: indx.append([i, array[i].index(num)]) else: indx.append([i, array[i].index(num, indx[j - 1][1] + 1)]) return indx tic = [[1, 1, 0], [0, 2, 1], [1, 2, 2]] print(all_index(tic, 1))
def encrypt(message, key): encrypted_message = '' for char in message: if char.isalpha(): #ord() returns an integer representing the Unicode code point of the character unicode_num = ord(char) unicode_num += key if char.isupper(): if unicode_num > ord('Z'): unicode_num -= 26 elif unicode_num < ord('A'): unicode_num += 26 elif char.islower(): if unicode_num > ord('z'): unicode_num -= 26 elif unicode_num < ord('a'): unicode_num += 26 #chr() returns a character from a string encrypted_message += chr(unicode_num) else: encrypted_message += char return encrypted_message def decrypt(encoded, key): return encrypt(encoded, -key) def encrypt_input(): e_message = input('\nEnter message to encrypt: ') e_key = int(input('\nEnter key number from 1 - 26: ')) while e_key > 26: e_key = int(input('\nEnter key number from 1 - 26: ')) return f'\nYour encrypted message is =====> {encrypt(e_message, e_key)}' def decrypt_input(): d_message = input('\nEnter message to decrypt: ') d_key = int(input('\nEnter key number from 1 - 26: ')) while d_key > 26: d_key = int(input('\nEnter key number from 1 - 26: ')) return f'\nYour decrypted message is =====> {decrypt(d_message, d_key)}' def start(): question = input('\nEncrpyt (e) or Decrypt (d) a message? ') if question == 'e': return encrypt_input() if question == 'd': return decrypt_input() # else: # start() if __name__ == "__main__": while True: print(start())
def encrypt(message, key): encrypted_message = '' for char in message: if char.isalpha(): unicode_num = ord(char) unicode_num += key if char.isupper(): if unicode_num > ord('Z'): unicode_num -= 26 elif unicode_num < ord('A'): unicode_num += 26 elif char.islower(): if unicode_num > ord('z'): unicode_num -= 26 elif unicode_num < ord('a'): unicode_num += 26 encrypted_message += chr(unicode_num) else: encrypted_message += char return encrypted_message def decrypt(encoded, key): return encrypt(encoded, -key) def encrypt_input(): e_message = input('\nEnter message to encrypt: ') e_key = int(input('\nEnter key number from 1 - 26: ')) while e_key > 26: e_key = int(input('\nEnter key number from 1 - 26: ')) return f'\nYour encrypted message is =====> {encrypt(e_message, e_key)}' def decrypt_input(): d_message = input('\nEnter message to decrypt: ') d_key = int(input('\nEnter key number from 1 - 26: ')) while d_key > 26: d_key = int(input('\nEnter key number from 1 - 26: ')) return f'\nYour decrypted message is =====> {decrypt(d_message, d_key)}' def start(): question = input('\nEncrpyt (e) or Decrypt (d) a message? ') if question == 'e': return encrypt_input() if question == 'd': return decrypt_input() if __name__ == '__main__': while True: print(start())
# In "and" operator if ONE is false the whole is false # in "or" operator if ONE is true the whole is true print("Welcome to the rollercoaster!") height = int(input("What is your height in cms? ")) bill = 0 if height >= 120: print("You can ride the rollercoaster") age = int(input("What is your age? ")) if age < 12: bill = 5 print("Child tickets are $5") elif age <= 18: bill = 7 print("Youth tickets are $7") elif age >= 45 and age <= 55: print("Everything is going to be ok. Have a free ride") else: bill = 14 print("Adult tickets are $14") wants_photo = input("Do you want a photo taken? Y or N.") if wants_photo == "Y": bill += 3 print(f"Your final bill is $ {bill}") else: print("Sorry, your pp isn't grown up to ride the rollercoaster")
print('Welcome to the rollercoaster!') height = int(input('What is your height in cms? ')) bill = 0 if height >= 120: print('You can ride the rollercoaster') age = int(input('What is your age? ')) if age < 12: bill = 5 print('Child tickets are $5') elif age <= 18: bill = 7 print('Youth tickets are $7') elif age >= 45 and age <= 55: print('Everything is going to be ok. Have a free ride') else: bill = 14 print('Adult tickets are $14') wants_photo = input('Do you want a photo taken? Y or N.') if wants_photo == 'Y': bill += 3 print(f'Your final bill is $ {bill}') else: print("Sorry, your pp isn't grown up to ride the rollercoaster")
class User: def __init__(self, username, name, email, bio, repositories): self.username = username self.name = name self.email = email self.bio = bio self.repositories = repositories def __str__(self): final = "Name: {} ({}):".format(self.name, self.username) if self.email: final = "{} ({})".format(final, self.email) if self.bio: final = "{} - {}".format(final, self.bio) if self.repositories: for repo in self.repositories: final = "{}\n{}".format(final, repo.__str__()) return final def __eq__(self, other): return self.__dict__ == other.__dict__
class User: def __init__(self, username, name, email, bio, repositories): self.username = username self.name = name self.email = email self.bio = bio self.repositories = repositories def __str__(self): final = 'Name: {} ({}):'.format(self.name, self.username) if self.email: final = '{} ({})'.format(final, self.email) if self.bio: final = '{} - {}'.format(final, self.bio) if self.repositories: for repo in self.repositories: final = '{}\n{}'.format(final, repo.__str__()) return final def __eq__(self, other): return self.__dict__ == other.__dict__
#------------------------------------------------------------------------------- def checkUser( username, passwd ): return False #------------------------------------------------------------------------------- def checkIfUserAvailable( username ): return False #------------------------------------------------------------------------------- def getUserEmail( username ): return None #------------------------------------------------------------------------------- def allowPasswordChange( username ): return False #------------------------------------------------------------------------------- def changeUserPassword( username, oldpass, newpass ): return False #-------------------------------------------------------------------------------
def check_user(username, passwd): return False def check_if_user_available(username): return False def get_user_email(username): return None def allow_password_change(username): return False def change_user_password(username, oldpass, newpass): return False
# using modified merge function def compute_union(arr1, arr2): union = [] index1 = 0 index2 = 0 while (index1 < len(arr1)) and (index2 < len(arr2)): if arr1[index1] < arr2[index2]: union.append(arr1[index1]) index1 += 1 elif arr1[index1] > arr2[index2]: union.append(arr2[index2]) index2 += 1 else: union.append(arr2[index2]) index1 += 1 index2 += 1 while index1 < len(arr1): union.append(arr1[index1]) index1 += 1 while index2 < len(arr2): union.append(arr2[index2]) index2 += 1 return union # using modified merge function def compute_intersection(arr1, arr2): intersection = [] index1 = 0 index2 = 0 while (index1 < len(arr1)) and (index2 < len(arr2)): if arr1[index1] < arr2[index2]: index1 += 1 elif arr1[index1] > arr2[index2]: index2 += 1 else: intersection.append(arr2[index2]) index1 += 1 index2 += 1 return intersection if __name__ == "__main__": arr1 = [1, 3, 4, 5, 7] arr2 = [2, 3, 5, 6] # arr1=[2, 5, 6] # arr2=[4, 6, 8, 10] union = compute_union(arr1, arr2) print('union : ', union) intersection = compute_intersection(arr1, arr2) print('intersection : ', intersection)
def compute_union(arr1, arr2): union = [] index1 = 0 index2 = 0 while index1 < len(arr1) and index2 < len(arr2): if arr1[index1] < arr2[index2]: union.append(arr1[index1]) index1 += 1 elif arr1[index1] > arr2[index2]: union.append(arr2[index2]) index2 += 1 else: union.append(arr2[index2]) index1 += 1 index2 += 1 while index1 < len(arr1): union.append(arr1[index1]) index1 += 1 while index2 < len(arr2): union.append(arr2[index2]) index2 += 1 return union def compute_intersection(arr1, arr2): intersection = [] index1 = 0 index2 = 0 while index1 < len(arr1) and index2 < len(arr2): if arr1[index1] < arr2[index2]: index1 += 1 elif arr1[index1] > arr2[index2]: index2 += 1 else: intersection.append(arr2[index2]) index1 += 1 index2 += 1 return intersection if __name__ == '__main__': arr1 = [1, 3, 4, 5, 7] arr2 = [2, 3, 5, 6] union = compute_union(arr1, arr2) print('union : ', union) intersection = compute_intersection(arr1, arr2) print('intersection : ', intersection)
levels = [ #{ # 'geometry': [ ' bbb ', # ' bbb ', # ' bbb ', # ' bbb ', # ' b ', # ' b ', # ' bbb ', # ' bbbbb ', # ' bbb ', # ' b ', # ' ', # ' b e ', # ' b b ', # ' b b ', # ' v b '], # 'start': {'x': 4, 'y': 11}, # 'swatches': [ { 'fields': [ { 'action': 'split1', # 'position': {'x': 6, 'y': 12}}, # { 'action': 'split2', # 'position': {'x': 6, 'y': 14}}], # 'position': {'x': 4, 'y': 14}, # 'type': 'v'}]}, { 'geometry': [ ' ', ' ', ' bbb ', ' bbbb ', ' bbbb ', ' bbb ', ' bbb ', ' bbbb ', ' bbbb ', ' bebb ', ' bbbb ', ' bb ', ' ', ' ', ' '], 'start': {'x': 6, 'y': 3}, 'swatches': []}, { 'geometry': [ ' bbbbb ', ' bbbbb ', ' bbbsb ', ' bbbbb ', ' l ', ' r ', ' bbbbbb ', ' bbbbbb ', ' bbbbhb ', ' bbbbbb ', ' l ', ' r ', ' bbbbb ', ' bbbeb ', ' bbbbb '], 'start': {'x': 4, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 4, 'y': 10}}, { 'action': 'onoff', 'position': {'x': 4, 'y': 11}}], 'position': {'x': 7, 'y': 8}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 4, 'y': 4}}, { 'action': 'onoff', 'position': {'x': 4, 'y': 5}}], 'position': {'x': 6, 'y': 2}, 'type': 's'}]}, { 'geometry': [ ' bbbb ', ' bbbb ', ' bbbb ', ' bbbb ', ' b ', ' b ', ' bbb ', ' bbb ', ' bbb ', ' b ', ' b ', ' bbbbb ', ' bbbbbb ', ' bbeb ', ' bbbb '], 'start': {'x': 4, 'y': 1}, 'swatches': []}, { 'geometry': [ ' bbbbb ', ' bbbbb ', ' bbbbb ', ' bff ', ' ff ', 'bbbb ff ', 'bebb ff ', 'bbbb ff ', ' bb ff ', ' ff bff ', 'ffffbbb ', 'ffffbbb ', 'fbff ', 'ffff ', ' '], 'start': {'x': 3, 'y': 1}, 'swatches': []}, { 'geometry': [ 'bbb ', 'beb bbbb ', 'bbb bbbb ', 'bb bbsbb ', ' b bbbbb ', ' k b k ', ' q s q ', ' b b b ', ' b k s ', ' b q b ', ' bbbb b ', ' bbbb bb', ' bbbb bbb', ' bb bbb', ' bs bbb'], 'start': {'x': 8, 'y': 13}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 8, 'y': 6}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 5}}], 'position': {'x': 8, 'y': 8}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 1, 'y': 5}}, { 'action': 'on', 'position': {'x': 1, 'y': 6}}], 'position': {'x': 6, 'y': 3}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 1, 'y': 5}}, { 'action': 'off', 'position': {'x': 1, 'y': 6}}], 'position': {'x': 4, 'y': 6}, 'type': 's'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 1, 'y': 5}}, { 'action': 'onoff', 'position': {'x': 1, 'y': 6}}], 'position': {'x': 3, 'y': 14}, 'type': 's'}]}, { 'geometry': [ ' b ', ' b ', ' b ', ' b ', ' bbb ', ' bbbbbb', ' bbbbb b', 'bbb b', 'bbb bbb', 'bbbb bbb', ' bbb bbb', ' bbb ', ' bbbb ', ' beb ', ' bbb '], 'start': {'x': 6, 'y': 0}, 'swatches': []}, { 'geometry': [ ' bbbb ', ' bbbbb ', ' bbbbbb ', ' bl b ', ' b b ', ' b b ', ' b b ', ' bbbbb ', ' bbbbbb ', ' bh bb ', ' bb ', ' bbb ', ' bbbb ', ' bbeb ', ' bbbb '], 'start': {'x': 5, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 3}}], 'position': {'x': 4, 'y': 9}, 'type': 'h'}]}, { 'geometry': [ ' bbb ', ' bbb ', ' bbb ', ' bbb ', ' bvb ', ' bbb ', ' ', ' ', ' ', ' bbbbbbbbb', ' bbbbbbbbb', ' bbbbbbbbb', ' bbb ', ' beb ', ' bbb '], 'start': {'x': 5, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'split1', 'position': {'x': 8, 'y': 10}}, { 'action': 'split2', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 5, 'y': 4}, 'type': 'v'}]}, { 'geometry': [ ' bbb ', ' bbb ', ' bbb ', ' bbb ', ' b ', ' b ', ' bbb ', ' bebbb ', ' bbb ', ' b ', ' b ', ' bbb ', ' bbb ', ' bvb ', ' bbb '], 'start': {'x': 5, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'split1', 'position': {'x': 5, 'y': 12}}, { 'action': 'split2', 'position': {'x': 5, 'y': 2}}], 'position': {'x': 5, 'y': 13}, 'type': 'v'}]}, { 'geometry': [ ' ', ' bbb', ' beb', ' bbb', ' l ', 'bb r ', 'sb b ', ' b l ', ' b r ', 'bb bbb', 'b bbbb', 'b bbbb', 'hbb bbbbb', 'bbbbbbllvb', ' bb'], 'start': {'x': 8, 'y': 10}, 'swatches': [ { 'fields': [ { 'action': 'split1', 'position': {'x': 8, 'y': 13}}, { 'action': 'split2', 'position': {'x': 8, 'y': 10}}], 'position': {'x': 8, 'y': 13}, 'type': 'v'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 8, 'y': 4}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 5}}], 'position': {'x': 0, 'y': 6}, 'type': 's'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 8, 'y': 7}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 8}}, { 'action': 'onoff', 'position': {'x': 7, 'y': 13}}, { 'action': 'onoff', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 0, 'y': 12}, 'type': 'h'}]}, { 'geometry': [ ' ', ' ', ' b ', ' bbbbbb', ' b beb', ' b bbb', ' b kk', ' bbbbbb ', ' bbsbbb ', ' bb b ', 'bbb b ', 'bb bbb ', 'bb bbb ', ' bbbb ', ' '], 'start': {'x': 4, 'y': 2}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 9, 'y': 6}}, { 'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 3, 'y': 8}, 'type': 's'}]}, { 'geometry': [ ' ', ' bb ', ' bbb ', ' bbb ', ' bbbbb ', ' beb ', 'bb bbbbb ', 'bbb lbhb ', 'bbb bbb ', ' b b ', ' bbb b ', ' bbbbbbb ', ' bbbbbb ', ' bb lbh', ' '], 'start': {'x': 3, 'y': 3}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 5, 'y': 7}}], 'position': {'x': 9, 'y': 13}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 7, 'y': 13}}], 'position': {'x': 7, 'y': 7}, 'type': 'h'}]}, { 'geometry': [ ' ', ' bbbbbb', ' bbbbbb', ' bbbbb b', 'bbb f f', 'bbb f b', 'bfffff b', ' fffbbb b', ' fbfbeb b', 'bfffbbb f', 'bfff b', ' ffb bb', ' bbbbbbb', ' bbbbb', ' bbb '], 'start': {'x': 6, 'y': 13}, 'swatches': []}, { 'geometry': [ ' bbbbbb ', ' bb ll ', 'bbb rr ', 'beb bbb ', 'bbb bbb ', ' bbb ', ' b ', ' b ', 'bbbb bbb', 'bbbb bbb', 'bbbb bbb', 'b b b ', 'b bbbhb ', 'h bbbbb ', ' '], 'start': {'x': 7, 'y': 4}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 7, 'y': 1}}, { 'action': 'onoff', 'position': {'x': 7, 'y': 2}}], 'position': {'x': 6, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 6, 'y': 1}}, { 'action': 'onoff', 'position': {'x': 6, 'y': 2}}], 'position': {'x': 0, 'y': 13}, 'type': 'h'}]}, { 'geometry': [ 'bbb bbb ', 'bbbbbbbb ', 'bbb bl ', ' b br ', ' b bbb ', ' b k ', 'bbb q ', 'bbbbv bbb', 'bbb sbbb', ' k bbb', ' q l ', 'sbs r ', 'beb bhb', 'bbb bbb', ' bbb'], 'start': {'x': 1, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 7, 'y': 2}}, { 'action': 'onoff', 'position': {'x': 7, 'y': 3}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 5}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 8, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 8, 'y': 5}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 6}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 10}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 11}}], 'position': {'x': 6, 'y': 8}, 'type': 's'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 8, 'y': 13}}, { 'action': 'split2', 'position': {'x': 1, 'y': 1}}], 'position': {'x': 4, 'y': 7}, 'type': 'v'}, { 'fields': [ { 'action': 'off', 'position': {'x': 1, 'y': 9}}, { 'action': 'off', 'position': {'x': 1, 'y': 10}}], 'position': {'x': 2, 'y': 11}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 1, 'y': 9}}, { 'action': 'off', 'position': {'x': 1, 'y': 10}}], 'position': {'x': 0, 'y': 11}, 'type': 's'}]}, { 'geometry': [ ' v ', ' vbv ', 'bbb v ', 'bbb l ', 'bbb r ', ' b h ', ' b h ', ' b b ', 'bbb l ', 'bvb r ', 'bbb bbb ', ' beb ', ' bbb ', ' ', ' '], 'start': {'x': 1, 'y': 3}, 'swatches': [ { 'fields': [ { 'action': 'split1', 'position': {'x': 6, 'y': 7}}, { 'action': 'split2', 'position': {'x': 6, 'y': 5}}], 'position': {'x': 7, 'y': 1}, 'type': 'v'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 6, 'y': 2}}, { 'action': 'split2', 'position': {'x': 7, 'y': 1}}], 'position': {'x': 6, 'y': 0}, 'type': 'v'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 6, 'y': 0}}, { 'action': 'split2', 'position': {'x': 6, 'y': 2}}], 'position': {'x': 6, 'y': 2}, 'type': 'v'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 3}}, { 'action': 'on', 'position': {'x': 6, 'y': 4}}], 'position': {'x': 6, 'y': 5}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 8}}, { 'action': 'on', 'position': {'x': 6, 'y': 9}}], 'position': {'x': 6, 'y': 6}, 'type': 'h'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 5, 'y': 1}}, { 'action': 'split2', 'position': {'x': 6, 'y': 0}}], 'position': {'x': 5, 'y': 1}, 'type': 'v'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 7, 'y': 1}}, { 'action': 'split2', 'position': {'x': 6, 'y': 0}}], 'position': {'x': 1, 'y': 9}, 'type': 'v'}]}, { 'geometry': [ 'bbbbbbbbbb', 'bsbbbbbbbb', 'bbbbbbbbbb', ' b b ', ' b b ', ' b b ', ' br b ', ' bb rb ', ' lb bb ', ' b bl ', ' b b ', 'bbbb b ', 'hbbh hbb ', ' heb ', ' bbb '], 'start': {'x': 8, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 3, 'y': 6}}], 'position': {'x': 6, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 3, 'y': 6}}], 'position': {'x': 6, 'y': 13}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 7, 'y': 7}}], 'position': {'x': 3, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 8}}], 'position': {'x': 1, 'y': 1}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 8, 'y': 9}}, { 'action': 'off', 'position': {'x': 2, 'y': 8}}], 'position': {'x': 0, 'y': 12}, 'type': 'h'}]}, { 'geometry': [ 'bbbbbbbb ', 'l bbsbb ', 'r sbbbs ', 'h bbbbb ', ' bbb ', ' lb ', ' b ', ' bbbs ', ' sbbl ', ' r ', 'bb b ', 'bbb b ', 'bebbbl ', 'bbb r ', ' b '], 'start': {'x': 5, 'y': 2}, 'swatches': [ { 'fields': [ { 'action': 'on', 'position': {'x': 5, 'y': 8}}, { 'action': 'on', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 8, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 5, 'y': 12}}, { 'action': 'off', 'position': {'x': 5, 'y': 13}}, { 'action': 'off', 'position': {'x': 0, 'y': 1}}, { 'action': 'off', 'position': {'x': 0, 'y': 2}}], 'position': {'x': 7, 'y': 2}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 5, 'y': 8}}, { 'action': 'off', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 5, 'y': 1}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 5, 'y': 12}}, { 'action': 'off', 'position': {'x': 5, 'y': 13}}, { 'action': 'off', 'position': {'x': 0, 'y': 1}}, { 'action': 'off', 'position': {'x': 0, 'y': 2}}], 'position': {'x': 3, 'y': 2}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 5, 'y': 12}}, { 'action': 'on', 'position': {'x': 5, 'y': 13}}, { 'action': 'on', 'position': {'x': 0, 'y': 1}}, { 'action': 'on', 'position': {'x': 0, 'y': 2}}], 'position': {'x': 2, 'y': 8}, 'type': 's'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 4, 'y': 5}}], 'position': {'x': 0, 'y': 3}, 'type': 'h'}]}, { 'geometry': [ ' bbb ', 'bbbeb b', 'kbbbb b', 'q b', 'b b', 'bbbbb bbb', 'bbbbb bbb', 'b l b', 'b r b', 'b b b', 's s s', 'b b b', 'b b b', 'b bbbbbb', ' bbbbbb'], 'start': {'x': 9, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 4, 'y': 7}}, { 'action': 'onoff', 'position': {'x': 4, 'y': 8}}], 'position': {'x': 9, 'y': 10}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 0, 'y': 2}}, { 'action': 'off', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 4, 'y': 10}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 0, 'y': 2}}, { 'action': 'on', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 0, 'y': 10}, 'type': 's'}]}, { 'geometry': [ ' bb ', ' sb ', ' bbbbbb ', ' bbsbbb ', ' bbbbb ', ' k ', ' q ', ' bbvbsb ', ' bbbbbb ', ' bbsbbb ', ' l l ', ' r r ', 'bbbs bbb', 'bebb bbb', 'bbbb bbb'], 'start': {'x': 7, 'y': 8}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 8, 'y': 5}}, { 'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 7, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 8, 'y': 5}}, { 'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 5, 'y': 3}, 'type': 's'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 8, 'y': 13}}, { 'action': 'split2', 'position': {'x': 2, 'y': 13}}], 'position': {'x': 5, 'y': 7}, 'type': 'v'}, { 'fields': [ { 'action': 'off', 'position': {'x': 8, 'y': 5}}, { 'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 5, 'y': 9}, 'type': 's'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 3, 'y': 10}}, { 'action': 'onoff', 'position': {'x': 3, 'y': 11}}], 'position': {'x': 3, 'y': 12}, 'type': 's'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 8, 'y': 10}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 11}}], 'position': {'x': 2, 'y': 1}, 'type': 's'}]}, { 'geometry': [ ' bbb ', ' bbbb ', ' bbbbb ', 'rbb bb ', 'bbb bb ', 'bbl bb ', 'b b ', 'b bb ', 'bbbhhbbbbb', 'bbbbb bbb', ' b ', ' b ', ' bbb ', ' beb ', ' bbb '], 'start': {'x': 6, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 4, 'y': 8}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 5}}], 'position': {'x': 3, 'y': 8}, 'type': 'h'}]}, { 'geometry': [ ' ', ' bbb ', ' bbbbbbb ', 'hbl bbb ', ' bbb ', ' sbb ', ' bbb', ' sbb', ' bbb ', ' bbb ', 'hbq bbb ', ' bbbbbbb ', ' bbbbb', ' lbeb', ' bbb'], 'start': {'x': 6, 'y': 2}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 7, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 6, 'y': 5}, 'type': 's'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 0, 'y': 3}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 3}}], 'position': {'x': 0, 'y': 10}, 'type': 'h'}]}, { 'geometry': [ ' bsbr ', ' l bbbb', ' r bbhb', 'bbbb bbbb', 'bbbbbbl ', 'bbbb ', 'bfff ', 'bffffbbb ', 'lffffbeb ', ' ffffbbb ', ' fff k ', ' bbb q ', ' bvb bbbb', ' bbb bbsb', ' kbbsbbb'], 'start': {'x': 2, 'y': 4}, 'swatches': [ { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 4}}], 'position': {'x': 8, 'y': 2}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 0, 'y': 8}}, { 'action': 'on', 'position': {'x': 3, 'y': 1}}, { 'action': 'on', 'position': {'x': 3, 'y': 2}}], 'position': {'x': 8, 'y': 13}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 3, 'y': 14}}, { 'action': 'off', 'position': {'x': 7, 'y': 10}}, { 'action': 'off', 'position': {'x': 7, 'y': 11}}], 'position': {'x': 6, 'y': 14}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 0}}, { 'action': 'off', 'position': {'x': 3, 'y': 1}}, { 'action': 'off', 'position': {'x': 3, 'y': 2}}], 'position': {'x': 4, 'y': 0}, 'type': 's'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 2, 'y': 12}}, { 'action': 'split2', 'position': {'x': 7, 'y': 2}}], 'position': {'x': 2, 'y': 12}, 'type': 'v'}]}, { 'geometry': [ ' ', ' bbbh ', ' bbbbb ', ' bb l ', ' b rr ', ' bbbbb ', ' hb bhb ', ' bb bb ', ' lb b ', ' l b ', ' r b ', ' bbb bbb ', ' beb bhb ', ' bbbbbbbb ', ' bvb '], 'start': {'x': 6, 'y': 2}, 'swatches': [ { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 4}}, { 'action': 'on', 'position': {'x': 6, 'y': 3}}], 'position': {'x': 7, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'split1', 'position': {'x': 2, 'y': 6}}, { 'action': 'split2', 'position': {'x': 2, 'y': 8}}], 'position': {'x': 7, 'y': 14}, 'type': 'v'}, { 'fields': [ { 'action': 'on', 'position': {'x': 1, 'y': 8}}], 'position': {'x': 6, 'y': 6}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 7, 'y': 4}}], 'position': {'x': 5, 'y': 1}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 2, 'y': 9}}, { 'action': 'on', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 1, 'y': 6}, 'type': 'h'}]}, { 'geometry': [ ' bbb ', ' bbbb ', ' kkhb bbb', ' b bbbb', ' k bsb ', ' q b ', ' bbbbbb ', ' bbbbbl ', ' s l ', ' b r ', ' b bbb ', 'bbb beb ', 'bbb bbb ', 'bbb ll ', ' '], 'start': {'x': 2, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 7, 'y': 13}}, { 'action': 'onoff', 'position': {'x': 6, 'y': 13}}, { 'action': 'onoff', 'position': {'x': 5, 'y': 8}}, { 'action': 'onoff', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 7, 'y': 4}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 5, 'y': 8}}, { 'action': 'on', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 3, 'y': 2}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 7}}, { 'action': 'off', 'position': {'x': 3, 'y': 4}}, { 'action': 'off', 'position': {'x': 3, 'y': 5}}], 'position': {'x': 1, 'y': 8}, 'type': 's'}]}, { 'geometry': [ ' bbb ', ' hbbbb ', ' bbk ', ' lq ', ' bb ', ' bbbb', ' bbbbbbbbb', ' beb bbsb', ' bbb bbb', ' l bb ', ' bbbbb ', ' bb ', ' b ', ' bbbv', ' '], 'start': {'x': 4, 'y': 10}, 'swatches': [ { 'fields': [ { 'action': 'split1', 'position': {'x': 6, 'y': 12}}, { 'action': 'split2', 'position': {'x': 4, 'y': 10}}], 'position': {'x': 9, 'y': 13}, 'type': 'v'}, { 'fields': [ { 'action': 'off', 'position': {'x': 6, 'y': 2}}, { 'action': 'off', 'position': {'x': 6, 'y': 3}}], 'position': {'x': 8, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 2, 'y': 9}}, { 'action': 'on', 'position': {'x': 5, 'y': 3}}], 'position': {'x': 2, 'y': 1}, 'type': 'h'}]}, { 'geometry': [ ' bbb bbb', ' beb bbb', ' bbb bbb', ' ff b ', ' ff b ', ' ffff b ', 'qffff b ', 'bffff bbb', 'bffff bbb', 'kfffb bb', ' ff bb', ' ff b', ' bbbsbb b', ' bbbsbhbbb', ' bbb bbbb'], 'start': {'x': 8, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 0, 'y': 6}}, { 'action': 'off', 'position': {'x': 0, 'y': 9}}], 'position': {'x': 6, 'y': 13}, 'type': 'h'}, { 'fields': [ { 'action': 'off', 'position': {'x': 0, 'y': 6}}], 'position': {'x': 4, 'y': 12}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 0, 'y': 9}}], 'position': {'x': 4, 'y': 13}, 'type': 's'}]}, { 'geometry': [ ' ffff ', ' bbbfffbb', 'bbbeb bbb', ' bbb k', ' b q', 'bbb bbb', 'bbb bbb', 'b bbb ', 'k bbb ', 'q bbb ', 'bbbbbb ', 'bbsbv ', 'bbbb ', ' bb ', ' bb '], 'start': {'x': 7, 'y': 2}, 'swatches': [ { 'fields': [ { 'action': 'split1', 'position': {'x': 3, 'y': 14}}, { 'action': 'split2', 'position': {'x': 0, 'y': 12}}], 'position': {'x': 4, 'y': 11}, 'type': 'v'}, { 'fields': [ { 'action': 'off', 'position': {'x': 9, 'y': 4}}, { 'action': 'off', 'position': {'x': 9, 'y': 3}}, { 'action': 'off', 'position': {'x': 0, 'y': 8}}, { 'action': 'off', 'position': {'x': 0, 'y': 9}}], 'position': {'x': 2, 'y': 11}, 'type': 's'}]}, { 'geometry': [ 'bbb h ', 'beb l ', 'bbb r s', 'll b k', ' r b q', ' bbrrbbbbb', ' bbbbbb ', ' bbb ', ' bbb ', 'bbbbbbbbbb', 'k k b l', 'q q b r', 's s l h', ' r ', ' h '], 'start': {'x': 6, 'y': 7}, 'swatches': [ { 'fields': [ { 'action': 'on', 'position': {'x': 9, 'y': 10}}, { 'action': 'on', 'position': {'x': 9, 'y': 11}}, { 'action': 'off', 'position': {'x': 3, 'y': 10}}, { 'action': 'off', 'position': {'x': 3, 'y': 11}}], 'position': {'x': 9, 'y': 2}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 4, 'y': 5}}, { 'action': 'on', 'position': {'x': 3, 'y': 5}}], 'position': {'x': 9, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 1, 'y': 3}}, { 'action': 'on', 'position': {'x': 1, 'y': 4}}, { 'action': 'off', 'position': {'x': 0, 'y': 10}}, { 'action': 'off', 'position': {'x': 0, 'y': 11}}], 'position': {'x': 6, 'y': 0}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 6, 'y': 14}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 1}}, { 'action': 'on', 'position': {'x': 6, 'y': 2}}], 'position': {'x': 3, 'y': 12}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 12}}, { 'action': 'on', 'position': {'x': 6, 'y': 13}}, { 'action': 'off', 'position': {'x': 3, 'y': 10}}, { 'action': 'off', 'position': {'x': 3, 'y': 11}}, { 'action': 'off', 'position': {'x': 9, 'y': 3}}, { 'action': 'off', 'position': {'x': 9, 'y': 4}}, { 'action': 'off', 'position': {'x': 9, 'y': 10}}, { 'action': 'off', 'position': {'x': 9, 'y': 11}}], 'position': {'x': 0, 'y': 12}, 'type': 's'}]}, { 'geometry': [ ' bff ', 'ffffh ', 'bfffbb ', 'ffbff bbb', 'fff beb', 'ffb bbb', ' ff bb', ' ffbfff b', 'ffbbffb f', 'fffl b f', 'ff k b', 'ff q b', 'bbhr bffb', ' bb bbbb', ' lbbbbh '], 'start': {'x': 5, 'y': 2}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 6, 'y': 10}}, { 'action': 'off', 'position': {'x': 6, 'y': 11}}, { 'action': 'on', 'position': {'x': 3, 'y': 9}}, { 'action': 'on', 'position': {'x': 3, 'y': 12}}], 'position': {'x': 7, 'y': 14}, 'type': 'h'}, { 'fields': [ { 'action': 'on', 'position': {'x': 6, 'y': 10}}, { 'action': 'on', 'position': {'x': 6, 'y': 11}}], 'position': {'x': 4, 'y': 1}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 14}}], 'position': {'x': 2, 'y': 12}, 'type': 'h'}]}, { 'geometry': [ 'qqq ', 'bbb fbbb ', 'bhbbffbbb ', 'bbb fbbb ', ' l k ', ' r q ', ' hbbbsbb ', ' sbbbbb ', ' bbbbbbh ', ' k l ', ' q r ', ' bbbf bbb', ' bbbffbbeb', ' bbbf bbb', ' lll'], 'start': {'x': 2, 'y': 12}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 7, 'y': 9}}, { 'action': 'onoff', 'position': {'x': 7, 'y': 10}}], 'position': {'x': 8, 'y': 8}, 'type': 'h'}, { 'fields': [ { 'action': 'off', 'position': {'x': 7, 'y': 4}}, { 'action': 'off', 'position': {'x': 7, 'y': 5}}, { 'action': 'off', 'position': {'x': 7, 'y': 9}}, { 'action': 'off', 'position': {'x': 7, 'y': 10}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}, { 'action': 'off', 'position': {'x': 2, 'y': 5}}, { 'action': 'off', 'position': {'x': 2, 'y': 9}}, { 'action': 'off', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 5, 'y': 6}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 7, 'y': 4}}, { 'action': 'off', 'position': {'x': 7, 'y': 5}}, { 'action': 'off', 'position': {'x': 7, 'y': 9}}, { 'action': 'off', 'position': {'x': 7, 'y': 10}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}, { 'action': 'off', 'position': {'x': 2, 'y': 5}}, { 'action': 'off', 'position': {'x': 2, 'y': 9}}, { 'action': 'off', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 2, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 7, 'y': 14}}, { 'action': 'on', 'position': {'x': 8, 'y': 14}}, { 'action': 'on', 'position': {'x': 9, 'y': 14}}, { 'action': 'off', 'position': {'x': 7, 'y': 4}}, { 'action': 'off', 'position': {'x': 7, 'y': 5}}], 'position': {'x': 1, 'y': 2}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 4}}, { 'action': 'onoff', 'position': {'x': 2, 'y': 5}}], 'position': {'x': 1, 'y': 6}, 'type': 'h'}]}, { 'geometry': [ ' ', ' bb ', ' bb bbb ', ' ll bebb ', ' rr bbbb ', ' bbb lk ', ' bhb rq ', ' bbb bb ', ' b bbb ', ' b bb ', ' bbbbbb ', ' bbbbbbb ', ' bhb ', ' bbb', ' bbh'], 'start': {'x': 3, 'y': 11}, 'swatches': [ { 'fields': [ { 'action': 'onoff', 'position': {'x': 2, 'y': 3}}, { 'action': 'onoff', 'position': {'x': 2, 'y': 4}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 5}}, { 'action': 'onoff', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 9, 'y': 14}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 1, 'y': 3}}, { 'action': 'onoff', 'position': {'x': 1, 'y': 4}}], 'position': {'x': 7, 'y': 12}, 'type': 'h'}, { 'fields': [ { 'action': 'onoff', 'position': {'x': 7, 'y': 5}}, { 'action': 'onoff', 'position': {'x': 7, 'y': 6}}], 'position': {'x': 2, 'y': 6}, 'type': 'h'}]}, { 'geometry': [ 'bbbb bb ', 'bbeb bb ', 'bbbb bb ', ' k k ', ' q q ', ' bbbbbbsbb', ' bsbbbbbbb', ' bbbbsbbbs', ' bbbbsbb', ' bbbsbbb', ' bbbssbbb', ' bbssbbbl ', 'bbbbbbbb ', 'bbsbbbsb ', 'bbhb '], 'start': {'x': 6, 'y': 1}, 'swatches': [ { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 9, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 7, 'y': 5}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 7, 'y': 8}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 6, 'y': 9}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 6, 'y': 10}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 6, 'y': 13}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 5, 'y': 7}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 5, 'y': 10}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 4, 'y': 11}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 3, 'y': 11}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 2, 'y': 6}, 'type': 's'}, { 'fields': [ { 'action': 'off', 'position': {'x': 2, 'y': 3}}, { 'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 2, 'y': 13}, 'type': 's'}, { 'fields': [ { 'action': 'on', 'position': {'x': 8, 'y': 11}}], 'position': {'x': 2, 'y': 14}, 'type': 'h'}]}]
levels = [{'geometry': [' ', ' ', ' bbb ', ' bbbb ', ' bbbb ', ' bbb ', ' bbb ', ' bbbb ', ' bbbb ', ' bebb ', ' bbbb ', ' bb ', ' ', ' ', ' '], 'start': {'x': 6, 'y': 3}, 'swatches': []}, {'geometry': [' bbbbb ', ' bbbbb ', ' bbbsb ', ' bbbbb ', ' l ', ' r ', ' bbbbbb ', ' bbbbbb ', ' bbbbhb ', ' bbbbbb ', ' l ', ' r ', ' bbbbb ', ' bbbeb ', ' bbbbb '], 'start': {'x': 4, 'y': 1}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 4, 'y': 10}}, {'action': 'onoff', 'position': {'x': 4, 'y': 11}}], 'position': {'x': 7, 'y': 8}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 4, 'y': 4}}, {'action': 'onoff', 'position': {'x': 4, 'y': 5}}], 'position': {'x': 6, 'y': 2}, 'type': 's'}]}, {'geometry': [' bbbb ', ' bbbb ', ' bbbb ', ' bbbb ', ' b ', ' b ', ' bbb ', ' bbb ', ' bbb ', ' b ', ' b ', ' bbbbb ', ' bbbbbb ', ' bbeb ', ' bbbb '], 'start': {'x': 4, 'y': 1}, 'swatches': []}, {'geometry': [' bbbbb ', ' bbbbb ', ' bbbbb ', ' bff ', ' ff ', 'bbbb ff ', 'bebb ff ', 'bbbb ff ', ' bb ff ', ' ff bff ', 'ffffbbb ', 'ffffbbb ', 'fbff ', 'ffff ', ' '], 'start': {'x': 3, 'y': 1}, 'swatches': []}, {'geometry': ['bbb ', 'beb bbbb ', 'bbb bbbb ', 'bb bbsbb ', ' b bbbbb ', ' k b k ', ' q s q ', ' b b b ', ' b k s ', ' b q b ', ' bbbb b ', ' bbbb bb', ' bbbb bbb', ' bb bbb', ' bs bbb'], 'start': {'x': 8, 'y': 13}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 8, 'y': 6}}, {'action': 'onoff', 'position': {'x': 8, 'y': 5}}], 'position': {'x': 8, 'y': 8}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 1, 'y': 5}}, {'action': 'on', 'position': {'x': 1, 'y': 6}}], 'position': {'x': 6, 'y': 3}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 1, 'y': 5}}, {'action': 'off', 'position': {'x': 1, 'y': 6}}], 'position': {'x': 4, 'y': 6}, 'type': 's'}, {'fields': [{'action': 'onoff', 'position': {'x': 1, 'y': 5}}, {'action': 'onoff', 'position': {'x': 1, 'y': 6}}], 'position': {'x': 3, 'y': 14}, 'type': 's'}]}, {'geometry': [' b ', ' b ', ' b ', ' b ', ' bbb ', ' bbbbbb', ' bbbbb b', 'bbb b', 'bbb bbb', 'bbbb bbb', ' bbb bbb', ' bbb ', ' bbbb ', ' beb ', ' bbb '], 'start': {'x': 6, 'y': 0}, 'swatches': []}, {'geometry': [' bbbb ', ' bbbbb ', ' bbbbbb ', ' bl b ', ' b b ', ' b b ', ' b b ', ' bbbbb ', ' bbbbbb ', ' bh bb ', ' bb ', ' bbb ', ' bbbb ', ' bbeb ', ' bbbb '], 'start': {'x': 5, 'y': 1}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 3}}], 'position': {'x': 4, 'y': 9}, 'type': 'h'}]}, {'geometry': [' bbb ', ' bbb ', ' bbb ', ' bbb ', ' bvb ', ' bbb ', ' ', ' ', ' ', ' bbbbbbbbb', ' bbbbbbbbb', ' bbbbbbbbb', ' bbb ', ' beb ', ' bbb '], 'start': {'x': 5, 'y': 1}, 'swatches': [{'fields': [{'action': 'split1', 'position': {'x': 8, 'y': 10}}, {'action': 'split2', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 5, 'y': 4}, 'type': 'v'}]}, {'geometry': [' bbb ', ' bbb ', ' bbb ', ' bbb ', ' b ', ' b ', ' bbb ', ' bebbb ', ' bbb ', ' b ', ' b ', ' bbb ', ' bbb ', ' bvb ', ' bbb '], 'start': {'x': 5, 'y': 1}, 'swatches': [{'fields': [{'action': 'split1', 'position': {'x': 5, 'y': 12}}, {'action': 'split2', 'position': {'x': 5, 'y': 2}}], 'position': {'x': 5, 'y': 13}, 'type': 'v'}]}, {'geometry': [' ', ' bbb', ' beb', ' bbb', ' l ', 'bb r ', 'sb b ', ' b l ', ' b r ', 'bb bbb', 'b bbbb', 'b bbbb', 'hbb bbbbb', 'bbbbbbllvb', ' bb'], 'start': {'x': 8, 'y': 10}, 'swatches': [{'fields': [{'action': 'split1', 'position': {'x': 8, 'y': 13}}, {'action': 'split2', 'position': {'x': 8, 'y': 10}}], 'position': {'x': 8, 'y': 13}, 'type': 'v'}, {'fields': [{'action': 'onoff', 'position': {'x': 8, 'y': 4}}, {'action': 'onoff', 'position': {'x': 8, 'y': 5}}], 'position': {'x': 0, 'y': 6}, 'type': 's'}, {'fields': [{'action': 'onoff', 'position': {'x': 8, 'y': 7}}, {'action': 'onoff', 'position': {'x': 8, 'y': 8}}, {'action': 'onoff', 'position': {'x': 7, 'y': 13}}, {'action': 'onoff', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 0, 'y': 12}, 'type': 'h'}]}, {'geometry': [' ', ' ', ' b ', ' bbbbbb', ' b beb', ' b bbb', ' b kk', ' bbbbbb ', ' bbsbbb ', ' bb b ', 'bbb b ', 'bb bbb ', 'bb bbb ', ' bbbb ', ' '], 'start': {'x': 4, 'y': 2}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 9, 'y': 6}}, {'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 3, 'y': 8}, 'type': 's'}]}, {'geometry': [' ', ' bb ', ' bbb ', ' bbb ', ' bbbbb ', ' beb ', 'bb bbbbb ', 'bbb lbhb ', 'bbb bbb ', ' b b ', ' bbb b ', ' bbbbbbb ', ' bbbbbb ', ' bb lbh', ' '], 'start': {'x': 3, 'y': 3}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 5, 'y': 7}}], 'position': {'x': 9, 'y': 13}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 7, 'y': 13}}], 'position': {'x': 7, 'y': 7}, 'type': 'h'}]}, {'geometry': [' ', ' bbbbbb', ' bbbbbb', ' bbbbb b', 'bbb f f', 'bbb f b', 'bfffff b', ' fffbbb b', ' fbfbeb b', 'bfffbbb f', 'bfff b', ' ffb bb', ' bbbbbbb', ' bbbbb', ' bbb '], 'start': {'x': 6, 'y': 13}, 'swatches': []}, {'geometry': [' bbbbbb ', ' bb ll ', 'bbb rr ', 'beb bbb ', 'bbb bbb ', ' bbb ', ' b ', ' b ', 'bbbb bbb', 'bbbb bbb', 'bbbb bbb', 'b b b ', 'b bbbhb ', 'h bbbbb ', ' '], 'start': {'x': 7, 'y': 4}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 7, 'y': 1}}, {'action': 'onoff', 'position': {'x': 7, 'y': 2}}], 'position': {'x': 6, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 6, 'y': 1}}, {'action': 'onoff', 'position': {'x': 6, 'y': 2}}], 'position': {'x': 0, 'y': 13}, 'type': 'h'}]}, {'geometry': ['bbb bbb ', 'bbbbbbbb ', 'bbb bl ', ' b br ', ' b bbb ', ' b k ', 'bbb q ', 'bbbbv bbb', 'bbb sbbb', ' k bbb', ' q l ', 'sbs r ', 'beb bhb', 'bbb bbb', ' bbb'], 'start': {'x': 1, 'y': 1}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 7, 'y': 2}}, {'action': 'onoff', 'position': {'x': 7, 'y': 3}}, {'action': 'onoff', 'position': {'x': 8, 'y': 5}}, {'action': 'onoff', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 8, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 8, 'y': 5}}, {'action': 'onoff', 'position': {'x': 8, 'y': 6}}, {'action': 'onoff', 'position': {'x': 8, 'y': 10}}, {'action': 'onoff', 'position': {'x': 8, 'y': 11}}], 'position': {'x': 6, 'y': 8}, 'type': 's'}, {'fields': [{'action': 'split1', 'position': {'x': 8, 'y': 13}}, {'action': 'split2', 'position': {'x': 1, 'y': 1}}], 'position': {'x': 4, 'y': 7}, 'type': 'v'}, {'fields': [{'action': 'off', 'position': {'x': 1, 'y': 9}}, {'action': 'off', 'position': {'x': 1, 'y': 10}}], 'position': {'x': 2, 'y': 11}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 1, 'y': 9}}, {'action': 'off', 'position': {'x': 1, 'y': 10}}], 'position': {'x': 0, 'y': 11}, 'type': 's'}]}, {'geometry': [' v ', ' vbv ', 'bbb v ', 'bbb l ', 'bbb r ', ' b h ', ' b h ', ' b b ', 'bbb l ', 'bvb r ', 'bbb bbb ', ' beb ', ' bbb ', ' ', ' '], 'start': {'x': 1, 'y': 3}, 'swatches': [{'fields': [{'action': 'split1', 'position': {'x': 6, 'y': 7}}, {'action': 'split2', 'position': {'x': 6, 'y': 5}}], 'position': {'x': 7, 'y': 1}, 'type': 'v'}, {'fields': [{'action': 'split1', 'position': {'x': 6, 'y': 2}}, {'action': 'split2', 'position': {'x': 7, 'y': 1}}], 'position': {'x': 6, 'y': 0}, 'type': 'v'}, {'fields': [{'action': 'split1', 'position': {'x': 6, 'y': 0}}, {'action': 'split2', 'position': {'x': 6, 'y': 2}}], 'position': {'x': 6, 'y': 2}, 'type': 'v'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 3}}, {'action': 'on', 'position': {'x': 6, 'y': 4}}], 'position': {'x': 6, 'y': 5}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 8}}, {'action': 'on', 'position': {'x': 6, 'y': 9}}], 'position': {'x': 6, 'y': 6}, 'type': 'h'}, {'fields': [{'action': 'split1', 'position': {'x': 5, 'y': 1}}, {'action': 'split2', 'position': {'x': 6, 'y': 0}}], 'position': {'x': 5, 'y': 1}, 'type': 'v'}, {'fields': [{'action': 'split1', 'position': {'x': 7, 'y': 1}}, {'action': 'split2', 'position': {'x': 6, 'y': 0}}], 'position': {'x': 1, 'y': 9}, 'type': 'v'}]}, {'geometry': ['bbbbbbbbbb', 'bsbbbbbbbb', 'bbbbbbbbbb', ' b b ', ' b b ', ' b b ', ' br b ', ' bb rb ', ' lb bb ', ' b bl ', ' b b ', 'bbbb b ', 'hbbh hbb ', ' heb ', ' bbb '], 'start': {'x': 8, 'y': 1}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 3, 'y': 6}}], 'position': {'x': 6, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 3, 'y': 6}}], 'position': {'x': 6, 'y': 13}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 7, 'y': 7}}], 'position': {'x': 3, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 8}}], 'position': {'x': 1, 'y': 1}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 8, 'y': 9}}, {'action': 'off', 'position': {'x': 2, 'y': 8}}], 'position': {'x': 0, 'y': 12}, 'type': 'h'}]}, {'geometry': ['bbbbbbbb ', 'l bbsbb ', 'r sbbbs ', 'h bbbbb ', ' bbb ', ' lb ', ' b ', ' bbbs ', ' sbbl ', ' r ', 'bb b ', 'bbb b ', 'bebbbl ', 'bbb r ', ' b '], 'start': {'x': 5, 'y': 2}, 'swatches': [{'fields': [{'action': 'on', 'position': {'x': 5, 'y': 8}}, {'action': 'on', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 8, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 5, 'y': 12}}, {'action': 'off', 'position': {'x': 5, 'y': 13}}, {'action': 'off', 'position': {'x': 0, 'y': 1}}, {'action': 'off', 'position': {'x': 0, 'y': 2}}], 'position': {'x': 7, 'y': 2}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 5, 'y': 8}}, {'action': 'off', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 5, 'y': 1}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 5, 'y': 12}}, {'action': 'off', 'position': {'x': 5, 'y': 13}}, {'action': 'off', 'position': {'x': 0, 'y': 1}}, {'action': 'off', 'position': {'x': 0, 'y': 2}}], 'position': {'x': 3, 'y': 2}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 5, 'y': 12}}, {'action': 'on', 'position': {'x': 5, 'y': 13}}, {'action': 'on', 'position': {'x': 0, 'y': 1}}, {'action': 'on', 'position': {'x': 0, 'y': 2}}], 'position': {'x': 2, 'y': 8}, 'type': 's'}, {'fields': [{'action': 'onoff', 'position': {'x': 4, 'y': 5}}], 'position': {'x': 0, 'y': 3}, 'type': 'h'}]}, {'geometry': [' bbb ', 'bbbeb b', 'kbbbb b', 'q b', 'b b', 'bbbbb bbb', 'bbbbb bbb', 'b l b', 'b r b', 'b b b', 's s s', 'b b b', 'b b b', 'b bbbbbb', ' bbbbbb'], 'start': {'x': 9, 'y': 1}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 4, 'y': 7}}, {'action': 'onoff', 'position': {'x': 4, 'y': 8}}], 'position': {'x': 9, 'y': 10}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 0, 'y': 2}}, {'action': 'off', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 4, 'y': 10}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 0, 'y': 2}}, {'action': 'on', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 0, 'y': 10}, 'type': 's'}]}, {'geometry': [' bb ', ' sb ', ' bbbbbb ', ' bbsbbb ', ' bbbbb ', ' k ', ' q ', ' bbvbsb ', ' bbbbbb ', ' bbsbbb ', ' l l ', ' r r ', 'bbbs bbb', 'bebb bbb', 'bbbb bbb'], 'start': {'x': 7, 'y': 8}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 8, 'y': 5}}, {'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 7, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 8, 'y': 5}}, {'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 5, 'y': 3}, 'type': 's'}, {'fields': [{'action': 'split1', 'position': {'x': 8, 'y': 13}}, {'action': 'split2', 'position': {'x': 2, 'y': 13}}], 'position': {'x': 5, 'y': 7}, 'type': 'v'}, {'fields': [{'action': 'off', 'position': {'x': 8, 'y': 5}}, {'action': 'off', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 5, 'y': 9}, 'type': 's'}, {'fields': [{'action': 'onoff', 'position': {'x': 3, 'y': 10}}, {'action': 'onoff', 'position': {'x': 3, 'y': 11}}], 'position': {'x': 3, 'y': 12}, 'type': 's'}, {'fields': [{'action': 'onoff', 'position': {'x': 8, 'y': 10}}, {'action': 'onoff', 'position': {'x': 8, 'y': 11}}], 'position': {'x': 2, 'y': 1}, 'type': 's'}]}, {'geometry': [' bbb ', ' bbbb ', ' bbbbb ', 'rbb bb ', 'bbb bb ', 'bbl bb ', 'b b ', 'b bb ', 'bbbhhbbbbb', 'bbbbb bbb', ' b ', ' b ', ' bbb ', ' beb ', ' bbb '], 'start': {'x': 6, 'y': 1}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 4, 'y': 8}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 5}}], 'position': {'x': 3, 'y': 8}, 'type': 'h'}]}, {'geometry': [' ', ' bbb ', ' bbbbbbb ', 'hbl bbb ', ' bbb ', ' sbb ', ' bbb', ' sbb', ' bbb ', ' bbb ', 'hbq bbb ', ' bbbbbbb ', ' bbbbb', ' lbeb', ' bbb'], 'start': {'x': 6, 'y': 2}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 7, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 6, 'y': 5}, 'type': 's'}, {'fields': [{'action': 'onoff', 'position': {'x': 6, 'y': 13}}], 'position': {'x': 0, 'y': 3}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 3}}], 'position': {'x': 0, 'y': 10}, 'type': 'h'}]}, {'geometry': [' bsbr ', ' l bbbb', ' r bbhb', 'bbbb bbbb', 'bbbbbbl ', 'bbbb ', 'bfff ', 'bffffbbb ', 'lffffbeb ', ' ffffbbb ', ' fff k ', ' bbb q ', ' bvb bbbb', ' bbb bbsb', ' kbbsbbb'], 'start': {'x': 2, 'y': 4}, 'swatches': [{'fields': [{'action': 'on', 'position': {'x': 6, 'y': 4}}], 'position': {'x': 8, 'y': 2}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 0, 'y': 8}}, {'action': 'on', 'position': {'x': 3, 'y': 1}}, {'action': 'on', 'position': {'x': 3, 'y': 2}}], 'position': {'x': 8, 'y': 13}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 3, 'y': 14}}, {'action': 'off', 'position': {'x': 7, 'y': 10}}, {'action': 'off', 'position': {'x': 7, 'y': 11}}], 'position': {'x': 6, 'y': 14}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 0}}, {'action': 'off', 'position': {'x': 3, 'y': 1}}, {'action': 'off', 'position': {'x': 3, 'y': 2}}], 'position': {'x': 4, 'y': 0}, 'type': 's'}, {'fields': [{'action': 'split1', 'position': {'x': 2, 'y': 12}}, {'action': 'split2', 'position': {'x': 7, 'y': 2}}], 'position': {'x': 2, 'y': 12}, 'type': 'v'}]}, {'geometry': [' ', ' bbbh ', ' bbbbb ', ' bb l ', ' b rr ', ' bbbbb ', ' hb bhb ', ' bb bb ', ' lb b ', ' l b ', ' r b ', ' bbb bbb ', ' beb bhb ', ' bbbbbbbb ', ' bvb '], 'start': {'x': 6, 'y': 2}, 'swatches': [{'fields': [{'action': 'on', 'position': {'x': 6, 'y': 4}}, {'action': 'on', 'position': {'x': 6, 'y': 3}}], 'position': {'x': 7, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'split1', 'position': {'x': 2, 'y': 6}}, {'action': 'split2', 'position': {'x': 2, 'y': 8}}], 'position': {'x': 7, 'y': 14}, 'type': 'v'}, {'fields': [{'action': 'on', 'position': {'x': 1, 'y': 8}}], 'position': {'x': 6, 'y': 6}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 7, 'y': 4}}], 'position': {'x': 5, 'y': 1}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 2, 'y': 9}}, {'action': 'on', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 1, 'y': 6}, 'type': 'h'}]}, {'geometry': [' bbb ', ' bbbb ', ' kkhb bbb', ' b bbbb', ' k bsb ', ' q b ', ' bbbbbb ', ' bbbbbl ', ' s l ', ' b r ', ' b bbb ', 'bbb beb ', 'bbb bbb ', 'bbb ll ', ' '], 'start': {'x': 2, 'y': 1}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 7, 'y': 13}}, {'action': 'onoff', 'position': {'x': 6, 'y': 13}}, {'action': 'onoff', 'position': {'x': 5, 'y': 8}}, {'action': 'onoff', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 7, 'y': 4}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 5, 'y': 8}}, {'action': 'on', 'position': {'x': 5, 'y': 9}}], 'position': {'x': 3, 'y': 2}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 7}}, {'action': 'off', 'position': {'x': 3, 'y': 4}}, {'action': 'off', 'position': {'x': 3, 'y': 5}}], 'position': {'x': 1, 'y': 8}, 'type': 's'}]}, {'geometry': [' bbb ', ' hbbbb ', ' bbk ', ' lq ', ' bb ', ' bbbb', ' bbbbbbbbb', ' beb bbsb', ' bbb bbb', ' l bb ', ' bbbbb ', ' bb ', ' b ', ' bbbv', ' '], 'start': {'x': 4, 'y': 10}, 'swatches': [{'fields': [{'action': 'split1', 'position': {'x': 6, 'y': 12}}, {'action': 'split2', 'position': {'x': 4, 'y': 10}}], 'position': {'x': 9, 'y': 13}, 'type': 'v'}, {'fields': [{'action': 'off', 'position': {'x': 6, 'y': 2}}, {'action': 'off', 'position': {'x': 6, 'y': 3}}], 'position': {'x': 8, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 2, 'y': 9}}, {'action': 'on', 'position': {'x': 5, 'y': 3}}], 'position': {'x': 2, 'y': 1}, 'type': 'h'}]}, {'geometry': [' bbb bbb', ' beb bbb', ' bbb bbb', ' ff b ', ' ff b ', ' ffff b ', 'qffff b ', 'bffff bbb', 'bffff bbb', 'kfffb bb', ' ff bb', ' ff b', ' bbbsbb b', ' bbbsbhbbb', ' bbb bbbb'], 'start': {'x': 8, 'y': 1}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 0, 'y': 6}}, {'action': 'off', 'position': {'x': 0, 'y': 9}}], 'position': {'x': 6, 'y': 13}, 'type': 'h'}, {'fields': [{'action': 'off', 'position': {'x': 0, 'y': 6}}], 'position': {'x': 4, 'y': 12}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 0, 'y': 9}}], 'position': {'x': 4, 'y': 13}, 'type': 's'}]}, {'geometry': [' ffff ', ' bbbfffbb', 'bbbeb bbb', ' bbb k', ' b q', 'bbb bbb', 'bbb bbb', 'b bbb ', 'k bbb ', 'q bbb ', 'bbbbbb ', 'bbsbv ', 'bbbb ', ' bb ', ' bb '], 'start': {'x': 7, 'y': 2}, 'swatches': [{'fields': [{'action': 'split1', 'position': {'x': 3, 'y': 14}}, {'action': 'split2', 'position': {'x': 0, 'y': 12}}], 'position': {'x': 4, 'y': 11}, 'type': 'v'}, {'fields': [{'action': 'off', 'position': {'x': 9, 'y': 4}}, {'action': 'off', 'position': {'x': 9, 'y': 3}}, {'action': 'off', 'position': {'x': 0, 'y': 8}}, {'action': 'off', 'position': {'x': 0, 'y': 9}}], 'position': {'x': 2, 'y': 11}, 'type': 's'}]}, {'geometry': ['bbb h ', 'beb l ', 'bbb r s', 'll b k', ' r b q', ' bbrrbbbbb', ' bbbbbb ', ' bbb ', ' bbb ', 'bbbbbbbbbb', 'k k b l', 'q q b r', 's s l h', ' r ', ' h '], 'start': {'x': 6, 'y': 7}, 'swatches': [{'fields': [{'action': 'on', 'position': {'x': 9, 'y': 10}}, {'action': 'on', 'position': {'x': 9, 'y': 11}}, {'action': 'off', 'position': {'x': 3, 'y': 10}}, {'action': 'off', 'position': {'x': 3, 'y': 11}}], 'position': {'x': 9, 'y': 2}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 4, 'y': 5}}, {'action': 'on', 'position': {'x': 3, 'y': 5}}], 'position': {'x': 9, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 1, 'y': 3}}, {'action': 'on', 'position': {'x': 1, 'y': 4}}, {'action': 'off', 'position': {'x': 0, 'y': 10}}, {'action': 'off', 'position': {'x': 0, 'y': 11}}], 'position': {'x': 6, 'y': 0}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 0, 'y': 3}}], 'position': {'x': 6, 'y': 14}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 1}}, {'action': 'on', 'position': {'x': 6, 'y': 2}}], 'position': {'x': 3, 'y': 12}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 12}}, {'action': 'on', 'position': {'x': 6, 'y': 13}}, {'action': 'off', 'position': {'x': 3, 'y': 10}}, {'action': 'off', 'position': {'x': 3, 'y': 11}}, {'action': 'off', 'position': {'x': 9, 'y': 3}}, {'action': 'off', 'position': {'x': 9, 'y': 4}}, {'action': 'off', 'position': {'x': 9, 'y': 10}}, {'action': 'off', 'position': {'x': 9, 'y': 11}}], 'position': {'x': 0, 'y': 12}, 'type': 's'}]}, {'geometry': [' bff ', 'ffffh ', 'bfffbb ', 'ffbff bbb', 'fff beb', 'ffb bbb', ' ff bb', ' ffbfff b', 'ffbbffb f', 'fffl b f', 'ff k b', 'ff q b', 'bbhr bffb', ' bb bbbb', ' lbbbbh '], 'start': {'x': 5, 'y': 2}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 6, 'y': 10}}, {'action': 'off', 'position': {'x': 6, 'y': 11}}, {'action': 'on', 'position': {'x': 3, 'y': 9}}, {'action': 'on', 'position': {'x': 3, 'y': 12}}], 'position': {'x': 7, 'y': 14}, 'type': 'h'}, {'fields': [{'action': 'on', 'position': {'x': 6, 'y': 10}}, {'action': 'on', 'position': {'x': 6, 'y': 11}}], 'position': {'x': 4, 'y': 1}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 14}}], 'position': {'x': 2, 'y': 12}, 'type': 'h'}]}, {'geometry': ['qqq ', 'bbb fbbb ', 'bhbbffbbb ', 'bbb fbbb ', ' l k ', ' r q ', ' hbbbsbb ', ' sbbbbb ', ' bbbbbbh ', ' k l ', ' q r ', ' bbbf bbb', ' bbbffbbeb', ' bbbf bbb', ' lll'], 'start': {'x': 2, 'y': 12}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 7, 'y': 9}}, {'action': 'onoff', 'position': {'x': 7, 'y': 10}}], 'position': {'x': 8, 'y': 8}, 'type': 'h'}, {'fields': [{'action': 'off', 'position': {'x': 7, 'y': 4}}, {'action': 'off', 'position': {'x': 7, 'y': 5}}, {'action': 'off', 'position': {'x': 7, 'y': 9}}, {'action': 'off', 'position': {'x': 7, 'y': 10}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}, {'action': 'off', 'position': {'x': 2, 'y': 5}}, {'action': 'off', 'position': {'x': 2, 'y': 9}}, {'action': 'off', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 5, 'y': 6}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 7, 'y': 4}}, {'action': 'off', 'position': {'x': 7, 'y': 5}}, {'action': 'off', 'position': {'x': 7, 'y': 9}}, {'action': 'off', 'position': {'x': 7, 'y': 10}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}, {'action': 'off', 'position': {'x': 2, 'y': 5}}, {'action': 'off', 'position': {'x': 2, 'y': 9}}, {'action': 'off', 'position': {'x': 2, 'y': 10}}], 'position': {'x': 2, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 7, 'y': 14}}, {'action': 'on', 'position': {'x': 8, 'y': 14}}, {'action': 'on', 'position': {'x': 9, 'y': 14}}, {'action': 'off', 'position': {'x': 7, 'y': 4}}, {'action': 'off', 'position': {'x': 7, 'y': 5}}], 'position': {'x': 1, 'y': 2}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 4}}, {'action': 'onoff', 'position': {'x': 2, 'y': 5}}], 'position': {'x': 1, 'y': 6}, 'type': 'h'}]}, {'geometry': [' ', ' bb ', ' bb bbb ', ' ll bebb ', ' rr bbbb ', ' bbb lk ', ' bhb rq ', ' bbb bb ', ' b bbb ', ' b bb ', ' bbbbbb ', ' bbbbbbb ', ' bhb ', ' bbb', ' bbh'], 'start': {'x': 3, 'y': 11}, 'swatches': [{'fields': [{'action': 'onoff', 'position': {'x': 2, 'y': 3}}, {'action': 'onoff', 'position': {'x': 2, 'y': 4}}, {'action': 'onoff', 'position': {'x': 8, 'y': 5}}, {'action': 'onoff', 'position': {'x': 8, 'y': 6}}], 'position': {'x': 9, 'y': 14}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 1, 'y': 3}}, {'action': 'onoff', 'position': {'x': 1, 'y': 4}}], 'position': {'x': 7, 'y': 12}, 'type': 'h'}, {'fields': [{'action': 'onoff', 'position': {'x': 7, 'y': 5}}, {'action': 'onoff', 'position': {'x': 7, 'y': 6}}], 'position': {'x': 2, 'y': 6}, 'type': 'h'}]}, {'geometry': ['bbbb bb ', 'bbeb bb ', 'bbbb bb ', ' k k ', ' q q ', ' bbbbbbsbb', ' bsbbbbbbb', ' bbbbsbbbs', ' bbbbsbb', ' bbbsbbb', ' bbbssbbb', ' bbssbbbl ', 'bbbbbbbb ', 'bbsbbbsb ', 'bbhb '], 'start': {'x': 6, 'y': 1}, 'swatches': [{'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 9, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 7, 'y': 5}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 7, 'y': 8}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 6, 'y': 9}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 6, 'y': 10}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 6, 'y': 13}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 5, 'y': 7}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 5, 'y': 10}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 4, 'y': 11}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 3, 'y': 11}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 2, 'y': 6}, 'type': 's'}, {'fields': [{'action': 'off', 'position': {'x': 2, 'y': 3}}, {'action': 'off', 'position': {'x': 2, 'y': 4}}], 'position': {'x': 2, 'y': 13}, 'type': 's'}, {'fields': [{'action': 'on', 'position': {'x': 8, 'y': 11}}], 'position': {'x': 2, 'y': 14}, 'type': 'h'}]}]
while True: a, b, c = sorted(map(int, input().split())) if a == 0 and b == 0 and c == 0: break print("right" if a ** 2 + b ** 2 == c ** 2 else "wrong")
while True: (a, b, c) = sorted(map(int, input().split())) if a == 0 and b == 0 and (c == 0): break print('right' if a ** 2 + b ** 2 == c ** 2 else 'wrong')
# EASY # count each element in array and store in dict{} # loop through the array check if exist nums[i]+1 in dict{} class Solution: def findLHS(self, nums: List[int]) -> int: n = len(nums) appear = {} for i in range(n): appear[nums[i]] = appear.get(nums[i],0) + 1 result = 0 for k,v in appear.items(): if k+1 in appear: result = max(result,v+appear[k+1]) return result
class Solution: def find_lhs(self, nums: List[int]) -> int: n = len(nums) appear = {} for i in range(n): appear[nums[i]] = appear.get(nums[i], 0) + 1 result = 0 for (k, v) in appear.items(): if k + 1 in appear: result = max(result, v + appear[k + 1]) return result
class Clock(): # Set initial Clock state def __init__(self, hours, minutes): timeDic = self.calculateMinutes(minutes) self.minutes = timeDic['minutes'] self.hours = self.calculateHour(hours + timeDic['hours']) self.time = self.generateTimeString() # Add minutes to the clock (Can be positive or subtracting) def add(self, numMinutes=0): timeDic = self.calculateMinutes(self.minutes + numMinutes) self.setMinutes(timeDic['minutes']) hours = self.calculateHour(self.hours + timeDic['hours']) self.setHours(hours) self.time = self.generateTimeString() return self.time # Calculate Clock Hour in '24' from num of hours (Positive or Negative) def calculateHour(self, numHours=0): if numHours >= 0 and numHours < 24: return numHours hours = abs(numHours % 24) return hours # Caluclate Clock Minutes from num of minutes (Positive or Negative) # returns a dict of hours and minutes def calculateMinutes(self, numMinutes=0): if numMinutes >= 0 and numMinutes < 60: return { 'hours': 0, 'minutes': numMinutes } hours = (numMinutes / 60) minutes = (numMinutes % 60) if minutes == 60: minutes = 0 hours = hours + 1 return { 'hours': hours, 'minutes': minutes } # Generates time string from hours and minutes def generateTimeString(self): hourDigit = str(self.hours) if len(hourDigit) < 2: hourDigit = '%d%s' % (0, hourDigit) minuteDigit = str(self.minutes) if len(minuteDigit) < 2: minuteDigit = '%d%s' % (0, minuteDigit) return '%s:%s' % (hourDigit, minuteDigit) # ToString overide for instance def __str__(self): return self.time # Equality overide for instance def __eq__(self, other): return self.time == other.time # Setter for hours def setHours(self, hours): self.hours = hours # Setter for minutes def setMinutes(self, minutes): self.minutes = minutes
class Clock: def __init__(self, hours, minutes): time_dic = self.calculateMinutes(minutes) self.minutes = timeDic['minutes'] self.hours = self.calculateHour(hours + timeDic['hours']) self.time = self.generateTimeString() def add(self, numMinutes=0): time_dic = self.calculateMinutes(self.minutes + numMinutes) self.setMinutes(timeDic['minutes']) hours = self.calculateHour(self.hours + timeDic['hours']) self.setHours(hours) self.time = self.generateTimeString() return self.time def calculate_hour(self, numHours=0): if numHours >= 0 and numHours < 24: return numHours hours = abs(numHours % 24) return hours def calculate_minutes(self, numMinutes=0): if numMinutes >= 0 and numMinutes < 60: return {'hours': 0, 'minutes': numMinutes} hours = numMinutes / 60 minutes = numMinutes % 60 if minutes == 60: minutes = 0 hours = hours + 1 return {'hours': hours, 'minutes': minutes} def generate_time_string(self): hour_digit = str(self.hours) if len(hourDigit) < 2: hour_digit = '%d%s' % (0, hourDigit) minute_digit = str(self.minutes) if len(minuteDigit) < 2: minute_digit = '%d%s' % (0, minuteDigit) return '%s:%s' % (hourDigit, minuteDigit) def __str__(self): return self.time def __eq__(self, other): return self.time == other.time def set_hours(self, hours): self.hours = hours def set_minutes(self, minutes): self.minutes = minutes
class Order: __slots__ = ( 'id', 'order_number', 'customer_name', 'shipping_name', 'order_date', 'order_details_url', 'subtotal', 'shipping_fee', 'tax', 'status', 'retail_bonus', 'order_type', 'customer_url', 'customer_id', 'customer_contact', 'total', 'qv', 'hostess', 'party', 'ship_date', 'line_items', 'shipping_address', ) class OrderLineItem: __slots__ = ( 'sku', 'name', 'price', 'quantity', 'total', )
class Order: __slots__ = ('id', 'order_number', 'customer_name', 'shipping_name', 'order_date', 'order_details_url', 'subtotal', 'shipping_fee', 'tax', 'status', 'retail_bonus', 'order_type', 'customer_url', 'customer_id', 'customer_contact', 'total', 'qv', 'hostess', 'party', 'ship_date', 'line_items', 'shipping_address') class Orderlineitem: __slots__ = ('sku', 'name', 'price', 'quantity', 'total')
''' Find the largest continuous sum ''' def largest_cont_sum(arr): if len(arr) == 0: return 0 cur_sum = arr[0] max_sum = arr[0] for item in arr[1:]: cur_sum = max(cur_sum+item, item) if cur_sum >= max_sum: max_sum = cur_sum return max_sum
""" Find the largest continuous sum """ def largest_cont_sum(arr): if len(arr) == 0: return 0 cur_sum = arr[0] max_sum = arr[0] for item in arr[1:]: cur_sum = max(cur_sum + item, item) if cur_sum >= max_sum: max_sum = cur_sum return max_sum
class Solution: def matrixReshape(self, mat: List[List[int]], newRows: int, newCols: int) -> List[List[int]]: rows = len(mat) cols = len(mat[0]) if rows * cols != newRows * newCols: return mat newMat = [[0] * newCols for _ in range(newRows)] for x in range(rows): for y in range(cols): num = x * cols + y newMat[num // newCols][num % newCols] = mat[x][y] return newMat
class Solution: def matrix_reshape(self, mat: List[List[int]], newRows: int, newCols: int) -> List[List[int]]: rows = len(mat) cols = len(mat[0]) if rows * cols != newRows * newCols: return mat new_mat = [[0] * newCols for _ in range(newRows)] for x in range(rows): for y in range(cols): num = x * cols + y newMat[num // newCols][num % newCols] = mat[x][y] return newMat
def multiplication_table(size): return [[ x * y for y in range(1, size + 1)] for x in range(1, size + 1)] print(multiplication_table(3)) # [[1,2,3],[2,4,6],[3,6,9]]
def multiplication_table(size): return [[x * y for y in range(1, size + 1)] for x in range(1, size + 1)] print(multiplication_table(3))
a=5 b=50 if a>=b: c=a-b else: c=a-b print(c)
a = 5 b = 50 if a >= b: c = a - b else: c = a - b print(c)
# -*- coding: utf-8 -*- # Put here your production specific settings ADMINS = [ ('Francesca Alberti', 'francydark91@gmail.com'), ] EMAIL_SUBJECT_PREFIX = '[ALBERTIFRA]'
admins = [('Francesca Alberti', 'francydark91@gmail.com')] email_subject_prefix = '[ALBERTIFRA]'
# autocord # package for simple automation with discord client # # m: error class ApiError(Exception): pass
class Apierror(Exception): pass
class HarmonyConfig(object): def __init__(self, config): self.json = config def get_activities(self): return self._build_kv_menu('activity') def get_devices(self): return self._build_kv_menu('device') def _build_kv_menu(self, key): menu = {} for d in self.json[key]: menu.update({int(d['id']): d['label']}) return menu
class Harmonyconfig(object): def __init__(self, config): self.json = config def get_activities(self): return self._build_kv_menu('activity') def get_devices(self): return self._build_kv_menu('device') def _build_kv_menu(self, key): menu = {} for d in self.json[key]: menu.update({int(d['id']): d['label']}) return menu
# Copyright 2018 Databricks, Inc. VERSION = "1.12.1.dev0"
version = '1.12.1.dev0'
# Copyright 2021 BenchSci Analytics Inc. # Copyright 2021 Nate Gay # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. "rules_kustomize" load("//:kustomization.bzl", _kustomization = "kustomization") load("//:kustomize_image.bzl", _kustomize_image = "kustomize_image") kustomization = _kustomization kustomize_image = _kustomize_image
"""rules_kustomize""" load('//:kustomization.bzl', _kustomization='kustomization') load('//:kustomize_image.bzl', _kustomize_image='kustomize_image') kustomization = _kustomization kustomize_image = _kustomize_image
class Program: language = 'Python' def say_hello(): print(f'Hello from {Program.language}') p = Program() print(type(p)) print(p.__dict__) print(Program.__dict__) print(p.__class__) # BEST PRACTICES print(isinstance(p, Program))
class Program: language = 'Python' def say_hello(): print(f'Hello from {Program.language}') p = program() print(type(p)) print(p.__dict__) print(Program.__dict__) print(p.__class__) print(isinstance(p, Program))
def roman_to_int(s): s = s.upper() try: rom_val = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} int_val = 0 for i in range(len(s)): if i > 0 and rom_val[s[i]] > rom_val[s[i - 1]]: int_val += rom_val[s[i]] - 2 * rom_val[s[i - 1]] else: int_val += rom_val[s[i]] return int_val except KeyError: pass return None
def roman_to_int(s): s = s.upper() try: rom_val = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} int_val = 0 for i in range(len(s)): if i > 0 and rom_val[s[i]] > rom_val[s[i - 1]]: int_val += rom_val[s[i]] - 2 * rom_val[s[i - 1]] else: int_val += rom_val[s[i]] return int_val except KeyError: pass return None
class OuterClass(object): def outer_method(self): def nested_function(): class InnerClass(object): class InnermostClass(object): def innermost_method(self): print() InnerClass.InnermostClass().innermost_method() nested_function() OuterClass().outer_method()
class Outerclass(object): def outer_method(self): def nested_function(): class Innerclass(object): class Innermostclass(object): def innermost_method(self): print() InnerClass.InnermostClass().innermost_method() nested_function() outer_class().outer_method()
# S-box Table # We have 8 different 4x16 matrices for each S box #It converts 48 bits to 32 bits # Each S box will get 6 bits and output will be 4 bits s_box = [ [[14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7], [0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8], [4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0], [15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13]], [[15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10], [3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5], [0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15], [13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9]], [[10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8], [13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1], [13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7], [1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12]], [[7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15], [13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9], [10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4], [3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14]], [[2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9], [14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6], [4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14], [11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3]], [[12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11], [10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8], [9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6], [4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13]], [[4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1], [13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6], [1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2], [6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12]], [[13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7], [1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2], [7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8], [2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11]] ] # Round count: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 # Bits shifted:1 1 2 2 2 2 2 2 1 2 2 2 2 2 2 1 # Number of bit shifts shift_table=[1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 ] # Initial Permutation Table: (input of 64bit block size is pasesed: 64bit -> 64bit) initial_perm = [58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7] # Permuted choice 1: (key is passed: 64bit -> 56bit) # That is bit position 8, 16, 24, 32, 40, 48, 56 and 64 are discarded from the key. perm_cho_1= [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4] # Permuted choice 2: (key is passed into it after applying # left shift to both halves: 56bit -> 56bit) perm_cho_2= [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32] # Expansion permutation table expan_perm=[32, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 8, 9, 10, 11, 12, 13, 12, 13, 14, 15, 16, 17, 16, 17, 18, 19, 20, 21, 20, 21, 22, 23, 24, 25, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 1] # Permutation table perm_table=[16, 7, 20, 21, 29, 12, 28, 17, 1, 15, 23, 26, 5, 18, 31, 10, 2, 8, 24, 14, 32, 27, 3, 9, 19, 13, 30, 6, 22, 11, 4, 25] # Final Permutaion Table final_perm = [40, 8, 48, 16, 56, 24, 64, 32, 39, 7, 47, 15, 55, 23, 63, 31, 38, 6, 46, 14, 54, 22, 62, 30, 37, 5, 45, 13, 53, 21, 61, 29, 36, 4, 44, 12, 52, 20, 60, 28, 35, 3, 43, 11, 51, 19, 59, 27, 34, 2, 42, 10, 50, 18, 58, 26, 33, 1, 41, 9, 49, 17, 57, 25 ] # XOR function def xor(a,b): # a and b should be in binary ans="" for i in range(len(a)): if(a[i]==b[i]): ans=ans+"0" else: ans=ans+"1" return ans # Hexadecimal to binary conversion def hexa_to_bin(msg): mp = {'0' : "0000", '1' : "0001", '2' : "0010", '3' : "0011", '4' : "0100", '5' : "0101", '6' : "0110", '7' : "0111", '8' : "1000", '9' : "1001", 'A' : "1010", 'B' : "1011", 'C' : "1100", 'D' : "1101", 'E' : "1110", 'F' : "1111" } bin = "" for i in range(len(msg)): bin = bin + mp[msg[i]] return bin # Binary to hexadecimal conversion def bin_to_hexa(msg): mp = {"0000" : '0', "0001" : '1', "0010" : '2', "0011" : '3', "0100" : '4', "0101" : '5', "0110" : '6', "0111" : '7', "1000" : '8', "1001" : '9', "1010" : 'A', "1011" : 'B', "1100" : 'C', "1101" : 'D', "1110" : 'E', "1111" : 'F' } hex="" for i in range(0,len(msg),4): ch="" ch=ch+msg[i] ch=ch+msg[i+1] ch=ch+msg[i+2] ch=ch+msg[i+3] hex=hex+mp[ch] return hex # Binary to decimal conversion def bin_to_dec(msg): decimal,i=0,0 while(msg!=0): dec=msg%10 decimal=decimal+dec*pow(2, i) msg=msg//10 i+=1 return decimal # Decimal to binary conversion def dec_to_bin(num): res=bin(num).replace("0b", "") if(len(res)%4 != 0): div=len(res) / 4 div=int(div) counter=(4*(div+1))-len(res) for i in range(0, counter): res='0'+res return res # shifting the bits towards left by nth shifts def shift_left(key,nth_shifts): s="" for i in range(nth_shifts): for j in range(1,len(key)): s=s+key[j] s=s+key[0] key=s s="" return key # Step1: It is just rearranging the positions of all bits of plain text # according to the initial_perm matrix(8x8) def initial_permutation(plain_text,initial_perm, no_bits): permutation="" for i in range(0,no_bits): permutation=permutation+plain_text[initial_perm[i]-1] return permutation # Encryption function is implemented here def encrypt(msg,key): print("Encryption") msg=hexa_to_bin(msg) msg = initial_permutation(msg, initial_perm, 64) print("Message after initial permutation: ",bin_to_hexa(msg)) # converting from hexa to binary key = hexa_to_bin(key) key = initial_permutation(key, perm_cho_1, 56) print("The converted 56bit key is: ",key) # Halving the key l=key[0:28] r=key[28:56] # Halving the message left = msg[0:32] right =msg[32:64] # Key transformation key_from_pc2_bin=[] key_from_pc2_hex=[] for k in range(16): l=shift_left(l,shift_table[k]) r=shift_left(r,shift_table[k]) combine_key=l+r # permuted choice 2 round_key=initial_permutation(combine_key,perm_cho_2,48) key_from_pc2_bin.append(round_key) key_from_pc2_hex.append(bin_to_hexa(round_key)) # For decryption, just uncomment below two lines # key_from_pc2_bin=key_from_pc2_bin[::-1] # key_from_pc2_hex=key_from_pc2_hex[::-1] # Message transformation # Encryption print() print("Round: Left key part: Right key part: SubKey used:") for j in range(16): # Expansion Permutation right_expand=initial_permutation(right,expan_perm,48) xor_x=xor(right_expand,key_from_pc2_bin[j]) # calculating row and column from s box s_box_str="" for i in range(0,8): row=bin_to_dec(int(xor_x[i*6]+xor_x[i*6+5])) col=bin_to_dec(int(xor_x[i*6+1]+xor_x[i*6+2]+xor_x[i*6+3]+xor_x[i*6+4])) val=s_box[i][row][col] s_box_str=s_box_str+dec_to_bin(val) # towards permutation box s_box_str=initial_permutation(s_box_str,perm_table,32) # Now again XOR with left part and above result=xor(left,s_box_str) left=result # Swapping if(j!=15): left, right=right, left print(str(j+1).zfill(2)," ",bin_to_hexa(left)," ",bin_to_hexa(right)," ",key_from_pc2_hex[j]) # concatinating both left and right combine=left+right cipher_text=initial_permutation(combine,final_perm,64) return cipher_text # Padding function def pad(msg): if(len(msg)%16!=0): print("Padding required") for i in range(abs(16-(len(msg)%16))): msg=msg+'0' else: print("No padding required") return(msg) # Main function print("Enter the message to be encrypted: ") plain_text=input() plain_text=pad(plain_text) print("Message after padding: ", plain_text) print("Enter the 64bit key for encryption: ") key=input() key=pad(key) print("Key after padding: ",key) cipher_text=bin_to_hexa(encrypt(plain_text,key)) print("Cipher text is: ",cipher_text) ''' ----------OUTPUT---------- Enter the message to be encrypted: 536ABCD8910FF9 Padding required Message after padding: 536ABCD8910FF900 Enter the 64bit key for encryption: 74631BBDCA8 Padding required Key after padding: 74631BBDCA800000 Encryption Message after initial permutation: 4B5D24715C466E23 The converted 56bit key is: 00111000000100110000101100000001011000001001000111001101 Round: Left key part: Right key part: SubKey used: 01 5C466E23 6E81D6DE A289056D34C0 02 6E81D6DE 8F2C919D 8A34034AB231 03 8F2C919D 7C74DB60 69064C734D28 04 7C74DB60 69DDF400 40D08808191A 05 69DDF400 44AE2868 108972C57034 06 44AE2868 B2467F7F A46803610AE8 07 B2467F7F 458145D1 23270490981F 08 458145D1 488D0D53 4814910716B4 09 488D0D53 62E16561 494060887282 10 62E16561 0A6342EC 80C9B8746225 11 0A6342EC EA0DAA35 942303B208CA 12 EA0DAA35 7669590A 231E0184B313 13 7669590A 5706FABD 4930C4372660 14 5706FABD 29B656BD 10C4D8788942 15 29B656BD 31FA5C5F 54412204E41E 16 6A1A9764 31FA5C5F 16AB20801DC9 Cipher text is: 86760F7ABEE16B24 >>> ''' ''' For decryption, we have to add just two lines, which server the purpose of reversing the array, which stores the sub keys for different rounds For decryption, just we have to reverse the array which stores the sub keys: key_from_pc2_bin=key_from_pc2_bin[::-1] key_from_pc2_hex=key_from_pc2_hex[::-1] ''' ''' ----------OUTPUT---------- Enter the message to be decrypted: 86760F7ABEE16B24 No padding required Message after padding: 86760F7ABEE16B24 Enter the 64bit key for decryption: 74631BBDCA8 Padding required Key after padding: 74631BBDCA800000 Encryption Message after initial permutation: 6A1A976431FA5C5F The converted 56bit key is: 00111000000100110000101100000001011000001001000111001101 Round: Left key part: Right key part: SubKey used: 01 31FA5C5F 29B656BD 16AB20801DC9 02 29B656BD 5706FABD 54412204E41E 03 5706FABD 7669590A 10C4D8788942 04 7669590A EA0DAA35 4930C4372660 05 EA0DAA35 0A6342EC 231E0184B313 06 0A6342EC 62E16561 942303B208CA 07 62E16561 488D0D53 80C9B8746225 08 488D0D53 458145D1 494060887282 09 458145D1 B2467F7F 4814910716B4 10 B2467F7F 44AE2868 23270490981F 11 44AE2868 69DDF400 A46803610AE8 12 69DDF400 7C74DB60 108972C57034 13 7C74DB60 8F2C919D 40D08808191A 14 8F2C919D 6E81D6DE 69064C734D28 15 6E81D6DE 5C466E23 8A34034AB231 16 4B5D2471 5C466E23 A289056D34C0 Plain text is: 536ABCD8910FF900 >>> ''' ''' Took help from: https://www.geeksforgeeks.org/data-encryption-standard-des-set-1 Thanks for the help ! '''
s_box = [[[14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7], [0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8], [4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0], [15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13]], [[15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10], [3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5], [0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15], [13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9]], [[10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8], [13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1], [13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7], [1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12]], [[7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15], [13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9], [10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4], [3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14]], [[2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9], [14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6], [4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14], [11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3]], [[12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11], [10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8], [9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6], [4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13]], [[4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1], [13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6], [1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2], [6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12]], [[13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7], [1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2], [7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8], [2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11]]] shift_table = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1] initial_perm = [58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 39, 31, 23, 15, 7] perm_cho_1 = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4] perm_cho_2 = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32] expan_perm = [32, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 8, 9, 10, 11, 12, 13, 12, 13, 14, 15, 16, 17, 16, 17, 18, 19, 20, 21, 20, 21, 22, 23, 24, 25, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 1] perm_table = [16, 7, 20, 21, 29, 12, 28, 17, 1, 15, 23, 26, 5, 18, 31, 10, 2, 8, 24, 14, 32, 27, 3, 9, 19, 13, 30, 6, 22, 11, 4, 25] final_perm = [40, 8, 48, 16, 56, 24, 64, 32, 39, 7, 47, 15, 55, 23, 63, 31, 38, 6, 46, 14, 54, 22, 62, 30, 37, 5, 45, 13, 53, 21, 61, 29, 36, 4, 44, 12, 52, 20, 60, 28, 35, 3, 43, 11, 51, 19, 59, 27, 34, 2, 42, 10, 50, 18, 58, 26, 33, 1, 41, 9, 49, 17, 57, 25] def xor(a, b): ans = '' for i in range(len(a)): if a[i] == b[i]: ans = ans + '0' else: ans = ans + '1' return ans def hexa_to_bin(msg): mp = {'0': '0000', '1': '0001', '2': '0010', '3': '0011', '4': '0100', '5': '0101', '6': '0110', '7': '0111', '8': '1000', '9': '1001', 'A': '1010', 'B': '1011', 'C': '1100', 'D': '1101', 'E': '1110', 'F': '1111'} bin = '' for i in range(len(msg)): bin = bin + mp[msg[i]] return bin def bin_to_hexa(msg): mp = {'0000': '0', '0001': '1', '0010': '2', '0011': '3', '0100': '4', '0101': '5', '0110': '6', '0111': '7', '1000': '8', '1001': '9', '1010': 'A', '1011': 'B', '1100': 'C', '1101': 'D', '1110': 'E', '1111': 'F'} hex = '' for i in range(0, len(msg), 4): ch = '' ch = ch + msg[i] ch = ch + msg[i + 1] ch = ch + msg[i + 2] ch = ch + msg[i + 3] hex = hex + mp[ch] return hex def bin_to_dec(msg): (decimal, i) = (0, 0) while msg != 0: dec = msg % 10 decimal = decimal + dec * pow(2, i) msg = msg // 10 i += 1 return decimal def dec_to_bin(num): res = bin(num).replace('0b', '') if len(res) % 4 != 0: div = len(res) / 4 div = int(div) counter = 4 * (div + 1) - len(res) for i in range(0, counter): res = '0' + res return res def shift_left(key, nth_shifts): s = '' for i in range(nth_shifts): for j in range(1, len(key)): s = s + key[j] s = s + key[0] key = s s = '' return key def initial_permutation(plain_text, initial_perm, no_bits): permutation = '' for i in range(0, no_bits): permutation = permutation + plain_text[initial_perm[i] - 1] return permutation def encrypt(msg, key): print('Encryption') msg = hexa_to_bin(msg) msg = initial_permutation(msg, initial_perm, 64) print('Message after initial permutation: ', bin_to_hexa(msg)) key = hexa_to_bin(key) key = initial_permutation(key, perm_cho_1, 56) print('The converted 56bit key is: ', key) l = key[0:28] r = key[28:56] left = msg[0:32] right = msg[32:64] key_from_pc2_bin = [] key_from_pc2_hex = [] for k in range(16): l = shift_left(l, shift_table[k]) r = shift_left(r, shift_table[k]) combine_key = l + r round_key = initial_permutation(combine_key, perm_cho_2, 48) key_from_pc2_bin.append(round_key) key_from_pc2_hex.append(bin_to_hexa(round_key)) print() print('Round: Left key part: Right key part: SubKey used:') for j in range(16): right_expand = initial_permutation(right, expan_perm, 48) xor_x = xor(right_expand, key_from_pc2_bin[j]) s_box_str = '' for i in range(0, 8): row = bin_to_dec(int(xor_x[i * 6] + xor_x[i * 6 + 5])) col = bin_to_dec(int(xor_x[i * 6 + 1] + xor_x[i * 6 + 2] + xor_x[i * 6 + 3] + xor_x[i * 6 + 4])) val = s_box[i][row][col] s_box_str = s_box_str + dec_to_bin(val) s_box_str = initial_permutation(s_box_str, perm_table, 32) result = xor(left, s_box_str) left = result if j != 15: (left, right) = (right, left) print(str(j + 1).zfill(2), ' ', bin_to_hexa(left), ' ', bin_to_hexa(right), ' ', key_from_pc2_hex[j]) combine = left + right cipher_text = initial_permutation(combine, final_perm, 64) return cipher_text def pad(msg): if len(msg) % 16 != 0: print('Padding required') for i in range(abs(16 - len(msg) % 16)): msg = msg + '0' else: print('No padding required') return msg print('Enter the message to be encrypted: ') plain_text = input() plain_text = pad(plain_text) print('Message after padding: ', plain_text) print('Enter the 64bit key for encryption: ') key = input() key = pad(key) print('Key after padding: ', key) cipher_text = bin_to_hexa(encrypt(plain_text, key)) print('Cipher text is: ', cipher_text) '\n----------OUTPUT----------\nEnter the message to be encrypted: \n536ABCD8910FF9\nPadding required\nMessage after padding: 536ABCD8910FF900\nEnter the 64bit key for encryption: \n74631BBDCA8\nPadding required\nKey after padding: 74631BBDCA800000\nEncryption\nMessage after initial permutation: 4B5D24715C466E23\nThe converted 56bit key is: 00111000000100110000101100000001011000001001000111001101\n\nRound: Left key part: Right key part: SubKey used:\n01 5C466E23 6E81D6DE A289056D34C0\n02 6E81D6DE 8F2C919D 8A34034AB231\n03 8F2C919D 7C74DB60 69064C734D28\n04 7C74DB60 69DDF400 40D08808191A\n05 69DDF400 44AE2868 108972C57034\n06 44AE2868 B2467F7F A46803610AE8\n07 B2467F7F 458145D1 23270490981F\n08 458145D1 488D0D53 4814910716B4\n09 488D0D53 62E16561 494060887282\n10 62E16561 0A6342EC 80C9B8746225\n11 0A6342EC EA0DAA35 942303B208CA\n12 EA0DAA35 7669590A 231E0184B313\n13 7669590A 5706FABD 4930C4372660\n14 5706FABD 29B656BD 10C4D8788942\n15 29B656BD 31FA5C5F 54412204E41E\n16 6A1A9764 31FA5C5F 16AB20801DC9\nCipher text is: 86760F7ABEE16B24\n>>> \n' '\nFor decryption, we have to add just two lines, which server the purpose of \nreversing the array, which stores the sub keys for different rounds\n\nFor decryption, just we have to reverse the array which stores the sub keys:\nkey_from_pc2_bin=key_from_pc2_bin[::-1]\nkey_from_pc2_hex=key_from_pc2_hex[::-1]\n' '\n----------OUTPUT----------\nEnter the message to be decrypted: \n86760F7ABEE16B24\nNo padding required\nMessage after padding: 86760F7ABEE16B24\nEnter the 64bit key for decryption: \n74631BBDCA8\nPadding required\nKey after padding: 74631BBDCA800000\nEncryption\nMessage after initial permutation: 6A1A976431FA5C5F\nThe converted 56bit key is: 00111000000100110000101100000001011000001001000111001101\nRound: Left key part: Right key part: SubKey used:\n01 31FA5C5F 29B656BD 16AB20801DC9\n02 29B656BD 5706FABD 54412204E41E\n03 5706FABD 7669590A 10C4D8788942\n04 7669590A EA0DAA35 4930C4372660\n05 EA0DAA35 0A6342EC 231E0184B313\n06 0A6342EC 62E16561 942303B208CA\n07 62E16561 488D0D53 80C9B8746225\n08 488D0D53 458145D1 494060887282\n09 458145D1 B2467F7F 4814910716B4\n10 B2467F7F 44AE2868 23270490981F\n11 44AE2868 69DDF400 A46803610AE8\n12 69DDF400 7C74DB60 108972C57034\n13 7C74DB60 8F2C919D 40D08808191A\n14 8F2C919D 6E81D6DE 69064C734D28\n15 6E81D6DE 5C466E23 8A34034AB231\n16 4B5D2471 5C466E23 A289056D34C0\nPlain text is: 536ABCD8910FF900\n>>> \n' '\nTook help from: https://www.geeksforgeeks.org/data-encryption-standard-des-set-1\nThanks for the help !\n'
# Split target image into an MxN grid def splitImage(image, size): W, H = image.size[0], image.size[1] m, n = size w, h = int(W/n), int(H/m) imgs = [] for j in range(m): for i in range(n): # append cropped image imgs.append(image.crop((i*w, j*h, (i+1)*w, (j+1)*h))) return imgs
def split_image(image, size): (w, h) = (image.size[0], image.size[1]) (m, n) = size (w, h) = (int(W / n), int(H / m)) imgs = [] for j in range(m): for i in range(n): imgs.append(image.crop((i * w, j * h, (i + 1) * w, (j + 1) * h))) return imgs
def is_vowel(s: str) -> bool: if len(s) == 0 or len(s) > 1: return False vowel = ["a", "e", "i", "o", "u"] for item in s: if item.lower() in vowel: return True return False
def is_vowel(s: str) -> bool: if len(s) == 0 or len(s) > 1: return False vowel = ['a', 'e', 'i', 'o', 'u'] for item in s: if item.lower() in vowel: return True return False
# content of test_sample.py def func(x): return x + 2 def test_answer(): assert func(3) == 5 def test_2(): assert func(10) == 12
def func(x): return x + 2 def test_answer(): assert func(3) == 5 def test_2(): assert func(10) == 12
''' Created on Aug 7, 2017 @author: duncan ''' class Subscriber(object): def __init__(self, subscriber_id, subscriber_email): self.subscriber_id = subscriber_id self.subscriber_email = subscriber_email class Site(object): def __init__(self, site_id, site_name): self.site_id = site_id self.site_name = site_name class Keyword(object): def __init__(self, keyword_id, keyword_name): self.keyword_id = keyword_id self.keyword_name = keyword_name class Subscription(): def __init__(self, site, keyword, subscription_group_id=None, subscriber=None, page_limit=1, minimum_alert=1): ''' Constructor ''' self.subscriber = subscriber self.site = site self.keyword = keyword self.page_limit = page_limit self.minimum_alert = minimum_alert self.subscription_group_id = subscription_group_id
""" Created on Aug 7, 2017 @author: duncan """ class Subscriber(object): def __init__(self, subscriber_id, subscriber_email): self.subscriber_id = subscriber_id self.subscriber_email = subscriber_email class Site(object): def __init__(self, site_id, site_name): self.site_id = site_id self.site_name = site_name class Keyword(object): def __init__(self, keyword_id, keyword_name): self.keyword_id = keyword_id self.keyword_name = keyword_name class Subscription: def __init__(self, site, keyword, subscription_group_id=None, subscriber=None, page_limit=1, minimum_alert=1): """ Constructor """ self.subscriber = subscriber self.site = site self.keyword = keyword self.page_limit = page_limit self.minimum_alert = minimum_alert self.subscription_group_id = subscription_group_id
# 2. Use the function to compute the square of all numbers of a given list def squares(a): squared = a*a return squared li = [1, 2, 3, 4, 5] lisq=[] for el in li: sq = squares(el) lisq.append(sq) print(lisq)
def squares(a): squared = a * a return squared li = [1, 2, 3, 4, 5] lisq = [] for el in li: sq = squares(el) lisq.append(sq) print(lisq)
# coding: utf-8 __author__ = 'Keita Tomochika' __version__ = '0.0.1' __license__ = 'MIT'
__author__ = 'Keita Tomochika' __version__ = '0.0.1' __license__ = 'MIT'
# Subject - the one to be observed # Observers - the one monitoring or observing the subject for changes class Subject: def __init__(self): self.__observers = [] def register(self, observer): self.__observers.append(observer) def notifyAll(self, *args, **kwargs): for observer in self.__observers: observer.notify(self, *args, **kwargs) class Observer1: def __init__(self, subject): subject.register(self) def notify(self, subject, *args): pass class Observer2: def __init__(self, subject): subject.register(self) def notify(self, subject, *args): pass subject = Subject() observer1 = Observer1(subject) Observer2 = Observer2(subject) subject.notifyAll("notification")
class Subject: def __init__(self): self.__observers = [] def register(self, observer): self.__observers.append(observer) def notify_all(self, *args, **kwargs): for observer in self.__observers: observer.notify(self, *args, **kwargs) class Observer1: def __init__(self, subject): subject.register(self) def notify(self, subject, *args): pass class Observer2: def __init__(self, subject): subject.register(self) def notify(self, subject, *args): pass subject = subject() observer1 = observer1(subject) observer2 = observer2(subject) subject.notifyAll('notification')
def galoisMult(a, b): ''' The parameter b will be either 1, 2 or 3. Multiplication by 3 is defined as multiplication by 2 then adding the original value. For example 3x6 is equivalent to 2x6+6. The multiplication by 2 is done with a left shift (a <<= 1) and dropping the MSB. If that bit had been a 1 then remainder after dividing by the irreducible polynomial 00011011 (1b). This polynomial is described in the literature as a 9 bit value 100011011, or in its Galois form x8 + x4 + x3 + x1 + 1 :param a: the original value to be multiplied. :param b: the value to be multiplied by :return: the result ''' result = 0 for i in range(b): # This needs to run once for x1, twice for x2 and thrice for x3 if b & 1 == 1: # If the LSB is 1. This will happen with x1 and x3 result ^= a # Add the original value to result. This is the + part of x3 = x2 +1 hiBitSet = a & 0x80 # Before doing x2 check to see if a is > 128 a <<= 1 # Do x2 a &= 0xff # reduce 9 bit numbers to 8 bit if hiBitSet == 0x80: # If the original value of a was > 128 then the result is > 256 so reduce. a ^= 0x1b # XOR with the irreducible polynomial b >>= 1 # Rotate b return result if __name__ == '__main__': #print(hex(galoisMult(0xa0, 1))) # a0 #print(hex(galoisMult(0xd4, 2))) # b3 #print(hex(galoisMult(0xbf, 3))) # da print(hex(galoisMult(0x7f, 0))) print(hex(galoisMult(0x7f, 1))) print(hex(galoisMult(0x7f, 2))) print(hex(galoisMult(0x7f, 3)))
def galois_mult(a, b): """ The parameter b will be either 1, 2 or 3. Multiplication by 3 is defined as multiplication by 2 then adding the original value. For example 3x6 is equivalent to 2x6+6. The multiplication by 2 is done with a left shift (a <<= 1) and dropping the MSB. If that bit had been a 1 then remainder after dividing by the irreducible polynomial 00011011 (1b). This polynomial is described in the literature as a 9 bit value 100011011, or in its Galois form x8 + x4 + x3 + x1 + 1 :param a: the original value to be multiplied. :param b: the value to be multiplied by :return: the result """ result = 0 for i in range(b): if b & 1 == 1: result ^= a hi_bit_set = a & 128 a <<= 1 a &= 255 if hiBitSet == 128: a ^= 27 b >>= 1 return result if __name__ == '__main__': print(hex(galois_mult(127, 0))) print(hex(galois_mult(127, 1))) print(hex(galois_mult(127, 2))) print(hex(galois_mult(127, 3)))
diff_counter = 0 A = input() B = input() for i in range(len(A)): if A[i] != B[i]: diff_counter += 1 if diff_counter > 1: print("LARRY IS DEAD!") elif diff_counter == 1: print("LARRY IS SAVED!") else: print("LARRY IS DEAD!")
diff_counter = 0 a = input() b = input() for i in range(len(A)): if A[i] != B[i]: diff_counter += 1 if diff_counter > 1: print('LARRY IS DEAD!') elif diff_counter == 1: print('LARRY IS SAVED!') else: print('LARRY IS DEAD!')