content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class FindSumPairs: def __init__(self, nums1: List[int], nums2: List[int]): self.nums1 = nums1 self.nums2 = nums2 self.count2 = Counter(nums2) def add(self, index: int, val: int) -> None: self.count2[self.nums2[index]] -= 1 self.nums2[index] += val self.count2[self.nums2[index]] += 1 def count(self, tot: int) -> int: ans = 0 for num in self.nums1: ans += self.count2[tot - num] return ans
class Findsumpairs: def __init__(self, nums1: List[int], nums2: List[int]): self.nums1 = nums1 self.nums2 = nums2 self.count2 = counter(nums2) def add(self, index: int, val: int) -> None: self.count2[self.nums2[index]] -= 1 self.nums2[index] += val self.count2[self.nums2[index]] += 1 def count(self, tot: int) -> int: ans = 0 for num in self.nums1: ans += self.count2[tot - num] return ans
def main(request, response): name = request.GET.first("name") source_origin = request.headers.get("origin", None); response.headers.set("Set-Cookie", name + "=value") response.headers.set("Access-Control-Allow-Origin", source_origin) response.headers.set("Access-Control-Allow-Credentials", "true")
def main(request, response): name = request.GET.first('name') source_origin = request.headers.get('origin', None) response.headers.set('Set-Cookie', name + '=value') response.headers.set('Access-Control-Allow-Origin', source_origin) response.headers.set('Access-Control-Allow-Credentials', 'true')
__all__ = ("InputDataError",) class InputDataError(ValueError): pass
__all__ = ('InputDataError',) class Inputdataerror(ValueError): pass
# 04. Forum Topics line = input() forum_dict = {} # def unique(sequence): # seen = set() # return [x for x in sequence if not(x in seen or seen.add(x))] while not line == "filter": words = line.split(" -> ") topic = words[0] hashtags = words[1].split(", ") if topic not in forum_dict.keys(): forum_dict[topic] = hashtags else: forum_dict[topic].extend(hashtags) line = input() sequence = set(input().split(', ')) for topic, hashtags in forum_dict.items(): ht_set = sorted(set(hashtags), key= hashtags.index) if sequence.issubset(ht_set): print(f"{topic} | {', '.join(map(lambda x: '#' + x, ht_set))}")
line = input() forum_dict = {} while not line == 'filter': words = line.split(' -> ') topic = words[0] hashtags = words[1].split(', ') if topic not in forum_dict.keys(): forum_dict[topic] = hashtags else: forum_dict[topic].extend(hashtags) line = input() sequence = set(input().split(', ')) for (topic, hashtags) in forum_dict.items(): ht_set = sorted(set(hashtags), key=hashtags.index) if sequence.issubset(ht_set): print(f"{topic} | {', '.join(map(lambda x: '#' + x, ht_set))}")
n=int(input())%2 if n==0: print("White") else: print("Black")
n = int(input()) % 2 if n == 0: print('White') else: print('Black')
{ 'targets' : [ { 'target_name' : 'hdfs3_bindings', 'sources' : [ 'src/addon.cc', 'src/HDFileSystem.cc', 'src/HDFile.cc' ], 'xcode_settings': { 'OTHER_CFLAGS': ['-Wno-unused-parameter', '-Wno-unused-result'] }, 'cflags' : ['-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-result'], 'include_dirs': [ "<!(node -e \"require('nan')\")" ], 'conditions' : [ [ 'OS == "linux"', { 'libraries' : [ '-lhdfs3' ], 'cflags' : [ '-g' ] }], [ 'OS == "mac"', { 'libraries' : [ '-lhdfs3' ] } ] ] } ] }
{'targets': [{'target_name': 'hdfs3_bindings', 'sources': ['src/addon.cc', 'src/HDFileSystem.cc', 'src/HDFile.cc'], 'xcode_settings': {'OTHER_CFLAGS': ['-Wno-unused-parameter', '-Wno-unused-result']}, 'cflags': ['-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-result'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'conditions': [['OS == "linux"', {'libraries': ['-lhdfs3'], 'cflags': ['-g']}], ['OS == "mac"', {'libraries': ['-lhdfs3']}]]}]}
expected_output = { "max_num_of_service_instances": 32768, "service_instance": { 2051: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2052: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2053: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2054: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2055: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2056: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2057: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2058: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2059: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2060: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2061: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2062: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2063: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2064: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2065: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2066: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2067: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2068: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2069: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2070: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2071: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2072: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2073: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2074: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2075: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2076: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2077: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2078: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2079: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2080: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2081: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2082: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2083: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2084: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2085: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2086: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2087: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2088: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2089: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2090: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, 2091: { "pkts_out": 0, "pkts_in": 0, "interface": "GigabitEthernet0/0/5", "bytes_in": 0, "bytes_out": 0, }, }, }
expected_output = {'max_num_of_service_instances': 32768, 'service_instance': {2051: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2052: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2053: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2054: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2055: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2056: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2057: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2058: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2059: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2060: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2061: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2062: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2063: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2064: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2065: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2066: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2067: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2068: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2069: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2070: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2071: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2072: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2073: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2074: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2075: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2076: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2077: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2078: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2079: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2080: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2081: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2082: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2083: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2084: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2085: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2086: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2087: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2088: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2089: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2090: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}, 2091: {'pkts_out': 0, 'pkts_in': 0, 'interface': 'GigabitEthernet0/0/5', 'bytes_in': 0, 'bytes_out': 0}}}
def lazy_property(fn): """ Convert function into a property where the function is only called the first time the property is accessed """ varName = "__{0}".format(fn.__name__) def lazyLoad(self): if not hasattr(self, varName): setattr(self, varName, fn(self)) return getattr(self, varName) return property(lazyLoad)
def lazy_property(fn): """ Convert function into a property where the function is only called the first time the property is accessed """ var_name = '__{0}'.format(fn.__name__) def lazy_load(self): if not hasattr(self, varName): setattr(self, varName, fn(self)) return getattr(self, varName) return property(lazyLoad)
STD_GAS_PRICE = int(3e9) # 3gwei def autofund_account(web3, address, value): """ Automatically fund an account """ assert isinstance(value, int) net_id = int(web3.net.version) balance = web3.eth.getBalance(address) if net_id > 100: # If this is the test network, make sure our deployment account is # funded if balance == 0: tx = web3.eth.sendTransaction({ 'from': web3.eth.accounts[0], # The pre-funded test account 'to': address, 'value': value, 'gasPrice': STD_GAS_PRICE, }) receipt = web3.eth.waitForTransactionReceipt(tx) assert receipt.status == 1, "Funding deployer_account failed" balance = web3.eth.getBalance(address) assert balance >= value, "Funding of deployer_account too low" else: # Make sure deployer account has at least 0.5 ether assert balance > int(5e17), ( "deployer account needs to be funded. want: {}. has: {}".format( int(5e17), balance ) ) def main(web3, contracts, deployer_account): # Fund the deployer account if necessary(test networks only) autofund_account(web3, deployer_account, int(1e18)) # Deploy GasVariation GasVariation = contracts.get('GasVariation') gv = GasVariation.deployed() assert gv.address is not None GasVariationCaller = contracts.get('GasVariationCaller') gvc = GasVariationCaller.deployed(gv.address) assert gvc.address is not None DumbContract = contracts.get('DumbContract') dumb = DumbContract.deployed() assert dumb.address is not None
std_gas_price = int(3000000000.0) def autofund_account(web3, address, value): """ Automatically fund an account """ assert isinstance(value, int) net_id = int(web3.net.version) balance = web3.eth.getBalance(address) if net_id > 100: if balance == 0: tx = web3.eth.sendTransaction({'from': web3.eth.accounts[0], 'to': address, 'value': value, 'gasPrice': STD_GAS_PRICE}) receipt = web3.eth.waitForTransactionReceipt(tx) assert receipt.status == 1, 'Funding deployer_account failed' balance = web3.eth.getBalance(address) assert balance >= value, 'Funding of deployer_account too low' else: assert balance > int(5e+17), 'deployer account needs to be funded. want: {}. has: {}'.format(int(5e+17), balance) def main(web3, contracts, deployer_account): autofund_account(web3, deployer_account, int(1e+18)) gas_variation = contracts.get('GasVariation') gv = GasVariation.deployed() assert gv.address is not None gas_variation_caller = contracts.get('GasVariationCaller') gvc = GasVariationCaller.deployed(gv.address) assert gvc.address is not None dumb_contract = contracts.get('DumbContract') dumb = DumbContract.deployed() assert dumb.address is not None
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # """ Project Name: 'lan-map' Version: 0.1 Description: Network map creation application Ihor Cheberiak (c) 2021 https://www.linkedin.com/in/ihor-cheberiak/ """ class ButtonMainWindow: def __init__(self, main_gui) -> None: self.main_window = main_gui def button_new_device(self) -> None: self.main_window.gui_new_device_controller.show() def button_edit_device(self) -> None: self.main_window.gui_main_windows.pushButton_3.setDisabled(True) def button_delete_device(self) -> None: self.main_window.gui_main_windows.pushButton_4.setDisabled(True) def button_network_map(self) -> None: self.main_window.gui_main_windows.pushButton_5.setDisabled(True)
""" Project Name: 'lan-map' Version: 0.1 Description: Network map creation application Ihor Cheberiak (c) 2021 https://www.linkedin.com/in/ihor-cheberiak/ """ class Buttonmainwindow: def __init__(self, main_gui) -> None: self.main_window = main_gui def button_new_device(self) -> None: self.main_window.gui_new_device_controller.show() def button_edit_device(self) -> None: self.main_window.gui_main_windows.pushButton_3.setDisabled(True) def button_delete_device(self) -> None: self.main_window.gui_main_windows.pushButton_4.setDisabled(True) def button_network_map(self) -> None: self.main_window.gui_main_windows.pushButton_5.setDisabled(True)
# Generated by h2py from /usr/include/sys/socket.h NC_TPI_CLTS = 1 NC_TPI_COTS = 2 NC_TPI_COTS_ORD = 3 NC_TPI_RAW = 4 SOCK_STREAM = NC_TPI_COTS SOCK_DGRAM = NC_TPI_CLTS SOCK_RAW = NC_TPI_RAW SOCK_RDM = 5 SOCK_SEQPACKET = 6 SO_DEBUG = 0x0001 SO_ACCEPTCONN = 0x0002 SO_REUSEADDR = 0x0004 SO_KEEPALIVE = 0x0008 SO_DONTROUTE = 0x0010 SO_BROADCAST = 0x0020 SO_USELOOPBACK = 0x0040 SO_LINGER = 0x0080 SO_OOBINLINE = 0x0100 SO_DONTLINGER = (~SO_LINGER) SO_SNDBUF = 0x1001 SO_RCVBUF = 0x1002 SO_SNDLOWAT = 0x1003 SO_RCVLOWAT = 0x1004 SO_SNDTIMEO = 0x1005 SO_RCVTIMEO = 0x1006 SO_ERROR = 0x1007 SO_TYPE = 0x1008 SO_PROTOTYPE = 0x1009 SOL_SOCKET = 0xffff AF_UNSPEC = 0 AF_UNIX = 1 AF_INET = 2 AF_IMPLINK = 3 AF_PUP = 4 AF_CHAOS = 5 AF_NS = 6 AF_NBS = 7 AF_ECMA = 8 AF_DATAKIT = 9 AF_CCITT = 10 AF_SNA = 11 AF_DECnet = 12 AF_DLI = 13 AF_LAT = 14 AF_HYLINK = 15 AF_APPLETALK = 16 AF_NIT = 17 AF_802 = 18 AF_OSI = 19 AF_X25 = 20 AF_OSINET = 21 AF_GOSIP = 22 AF_MAX = 22 PF_UNSPEC = AF_UNSPEC PF_UNIX = AF_UNIX PF_INET = AF_INET PF_IMPLINK = AF_IMPLINK PF_PUP = AF_PUP PF_CHAOS = AF_CHAOS PF_NS = AF_NS PF_NBS = AF_NBS PF_ECMA = AF_ECMA PF_DATAKIT = AF_DATAKIT PF_CCITT = AF_CCITT PF_SNA = AF_SNA PF_DECnet = AF_DECnet PF_DLI = AF_DLI PF_LAT = AF_LAT PF_HYLINK = AF_HYLINK PF_APPLETALK = AF_APPLETALK PF_NIT = AF_NIT PF_802 = AF_802 PF_OSI = AF_OSI PF_X25 = AF_X25 PF_OSINET = AF_OSINET PF_GOSIP = AF_GOSIP PF_MAX = AF_MAX SOMAXCONN = 5 MSG_OOB = 0x1 MSG_PEEK = 0x2 MSG_DONTROUTE = 0x4 MSG_MAXIOVLEN = 16 SOCKETSYS = 88 SOCKETSYS = 83 SO_ACCEPT = 1 SO_BIND = 2 SO_CONNECT = 3 SO_GETPEERNAME = 4 SO_GETSOCKNAME = 5 SO_GETSOCKOPT = 6 SO_LISTEN = 7 SO_RECV = 8 SO_RECVFROM = 9 SO_SEND = 10 SO_SENDTO = 11 SO_SETSOCKOPT = 12 SO_SHUTDOWN = 13 SO_SOCKET = 14 SO_SOCKPOLL = 15 SO_GETIPDOMAIN = 16 SO_SETIPDOMAIN = 17 SO_ADJTIME = 18
nc_tpi_clts = 1 nc_tpi_cots = 2 nc_tpi_cots_ord = 3 nc_tpi_raw = 4 sock_stream = NC_TPI_COTS sock_dgram = NC_TPI_CLTS sock_raw = NC_TPI_RAW sock_rdm = 5 sock_seqpacket = 6 so_debug = 1 so_acceptconn = 2 so_reuseaddr = 4 so_keepalive = 8 so_dontroute = 16 so_broadcast = 32 so_useloopback = 64 so_linger = 128 so_oobinline = 256 so_dontlinger = ~SO_LINGER so_sndbuf = 4097 so_rcvbuf = 4098 so_sndlowat = 4099 so_rcvlowat = 4100 so_sndtimeo = 4101 so_rcvtimeo = 4102 so_error = 4103 so_type = 4104 so_prototype = 4105 sol_socket = 65535 af_unspec = 0 af_unix = 1 af_inet = 2 af_implink = 3 af_pup = 4 af_chaos = 5 af_ns = 6 af_nbs = 7 af_ecma = 8 af_datakit = 9 af_ccitt = 10 af_sna = 11 af_de_cnet = 12 af_dli = 13 af_lat = 14 af_hylink = 15 af_appletalk = 16 af_nit = 17 af_802 = 18 af_osi = 19 af_x25 = 20 af_osinet = 21 af_gosip = 22 af_max = 22 pf_unspec = AF_UNSPEC pf_unix = AF_UNIX pf_inet = AF_INET pf_implink = AF_IMPLINK pf_pup = AF_PUP pf_chaos = AF_CHAOS pf_ns = AF_NS pf_nbs = AF_NBS pf_ecma = AF_ECMA pf_datakit = AF_DATAKIT pf_ccitt = AF_CCITT pf_sna = AF_SNA pf_de_cnet = AF_DECnet pf_dli = AF_DLI pf_lat = AF_LAT pf_hylink = AF_HYLINK pf_appletalk = AF_APPLETALK pf_nit = AF_NIT pf_802 = AF_802 pf_osi = AF_OSI pf_x25 = AF_X25 pf_osinet = AF_OSINET pf_gosip = AF_GOSIP pf_max = AF_MAX somaxconn = 5 msg_oob = 1 msg_peek = 2 msg_dontroute = 4 msg_maxiovlen = 16 socketsys = 88 socketsys = 83 so_accept = 1 so_bind = 2 so_connect = 3 so_getpeername = 4 so_getsockname = 5 so_getsockopt = 6 so_listen = 7 so_recv = 8 so_recvfrom = 9 so_send = 10 so_sendto = 11 so_setsockopt = 12 so_shutdown = 13 so_socket = 14 so_sockpoll = 15 so_getipdomain = 16 so_setipdomain = 17 so_adjtime = 18
""" Write an algorithm to determine if a number n is happy. A happy number is a number defined by the following process: - Starting with any positive integer, replace the number by the sum of the squares of its digits. - Repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle without 1. - Those numbers for which this process ends in 1 are happy. Example 1: Input: n = 19, Output: true Explanation: 1^2 + 9^2 = 82 8^2 + 2^2 = 68 6^2 + 8^2 = 100 1^2 + 0^2 + 0^2 = 1 Example 2: Input: n = 2 Output: false Explanation: 2^2 = 4 4^2 = 16 1^2 + 6^2 = 37 3^2 + 7^2 = 58 5^2 + 8^2 = 89 8^2 + 9^2 = 145 1^2 + 4^2 + 5^2 = 42 4^2 + 2^2 = 20 2^2 + 0^2 = 4 <-- cycle without 1 """ """ We repeatedly perform the 'happy' determination for each number, then add it to a set, until we find a number we have seen before. If this number is a 1, the overall number is happy. """ def is_happy(n): seen = set() while n not in seen: seen.add(n) new_n = 0 for char in str(n): new_n += int(char) ** 2 n = new_n return n == 1 assert is_happy(19) is True assert is_happy(2) is False
""" Write an algorithm to determine if a number n is happy. A happy number is a number defined by the following process: - Starting with any positive integer, replace the number by the sum of the squares of its digits. - Repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle without 1. - Those numbers for which this process ends in 1 are happy. Example 1: Input: n = 19, Output: true Explanation: 1^2 + 9^2 = 82 8^2 + 2^2 = 68 6^2 + 8^2 = 100 1^2 + 0^2 + 0^2 = 1 Example 2: Input: n = 2 Output: false Explanation: 2^2 = 4 4^2 = 16 1^2 + 6^2 = 37 3^2 + 7^2 = 58 5^2 + 8^2 = 89 8^2 + 9^2 = 145 1^2 + 4^2 + 5^2 = 42 4^2 + 2^2 = 20 2^2 + 0^2 = 4 <-- cycle without 1 """ "\nWe repeatedly perform the 'happy' determination for each number, then add it to a set, until we find a number we have\nseen before. If this number is a 1, the overall number is happy.\n" def is_happy(n): seen = set() while n not in seen: seen.add(n) new_n = 0 for char in str(n): new_n += int(char) ** 2 n = new_n return n == 1 assert is_happy(19) is True assert is_happy(2) is False
pkgname = "xev" pkgver = "1.2.4" pkgrel = 0 build_style = "gnu_configure" hostmakedepends = ["pkgconf"] makedepends = ["libxrandr-devel"] pkgdesc = "Display X events" maintainer = "q66 <q66@chimera-linux.org>" license = "MIT" url = "https://xorg.freedesktop.org" source = f"$(XORG_SITE)/app/{pkgname}-{pkgver}.tar.bz2" sha256 = "d700e08bfe751ed2dbf802baa204b056d0e49348b6eb3c6f9cb035d8ae4885e2" def post_install(self): self.install_license("COPYING")
pkgname = 'xev' pkgver = '1.2.4' pkgrel = 0 build_style = 'gnu_configure' hostmakedepends = ['pkgconf'] makedepends = ['libxrandr-devel'] pkgdesc = 'Display X events' maintainer = 'q66 <q66@chimera-linux.org>' license = 'MIT' url = 'https://xorg.freedesktop.org' source = f'$(XORG_SITE)/app/{pkgname}-{pkgver}.tar.bz2' sha256 = 'd700e08bfe751ed2dbf802baa204b056d0e49348b6eb3c6f9cb035d8ae4885e2' def post_install(self): self.install_license('COPYING')
""" These settings are only needed if you are planning to push to S3, GitHub or data.world. If you only are only saving to local files, then these are not needed. """ S3_BUCKETS = { # 'bucket': name of the bucket # 'key': syntax: a_folder/another_folder # # For the 'scrub' bucket, one sub-folder named 'data' is created # For the 'raw' bucket, two sub-folders are created: 'original-files' & 'raw-data' 'scrub': {'bucket': 'THE_PUBLIC_BUCKET_TO_SAVE_TO', 'key': 'THE_DIRECTORY_TO_SAVE_TO'}, 'raw': {'bucket': 'THE_PRIVATE_BUCKET_TO_SAVE_TO', 'key': 'THE_DIRECTORY_TO_SAVE_TO'} } GITHUB_API_TOKEN = 'YOUR_GITHUB_TOKEN_HERE' GITHUB_REPOS = { # 'name': syntax: repo_owner/repo_name 'scrub': {'name': 'THE_PUBLIC_REPO_YOU_WANT_TO_PUSH_TO', 'branch': 'THE_BRANCH_YOU_WANT_TO_PUSH_TO'}, 'raw': {'name': 'THE_PRIVATE_REPO_YOU_WANT_TO_PUSH_TO', 'branch': 'THE_BRANCH_YOU_WANT_TO_PUSH_TO'} } DATAWORLD_API_TOKEN = 'YOUR_DATAWORLD_TOKEN_HERE' DATAWORLD_DATASETS = { 'scrub': {'owner': 'DATASET_OWNER', 'name': 'THE_PUBLIC_DATASET_YOU_WANT_TO_PUSH_TO'}, 'raw': {'owner': 'DATASET_OWNER', 'name': 'THE_PRIVATE_DATASET_YOU_WANT_TO_PUSH_TO'} }
""" These settings are only needed if you are planning to push to S3, GitHub or data.world. If you only are only saving to local files, then these are not needed. """ s3_buckets = {'scrub': {'bucket': 'THE_PUBLIC_BUCKET_TO_SAVE_TO', 'key': 'THE_DIRECTORY_TO_SAVE_TO'}, 'raw': {'bucket': 'THE_PRIVATE_BUCKET_TO_SAVE_TO', 'key': 'THE_DIRECTORY_TO_SAVE_TO'}} github_api_token = 'YOUR_GITHUB_TOKEN_HERE' github_repos = {'scrub': {'name': 'THE_PUBLIC_REPO_YOU_WANT_TO_PUSH_TO', 'branch': 'THE_BRANCH_YOU_WANT_TO_PUSH_TO'}, 'raw': {'name': 'THE_PRIVATE_REPO_YOU_WANT_TO_PUSH_TO', 'branch': 'THE_BRANCH_YOU_WANT_TO_PUSH_TO'}} dataworld_api_token = 'YOUR_DATAWORLD_TOKEN_HERE' dataworld_datasets = {'scrub': {'owner': 'DATASET_OWNER', 'name': 'THE_PUBLIC_DATASET_YOU_WANT_TO_PUSH_TO'}, 'raw': {'owner': 'DATASET_OWNER', 'name': 'THE_PRIVATE_DATASET_YOU_WANT_TO_PUSH_TO'}}
class SectionModel(Query): def __init__(self, db): self.db = db self.table_name = "section" super(SectionModel, self).__init__()
class Sectionmodel(Query): def __init__(self, db): self.db = db self.table_name = 'section' super(SectionModel, self).__init__()
funcs = [ "abs", "all", "any", "ascii", "bin", "callable", "chr", "compile", "delattr", "dir", "divmod", "eval", "exec", "exit", "format", "getattr", "globals", "hasattr", "hash", "help", "hex", "id", "input", "isinstance", "issubclass", "iter", "len", "locals", "max", "min", "next", "oct", "open", "ord", "pow", "print", "quit", "repr", "round", "setattr", "sorted", "sum", "vars" ] classes = [ "bool", "bytearray", "bytes", "classmethod", "complex", "dict", "enumerate", "filter", "float", "frozenset", "int", "list", "map", "memoryview", "object", "property", "range", "reversed", "set", "slice", "staticmethod", "str", "super", "tuple", "type", "zip" ] special_cases = "exit", "quit", "help" for func in funcs: if func in special_cases: continue assert str(getattr(__builtins__, func)) == f"<built-in function {func}>" for kl in classes: obj = getattr(__builtins__, kl) assert str(obj) == f"<class '{kl}'>", f"erreur pour {kl} : {obj}"
funcs = ['abs', 'all', 'any', 'ascii', 'bin', 'callable', 'chr', 'compile', 'delattr', 'dir', 'divmod', 'eval', 'exec', 'exit', 'format', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'isinstance', 'issubclass', 'iter', 'len', 'locals', 'max', 'min', 'next', 'oct', 'open', 'ord', 'pow', 'print', 'quit', 'repr', 'round', 'setattr', 'sorted', 'sum', 'vars'] classes = ['bool', 'bytearray', 'bytes', 'classmethod', 'complex', 'dict', 'enumerate', 'filter', 'float', 'frozenset', 'int', 'list', 'map', 'memoryview', 'object', 'property', 'range', 'reversed', 'set', 'slice', 'staticmethod', 'str', 'super', 'tuple', 'type', 'zip'] special_cases = ('exit', 'quit', 'help') for func in funcs: if func in special_cases: continue assert str(getattr(__builtins__, func)) == f'<built-in function {func}>' for kl in classes: obj = getattr(__builtins__, kl) assert str(obj) == f"<class '{kl}'>", f'erreur pour {kl} : {obj}'
# # PySNMP MIB module CISCO-STP-EXTENSIONS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-STP-EXTENSIONS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:56:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") dot1dStpPortEntry, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dStpPortEntry") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") VlanIndex, vlanTrunkPortEntry, vtpVlanEditEntry, vtpVlanEntry = mibBuilder.importSymbols("CISCO-VTP-MIB", "VlanIndex", "vlanTrunkPortEntry", "vtpVlanEditEntry", "vtpVlanEntry") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") MibIdentifier, Counter64, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, ModuleIdentity, TimeTicks, Gauge32, IpAddress, Integer32, Bits, Counter32, iso, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter64", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "ModuleIdentity", "TimeTicks", "Gauge32", "IpAddress", "Integer32", "Bits", "Counter32", "iso", "ObjectIdentity") DisplayString, TimeStamp, RowStatus, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "RowStatus", "TruthValue", "TextualConvention") ciscoStpExtensionsMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 82)) ciscoStpExtensionsMIB.setRevisions(('2013-03-07 00:00', '2005-12-20 00:00', '2005-04-12 00:00', '2004-07-21 00:00', '2004-04-08 00:00', '2004-01-14 00:00', '2003-10-23 00:00', '2002-07-11 00:00', '2001-12-06 00:00', '2001-09-14 00:00', '2001-06-20 00:00', '2001-04-12 00:00', '2000-05-23 00:00', '2000-03-21 00:00', '1997-11-10 12:00', '1997-08-19 12:00',)) if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setLastUpdated('201303070000Z') if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setOrganization('Cisco Systems, Inc.') stpxObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1)) stpxUplinkFastObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1)) stpxVlanObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2)) stpxInconsistencyObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3)) stpxBackboneFastObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4)) stpxRootGuardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5)) stpxSpanningTreeObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6)) stpxMISTPObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7)) stpxLoopGuardObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8)) stpxFastStartObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9)) stpxBpduSkewingObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10)) stpxMSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11)) stpxRSTPObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12)) stpxRPVSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13)) stpxSMSTObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14)) stpxNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2)) class StpxMSTConfigurationDigest(TextualConvention, OctetString): status = 'current' displayHint = '1x' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(16, 16) fixedLength = 16 stpxUplinkFastEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxUplinkFastEnabled.setStatus('current') stpxUplinkFastTransitions = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 2), Counter32()).setUnits('transitions').setMaxAccess("readonly") if mibBuilder.loadTexts: stpxUplinkFastTransitions.setStatus('current') stpxUplinkStationLearningGenRate = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32000))).setUnits('frames').setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxUplinkStationLearningGenRate.setStatus('current') stpxUplinkStationLearningFrames = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly") if mibBuilder.loadTexts: stpxUplinkStationLearningFrames.setStatus('current') stpxUplinkFastOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxUplinkFastOperEnabled.setStatus('current') stpxPreferredVlansTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1), ) if mibBuilder.loadTexts: stpxPreferredVlansTable.setStatus('current') stpxPreferredVlansEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1), ) vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansEntry")) stpxPreferredVlansEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxPreferredVlansEntry.setStatus('current') stpxPreferredVlansMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(128, 128)).setFixedLength(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPreferredVlansMap.setStatus('current') stpxPreferredVlansMap2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPreferredVlansMap2k.setStatus('current') stpxPreferredVlansMap3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPreferredVlansMap3k.setStatus('current') stpxPreferredVlansMap4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPreferredVlansMap4k.setStatus('current') stpxPVSTVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2), ) if mibBuilder.loadTexts: stpxPVSTVlanTable.setStatus('current') stpxPVSTVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanIndex")) if mibBuilder.loadTexts: stpxPVSTVlanEntry.setStatus('current') stpxPVSTVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 1), VlanIndex()) if mibBuilder.loadTexts: stpxPVSTVlanIndex.setStatus('current') stpxPVSTVlanEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("notApplicable", 3))).clone('enabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPVSTVlanEnable.setStatus('current') stpxInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1), ) if mibBuilder.loadTexts: stpxInconsistencyTable.setStatus('current') stpxInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxVlanIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxPortIndex")) if mibBuilder.loadTexts: stpxInconsistencyEntry.setStatus('current') stpxVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 1), VlanIndex()) if mibBuilder.loadTexts: stpxVlanIndex.setStatus('current') stpxPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxPortIndex.setStatus('current') stpxInconsistentState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 3), Bits().clone(namedValues=NamedValues(("typeInconsistent", 0), ("pvidInconsistent", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxInconsistentState.setStatus('current') stpxBackboneFastEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxBackboneFastEnabled.setStatus('current') stpxBackboneFastInInferiorBPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBackboneFastInInferiorBPDUs.setStatus('current') stpxBackboneFastInRLQRequestPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBackboneFastInRLQRequestPDUs.setStatus('current') stpxBackboneFastInRLQResponsePDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBackboneFastInRLQResponsePDUs.setStatus('current') stpxBackboneFastOutRLQRequestPDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBackboneFastOutRLQRequestPDUs.setStatus('current') stpxBackboneFastOutRLQResponsePDUs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBackboneFastOutRLQResponsePDUs.setStatus('current') stpxBackboneFastOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBackboneFastOperEnabled.setStatus('current') stpxRootGuardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1), ) if mibBuilder.loadTexts: stpxRootGuardConfigTable.setStatus('current') stpxRootGuardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardConfigPortIndex")) if mibBuilder.loadTexts: stpxRootGuardConfigEntry.setStatus('current') stpxRootGuardConfigPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxRootGuardConfigPortIndex.setStatus('current') stpxRootGuardConfigEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxRootGuardConfigEnabled.setStatus('current') stpxRootInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2), ) if mibBuilder.loadTexts: stpxRootInconsistencyTable.setStatus('current') stpxRootInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyPortIndex")) if mibBuilder.loadTexts: stpxRootInconsistencyEntry.setStatus('current') stpxRootInconsistencyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: stpxRootInconsistencyIndex.setStatus('current') stpxRootInconsistencyPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxRootInconsistencyPortIndex.setStatus('current') stpxRootInconsistencyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 3), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxRootInconsistencyState.setStatus('current') stpxSpanningTreeType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("pvstPlus", 1), ("mistp", 2), ("mistpPvstPlus", 3), ("mst", 4), ("rapidPvstPlus", 5))).clone('pvstPlus')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxSpanningTreeType.setStatus('current') stpxSpanningTreePathCostMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2))).clone('short')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxSpanningTreePathCostMode.setStatus('current') stpxLongStpPortPathCostTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3), ) if mibBuilder.loadTexts: stpxLongStpPortPathCostTable.setStatus('current') stpxLongStpPortPathCostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1), ) dot1dStpPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxLongStpPortPathCostEntry")) stpxLongStpPortPathCostEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxLongStpPortPathCostEntry.setStatus('current') stpxLongStpPortPathCost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1, 1), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxLongStpPortPathCost.setStatus('current') stpxExtendedSysIDAdminEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxExtendedSysIDAdminEnabled.setStatus('current') stpxExtendedSysIDOperEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxExtendedSysIDOperEnabled.setStatus('current') stpxNotificationEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 6), Bits().clone(namedValues=NamedValues(("newRoot", 0), ("topologyChange", 1), ("inconsistency", 2), ("rootInconsistency", 3), ("loopInconsistency", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxNotificationEnable.setStatus('current') stpxSpanningTreePathCostOperMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("short", 1), ("long", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSpanningTreePathCostOperMode.setStatus('current') stpxMISTPInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMISTPInstanceNumber.setStatus('current') stpxMISTPInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2), ) if mibBuilder.loadTexts: stpxMISTPInstanceTable.setStatus('current') stpxMISTPInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceIndex")) if mibBuilder.loadTexts: stpxMISTPInstanceEntry.setStatus('current') stpxMISTPInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))) if mibBuilder.loadTexts: stpxMISTPInstanceIndex.setStatus('current') stpxMISTPInstanceEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 2), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMISTPInstanceEnable.setStatus('current') stpxMISTPInstanceVlansMapped = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped.setStatus('current') stpxMISTPInstanceVlansMapped2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped2k.setStatus('current') stpxMISTPInstanceVlansMapped3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped3k.setStatus('current') stpxMISTPInstanceVlansMapped4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped4k.setStatus('current') stpxVlanMISTPInstMapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3), ) if mibBuilder.loadTexts: stpxVlanMISTPInstMapTable.setStatus('current') stpxVlanMISTPInstMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1), ) vtpVlanEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEntry")) stpxVlanMISTPInstMapEntry.setIndexNames(*vtpVlanEntry.getIndexNames()) if mibBuilder.loadTexts: stpxVlanMISTPInstMapEntry.setStatus('current') stpxVlanMISTPInstMapInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxVlanMISTPInstMapInstIndex.setStatus('current') stpxVlanMISTPInstMapEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4), ) if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditTable.setStatus('current') stpxVlanMISTPInstMapEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1), ) vtpVlanEditEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEditEntry")) stpxVlanMISTPInstMapEditEntry.setIndexNames(*vtpVlanEditEntry.getIndexNames()) if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditEntry.setStatus('current') stpxVlanMISTPInstMapEditInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditInstIndex.setStatus('current') stpxPreferredMISTPInstancesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5), ) if mibBuilder.loadTexts: stpxPreferredMISTPInstancesTable.setStatus('current') stpxPreferredMISTPInstancesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1), ) vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMISTPInstancesEntry")) stpxPreferredMISTPInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxPreferredMISTPInstancesEntry.setStatus('current') stpxPreferredMISTPInstancesMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPreferredMISTPInstancesMap.setStatus('current') stpxLoopGuardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1), ) if mibBuilder.loadTexts: stpxLoopGuardConfigTable.setStatus('current') stpxLoopGuardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigPortIndex")) if mibBuilder.loadTexts: stpxLoopGuardConfigEntry.setStatus('current') stpxLoopGuardConfigPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxLoopGuardConfigPortIndex.setStatus('current') stpxLoopGuardConfigEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxLoopGuardConfigEnabled.setStatus('deprecated') stpxLoopGuardConfigMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxLoopGuardConfigMode.setStatus('current') stpxLoopInconsistencyTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2), ) if mibBuilder.loadTexts: stpxLoopInconsistencyTable.setStatus('current') stpxLoopInconsistencyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyPortIndex")) if mibBuilder.loadTexts: stpxLoopInconsistencyEntry.setStatus('current') stpxLoopInconsistencyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: stpxLoopInconsistencyIndex.setStatus('current') stpxLoopInconsistencyPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxLoopInconsistencyPortIndex.setStatus('current') stpxLoopInconsistencyState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 3), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxLoopInconsistencyState.setStatus('current') stpxLoopGuardGlobalDefaultMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxLoopGuardGlobalDefaultMode.setStatus('current') stpxFastStartBpduGuardEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartBpduGuardEnable.setStatus('current') stpxFastStartBpduFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartBpduFilterEnable.setStatus('current') stpxFastStartPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3), ) if mibBuilder.loadTexts: stpxFastStartPortTable.setStatus('current') stpxFastStartPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortIndex")) if mibBuilder.loadTexts: stpxFastStartPortEntry.setStatus('current') stpxFastStartPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxFastStartPortIndex.setStatus('current') stpxFastStartPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartPortEnable.setStatus('deprecated') stpxFastStartPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("enableForTrunk", 3), ("default", 4), ("network", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartPortMode.setStatus('current') stpxFastStartPortBpduGuardMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartPortBpduGuardMode.setStatus('current') stpxFastStartPortBpduFilterMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartPortBpduFilterMode.setStatus('current') stpxFastStartGlobalDefaultMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxFastStartGlobalDefaultMode.setStatus('current') stpxFastStartOperModeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5), ) if mibBuilder.loadTexts: stpxFastStartOperModeTable.setStatus('current') stpxFastStartOperModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeInstIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModePortIndex")) if mibBuilder.loadTexts: stpxFastStartOperModeEntry.setStatus('current') stpxFastStartOperModeInstIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: stpxFastStartOperModeInstIndex.setStatus('current') stpxFastStartOperModePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxFastStartOperModePortIndex.setStatus('current') stpxFastStartOperMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxFastStartOperMode.setStatus('current') stpxBpduSkewingDetectionEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxBpduSkewingDetectionEnable.setStatus('current') stpxBpduSkewingTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2), ) if mibBuilder.loadTexts: stpxBpduSkewingTable.setStatus('current') stpxBpduSkewingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingPortIndex")) if mibBuilder.loadTexts: stpxBpduSkewingEntry.setStatus('current') stpxBpduSkewingInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: stpxBpduSkewingInstanceIndex.setStatus('current') stpxBpduSkewingPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxBpduSkewingPortIndex.setStatus('current') stpxBpduSkewingLastSkewDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 3), Unsigned32()).setUnits('milliseconds').setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBpduSkewingLastSkewDuration.setStatus('current') stpxBpduSkewingWorstSkewDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 4), Unsigned32()).setUnits('milliseconds').setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewDuration.setStatus('current') stpxBpduSkewingWorstSkewTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 5), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewTime.setStatus('current') stpxMSTMaxInstanceNumber = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTMaxInstanceNumber.setStatus('deprecated') stpxMSTRegionName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTRegionName.setStatus('current') stpxMSTRegionRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTRegionRevision.setStatus('deprecated') stpxMSTInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4), ) if mibBuilder.loadTexts: stpxMSTInstanceTable.setStatus('deprecated') stpxMSTInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceIndex")) if mibBuilder.loadTexts: stpxMSTInstanceEntry.setStatus('deprecated') stpxMSTInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))) if mibBuilder.loadTexts: stpxMSTInstanceIndex.setStatus('deprecated') stpxMSTInstanceVlansMapped = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped.setStatus('deprecated') stpxMSTInstanceVlansMapped2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped2k.setStatus('deprecated') stpxMSTInstanceVlansMapped3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped3k.setStatus('deprecated') stpxMSTInstanceVlansMapped4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped4k.setStatus('deprecated') stpxMSTInstanceRemainingHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 40))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTInstanceRemainingHopCount.setStatus('deprecated') stpxMSTRegionEditBufferStatus = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("released", 1), ("acquiredBySnmp", 2), ("acquiredByNonSnmp", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTRegionEditBufferStatus.setStatus('current') stpxMSTRegionEditBufferOperation = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("acquire", 2), ("releaseWithForce", 3), ("commit", 4), ("rollBack", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTRegionEditBufferOperation.setStatus('current') stpxMSTRegionEditName = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTRegionEditName.setStatus('current') stpxMSTRegionEditRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTRegionEditRevision.setStatus('deprecated') stpxMSTInstanceEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9), ) if mibBuilder.loadTexts: stpxMSTInstanceEditTable.setStatus('deprecated') stpxMSTInstanceEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditIndex")) if mibBuilder.loadTexts: stpxMSTInstanceEditEntry.setStatus('deprecated') stpxMSTInstanceEditIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))) if mibBuilder.loadTexts: stpxMSTInstanceEditIndex.setStatus('deprecated') stpxMSTInstanceEditVlansMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap.setStatus('deprecated') stpxMSTInstanceEditVlansMap2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap2k.setStatus('deprecated') stpxMSTInstanceEditVlansMap3k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap3k.setStatus('deprecated') stpxMSTInstanceEditVlansMap4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap4k.setStatus('deprecated') stpxPreferredMSTInstancesTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10), ) if mibBuilder.loadTexts: stpxPreferredMSTInstancesTable.setStatus('deprecated') stpxPreferredMSTInstancesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1), ) vlanTrunkPortEntry.registerAugmentions(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesEntry")) stpxPreferredMSTInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxPreferredMSTInstancesEntry.setStatus('deprecated') stpxPreferredMSTInstancesMap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxPreferredMSTInstancesMap.setStatus('deprecated') stpxMSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11), ) if mibBuilder.loadTexts: stpxMSTPortTable.setStatus('deprecated') stpxMSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortIndex")) if mibBuilder.loadTexts: stpxMSTPortEntry.setStatus('deprecated') stpxMSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxMSTPortIndex.setStatus('deprecated') stpxMSTPortAdminLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("auto", 3))).clone('auto')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTPortAdminLinkType.setStatus('deprecated') stpxMSTPortOperLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("other", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTPortOperLinkType.setStatus('deprecated') stpxMSTPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTPortProtocolMigration.setStatus('deprecated') stpxMSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 5), Bits().clone(namedValues=NamedValues(("edge", 0), ("boundary", 1), ("pvst", 2), ("stp", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTPortStatus.setStatus('deprecated') stpxMSTPortRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12), ) if mibBuilder.loadTexts: stpxMSTPortRoleTable.setStatus('deprecated') stpxMSTPortRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRoleInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRolePortIndex")) if mibBuilder.loadTexts: stpxMSTPortRoleEntry.setStatus('deprecated') stpxMSTPortRoleInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 256))) if mibBuilder.loadTexts: stpxMSTPortRoleInstanceIndex.setStatus('deprecated') stpxMSTPortRolePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxMSTPortRolePortIndex.setStatus('deprecated') stpxMSTPortRoleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backUp", 5), ("boundary", 6), ("master", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxMSTPortRoleValue.setStatus('deprecated') stpxMSTMaxHopCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 40)).clone(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxMSTMaxHopCount.setStatus('deprecated') stpxRSTPPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1), ) if mibBuilder.loadTexts: stpxRSTPPortTable.setStatus('current') stpxRSTPPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortIndex")) if mibBuilder.loadTexts: stpxRSTPPortEntry.setStatus('current') stpxRSTPPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxRSTPPortIndex.setStatus('current') stpxRSTPPortAdminLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("auto", 3))).clone('auto')).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxRSTPPortAdminLinkType.setStatus('current') stpxRSTPPortOperLinkType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pointToPoint", 1), ("shared", 2), ("other", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxRSTPPortOperLinkType.setStatus('current') stpxRSTPPortProtocolMigration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxRSTPPortProtocolMigration.setStatus('current') stpxRSTPPortRoleTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2), ) if mibBuilder.loadTexts: stpxRSTPPortRoleTable.setStatus('current') stpxRSTPPortRoleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRoleInstanceIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRolePortIndex")) if mibBuilder.loadTexts: stpxRSTPPortRoleEntry.setStatus('current') stpxRSTPPortRoleInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4095))) if mibBuilder.loadTexts: stpxRSTPPortRoleInstanceIndex.setStatus('current') stpxRSTPPortRolePortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxRSTPPortRolePortIndex.setStatus('current') stpxRSTPPortRoleValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("root", 2), ("designated", 3), ("alternate", 4), ("backUp", 5), ("boundary", 6), ("master", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxRSTPPortRoleValue.setStatus('current') stpxRSTPTransmitHoldCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 3), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxRSTPTransmitHoldCount.setStatus('current') stpxRPVSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1), ) if mibBuilder.loadTexts: stpxRPVSTPortTable.setStatus('current') stpxRPVSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortVlanIndex"), (0, "CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortIndex")) if mibBuilder.loadTexts: stpxRPVSTPortEntry.setStatus('current') stpxRPVSTPortVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 1), VlanIndex()) if mibBuilder.loadTexts: stpxRPVSTPortVlanIndex.setStatus('current') stpxRPVSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxRPVSTPortIndex.setStatus('current') stpxRPVSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 3), Bits().clone(namedValues=NamedValues(("edge", 0), ("unused1", 1), ("unused2", 2), ("stp", 3), ("dispute", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxRPVSTPortStatus.setStatus('current') stpxSMSTMaxInstances = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTMaxInstances.setStatus('current') stpxSMSTMaxInstanceID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTMaxInstanceID.setStatus('current') stpxSMSTRegionRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTRegionRevision.setStatus('current') stpxSMSTRegionEditRevision = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 4), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxSMSTRegionEditRevision.setStatus('current') stpxSMSTInstanceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5), ) if mibBuilder.loadTexts: stpxSMSTInstanceTable.setStatus('current') stpxSMSTInstanceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceIndex")) if mibBuilder.loadTexts: stpxSMSTInstanceEntry.setStatus('current') stpxSMSTInstanceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 1), Unsigned32()) if mibBuilder.loadTexts: stpxSMSTInstanceIndex.setStatus('current') stpxSMSTInstanceVlansMapped1k2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped1k2k.setStatus('current') stpxSMSTInstanceVlansMapped3k4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped3k4k.setStatus('current') stpxSMSTInstanceRemainingHopCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTInstanceRemainingHopCount.setStatus('current') stpxSMSTInstanceCISTRegionalRoot = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTInstanceCISTRegionalRoot.setStatus('current') stpxSMSTInstanceCISTIntRootCost = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTInstanceCISTIntRootCost.setStatus('current') stpxSMSTInstanceEditTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6), ) if mibBuilder.loadTexts: stpxSMSTInstanceEditTable.setStatus('current') stpxSMSTInstanceEditEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditIndex")) if mibBuilder.loadTexts: stpxSMSTInstanceEditEntry.setStatus('current') stpxSMSTInstanceEditIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 1), Unsigned32()) if mibBuilder.loadTexts: stpxSMSTInstanceEditIndex.setStatus('current') stpxSMSTInstanceEditVlansMap1k2k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap1k2k.setStatus('current') stpxSMSTInstanceEditVlansMap3k4k = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readcreate") if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap3k4k.setStatus('current') stpxSMSTInstanceEditRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: stpxSMSTInstanceEditRowStatus.setStatus('current') stpxSMSTPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7), ) if mibBuilder.loadTexts: stpxSMSTPortTable.setStatus('current') stpxSMSTPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1), ).setIndexNames((0, "CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortIndex")) if mibBuilder.loadTexts: stpxSMSTPortEntry.setStatus('current') stpxSMSTPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))) if mibBuilder.loadTexts: stpxSMSTPortIndex.setStatus('current') stpxSMSTPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 2), Bits().clone(namedValues=NamedValues(("edge", 0), ("boundary", 1), ("pvst", 2), ("stp", 3), ("dispute", 4), ("rstp", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTPortStatus.setStatus('current') stpxSMSTPortAdminHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 3), Unsigned32()).setUnits('hundredth of seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxSMSTPortAdminHelloTime.setStatus('current') stpxSMSTPortConfigedHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 4), Unsigned32()).setUnits('hundredth of seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTPortConfigedHelloTime.setStatus('current') stpxSMSTPortOperHelloTime = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 2147483647))).setUnits('hundredth of seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTPortOperHelloTime.setStatus('current') stpxSMSTPortAdminMSTMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("preStandard", 1), ("auto", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxSMSTPortAdminMSTMode.setStatus('current') stpxSMSTPortOperMSTMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("preStandard", 2), ("standard", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTPortOperMSTMode.setStatus('current') stpxSMSTMaxHopCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 8), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: stpxSMSTMaxHopCount.setStatus('current') stpxSMSTConfigDigest = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 9), StpxMSTConfigurationDigest()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTConfigDigest.setStatus('current') stpxSMSTConfigPreStandardDigest = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 10), StpxMSTConfigurationDigest()).setMaxAccess("readonly") if mibBuilder.loadTexts: stpxSMSTConfigPreStandardDigest.setStatus('current') stpxNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0)) stpxInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistentState")) if mibBuilder.loadTexts: stpxInconsistencyUpdate.setStatus('current') stpxRootInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType")) if mibBuilder.loadTexts: stpxRootInconsistencyUpdate.setStatus('current') stpxLoopInconsistencyUpdate = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType")) if mibBuilder.loadTexts: stpxLoopInconsistencyUpdate.setStatus('current') stpxMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3)) stpxMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1)) stpxMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2)) stpxMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance = stpxMIBCompliance.setStatus('deprecated') stpxMIBCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance2 = stpxMIBCompliance2.setStatus('deprecated') stpxMIBCompliance3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance3 = stpxMIBCompliance3.setStatus('deprecated') stpxMIBCompliance4 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 4)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance4 = stpxMIBCompliance4.setStatus('deprecated') stpxMIBCompliance5 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 5)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance5 = stpxMIBCompliance5.setStatus('deprecated') stpxMIBCompliance6 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 6)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance6 = stpxMIBCompliance6.setStatus('deprecated') stpxMIBCompliance7 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 7)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance7 = stpxMIBCompliance7.setStatus('deprecated') stpxMIBCompliance8 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 8)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance8 = stpxMIBCompliance8.setStatus('deprecated') stpxMIBCompliance9 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 9)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance9 = stpxMIBCompliance9.setStatus('deprecated') stpxMIBCompliance10 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 10)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance10 = stpxMIBCompliance10.setStatus('deprecated') stpxMIBCompliance11 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 11)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPathCostOperModeGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance11 = stpxMIBCompliance11.setStatus('deprecated') stpxMIBCompliance12 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 12)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSstpGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpx4kVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongPathCostModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyNotificationsGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGroup3"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneGroup2"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPTransmitHoldCountGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnableGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTGroup4"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxHopCountGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatusGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortHelloTimeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPathCostOperModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortMSTModeGroup"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigDigestGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMIBCompliance12 = stpxMIBCompliance12.setStatus('current') stpxUplinkGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 1)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastTransitions"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkStationLearningGenRate"), ("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkStationLearningFrames")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxUplinkGroup = stpxUplinkGroup.setStatus('current') stpxPreferredVlansGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 2)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxPreferredVlansGroup = stpxPreferredVlansGroup.setStatus('current') stpxSstpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 3)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistentState")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSstpGroup = stpxSstpGroup.setStatus('current') stpxNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 4)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxInconsistencyUpdate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxNotificationsGroup = stpxNotificationsGroup.setStatus('current') stpxBackboneGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 5)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInInferiorBPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInRLQRequestPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastInRLQResponsePDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOutRLQRequestPDUs"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOutRLQResponsePDUs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxBackboneGroup = stpxBackboneGroup.setStatus('current') stpxRootGuardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 6)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootGuardConfigEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyState")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxRootGuardGroup = stpxRootGuardGroup.setStatus('current') stpxRootInconsistencyNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 7)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRootInconsistencyUpdate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxRootInconsistencyNotificationsGroup = stpxRootInconsistencyNotificationsGroup.setStatus('current') stpx4kVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 8)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredVlansMap4k")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx4kVlanGroup = stpx4kVlanGroup.setStatus('current') stpxSpanningTreeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 9)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreeType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSpanningTreeGroup = stpxSpanningTreeGroup.setStatus('current') stpxMISTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 10)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapInstIndex"), ("CISCO-STP-EXTENSIONS-MIB", "stpxVlanMISTPInstMapEditInstIndex"), ("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMISTPInstancesMap")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMISTPGroup = stpxMISTPGroup.setStatus('current') stpxLongPathCostModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 11)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreePathCostMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLongStpPortPathCost")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxLongPathCostModeGroup = stpxLongPathCostModeGroup.setStatus('current') stpxPVSTVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 12)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPVSTVlanEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxPVSTVlanGroup = stpxPVSTVlanGroup.setStatus('current') stpxMISTPGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 13)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMISTPInstanceVlansMapped4k")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMISTPGroup2 = stpxMISTPGroup2.setStatus('current') stpxLoopGuardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 14)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxLoopGuardGroup = stpxLoopGuardGroup.setStatus('deprecated') stpxLoopInconsistencyNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 15)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyUpdate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxLoopInconsistencyNotificationsGroup = stpxLoopInconsistencyNotificationsGroup.setStatus('current') stpxFastStartGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 16)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduGuardEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduFilterEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxFastStartGroup = stpxFastStartGroup.setStatus('deprecated') stpxBpduSkewingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 17)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingDetectionEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingLastSkewDuration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingWorstSkewDuration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxBpduSkewingWorstSkewTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxBpduSkewingGroup = stpxBpduSkewingGroup.setStatus('current') stpxFastStartGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 18)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduGuardEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartBpduFilterEnable"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartGlobalDefaultMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxFastStartGroup2 = stpxFastStartGroup2.setStatus('current') stpxLoopGuardGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 19)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxLoopInconsistencyState"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardConfigMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxLoopGuardGlobalDefaultMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxLoopGuardGroup2 = stpxLoopGuardGroup2.setStatus('current') stpxMSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 20)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceRemainingHopCount"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortAdminLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortOperLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortProtocolMigration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortRoleValue"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMSTGroup = stpxMSTGroup.setStatus('deprecated') stpxPreferredMSTInstancesGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 21)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxPreferredMSTInstancesMap")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxPreferredMSTInstancesGroup = stpxPreferredMSTInstancesGroup.setStatus('deprecated') stpxFastStartGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 22)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortBpduGuardMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartPortBpduFilterMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxFastStartGroup3 = stpxFastStartGroup3.setStatus('current') stpxUplinkGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 23)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxUplinkFastOperEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxUplinkGroup2 = stpxUplinkGroup2.setStatus('current') stpxBackboneGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 24)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxBackboneFastOperEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxBackboneGroup2 = stpxBackboneGroup2.setStatus('current') stpxMSTGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 25)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxInstanceNumber"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceVlansMapped4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceRemainingHopCount"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap3k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTInstanceEditVlansMap4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTPortStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMSTGroup2 = stpxMSTGroup2.setStatus('deprecated') stpxRSTPGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 26)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortAdminLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortOperLinkType"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortProtocolMigration"), ("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPPortRoleValue")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxRSTPGroup = stpxRSTPGroup.setStatus('current') stpxRPVSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 27)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRPVSTPortStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxRPVSTGroup = stpxRPVSTGroup.setStatus('current') stpxExtendedSysIDGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 28)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDAdminEnabled"), ("CISCO-STP-EXTENSIONS-MIB", "stpxExtendedSysIDOperEnabled")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxExtendedSysIDGroup = stpxExtendedSysIDGroup.setStatus('current') stpxNotificationEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 29)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxNotificationEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxNotificationEnableGroup = stpxNotificationEnableGroup.setStatus('current') stpxFastStartOperModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 30)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxFastStartOperMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxFastStartOperModeGroup = stpxFastStartOperModeGroup.setStatus('current') stpxMSTGroup3 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 31)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTMaxHopCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMSTGroup3 = stpxMSTGroup3.setStatus('deprecated') stpxSMSTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 32)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxInstances"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxInstanceID"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTRegionRevision"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTRegionEditRevision")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTGroup = stpxSMSTGroup.setStatus('current') stpxSMSTInstanceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 33)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceVlansMapped1k2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceVlansMapped3k4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceRemainingHopCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTInstanceGroup = stpxSMSTInstanceGroup.setStatus('current') stpxSMSTInstanceEditGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 34)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditVlansMap1k2k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditVlansMap3k4k"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceEditRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTInstanceEditGroup = stpxSMSTInstanceEditGroup.setStatus('current') stpxSMSTPortStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 35)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTPortStatusGroup = stpxSMSTPortStatusGroup.setStatus('current') stpxSMSTPortHelloTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 36)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortAdminHelloTime"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortConfigedHelloTime"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortOperHelloTime")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTPortHelloTimeGroup = stpxSMSTPortHelloTimeGroup.setStatus('current') stpxSMSTInstanceCISTGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 37)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTRegionalRoot"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTInstanceCISTIntRootCost")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTInstanceCISTGroup = stpxSMSTInstanceCISTGroup.setStatus('current') stpxPathCostOperModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 38)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSpanningTreePathCostOperMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxPathCostOperModeGroup = stpxPathCostOperModeGroup.setStatus('current') stpxRSTPTransmitHoldCountGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 39)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxRSTPTransmitHoldCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxRSTPTransmitHoldCountGroup = stpxRSTPTransmitHoldCountGroup.setStatus('current') stpxSMSTPortMSTModeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 40)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortAdminMSTMode"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTPortOperMSTMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTPortMSTModeGroup = stpxSMSTPortMSTModeGroup.setStatus('current') stpxSMSTMaxHopCountGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 41)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTMaxHopCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTMaxHopCountGroup = stpxSMSTMaxHopCountGroup.setStatus('current') stpxSMSTConfigDigestGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 42)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigDigest"), ("CISCO-STP-EXTENSIONS-MIB", "stpxSMSTConfigPreStandardDigest")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxSMSTConfigDigestGroup = stpxSMSTConfigDigestGroup.setStatus('current') stpxMSTGroup4 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 43)).setObjects(("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionName"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferStatus"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditBufferOperation"), ("CISCO-STP-EXTENSIONS-MIB", "stpxMSTRegionEditName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpxMSTGroup4 = stpxMSTGroup4.setStatus('current') mibBuilder.exportSymbols("CISCO-STP-EXTENSIONS-MIB", stpxMIBCompliance2=stpxMIBCompliance2, stpxBackboneFastInRLQRequestPDUs=stpxBackboneFastInRLQRequestPDUs, stpxFastStartOperModeInstIndex=stpxFastStartOperModeInstIndex, stpxPathCostOperModeGroup=stpxPathCostOperModeGroup, stpxRootGuardConfigEntry=stpxRootGuardConfigEntry, stpxSMSTInstanceEditVlansMap3k4k=stpxSMSTInstanceEditVlansMap3k4k, stpxSMSTConfigDigest=stpxSMSTConfigDigest, stpxFastStartGroup3=stpxFastStartGroup3, stpxVlanMISTPInstMapTable=stpxVlanMISTPInstMapTable, stpxFastStartPortMode=stpxFastStartPortMode, stpxRSTPPortIndex=stpxRSTPPortIndex, stpxSpanningTreeGroup=stpxSpanningTreeGroup, stpxSMSTInstanceEditTable=stpxSMSTInstanceEditTable, PYSNMP_MODULE_ID=ciscoStpExtensionsMIB, stpxPreferredVlansMap4k=stpxPreferredVlansMap4k, stpxUplinkFastTransitions=stpxUplinkFastTransitions, stpxRSTPPortRolePortIndex=stpxRSTPPortRolePortIndex, stpxSMSTInstanceCISTGroup=stpxSMSTInstanceCISTGroup, stpxRSTPPortEntry=stpxRSTPPortEntry, stpxFastStartGroup=stpxFastStartGroup, stpxFastStartOperMode=stpxFastStartOperMode, stpxMIBCompliance8=stpxMIBCompliance8, stpxBackboneFastInInferiorBPDUs=stpxBackboneFastInInferiorBPDUs, stpxBpduSkewingWorstSkewTime=stpxBpduSkewingWorstSkewTime, stpxSstpGroup=stpxSstpGroup, stpxPreferredMSTInstancesMap=stpxPreferredMSTInstancesMap, stpxSMSTPortAdminMSTMode=stpxSMSTPortAdminMSTMode, stpxRootInconsistencyUpdate=stpxRootInconsistencyUpdate, stpxPreferredVlansEntry=stpxPreferredVlansEntry, stpxBpduSkewingWorstSkewDuration=stpxBpduSkewingWorstSkewDuration, stpxRSTPPortProtocolMigration=stpxRSTPPortProtocolMigration, stpxPreferredVlansMap3k=stpxPreferredVlansMap3k, stpxMSTGroup4=stpxMSTGroup4, stpxMSTPortRoleTable=stpxMSTPortRoleTable, stpxLoopGuardConfigEnabled=stpxLoopGuardConfigEnabled, stpxFastStartPortIndex=stpxFastStartPortIndex, stpxVlanMISTPInstMapEditEntry=stpxVlanMISTPInstMapEditEntry, stpxRootInconsistencyPortIndex=stpxRootInconsistencyPortIndex, stpxMSTInstanceVlansMapped3k=stpxMSTInstanceVlansMapped3k, stpxFastStartGroup2=stpxFastStartGroup2, stpxUplinkFastEnabled=stpxUplinkFastEnabled, stpxRootInconsistencyIndex=stpxRootInconsistencyIndex, stpxMSTPortAdminLinkType=stpxMSTPortAdminLinkType, stpxMSTPortRoleInstanceIndex=stpxMSTPortRoleInstanceIndex, stpxSMSTMaxHopCountGroup=stpxSMSTMaxHopCountGroup, stpxRootGuardObjects=stpxRootGuardObjects, stpxLoopGuardGlobalDefaultMode=stpxLoopGuardGlobalDefaultMode, stpxMSTInstanceEditVlansMap2k=stpxMSTInstanceEditVlansMap2k, stpxObjects=stpxObjects, stpxSMSTPortConfigedHelloTime=stpxSMSTPortConfigedHelloTime, stpxMSTInstanceTable=stpxMSTInstanceTable, stpxMSTRegionEditBufferOperation=stpxMSTRegionEditBufferOperation, stpxMSTPortProtocolMigration=stpxMSTPortProtocolMigration, stpxMSTRegionEditRevision=stpxMSTRegionEditRevision, stpxSMSTObjects=stpxSMSTObjects, stpxMISTPInstanceVlansMapped3k=stpxMISTPInstanceVlansMapped3k, stpxRootGuardGroup=stpxRootGuardGroup, stpxMIBCompliances=stpxMIBCompliances, stpxUplinkStationLearningGenRate=stpxUplinkStationLearningGenRate, stpxSMSTInstanceRemainingHopCount=stpxSMSTInstanceRemainingHopCount, stpxBackboneFastEnabled=stpxBackboneFastEnabled, stpxMSTInstanceEditEntry=stpxMSTInstanceEditEntry, stpxSMSTPortOperHelloTime=stpxSMSTPortOperHelloTime, stpxMSTGroup2=stpxMSTGroup2, stpxVlanMISTPInstMapInstIndex=stpxVlanMISTPInstMapInstIndex, stpxSMSTPortIndex=stpxSMSTPortIndex, stpxFastStartObjects=stpxFastStartObjects, stpxRPVSTPortEntry=stpxRPVSTPortEntry, stpxInconsistencyObjects=stpxInconsistencyObjects, stpxUplinkStationLearningFrames=stpxUplinkStationLearningFrames, stpxNotificationEnableGroup=stpxNotificationEnableGroup, stpxBackboneFastOperEnabled=stpxBackboneFastOperEnabled, stpxLongStpPortPathCostEntry=stpxLongStpPortPathCostEntry, stpxMISTPInstanceEntry=stpxMISTPInstanceEntry, stpxMSTPortRoleValue=stpxMSTPortRoleValue, stpxMISTPGroup=stpxMISTPGroup, stpxRootGuardConfigTable=stpxRootGuardConfigTable, stpxMISTPInstanceVlansMapped=stpxMISTPInstanceVlansMapped, stpxMSTInstanceEntry=stpxMSTInstanceEntry, stpxMSTInstanceVlansMapped=stpxMSTInstanceVlansMapped, stpxSMSTInstanceVlansMapped1k2k=stpxSMSTInstanceVlansMapped1k2k, stpxPortIndex=stpxPortIndex, stpxRootGuardConfigPortIndex=stpxRootGuardConfigPortIndex, stpxLoopGuardConfigMode=stpxLoopGuardConfigMode, stpxSMSTInstanceCISTRegionalRoot=stpxSMSTInstanceCISTRegionalRoot, stpxSMSTPortEntry=stpxSMSTPortEntry, stpxSMSTPortStatus=stpxSMSTPortStatus, stpxSMSTMaxHopCount=stpxSMSTMaxHopCount, stpxLoopInconsistencyNotificationsGroup=stpxLoopInconsistencyNotificationsGroup, stpxLoopInconsistencyPortIndex=stpxLoopInconsistencyPortIndex, stpxSMSTPortOperMSTMode=stpxSMSTPortOperMSTMode, stpxLoopGuardConfigTable=stpxLoopGuardConfigTable, stpxLoopGuardGroup2=stpxLoopGuardGroup2, stpxSMSTConfigPreStandardDigest=stpxSMSTConfigPreStandardDigest, stpxFastStartPortTable=stpxFastStartPortTable, stpxRSTPTransmitHoldCount=stpxRSTPTransmitHoldCount, stpxMIBCompliance5=stpxMIBCompliance5, stpxMSTInstanceVlansMapped2k=stpxMSTInstanceVlansMapped2k, stpxUplinkFastOperEnabled=stpxUplinkFastOperEnabled, stpxSMSTInstanceEditIndex=stpxSMSTInstanceEditIndex, stpxBackboneFastOutRLQRequestPDUs=stpxBackboneFastOutRLQRequestPDUs, stpxBackboneFastOutRLQResponsePDUs=stpxBackboneFastOutRLQResponsePDUs, stpxMSTRegionEditName=stpxMSTRegionEditName, stpxMISTPInstanceVlansMapped2k=stpxMISTPInstanceVlansMapped2k, stpxMSTInstanceEditVlansMap3k=stpxMSTInstanceEditVlansMap3k, stpxSMSTInstanceCISTIntRootCost=stpxSMSTInstanceCISTIntRootCost, stpxFastStartBpduFilterEnable=stpxFastStartBpduFilterEnable, stpxFastStartPortEntry=stpxFastStartPortEntry, stpxLoopInconsistencyUpdate=stpxLoopInconsistencyUpdate, stpxRootInconsistencyNotificationsGroup=stpxRootInconsistencyNotificationsGroup, stpxMSTGroup=stpxMSTGroup, stpxMISTPInstanceIndex=stpxMISTPInstanceIndex, stpxMSTPortOperLinkType=stpxMSTPortOperLinkType, stpxPreferredVlansGroup=stpxPreferredVlansGroup, stpxSMSTInstanceEditVlansMap1k2k=stpxSMSTInstanceEditVlansMap1k2k, stpxVlanMISTPInstMapEditInstIndex=stpxVlanMISTPInstMapEditInstIndex, stpxFastStartPortEnable=stpxFastStartPortEnable, stpxPreferredVlansMap=stpxPreferredVlansMap, stpxLoopInconsistencyIndex=stpxLoopInconsistencyIndex, stpxRSTPPortRoleEntry=stpxRSTPPortRoleEntry, stpxNotificationsGroup=stpxNotificationsGroup, stpxExtendedSysIDOperEnabled=stpxExtendedSysIDOperEnabled, stpxMIBCompliance4=stpxMIBCompliance4, stpxMSTRegionEditBufferStatus=stpxMSTRegionEditBufferStatus, stpxMSTPortIndex=stpxMSTPortIndex, stpxMSTPortRoleEntry=stpxMSTPortRoleEntry, stpxPVSTVlanTable=stpxPVSTVlanTable, stpxSMSTPortStatusGroup=stpxSMSTPortStatusGroup, stpxBpduSkewingTable=stpxBpduSkewingTable, stpxRPVSTPortTable=stpxRPVSTPortTable, stpxPreferredVlansMap2k=stpxPreferredVlansMap2k, stpxMSTInstanceRemainingHopCount=stpxMSTInstanceRemainingHopCount, stpxBpduSkewingInstanceIndex=stpxBpduSkewingInstanceIndex, stpxVlanMISTPInstMapEditTable=stpxVlanMISTPInstMapEditTable, stpxMSTPortStatus=stpxMSTPortStatus, stpxPVSTVlanEntry=stpxPVSTVlanEntry, stpxFastStartOperModePortIndex=stpxFastStartOperModePortIndex, stpxMSTInstanceEditTable=stpxMSTInstanceEditTable, stpxFastStartBpduGuardEnable=stpxFastStartBpduGuardEnable, stpxSMSTPortTable=stpxSMSTPortTable, stpxSMSTPortHelloTimeGroup=stpxSMSTPortHelloTimeGroup, stpxPVSTVlanGroup=stpxPVSTVlanGroup, stpx4kVlanGroup=stpx4kVlanGroup, stpxSpanningTreeType=stpxSpanningTreeType, stpxMSTPortTable=stpxMSTPortTable, stpxMSTMaxInstanceNumber=stpxMSTMaxInstanceNumber, stpxPreferredMSTInstancesEntry=stpxPreferredMSTInstancesEntry, stpxMISTPObjects=stpxMISTPObjects, stpxMISTPInstanceVlansMapped4k=stpxMISTPInstanceVlansMapped4k, stpxNotifications=stpxNotifications, stpxMISTPInstanceNumber=stpxMISTPInstanceNumber, stpxMSTInstanceIndex=stpxMSTInstanceIndex, stpxSMSTInstanceGroup=stpxSMSTInstanceGroup, stpxSMSTInstanceEditEntry=stpxSMSTInstanceEditEntry, ciscoStpExtensionsMIB=ciscoStpExtensionsMIB, stpxLoopGuardObjects=stpxLoopGuardObjects, stpxRPVSTPortStatus=stpxRPVSTPortStatus, stpxMIBCompliance3=stpxMIBCompliance3, stpxLongPathCostModeGroup=stpxLongPathCostModeGroup, stpxMISTPGroup2=stpxMISTPGroup2, stpxLoopInconsistencyTable=stpxLoopInconsistencyTable, stpxSMSTInstanceEditGroup=stpxSMSTInstanceEditGroup, stpxMSTInstanceVlansMapped4k=stpxMSTInstanceVlansMapped4k, stpxSMSTInstanceTable=stpxSMSTInstanceTable, stpxRootInconsistencyTable=stpxRootInconsistencyTable, stpxPVSTVlanIndex=stpxPVSTVlanIndex, stpxMISTPInstanceTable=stpxMISTPInstanceTable, stpxMSTInstanceEditVlansMap4k=stpxMSTInstanceEditVlansMap4k, stpxRSTPPortTable=stpxRSTPPortTable, stpxBpduSkewingPortIndex=stpxBpduSkewingPortIndex, stpxRSTPGroup=stpxRSTPGroup, stpxMIBCompliance11=stpxMIBCompliance11, stpxRSTPPortRoleInstanceIndex=stpxRSTPPortRoleInstanceIndex, stpxSpanningTreeObjects=stpxSpanningTreeObjects, stpxSMSTMaxInstances=stpxSMSTMaxInstances, stpxSMSTConfigDigestGroup=stpxSMSTConfigDigestGroup, stpxSMSTRegionEditRevision=stpxSMSTRegionEditRevision, stpxRSTPPortOperLinkType=stpxRSTPPortOperLinkType, stpxRPVSTObjects=stpxRPVSTObjects, stpxPreferredMSTInstancesTable=stpxPreferredMSTInstancesTable, stpxUplinkFastObjects=stpxUplinkFastObjects, stpxRPVSTGroup=stpxRPVSTGroup, stpxSMSTInstanceVlansMapped3k4k=stpxSMSTInstanceVlansMapped3k4k, stpxMIBConformance=stpxMIBConformance, stpxMIBCompliance=stpxMIBCompliance, stpxFastStartOperModeEntry=stpxFastStartOperModeEntry, stpxRSTPPortRoleTable=stpxRSTPPortRoleTable, stpxRSTPPortAdminLinkType=stpxRSTPPortAdminLinkType, stpxMIBCompliance9=stpxMIBCompliance9, stpxLoopGuardConfigPortIndex=stpxLoopGuardConfigPortIndex, stpxSMSTInstanceEditRowStatus=stpxSMSTInstanceEditRowStatus, stpxFastStartOperModeGroup=stpxFastStartOperModeGroup, stpxLoopGuardGroup=stpxLoopGuardGroup, stpxExtendedSysIDAdminEnabled=stpxExtendedSysIDAdminEnabled, stpxLoopGuardConfigEntry=stpxLoopGuardConfigEntry, stpxUplinkGroup2=stpxUplinkGroup2, stpxNotificationsPrefix=stpxNotificationsPrefix, stpxLongStpPortPathCost=stpxLongStpPortPathCost, stpxRootInconsistencyState=stpxRootInconsistencyState, stpxRootGuardConfigEnabled=stpxRootGuardConfigEnabled, stpxMIBCompliance6=stpxMIBCompliance6, stpxMIBCompliance10=stpxMIBCompliance10, stpxMIBCompliance12=stpxMIBCompliance12, stpxSMSTPortMSTModeGroup=stpxSMSTPortMSTModeGroup, stpxRSTPObjects=stpxRSTPObjects, stpxMSTPortRolePortIndex=stpxMSTPortRolePortIndex, stpxSpanningTreePathCostMode=stpxSpanningTreePathCostMode, stpxVlanIndex=stpxVlanIndex, stpxBpduSkewingObjects=stpxBpduSkewingObjects, stpxNotificationEnable=stpxNotificationEnable, stpxFastStartPortBpduFilterMode=stpxFastStartPortBpduFilterMode, stpxBpduSkewingDetectionEnable=stpxBpduSkewingDetectionEnable, stpxBackboneFastInRLQResponsePDUs=stpxBackboneFastInRLQResponsePDUs, stpxBackboneGroup2=stpxBackboneGroup2, stpxMSTPortEntry=stpxMSTPortEntry, stpxBackboneGroup=stpxBackboneGroup, stpxMSTInstanceEditVlansMap=stpxMSTInstanceEditVlansMap, stpxMSTInstanceEditIndex=stpxMSTInstanceEditIndex, stpxInconsistencyEntry=stpxInconsistencyEntry, stpxInconsistencyUpdate=stpxInconsistencyUpdate, stpxRPVSTPortIndex=stpxRPVSTPortIndex, stpxBackboneFastObjects=stpxBackboneFastObjects, stpxPreferredMISTPInstancesTable=stpxPreferredMISTPInstancesTable, stpxMSTRegionRevision=stpxMSTRegionRevision, stpxFastStartPortBpduGuardMode=stpxFastStartPortBpduGuardMode, stpxPreferredMISTPInstancesEntry=stpxPreferredMISTPInstancesEntry, stpxSMSTInstanceIndex=stpxSMSTInstanceIndex, stpxInconsistentState=stpxInconsistentState, stpxLongStpPortPathCostTable=stpxLongStpPortPathCostTable, stpxFastStartGlobalDefaultMode=stpxFastStartGlobalDefaultMode, stpxBpduSkewingEntry=stpxBpduSkewingEntry, stpxSMSTPortAdminHelloTime=stpxSMSTPortAdminHelloTime, stpxSMSTGroup=stpxSMSTGroup, stpxVlanObjects=stpxVlanObjects, stpxMISTPInstanceEnable=stpxMISTPInstanceEnable, stpxMIBCompliance7=stpxMIBCompliance7, stpxLoopInconsistencyEntry=stpxLoopInconsistencyEntry, stpxRPVSTPortVlanIndex=stpxRPVSTPortVlanIndex, stpxMSTGroup3=stpxMSTGroup3, StpxMSTConfigurationDigest=StpxMSTConfigurationDigest, stpxBpduSkewingLastSkewDuration=stpxBpduSkewingLastSkewDuration, stpxMSTRegionName=stpxMSTRegionName, stpxPreferredMISTPInstancesMap=stpxPreferredMISTPInstancesMap, stpxMSTObjects=stpxMSTObjects, stpxPreferredMSTInstancesGroup=stpxPreferredMSTInstancesGroup, stpxInconsistencyTable=stpxInconsistencyTable, stpxMSTMaxHopCount=stpxMSTMaxHopCount, stpxExtendedSysIDGroup=stpxExtendedSysIDGroup, stpxRootInconsistencyEntry=stpxRootInconsistencyEntry, stpxRSTPPortRoleValue=stpxRSTPPortRoleValue, stpxRSTPTransmitHoldCountGroup=stpxRSTPTransmitHoldCountGroup, stpxLoopInconsistencyState=stpxLoopInconsistencyState, stpxFastStartOperModeTable=stpxFastStartOperModeTable, stpxPVSTVlanEnable=stpxPVSTVlanEnable) mibBuilder.exportSymbols("CISCO-STP-EXTENSIONS-MIB", stpxSMSTRegionRevision=stpxSMSTRegionRevision, stpxBpduSkewingGroup=stpxBpduSkewingGroup, stpxPreferredVlansTable=stpxPreferredVlansTable, stpxMIBGroups=stpxMIBGroups, stpxSpanningTreePathCostOperMode=stpxSpanningTreePathCostOperMode, stpxVlanMISTPInstMapEntry=stpxVlanMISTPInstMapEntry, stpxUplinkGroup=stpxUplinkGroup, stpxSMSTMaxInstanceID=stpxSMSTMaxInstanceID, stpxSMSTInstanceEntry=stpxSMSTInstanceEntry)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (dot1d_stp_port_entry,) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dStpPortEntry') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (vlan_index, vlan_trunk_port_entry, vtp_vlan_edit_entry, vtp_vlan_entry) = mibBuilder.importSymbols('CISCO-VTP-MIB', 'VlanIndex', 'vlanTrunkPortEntry', 'vtpVlanEditEntry', 'vtpVlanEntry') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (mib_identifier, counter64, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, module_identity, time_ticks, gauge32, ip_address, integer32, bits, counter32, iso, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter64', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'ModuleIdentity', 'TimeTicks', 'Gauge32', 'IpAddress', 'Integer32', 'Bits', 'Counter32', 'iso', 'ObjectIdentity') (display_string, time_stamp, row_status, truth_value, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeStamp', 'RowStatus', 'TruthValue', 'TextualConvention') cisco_stp_extensions_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 82)) ciscoStpExtensionsMIB.setRevisions(('2013-03-07 00:00', '2005-12-20 00:00', '2005-04-12 00:00', '2004-07-21 00:00', '2004-04-08 00:00', '2004-01-14 00:00', '2003-10-23 00:00', '2002-07-11 00:00', '2001-12-06 00:00', '2001-09-14 00:00', '2001-06-20 00:00', '2001-04-12 00:00', '2000-05-23 00:00', '2000-03-21 00:00', '1997-11-10 12:00', '1997-08-19 12:00')) if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setLastUpdated('201303070000Z') if mibBuilder.loadTexts: ciscoStpExtensionsMIB.setOrganization('Cisco Systems, Inc.') stpx_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1)) stpx_uplink_fast_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1)) stpx_vlan_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2)) stpx_inconsistency_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3)) stpx_backbone_fast_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4)) stpx_root_guard_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5)) stpx_spanning_tree_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6)) stpx_mistp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7)) stpx_loop_guard_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8)) stpx_fast_start_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9)) stpx_bpdu_skewing_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10)) stpx_mst_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11)) stpx_rstp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12)) stpx_rpvst_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13)) stpx_smst_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14)) stpx_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2)) class Stpxmstconfigurationdigest(TextualConvention, OctetString): status = 'current' display_hint = '1x' subtype_spec = OctetString.subtypeSpec + value_size_constraint(16, 16) fixed_length = 16 stpx_uplink_fast_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxUplinkFastEnabled.setStatus('current') stpx_uplink_fast_transitions = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 2), counter32()).setUnits('transitions').setMaxAccess('readonly') if mibBuilder.loadTexts: stpxUplinkFastTransitions.setStatus('current') stpx_uplink_station_learning_gen_rate = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 32000))).setUnits('frames').setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxUplinkStationLearningGenRate.setStatus('current') stpx_uplink_station_learning_frames = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly') if mibBuilder.loadTexts: stpxUplinkStationLearningFrames.setStatus('current') stpx_uplink_fast_oper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxUplinkFastOperEnabled.setStatus('current') stpx_preferred_vlans_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1)) if mibBuilder.loadTexts: stpxPreferredVlansTable.setStatus('current') stpx_preferred_vlans_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1)) vlanTrunkPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansEntry')) stpxPreferredVlansEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxPreferredVlansEntry.setStatus('current') stpx_preferred_vlans_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(128, 128)).setFixedLength(128)).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPreferredVlansMap.setStatus('current') stpx_preferred_vlans_map2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPreferredVlansMap2k.setStatus('current') stpx_preferred_vlans_map3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPreferredVlansMap3k.setStatus('current') stpx_preferred_vlans_map4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPreferredVlansMap4k.setStatus('current') stpx_pvst_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2)) if mibBuilder.loadTexts: stpxPVSTVlanTable.setStatus('current') stpx_pvst_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanIndex')) if mibBuilder.loadTexts: stpxPVSTVlanEntry.setStatus('current') stpx_pvst_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 1), vlan_index()) if mibBuilder.loadTexts: stpxPVSTVlanIndex.setStatus('current') stpx_pvst_vlan_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('notApplicable', 3))).clone('enabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPVSTVlanEnable.setStatus('current') stpx_inconsistency_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1)) if mibBuilder.loadTexts: stpxInconsistencyTable.setStatus('current') stpx_inconsistency_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxVlanIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxPortIndex')) if mibBuilder.loadTexts: stpxInconsistencyEntry.setStatus('current') stpx_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 1), vlan_index()) if mibBuilder.loadTexts: stpxVlanIndex.setStatus('current') stpx_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxPortIndex.setStatus('current') stpx_inconsistent_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 3, 1, 1, 3), bits().clone(namedValues=named_values(('typeInconsistent', 0), ('pvidInconsistent', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxInconsistentState.setStatus('current') stpx_backbone_fast_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxBackboneFastEnabled.setStatus('current') stpx_backbone_fast_in_inferior_bpd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBackboneFastInInferiorBPDUs.setStatus('current') stpx_backbone_fast_in_rlq_request_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBackboneFastInRLQRequestPDUs.setStatus('current') stpx_backbone_fast_in_rlq_response_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBackboneFastInRLQResponsePDUs.setStatus('current') stpx_backbone_fast_out_rlq_request_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBackboneFastOutRLQRequestPDUs.setStatus('current') stpx_backbone_fast_out_rlq_response_pd_us = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBackboneFastOutRLQResponsePDUs.setStatus('current') stpx_backbone_fast_oper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 4, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBackboneFastOperEnabled.setStatus('current') stpx_root_guard_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1)) if mibBuilder.loadTexts: stpxRootGuardConfigTable.setStatus('current') stpx_root_guard_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardConfigPortIndex')) if mibBuilder.loadTexts: stpxRootGuardConfigEntry.setStatus('current') stpx_root_guard_config_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxRootGuardConfigPortIndex.setStatus('current') stpx_root_guard_config_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 1, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxRootGuardConfigEnabled.setStatus('current') stpx_root_inconsistency_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2)) if mibBuilder.loadTexts: stpxRootInconsistencyTable.setStatus('current') stpx_root_inconsistency_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyPortIndex')) if mibBuilder.loadTexts: stpxRootInconsistencyEntry.setStatus('current') stpx_root_inconsistency_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: stpxRootInconsistencyIndex.setStatus('current') stpx_root_inconsistency_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxRootInconsistencyPortIndex.setStatus('current') stpx_root_inconsistency_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 5, 2, 1, 3), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxRootInconsistencyState.setStatus('current') stpx_spanning_tree_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('pvstPlus', 1), ('mistp', 2), ('mistpPvstPlus', 3), ('mst', 4), ('rapidPvstPlus', 5))).clone('pvstPlus')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxSpanningTreeType.setStatus('current') stpx_spanning_tree_path_cost_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('short', 1), ('long', 2))).clone('short')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxSpanningTreePathCostMode.setStatus('current') stpx_long_stp_port_path_cost_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3)) if mibBuilder.loadTexts: stpxLongStpPortPathCostTable.setStatus('current') stpx_long_stp_port_path_cost_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1)) dot1dStpPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxLongStpPortPathCostEntry')) stpxLongStpPortPathCostEntry.setIndexNames(*dot1dStpPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxLongStpPortPathCostEntry.setStatus('current') stpx_long_stp_port_path_cost = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 3, 1, 1), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxLongStpPortPathCost.setStatus('current') stpx_extended_sys_id_admin_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxExtendedSysIDAdminEnabled.setStatus('current') stpx_extended_sys_id_oper_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxExtendedSysIDOperEnabled.setStatus('current') stpx_notification_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 6), bits().clone(namedValues=named_values(('newRoot', 0), ('topologyChange', 1), ('inconsistency', 2), ('rootInconsistency', 3), ('loopInconsistency', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxNotificationEnable.setStatus('current') stpx_spanning_tree_path_cost_oper_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 6, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('short', 1), ('long', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSpanningTreePathCostOperMode.setStatus('current') stpx_mistp_instance_number = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMISTPInstanceNumber.setStatus('current') stpx_mistp_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2)) if mibBuilder.loadTexts: stpxMISTPInstanceTable.setStatus('current') stpx_mistp_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceIndex')) if mibBuilder.loadTexts: stpxMISTPInstanceEntry.setStatus('current') stpx_mistp_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))) if mibBuilder.loadTexts: stpxMISTPInstanceIndex.setStatus('current') stpx_mistp_instance_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 2), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMISTPInstanceEnable.setStatus('current') stpx_mistp_instance_vlans_mapped = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped.setStatus('current') stpx_mistp_instance_vlans_mapped2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped2k.setStatus('current') stpx_mistp_instance_vlans_mapped3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped3k.setStatus('current') stpx_mistp_instance_vlans_mapped4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMISTPInstanceVlansMapped4k.setStatus('current') stpx_vlan_mistp_inst_map_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3)) if mibBuilder.loadTexts: stpxVlanMISTPInstMapTable.setStatus('current') stpx_vlan_mistp_inst_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1)) vtpVlanEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapEntry')) stpxVlanMISTPInstMapEntry.setIndexNames(*vtpVlanEntry.getIndexNames()) if mibBuilder.loadTexts: stpxVlanMISTPInstMapEntry.setStatus('current') stpx_vlan_mistp_inst_map_inst_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxVlanMISTPInstMapInstIndex.setStatus('current') stpx_vlan_mistp_inst_map_edit_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4)) if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditTable.setStatus('current') stpx_vlan_mistp_inst_map_edit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1)) vtpVlanEditEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapEditEntry')) stpxVlanMISTPInstMapEditEntry.setIndexNames(*vtpVlanEditEntry.getIndexNames()) if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditEntry.setStatus('current') stpx_vlan_mistp_inst_map_edit_inst_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))).setMaxAccess('readcreate') if mibBuilder.loadTexts: stpxVlanMISTPInstMapEditInstIndex.setStatus('current') stpx_preferred_mistp_instances_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5)) if mibBuilder.loadTexts: stpxPreferredMISTPInstancesTable.setStatus('current') stpx_preferred_mistp_instances_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1)) vlanTrunkPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMISTPInstancesEntry')) stpxPreferredMISTPInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxPreferredMISTPInstancesEntry.setStatus('current') stpx_preferred_mistp_instances_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 7, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPreferredMISTPInstancesMap.setStatus('current') stpx_loop_guard_config_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1)) if mibBuilder.loadTexts: stpxLoopGuardConfigTable.setStatus('current') stpx_loop_guard_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardConfigPortIndex')) if mibBuilder.loadTexts: stpxLoopGuardConfigEntry.setStatus('current') stpx_loop_guard_config_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxLoopGuardConfigPortIndex.setStatus('current') stpx_loop_guard_config_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxLoopGuardConfigEnabled.setStatus('deprecated') stpx_loop_guard_config_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('default', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxLoopGuardConfigMode.setStatus('current') stpx_loop_inconsistency_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2)) if mibBuilder.loadTexts: stpxLoopInconsistencyTable.setStatus('current') stpx_loop_inconsistency_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyPortIndex')) if mibBuilder.loadTexts: stpxLoopInconsistencyEntry.setStatus('current') stpx_loop_inconsistency_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: stpxLoopInconsistencyIndex.setStatus('current') stpx_loop_inconsistency_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxLoopInconsistencyPortIndex.setStatus('current') stpx_loop_inconsistency_state = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 2, 1, 3), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxLoopInconsistencyState.setStatus('current') stpx_loop_guard_global_default_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 8, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxLoopGuardGlobalDefaultMode.setStatus('current') stpx_fast_start_bpdu_guard_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartBpduGuardEnable.setStatus('current') stpx_fast_start_bpdu_filter_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartBpduFilterEnable.setStatus('current') stpx_fast_start_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3)) if mibBuilder.loadTexts: stpxFastStartPortTable.setStatus('current') stpx_fast_start_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortIndex')) if mibBuilder.loadTexts: stpxFastStartPortEntry.setStatus('current') stpx_fast_start_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxFastStartPortIndex.setStatus('current') stpx_fast_start_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 2), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartPortEnable.setStatus('deprecated') stpx_fast_start_port_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('enableForTrunk', 3), ('default', 4), ('network', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartPortMode.setStatus('current') stpx_fast_start_port_bpdu_guard_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('default', 3))).clone('default')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartPortBpduGuardMode.setStatus('current') stpx_fast_start_port_bpdu_filter_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('default', 3))).clone('default')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartPortBpduFilterMode.setStatus('current') stpx_fast_start_global_default_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxFastStartGlobalDefaultMode.setStatus('current') stpx_fast_start_oper_mode_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5)) if mibBuilder.loadTexts: stpxFastStartOperModeTable.setStatus('current') stpx_fast_start_oper_mode_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeInstIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModePortIndex')) if mibBuilder.loadTexts: stpxFastStartOperModeEntry.setStatus('current') stpx_fast_start_oper_mode_inst_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: stpxFastStartOperModeInstIndex.setStatus('current') stpx_fast_start_oper_mode_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxFastStartOperModePortIndex.setStatus('current') stpx_fast_start_oper_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 9, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxFastStartOperMode.setStatus('current') stpx_bpdu_skewing_detection_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxBpduSkewingDetectionEnable.setStatus('current') stpx_bpdu_skewing_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2)) if mibBuilder.loadTexts: stpxBpduSkewingTable.setStatus('current') stpx_bpdu_skewing_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingInstanceIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingPortIndex')) if mibBuilder.loadTexts: stpxBpduSkewingEntry.setStatus('current') stpx_bpdu_skewing_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: stpxBpduSkewingInstanceIndex.setStatus('current') stpx_bpdu_skewing_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxBpduSkewingPortIndex.setStatus('current') stpx_bpdu_skewing_last_skew_duration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 3), unsigned32()).setUnits('milliseconds').setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBpduSkewingLastSkewDuration.setStatus('current') stpx_bpdu_skewing_worst_skew_duration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 4), unsigned32()).setUnits('milliseconds').setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewDuration.setStatus('current') stpx_bpdu_skewing_worst_skew_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 10, 2, 1, 5), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxBpduSkewingWorstSkewTime.setStatus('current') stpx_mst_max_instance_number = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTMaxInstanceNumber.setStatus('deprecated') stpx_mst_region_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTRegionName.setStatus('current') stpx_mst_region_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTRegionRevision.setStatus('deprecated') stpx_mst_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4)) if mibBuilder.loadTexts: stpxMSTInstanceTable.setStatus('deprecated') stpx_mst_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceIndex')) if mibBuilder.loadTexts: stpxMSTInstanceEntry.setStatus('deprecated') stpx_mst_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))) if mibBuilder.loadTexts: stpxMSTInstanceIndex.setStatus('deprecated') stpx_mst_instance_vlans_mapped = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped.setStatus('deprecated') stpx_mst_instance_vlans_mapped2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped2k.setStatus('deprecated') stpx_mst_instance_vlans_mapped3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped3k.setStatus('deprecated') stpx_mst_instance_vlans_mapped4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTInstanceVlansMapped4k.setStatus('deprecated') stpx_mst_instance_remaining_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 4, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 40))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTInstanceRemainingHopCount.setStatus('deprecated') stpx_mst_region_edit_buffer_status = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('released', 1), ('acquiredBySnmp', 2), ('acquiredByNonSnmp', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTRegionEditBufferStatus.setStatus('current') stpx_mst_region_edit_buffer_operation = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('acquire', 2), ('releaseWithForce', 3), ('commit', 4), ('rollBack', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTRegionEditBufferOperation.setStatus('current') stpx_mst_region_edit_name = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTRegionEditName.setStatus('current') stpx_mst_region_edit_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTRegionEditRevision.setStatus('deprecated') stpx_mst_instance_edit_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9)) if mibBuilder.loadTexts: stpxMSTInstanceEditTable.setStatus('deprecated') stpx_mst_instance_edit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditIndex')) if mibBuilder.loadTexts: stpxMSTInstanceEditEntry.setStatus('deprecated') stpx_mst_instance_edit_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))) if mibBuilder.loadTexts: stpxMSTInstanceEditIndex.setStatus('deprecated') stpx_mst_instance_edit_vlans_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap.setStatus('deprecated') stpx_mst_instance_edit_vlans_map2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap2k.setStatus('deprecated') stpx_mst_instance_edit_vlans_map3k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap3k.setStatus('deprecated') stpx_mst_instance_edit_vlans_map4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 9, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTInstanceEditVlansMap4k.setStatus('deprecated') stpx_preferred_mst_instances_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10)) if mibBuilder.loadTexts: stpxPreferredMSTInstancesTable.setStatus('deprecated') stpx_preferred_mst_instances_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1)) vlanTrunkPortEntry.registerAugmentions(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesEntry')) stpxPreferredMSTInstancesEntry.setIndexNames(*vlanTrunkPortEntry.getIndexNames()) if mibBuilder.loadTexts: stpxPreferredMSTInstancesEntry.setStatus('deprecated') stpx_preferred_mst_instances_map = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 10, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxPreferredMSTInstancesMap.setStatus('deprecated') stpx_mst_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11)) if mibBuilder.loadTexts: stpxMSTPortTable.setStatus('deprecated') stpx_mst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortIndex')) if mibBuilder.loadTexts: stpxMSTPortEntry.setStatus('deprecated') stpx_mst_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxMSTPortIndex.setStatus('deprecated') stpx_mst_port_admin_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('auto', 3))).clone('auto')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTPortAdminLinkType.setStatus('deprecated') stpx_mst_port_oper_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('other', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTPortOperLinkType.setStatus('deprecated') stpx_mst_port_protocol_migration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTPortProtocolMigration.setStatus('deprecated') stpx_mst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 11, 1, 5), bits().clone(namedValues=named_values(('edge', 0), ('boundary', 1), ('pvst', 2), ('stp', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTPortStatus.setStatus('deprecated') stpx_mst_port_role_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12)) if mibBuilder.loadTexts: stpxMSTPortRoleTable.setStatus('deprecated') stpx_mst_port_role_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortRoleInstanceIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortRolePortIndex')) if mibBuilder.loadTexts: stpxMSTPortRoleEntry.setStatus('deprecated') stpx_mst_port_role_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 256))) if mibBuilder.loadTexts: stpxMSTPortRoleInstanceIndex.setStatus('deprecated') stpx_mst_port_role_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxMSTPortRolePortIndex.setStatus('deprecated') stpx_mst_port_role_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 12, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('disabled', 1), ('root', 2), ('designated', 3), ('alternate', 4), ('backUp', 5), ('boundary', 6), ('master', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxMSTPortRoleValue.setStatus('deprecated') stpx_mst_max_hop_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 11, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 40)).clone(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxMSTMaxHopCount.setStatus('deprecated') stpx_rstp_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1)) if mibBuilder.loadTexts: stpxRSTPPortTable.setStatus('current') stpx_rstp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortIndex')) if mibBuilder.loadTexts: stpxRSTPPortEntry.setStatus('current') stpx_rstp_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxRSTPPortIndex.setStatus('current') stpx_rstp_port_admin_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('auto', 3))).clone('auto')).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxRSTPPortAdminLinkType.setStatus('current') stpx_rstp_port_oper_link_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pointToPoint', 1), ('shared', 2), ('other', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxRSTPPortOperLinkType.setStatus('current') stpx_rstp_port_protocol_migration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxRSTPPortProtocolMigration.setStatus('current') stpx_rstp_port_role_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2)) if mibBuilder.loadTexts: stpxRSTPPortRoleTable.setStatus('current') stpx_rstp_port_role_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortRoleInstanceIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortRolePortIndex')) if mibBuilder.loadTexts: stpxRSTPPortRoleEntry.setStatus('current') stpx_rstp_port_role_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 4095))) if mibBuilder.loadTexts: stpxRSTPPortRoleInstanceIndex.setStatus('current') stpx_rstp_port_role_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxRSTPPortRolePortIndex.setStatus('current') stpx_rstp_port_role_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('disabled', 1), ('root', 2), ('designated', 3), ('alternate', 4), ('backUp', 5), ('boundary', 6), ('master', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxRSTPPortRoleValue.setStatus('current') stpx_rstp_transmit_hold_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 12, 3), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxRSTPTransmitHoldCount.setStatus('current') stpx_rpvst_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1)) if mibBuilder.loadTexts: stpxRPVSTPortTable.setStatus('current') stpx_rpvst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTPortVlanIndex'), (0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTPortIndex')) if mibBuilder.loadTexts: stpxRPVSTPortEntry.setStatus('current') stpx_rpvst_port_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 1), vlan_index()) if mibBuilder.loadTexts: stpxRPVSTPortVlanIndex.setStatus('current') stpx_rpvst_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxRPVSTPortIndex.setStatus('current') stpx_rpvst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 13, 1, 1, 3), bits().clone(namedValues=named_values(('edge', 0), ('unused1', 1), ('unused2', 2), ('stp', 3), ('dispute', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxRPVSTPortStatus.setStatus('current') stpx_smst_max_instances = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTMaxInstances.setStatus('current') stpx_smst_max_instance_id = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTMaxInstanceID.setStatus('current') stpx_smst_region_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTRegionRevision.setStatus('current') stpx_smst_region_edit_revision = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 4), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxSMSTRegionEditRevision.setStatus('current') stpx_smst_instance_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5)) if mibBuilder.loadTexts: stpxSMSTInstanceTable.setStatus('current') stpx_smst_instance_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceIndex')) if mibBuilder.loadTexts: stpxSMSTInstanceEntry.setStatus('current') stpx_smst_instance_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 1), unsigned32()) if mibBuilder.loadTexts: stpxSMSTInstanceIndex.setStatus('current') stpx_smst_instance_vlans_mapped1k2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped1k2k.setStatus('current') stpx_smst_instance_vlans_mapped3k4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTInstanceVlansMapped3k4k.setStatus('current') stpx_smst_instance_remaining_hop_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTInstanceRemainingHopCount.setStatus('current') stpx_smst_instance_cist_regional_root = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTInstanceCISTRegionalRoot.setStatus('current') stpx_smst_instance_cist_int_root_cost = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 5, 1, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTInstanceCISTIntRootCost.setStatus('current') stpx_smst_instance_edit_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6)) if mibBuilder.loadTexts: stpxSMSTInstanceEditTable.setStatus('current') stpx_smst_instance_edit_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditIndex')) if mibBuilder.loadTexts: stpxSMSTInstanceEditEntry.setStatus('current') stpx_smst_instance_edit_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 1), unsigned32()) if mibBuilder.loadTexts: stpxSMSTInstanceEditIndex.setStatus('current') stpx_smst_instance_edit_vlans_map1k2k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readcreate') if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap1k2k.setStatus('current') stpx_smst_instance_edit_vlans_map3k4k = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readcreate') if mibBuilder.loadTexts: stpxSMSTInstanceEditVlansMap3k4k.setStatus('current') stpx_smst_instance_edit_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 6, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: stpxSMSTInstanceEditRowStatus.setStatus('current') stpx_smst_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7)) if mibBuilder.loadTexts: stpxSMSTPortTable.setStatus('current') stpx_smst_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1)).setIndexNames((0, 'CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortIndex')) if mibBuilder.loadTexts: stpxSMSTPortEntry.setStatus('current') stpx_smst_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))) if mibBuilder.loadTexts: stpxSMSTPortIndex.setStatus('current') stpx_smst_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 2), bits().clone(namedValues=named_values(('edge', 0), ('boundary', 1), ('pvst', 2), ('stp', 3), ('dispute', 4), ('rstp', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTPortStatus.setStatus('current') stpx_smst_port_admin_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 3), unsigned32()).setUnits('hundredth of seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxSMSTPortAdminHelloTime.setStatus('current') stpx_smst_port_configed_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 4), unsigned32()).setUnits('hundredth of seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTPortConfigedHelloTime.setStatus('current') stpx_smst_port_oper_hello_time = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(-1, 2147483647))).setUnits('hundredth of seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTPortOperHelloTime.setStatus('current') stpx_smst_port_admin_mst_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('preStandard', 1), ('auto', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxSMSTPortAdminMSTMode.setStatus('current') stpx_smst_port_oper_mst_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 7, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('preStandard', 2), ('standard', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTPortOperMSTMode.setStatus('current') stpx_smst_max_hop_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 8), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: stpxSMSTMaxHopCount.setStatus('current') stpx_smst_config_digest = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 9), stpx_mst_configuration_digest()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTConfigDigest.setStatus('current') stpx_smst_config_pre_standard_digest = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 82, 1, 14, 10), stpx_mst_configuration_digest()).setMaxAccess('readonly') if mibBuilder.loadTexts: stpxSMSTConfigPreStandardDigest.setStatus('current') stpx_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0)) stpx_inconsistency_update = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 1)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxInconsistentState')) if mibBuilder.loadTexts: stpxInconsistencyUpdate.setStatus('current') stpx_root_inconsistency_update = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 2)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyState'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeType')) if mibBuilder.loadTexts: stpxRootInconsistencyUpdate.setStatus('current') stpx_loop_inconsistency_update = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 82, 2, 0, 3)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyState'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeType')) if mibBuilder.loadTexts: stpxLoopInconsistencyUpdate.setStatus('current') stpx_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3)) stpx_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1)) stpx_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2)) stpx_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 1)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance = stpxMIBCompliance.setStatus('deprecated') stpx_mib_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 2)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance2 = stpxMIBCompliance2.setStatus('deprecated') stpx_mib_compliance3 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 3)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance3 = stpxMIBCompliance3.setStatus('deprecated') stpx_mib_compliance4 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 4)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance4 = stpxMIBCompliance4.setStatus('deprecated') stpx_mib_compliance5 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 5)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance5 = stpxMIBCompliance5.setStatus('deprecated') stpx_mib_compliance6 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 6)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance6 = stpxMIBCompliance6.setStatus('deprecated') stpx_mib_compliance7 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 7)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance7 = stpxMIBCompliance7.setStatus('deprecated') stpx_mib_compliance8 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 8)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance8 = stpxMIBCompliance8.setStatus('deprecated') stpx_mib_compliance9 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 9)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance9 = stpxMIBCompliance9.setStatus('deprecated') stpx_mib_compliance10 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 10)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance10 = stpxMIBCompliance10.setStatus('deprecated') stpx_mib_compliance11 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 11)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPathCostOperModeGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance11 = stpxMIBCompliance11.setStatus('deprecated') stpx_mib_compliance12 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 1, 12)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSstpGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpx4kVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongPathCostModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyNotificationsGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGroup3'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneGroup2'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPTransmitHoldCountGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnableGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTGroup4'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxHopCountGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatusGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortHelloTimeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPathCostOperModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortMSTModeGroup'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTConfigDigestGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mib_compliance12 = stpxMIBCompliance12.setStatus('current') stpx_uplink_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 1)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkFastEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkFastTransitions'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkStationLearningGenRate'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkStationLearningFrames')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_uplink_group = stpxUplinkGroup.setStatus('current') stpx_preferred_vlans_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 2)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_preferred_vlans_group = stpxPreferredVlansGroup.setStatus('current') stpx_sstp_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 3)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxInconsistentState')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_sstp_group = stpxSstpGroup.setStatus('current') stpx_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 4)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxInconsistencyUpdate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_notifications_group = stpxNotificationsGroup.setStatus('current') stpx_backbone_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 5)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastInInferiorBPDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastInRLQRequestPDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastInRLQResponsePDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastOutRLQRequestPDUs'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastOutRLQResponsePDUs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_backbone_group = stpxBackboneGroup.setStatus('current') stpx_root_guard_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 6)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRootGuardConfigEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyState')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_root_guard_group = stpxRootGuardGroup.setStatus('current') stpx_root_inconsistency_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 7)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRootInconsistencyUpdate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_root_inconsistency_notifications_group = stpxRootInconsistencyNotificationsGroup.setStatus('current') stpx4k_vlan_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 8)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredVlansMap4k')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx4k_vlan_group = stpx4kVlanGroup.setStatus('current') stpx_spanning_tree_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 9)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreeType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_spanning_tree_group = stpxSpanningTreeGroup.setStatus('current') stpx_mistp_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 10)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceNumber'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapInstIndex'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxVlanMISTPInstMapEditInstIndex'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMISTPInstancesMap')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mistp_group = stpxMISTPGroup.setStatus('current') stpx_long_path_cost_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 11)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreePathCostMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLongStpPortPathCost')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_long_path_cost_mode_group = stpxLongPathCostModeGroup.setStatus('current') stpx_pvst_vlan_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 12)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPVSTVlanEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_pvst_vlan_group = stpxPVSTVlanGroup.setStatus('current') stpx_mistp_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 13)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMISTPInstanceVlansMapped4k')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mistp_group2 = stpxMISTPGroup2.setStatus('current') stpx_loop_guard_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 14)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardConfigEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyState')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_loop_guard_group = stpxLoopGuardGroup.setStatus('deprecated') stpx_loop_inconsistency_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 15)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyUpdate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_loop_inconsistency_notifications_group = stpxLoopInconsistencyNotificationsGroup.setStatus('current') stpx_fast_start_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 16)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduGuardEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduFilterEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_fast_start_group = stpxFastStartGroup.setStatus('deprecated') stpx_bpdu_skewing_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 17)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingDetectionEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingLastSkewDuration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingWorstSkewDuration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxBpduSkewingWorstSkewTime')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_bpdu_skewing_group = stpxBpduSkewingGroup.setStatus('current') stpx_fast_start_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 18)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduGuardEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartBpduFilterEnable'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartGlobalDefaultMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_fast_start_group2 = stpxFastStartGroup2.setStatus('current') stpx_loop_guard_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 19)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopInconsistencyState'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardConfigMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxLoopGuardGlobalDefaultMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_loop_guard_group2 = stpxLoopGuardGroup2.setStatus('current') stpx_mst_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 20)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxInstanceNumber'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceRemainingHopCount'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortAdminLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortOperLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortProtocolMigration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortRoleValue'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxHopCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mst_group = stpxMSTGroup.setStatus('deprecated') stpx_preferred_mst_instances_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 21)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxPreferredMSTInstancesMap')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_preferred_mst_instances_group = stpxPreferredMSTInstancesGroup.setStatus('deprecated') stpx_fast_start_group3 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 22)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortBpduGuardMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartPortBpduFilterMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_fast_start_group3 = stpxFastStartGroup3.setStatus('current') stpx_uplink_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 23)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxUplinkFastOperEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_uplink_group2 = stpxUplinkGroup2.setStatus('current') stpx_backbone_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 24)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxBackboneFastOperEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_backbone_group2 = stpxBackboneGroup2.setStatus('current') stpx_mst_group2 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 25)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxInstanceNumber'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceVlansMapped4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceRemainingHopCount'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap3k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTInstanceEditVlansMap4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTPortStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxHopCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mst_group2 = stpxMSTGroup2.setStatus('deprecated') stpx_rstp_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 26)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortAdminLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortOperLinkType'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortProtocolMigration'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPPortRoleValue')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_rstp_group = stpxRSTPGroup.setStatus('current') stpx_rpvst_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 27)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRPVSTPortStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_rpvst_group = stpxRPVSTGroup.setStatus('current') stpx_extended_sys_id_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 28)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDAdminEnabled'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxExtendedSysIDOperEnabled')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_extended_sys_id_group = stpxExtendedSysIDGroup.setStatus('current') stpx_notification_enable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 29)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxNotificationEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_notification_enable_group = stpxNotificationEnableGroup.setStatus('current') stpx_fast_start_oper_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 30)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxFastStartOperMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_fast_start_oper_mode_group = stpxFastStartOperModeGroup.setStatus('current') stpx_mst_group3 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 31)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTMaxHopCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mst_group3 = stpxMSTGroup3.setStatus('deprecated') stpx_smst_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 32)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxInstances'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxInstanceID'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTRegionRevision'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTRegionEditRevision')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_group = stpxSMSTGroup.setStatus('current') stpx_smst_instance_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 33)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceVlansMapped1k2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceVlansMapped3k4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceRemainingHopCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_instance_group = stpxSMSTInstanceGroup.setStatus('current') stpx_smst_instance_edit_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 34)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditVlansMap1k2k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditVlansMap3k4k'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceEditRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_instance_edit_group = stpxSMSTInstanceEditGroup.setStatus('current') stpx_smst_port_status_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 35)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_port_status_group = stpxSMSTPortStatusGroup.setStatus('current') stpx_smst_port_hello_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 36)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortAdminHelloTime'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortConfigedHelloTime'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortOperHelloTime')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_port_hello_time_group = stpxSMSTPortHelloTimeGroup.setStatus('current') stpx_smst_instance_cist_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 37)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTRegionalRoot'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTInstanceCISTIntRootCost')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_instance_cist_group = stpxSMSTInstanceCISTGroup.setStatus('current') stpx_path_cost_oper_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 38)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSpanningTreePathCostOperMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_path_cost_oper_mode_group = stpxPathCostOperModeGroup.setStatus('current') stpx_rstp_transmit_hold_count_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 39)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxRSTPTransmitHoldCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_rstp_transmit_hold_count_group = stpxRSTPTransmitHoldCountGroup.setStatus('current') stpx_smst_port_mst_mode_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 40)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortAdminMSTMode'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTPortOperMSTMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_port_mst_mode_group = stpxSMSTPortMSTModeGroup.setStatus('current') stpx_smst_max_hop_count_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 41)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTMaxHopCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_max_hop_count_group = stpxSMSTMaxHopCountGroup.setStatus('current') stpx_smst_config_digest_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 42)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTConfigDigest'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxSMSTConfigPreStandardDigest')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_smst_config_digest_group = stpxSMSTConfigDigestGroup.setStatus('current') stpx_mst_group4 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 82, 3, 2, 43)).setObjects(('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionName'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferStatus'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditBufferOperation'), ('CISCO-STP-EXTENSIONS-MIB', 'stpxMSTRegionEditName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): stpx_mst_group4 = stpxMSTGroup4.setStatus('current') mibBuilder.exportSymbols('CISCO-STP-EXTENSIONS-MIB', stpxMIBCompliance2=stpxMIBCompliance2, stpxBackboneFastInRLQRequestPDUs=stpxBackboneFastInRLQRequestPDUs, stpxFastStartOperModeInstIndex=stpxFastStartOperModeInstIndex, stpxPathCostOperModeGroup=stpxPathCostOperModeGroup, stpxRootGuardConfigEntry=stpxRootGuardConfigEntry, stpxSMSTInstanceEditVlansMap3k4k=stpxSMSTInstanceEditVlansMap3k4k, stpxSMSTConfigDigest=stpxSMSTConfigDigest, stpxFastStartGroup3=stpxFastStartGroup3, stpxVlanMISTPInstMapTable=stpxVlanMISTPInstMapTable, stpxFastStartPortMode=stpxFastStartPortMode, stpxRSTPPortIndex=stpxRSTPPortIndex, stpxSpanningTreeGroup=stpxSpanningTreeGroup, stpxSMSTInstanceEditTable=stpxSMSTInstanceEditTable, PYSNMP_MODULE_ID=ciscoStpExtensionsMIB, stpxPreferredVlansMap4k=stpxPreferredVlansMap4k, stpxUplinkFastTransitions=stpxUplinkFastTransitions, stpxRSTPPortRolePortIndex=stpxRSTPPortRolePortIndex, stpxSMSTInstanceCISTGroup=stpxSMSTInstanceCISTGroup, stpxRSTPPortEntry=stpxRSTPPortEntry, stpxFastStartGroup=stpxFastStartGroup, stpxFastStartOperMode=stpxFastStartOperMode, stpxMIBCompliance8=stpxMIBCompliance8, stpxBackboneFastInInferiorBPDUs=stpxBackboneFastInInferiorBPDUs, stpxBpduSkewingWorstSkewTime=stpxBpduSkewingWorstSkewTime, stpxSstpGroup=stpxSstpGroup, stpxPreferredMSTInstancesMap=stpxPreferredMSTInstancesMap, stpxSMSTPortAdminMSTMode=stpxSMSTPortAdminMSTMode, stpxRootInconsistencyUpdate=stpxRootInconsistencyUpdate, stpxPreferredVlansEntry=stpxPreferredVlansEntry, stpxBpduSkewingWorstSkewDuration=stpxBpduSkewingWorstSkewDuration, stpxRSTPPortProtocolMigration=stpxRSTPPortProtocolMigration, stpxPreferredVlansMap3k=stpxPreferredVlansMap3k, stpxMSTGroup4=stpxMSTGroup4, stpxMSTPortRoleTable=stpxMSTPortRoleTable, stpxLoopGuardConfigEnabled=stpxLoopGuardConfigEnabled, stpxFastStartPortIndex=stpxFastStartPortIndex, stpxVlanMISTPInstMapEditEntry=stpxVlanMISTPInstMapEditEntry, stpxRootInconsistencyPortIndex=stpxRootInconsistencyPortIndex, stpxMSTInstanceVlansMapped3k=stpxMSTInstanceVlansMapped3k, stpxFastStartGroup2=stpxFastStartGroup2, stpxUplinkFastEnabled=stpxUplinkFastEnabled, stpxRootInconsistencyIndex=stpxRootInconsistencyIndex, stpxMSTPortAdminLinkType=stpxMSTPortAdminLinkType, stpxMSTPortRoleInstanceIndex=stpxMSTPortRoleInstanceIndex, stpxSMSTMaxHopCountGroup=stpxSMSTMaxHopCountGroup, stpxRootGuardObjects=stpxRootGuardObjects, stpxLoopGuardGlobalDefaultMode=stpxLoopGuardGlobalDefaultMode, stpxMSTInstanceEditVlansMap2k=stpxMSTInstanceEditVlansMap2k, stpxObjects=stpxObjects, stpxSMSTPortConfigedHelloTime=stpxSMSTPortConfigedHelloTime, stpxMSTInstanceTable=stpxMSTInstanceTable, stpxMSTRegionEditBufferOperation=stpxMSTRegionEditBufferOperation, stpxMSTPortProtocolMigration=stpxMSTPortProtocolMigration, stpxMSTRegionEditRevision=stpxMSTRegionEditRevision, stpxSMSTObjects=stpxSMSTObjects, stpxMISTPInstanceVlansMapped3k=stpxMISTPInstanceVlansMapped3k, stpxRootGuardGroup=stpxRootGuardGroup, stpxMIBCompliances=stpxMIBCompliances, stpxUplinkStationLearningGenRate=stpxUplinkStationLearningGenRate, stpxSMSTInstanceRemainingHopCount=stpxSMSTInstanceRemainingHopCount, stpxBackboneFastEnabled=stpxBackboneFastEnabled, stpxMSTInstanceEditEntry=stpxMSTInstanceEditEntry, stpxSMSTPortOperHelloTime=stpxSMSTPortOperHelloTime, stpxMSTGroup2=stpxMSTGroup2, stpxVlanMISTPInstMapInstIndex=stpxVlanMISTPInstMapInstIndex, stpxSMSTPortIndex=stpxSMSTPortIndex, stpxFastStartObjects=stpxFastStartObjects, stpxRPVSTPortEntry=stpxRPVSTPortEntry, stpxInconsistencyObjects=stpxInconsistencyObjects, stpxUplinkStationLearningFrames=stpxUplinkStationLearningFrames, stpxNotificationEnableGroup=stpxNotificationEnableGroup, stpxBackboneFastOperEnabled=stpxBackboneFastOperEnabled, stpxLongStpPortPathCostEntry=stpxLongStpPortPathCostEntry, stpxMISTPInstanceEntry=stpxMISTPInstanceEntry, stpxMSTPortRoleValue=stpxMSTPortRoleValue, stpxMISTPGroup=stpxMISTPGroup, stpxRootGuardConfigTable=stpxRootGuardConfigTable, stpxMISTPInstanceVlansMapped=stpxMISTPInstanceVlansMapped, stpxMSTInstanceEntry=stpxMSTInstanceEntry, stpxMSTInstanceVlansMapped=stpxMSTInstanceVlansMapped, stpxSMSTInstanceVlansMapped1k2k=stpxSMSTInstanceVlansMapped1k2k, stpxPortIndex=stpxPortIndex, stpxRootGuardConfigPortIndex=stpxRootGuardConfigPortIndex, stpxLoopGuardConfigMode=stpxLoopGuardConfigMode, stpxSMSTInstanceCISTRegionalRoot=stpxSMSTInstanceCISTRegionalRoot, stpxSMSTPortEntry=stpxSMSTPortEntry, stpxSMSTPortStatus=stpxSMSTPortStatus, stpxSMSTMaxHopCount=stpxSMSTMaxHopCount, stpxLoopInconsistencyNotificationsGroup=stpxLoopInconsistencyNotificationsGroup, stpxLoopInconsistencyPortIndex=stpxLoopInconsistencyPortIndex, stpxSMSTPortOperMSTMode=stpxSMSTPortOperMSTMode, stpxLoopGuardConfigTable=stpxLoopGuardConfigTable, stpxLoopGuardGroup2=stpxLoopGuardGroup2, stpxSMSTConfigPreStandardDigest=stpxSMSTConfigPreStandardDigest, stpxFastStartPortTable=stpxFastStartPortTable, stpxRSTPTransmitHoldCount=stpxRSTPTransmitHoldCount, stpxMIBCompliance5=stpxMIBCompliance5, stpxMSTInstanceVlansMapped2k=stpxMSTInstanceVlansMapped2k, stpxUplinkFastOperEnabled=stpxUplinkFastOperEnabled, stpxSMSTInstanceEditIndex=stpxSMSTInstanceEditIndex, stpxBackboneFastOutRLQRequestPDUs=stpxBackboneFastOutRLQRequestPDUs, stpxBackboneFastOutRLQResponsePDUs=stpxBackboneFastOutRLQResponsePDUs, stpxMSTRegionEditName=stpxMSTRegionEditName, stpxMISTPInstanceVlansMapped2k=stpxMISTPInstanceVlansMapped2k, stpxMSTInstanceEditVlansMap3k=stpxMSTInstanceEditVlansMap3k, stpxSMSTInstanceCISTIntRootCost=stpxSMSTInstanceCISTIntRootCost, stpxFastStartBpduFilterEnable=stpxFastStartBpduFilterEnable, stpxFastStartPortEntry=stpxFastStartPortEntry, stpxLoopInconsistencyUpdate=stpxLoopInconsistencyUpdate, stpxRootInconsistencyNotificationsGroup=stpxRootInconsistencyNotificationsGroup, stpxMSTGroup=stpxMSTGroup, stpxMISTPInstanceIndex=stpxMISTPInstanceIndex, stpxMSTPortOperLinkType=stpxMSTPortOperLinkType, stpxPreferredVlansGroup=stpxPreferredVlansGroup, stpxSMSTInstanceEditVlansMap1k2k=stpxSMSTInstanceEditVlansMap1k2k, stpxVlanMISTPInstMapEditInstIndex=stpxVlanMISTPInstMapEditInstIndex, stpxFastStartPortEnable=stpxFastStartPortEnable, stpxPreferredVlansMap=stpxPreferredVlansMap, stpxLoopInconsistencyIndex=stpxLoopInconsistencyIndex, stpxRSTPPortRoleEntry=stpxRSTPPortRoleEntry, stpxNotificationsGroup=stpxNotificationsGroup, stpxExtendedSysIDOperEnabled=stpxExtendedSysIDOperEnabled, stpxMIBCompliance4=stpxMIBCompliance4, stpxMSTRegionEditBufferStatus=stpxMSTRegionEditBufferStatus, stpxMSTPortIndex=stpxMSTPortIndex, stpxMSTPortRoleEntry=stpxMSTPortRoleEntry, stpxPVSTVlanTable=stpxPVSTVlanTable, stpxSMSTPortStatusGroup=stpxSMSTPortStatusGroup, stpxBpduSkewingTable=stpxBpduSkewingTable, stpxRPVSTPortTable=stpxRPVSTPortTable, stpxPreferredVlansMap2k=stpxPreferredVlansMap2k, stpxMSTInstanceRemainingHopCount=stpxMSTInstanceRemainingHopCount, stpxBpduSkewingInstanceIndex=stpxBpduSkewingInstanceIndex, stpxVlanMISTPInstMapEditTable=stpxVlanMISTPInstMapEditTable, stpxMSTPortStatus=stpxMSTPortStatus, stpxPVSTVlanEntry=stpxPVSTVlanEntry, stpxFastStartOperModePortIndex=stpxFastStartOperModePortIndex, stpxMSTInstanceEditTable=stpxMSTInstanceEditTable, stpxFastStartBpduGuardEnable=stpxFastStartBpduGuardEnable, stpxSMSTPortTable=stpxSMSTPortTable, stpxSMSTPortHelloTimeGroup=stpxSMSTPortHelloTimeGroup, stpxPVSTVlanGroup=stpxPVSTVlanGroup, stpx4kVlanGroup=stpx4kVlanGroup, stpxSpanningTreeType=stpxSpanningTreeType, stpxMSTPortTable=stpxMSTPortTable, stpxMSTMaxInstanceNumber=stpxMSTMaxInstanceNumber, stpxPreferredMSTInstancesEntry=stpxPreferredMSTInstancesEntry, stpxMISTPObjects=stpxMISTPObjects, stpxMISTPInstanceVlansMapped4k=stpxMISTPInstanceVlansMapped4k, stpxNotifications=stpxNotifications, stpxMISTPInstanceNumber=stpxMISTPInstanceNumber, stpxMSTInstanceIndex=stpxMSTInstanceIndex, stpxSMSTInstanceGroup=stpxSMSTInstanceGroup, stpxSMSTInstanceEditEntry=stpxSMSTInstanceEditEntry, ciscoStpExtensionsMIB=ciscoStpExtensionsMIB, stpxLoopGuardObjects=stpxLoopGuardObjects, stpxRPVSTPortStatus=stpxRPVSTPortStatus, stpxMIBCompliance3=stpxMIBCompliance3, stpxLongPathCostModeGroup=stpxLongPathCostModeGroup, stpxMISTPGroup2=stpxMISTPGroup2, stpxLoopInconsistencyTable=stpxLoopInconsistencyTable, stpxSMSTInstanceEditGroup=stpxSMSTInstanceEditGroup, stpxMSTInstanceVlansMapped4k=stpxMSTInstanceVlansMapped4k, stpxSMSTInstanceTable=stpxSMSTInstanceTable, stpxRootInconsistencyTable=stpxRootInconsistencyTable, stpxPVSTVlanIndex=stpxPVSTVlanIndex, stpxMISTPInstanceTable=stpxMISTPInstanceTable, stpxMSTInstanceEditVlansMap4k=stpxMSTInstanceEditVlansMap4k, stpxRSTPPortTable=stpxRSTPPortTable, stpxBpduSkewingPortIndex=stpxBpduSkewingPortIndex, stpxRSTPGroup=stpxRSTPGroup, stpxMIBCompliance11=stpxMIBCompliance11, stpxRSTPPortRoleInstanceIndex=stpxRSTPPortRoleInstanceIndex, stpxSpanningTreeObjects=stpxSpanningTreeObjects, stpxSMSTMaxInstances=stpxSMSTMaxInstances, stpxSMSTConfigDigestGroup=stpxSMSTConfigDigestGroup, stpxSMSTRegionEditRevision=stpxSMSTRegionEditRevision, stpxRSTPPortOperLinkType=stpxRSTPPortOperLinkType, stpxRPVSTObjects=stpxRPVSTObjects, stpxPreferredMSTInstancesTable=stpxPreferredMSTInstancesTable, stpxUplinkFastObjects=stpxUplinkFastObjects, stpxRPVSTGroup=stpxRPVSTGroup, stpxSMSTInstanceVlansMapped3k4k=stpxSMSTInstanceVlansMapped3k4k, stpxMIBConformance=stpxMIBConformance, stpxMIBCompliance=stpxMIBCompliance, stpxFastStartOperModeEntry=stpxFastStartOperModeEntry, stpxRSTPPortRoleTable=stpxRSTPPortRoleTable, stpxRSTPPortAdminLinkType=stpxRSTPPortAdminLinkType, stpxMIBCompliance9=stpxMIBCompliance9, stpxLoopGuardConfigPortIndex=stpxLoopGuardConfigPortIndex, stpxSMSTInstanceEditRowStatus=stpxSMSTInstanceEditRowStatus, stpxFastStartOperModeGroup=stpxFastStartOperModeGroup, stpxLoopGuardGroup=stpxLoopGuardGroup, stpxExtendedSysIDAdminEnabled=stpxExtendedSysIDAdminEnabled, stpxLoopGuardConfigEntry=stpxLoopGuardConfigEntry, stpxUplinkGroup2=stpxUplinkGroup2, stpxNotificationsPrefix=stpxNotificationsPrefix, stpxLongStpPortPathCost=stpxLongStpPortPathCost, stpxRootInconsistencyState=stpxRootInconsistencyState, stpxRootGuardConfigEnabled=stpxRootGuardConfigEnabled, stpxMIBCompliance6=stpxMIBCompliance6, stpxMIBCompliance10=stpxMIBCompliance10, stpxMIBCompliance12=stpxMIBCompliance12, stpxSMSTPortMSTModeGroup=stpxSMSTPortMSTModeGroup, stpxRSTPObjects=stpxRSTPObjects, stpxMSTPortRolePortIndex=stpxMSTPortRolePortIndex, stpxSpanningTreePathCostMode=stpxSpanningTreePathCostMode, stpxVlanIndex=stpxVlanIndex, stpxBpduSkewingObjects=stpxBpduSkewingObjects, stpxNotificationEnable=stpxNotificationEnable, stpxFastStartPortBpduFilterMode=stpxFastStartPortBpduFilterMode, stpxBpduSkewingDetectionEnable=stpxBpduSkewingDetectionEnable, stpxBackboneFastInRLQResponsePDUs=stpxBackboneFastInRLQResponsePDUs, stpxBackboneGroup2=stpxBackboneGroup2, stpxMSTPortEntry=stpxMSTPortEntry, stpxBackboneGroup=stpxBackboneGroup, stpxMSTInstanceEditVlansMap=stpxMSTInstanceEditVlansMap, stpxMSTInstanceEditIndex=stpxMSTInstanceEditIndex, stpxInconsistencyEntry=stpxInconsistencyEntry, stpxInconsistencyUpdate=stpxInconsistencyUpdate, stpxRPVSTPortIndex=stpxRPVSTPortIndex, stpxBackboneFastObjects=stpxBackboneFastObjects, stpxPreferredMISTPInstancesTable=stpxPreferredMISTPInstancesTable, stpxMSTRegionRevision=stpxMSTRegionRevision, stpxFastStartPortBpduGuardMode=stpxFastStartPortBpduGuardMode, stpxPreferredMISTPInstancesEntry=stpxPreferredMISTPInstancesEntry, stpxSMSTInstanceIndex=stpxSMSTInstanceIndex, stpxInconsistentState=stpxInconsistentState, stpxLongStpPortPathCostTable=stpxLongStpPortPathCostTable, stpxFastStartGlobalDefaultMode=stpxFastStartGlobalDefaultMode, stpxBpduSkewingEntry=stpxBpduSkewingEntry, stpxSMSTPortAdminHelloTime=stpxSMSTPortAdminHelloTime, stpxSMSTGroup=stpxSMSTGroup, stpxVlanObjects=stpxVlanObjects, stpxMISTPInstanceEnable=stpxMISTPInstanceEnable, stpxMIBCompliance7=stpxMIBCompliance7, stpxLoopInconsistencyEntry=stpxLoopInconsistencyEntry, stpxRPVSTPortVlanIndex=stpxRPVSTPortVlanIndex, stpxMSTGroup3=stpxMSTGroup3, StpxMSTConfigurationDigest=StpxMSTConfigurationDigest, stpxBpduSkewingLastSkewDuration=stpxBpduSkewingLastSkewDuration, stpxMSTRegionName=stpxMSTRegionName, stpxPreferredMISTPInstancesMap=stpxPreferredMISTPInstancesMap, stpxMSTObjects=stpxMSTObjects, stpxPreferredMSTInstancesGroup=stpxPreferredMSTInstancesGroup, stpxInconsistencyTable=stpxInconsistencyTable, stpxMSTMaxHopCount=stpxMSTMaxHopCount, stpxExtendedSysIDGroup=stpxExtendedSysIDGroup, stpxRootInconsistencyEntry=stpxRootInconsistencyEntry, stpxRSTPPortRoleValue=stpxRSTPPortRoleValue, stpxRSTPTransmitHoldCountGroup=stpxRSTPTransmitHoldCountGroup, stpxLoopInconsistencyState=stpxLoopInconsistencyState, stpxFastStartOperModeTable=stpxFastStartOperModeTable, stpxPVSTVlanEnable=stpxPVSTVlanEnable) mibBuilder.exportSymbols('CISCO-STP-EXTENSIONS-MIB', stpxSMSTRegionRevision=stpxSMSTRegionRevision, stpxBpduSkewingGroup=stpxBpduSkewingGroup, stpxPreferredVlansTable=stpxPreferredVlansTable, stpxMIBGroups=stpxMIBGroups, stpxSpanningTreePathCostOperMode=stpxSpanningTreePathCostOperMode, stpxVlanMISTPInstMapEntry=stpxVlanMISTPInstMapEntry, stpxUplinkGroup=stpxUplinkGroup, stpxSMSTMaxInstanceID=stpxSMSTMaxInstanceID, stpxSMSTInstanceEntry=stpxSMSTInstanceEntry)
class ParseException(Exception): pass class RollbackException(Exception): pass
class Parseexception(Exception): pass class Rollbackexception(Exception): pass
lista=[] datos=int(input("Ingrese numero de datos: ")) for i in range(0,datos): alt=float(input("Ingrese las alturas: ")) lista.append(alt) print("La altura maxima es: ", max(lista))
lista = [] datos = int(input('Ingrese numero de datos: ')) for i in range(0, datos): alt = float(input('Ingrese las alturas: ')) lista.append(alt) print('La altura maxima es: ', max(lista))
# # Building script for ipcamera application # { 'includes': ['build/common.gypi'], 'targets' : [ { 'target_name': 'camerartc', 'type': 'executable', 'include_dirs': [ '../third_party/webrtc/modules/interface', ], 'dependencies': [ 'libjingle.gyp:libjingle_peerconnection', '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', ], 'sources': [ 'camerartc/main.cpp', 'camerartc/peer.h', 'camerartc/peer.cpp', 'camerartc/camerartc.h', 'camerartc/camerartc.cpp', 'camerartc/rtcstream.h', 'camerartc/rtcstream.cpp', 'camerartc/attendee.h', 'camerartc/attendee.cpp', 'camerartc/mediabuffer.h', 'camerartc/mediabuffer.cpp', 'camerartc/raptor/numberdb.h', 'camerartc/raptor/numberdb.cpp', 'camerartc/raptor/rprandom.h', 'camerartc/raptor/rprandom.cpp', 'camerartc/raptor/raptor.h', 'camerartc/raptor/aaptor.cpp', 'camerartc/g72x/g726_32.c', 'camerartc/g72x/g711.c', 'camerartc/g72x/g72x.c', ], }, ], }
{'includes': ['build/common.gypi'], 'targets': [{'target_name': 'camerartc', 'type': 'executable', 'include_dirs': ['../third_party/webrtc/modules/interface'], 'dependencies': ['libjingle.gyp:libjingle_peerconnection', '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp'], 'sources': ['camerartc/main.cpp', 'camerartc/peer.h', 'camerartc/peer.cpp', 'camerartc/camerartc.h', 'camerartc/camerartc.cpp', 'camerartc/rtcstream.h', 'camerartc/rtcstream.cpp', 'camerartc/attendee.h', 'camerartc/attendee.cpp', 'camerartc/mediabuffer.h', 'camerartc/mediabuffer.cpp', 'camerartc/raptor/numberdb.h', 'camerartc/raptor/numberdb.cpp', 'camerartc/raptor/rprandom.h', 'camerartc/raptor/rprandom.cpp', 'camerartc/raptor/raptor.h', 'camerartc/raptor/aaptor.cpp', 'camerartc/g72x/g726_32.c', 'camerartc/g72x/g711.c', 'camerartc/g72x/g72x.c']}]}
# -*- coding: utf-8 -*- def test_del_first_group(app): app.session.login(username = "admin", password = "secret") app.group.delete_first_group() app.session.logout()
def test_del_first_group(app): app.session.login(username='admin', password='secret') app.group.delete_first_group() app.session.logout()
class DataNotFound(RuntimeError): pass class DataError(RuntimeError): pass class InvalidAge(RuntimeError): pass class InvalidMeasurement(RuntimeError): pass
class Datanotfound(RuntimeError): pass class Dataerror(RuntimeError): pass class Invalidage(RuntimeError): pass class Invalidmeasurement(RuntimeError): pass
# check modulo matches python definition # this tests compiler constant folding print(123 % 7) print(-123 % 7) print(123 % -7) print(-123 % -7) a = 321 b = 19 print(a % b) print(a % -b) print(-a % b) print(-a % -b) a = 987654321987987987987987987987 b = 19 print(a % b) print(a % -b) print(-a % b) print(-a % -b)
print(123 % 7) print(-123 % 7) print(123 % -7) print(-123 % -7) a = 321 b = 19 print(a % b) print(a % -b) print(-a % b) print(-a % -b) a = 987654321987987987987987987987 b = 19 print(a % b) print(a % -b) print(-a % b) print(-a % -b)
class Judge: def __init__(self, trial, comparator): self.trial = trial self.comparator = comparator def judge(self, inputs, default): results = {input: self.trial(input) for input in inputs} eligible = {input: result for input, result in results.items() if result is not None} champion = default for challenger in eligible.items(): champion = self.comparator(champion, challenger) return champion
class Judge: def __init__(self, trial, comparator): self.trial = trial self.comparator = comparator def judge(self, inputs, default): results = {input: self.trial(input) for input in inputs} eligible = {input: result for (input, result) in results.items() if result is not None} champion = default for challenger in eligible.items(): champion = self.comparator(champion, challenger) return champion
class Solution: def rob(self, nums: List[int]) -> int: if len(nums) == 0: return 0 elif len(nums) == 1: return nums[0] elif len(nums) == 2: return max(nums[0], nums[1]) scores = [0] * len(nums) scores[0] = nums[0] scores[1] = nums[1] for i in range(2, len(nums)): if i > 2: m = max(scores[:i-2+1]) else: m = scores[0] scores[i] = max(m + nums[i], scores[i-1]) return scores[-1]
class Solution: def rob(self, nums: List[int]) -> int: if len(nums) == 0: return 0 elif len(nums) == 1: return nums[0] elif len(nums) == 2: return max(nums[0], nums[1]) scores = [0] * len(nums) scores[0] = nums[0] scores[1] = nums[1] for i in range(2, len(nums)): if i > 2: m = max(scores[:i - 2 + 1]) else: m = scores[0] scores[i] = max(m + nums[i], scores[i - 1]) return scores[-1]
class BinarySearchTree: class Node: def __init__(self, value): self.left = None self.right = None self.value = value def __init__(self): self.root = None def add(self, value): if self.root: self._add(value, self.root) else: self.root = self.Node(value) def _add(self, value, node): if value < node.value: if node.left: self._add(value, node.left) else: node.left = self.Node(value) if value > node.value: if node.right: self._add(value, node.right) else: node.right = self.Node(value) def preorder_left(self): return self._preorder_left(self.root) def _preorder_left(self, node): if node: result = str(node.value)+'\n' result += self._preorder_left(node.left) result += self._preorder_left(node.right) return result else: return '' def main(): bst = BinarySearchTree() for vertex in open('input.txt'): bst.add(int(vertex)) open('output.txt', 'w').write(bst.preorder_left()) main()
class Binarysearchtree: class Node: def __init__(self, value): self.left = None self.right = None self.value = value def __init__(self): self.root = None def add(self, value): if self.root: self._add(value, self.root) else: self.root = self.Node(value) def _add(self, value, node): if value < node.value: if node.left: self._add(value, node.left) else: node.left = self.Node(value) if value > node.value: if node.right: self._add(value, node.right) else: node.right = self.Node(value) def preorder_left(self): return self._preorder_left(self.root) def _preorder_left(self, node): if node: result = str(node.value) + '\n' result += self._preorder_left(node.left) result += self._preorder_left(node.right) return result else: return '' def main(): bst = binary_search_tree() for vertex in open('input.txt'): bst.add(int(vertex)) open('output.txt', 'w').write(bst.preorder_left()) main()
# noinspection PyUnusedLocal def fizz_buzz(number): strings = [] numstring = str(number) # fizz if divisible by 3 or has a 3 in it if (number % 3 == 0) or ("3" in numstring): strings.append("fizz") # buzz if divisible by 5 or it has a 5 in it: if (number % 5 == 0) or ("5" in numstring): strings.append("buzz") """ Deluxe if div by 3 and contains a 3 or div by 5 and contains a 5 still fake deluxe if odd """ if ( ( (number % 3 == 0) and ("3" in numstring) ) or ( (number % 5 == 0) and ("5" in numstring) ) ): if number % 2 == 0: strings.append("deluxe") else: strings.append("fake deluxe") if len(strings) > 0: return(" ".join(strings)) else: return(numstring)
def fizz_buzz(number): strings = [] numstring = str(number) if number % 3 == 0 or '3' in numstring: strings.append('fizz') if number % 5 == 0 or '5' in numstring: strings.append('buzz') '\n Deluxe if div by 3 and contains a 3\n or div by 5 and contains a 5\n still fake deluxe if odd\n ' if number % 3 == 0 and '3' in numstring or (number % 5 == 0 and '5' in numstring): if number % 2 == 0: strings.append('deluxe') else: strings.append('fake deluxe') if len(strings) > 0: return ' '.join(strings) else: return numstring
# program to find whether it contains an additive sequence or not. class Solution(object): # DFS: iterative implement. def is_additive_number(self, num): length = len(num) for i in range(1, int(length/2+1)): for j in range(1, int((length-i)/2 + 1)): first, second, others = num[:i], num[i:i+j], num[i+j:] if self.isValid(first, second, others): return True return False def isValid(self, first, second, others): if ((len(first) > 1 and first[0] == "0") or (len(second) > 1 and second[0] == "0")): return False sum_str = str(int(first) + int(second)) if sum_str == others: return True elif others.startswith(sum_str): return self.isValid(second, sum_str, others[len(sum_str):]) else: return False if __name__ == "__main__": print(Solution().is_additive_number('66121830')) print(Solution().is_additive_number('51123')) print(Solution().is_additive_number('235813'))
class Solution(object): def is_additive_number(self, num): length = len(num) for i in range(1, int(length / 2 + 1)): for j in range(1, int((length - i) / 2 + 1)): (first, second, others) = (num[:i], num[i:i + j], num[i + j:]) if self.isValid(first, second, others): return True return False def is_valid(self, first, second, others): if len(first) > 1 and first[0] == '0' or (len(second) > 1 and second[0] == '0'): return False sum_str = str(int(first) + int(second)) if sum_str == others: return True elif others.startswith(sum_str): return self.isValid(second, sum_str, others[len(sum_str):]) else: return False if __name__ == '__main__': print(solution().is_additive_number('66121830')) print(solution().is_additive_number('51123')) print(solution().is_additive_number('235813'))
class Solution: def backspaceCompare(self, S: str, T: str) -> bool: s = []; t = [] for i in range(len(S)): if S[i] == "#": if len(s) > 0: s.pop(-1) else: s.append(S[i]) for i in range(len(T)): if T[i] == "#": if len(t) > 0: t.pop(-1) else: t.append(T[i]) return s == t
class Solution: def backspace_compare(self, S: str, T: str) -> bool: s = [] t = [] for i in range(len(S)): if S[i] == '#': if len(s) > 0: s.pop(-1) else: s.append(S[i]) for i in range(len(T)): if T[i] == '#': if len(t) > 0: t.pop(-1) else: t.append(T[i]) return s == t
N = int(input()) before = input() after = input() if N % 2 == 0: print("Deletion succeeded" if before == after else "Deletion failed") else: find = True for i in range(len(before)): if before[i] == after[i]: find = False break print("Deletion succeeded" if find else "Deletion failed")
n = int(input()) before = input() after = input() if N % 2 == 0: print('Deletion succeeded' if before == after else 'Deletion failed') else: find = True for i in range(len(before)): if before[i] == after[i]: find = False break print('Deletion succeeded' if find else 'Deletion failed')
class Actor: def __init__(self, sess, learning_rate,action_dim,action_bound): self.sess = sess self.action_dim = action_dim self.action_bound = action_bound self.learning_rate = learning_rate # input current state, output action to be taken self.a = self.build_neural_network(S, scope='eval_nn', trainable=True) self.a_ = self.build_neural_network(S_, scope='target_nn', trainable=False) self.eval_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/eval_nn') self.target_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/target_nn') def act(self, s): s = s[np.newaxis, :] return self.sess.run(self.a, feed_dict={s: state})[0] def learn(self, state): # update parameters self.sess.run(self.train_op, feed_dict={s: state}) if self.t_replace_counter % self.t_replace_iter == 0: self.sess.run([tf.assign(t, e) for t, e in zip(self.target_parameters, self.eval_parameters)]) self.t_replace_counter += 1 def build_neural_network(self, s, scope, trainable): init_weights = tf.random_normal_initializer(0., 0.1) init_bias = tf.constant_initializer(0.01) # three dense layer networks nn = tf.layers.dense(s, 500, activation=tf.nn.relu, kernel_initializer=init_weights, bias_initializer=init_bias, name='l1', trainable=trainable) nn = tf.layers.dense(nn, 200, activation=tf.nn.relu, kernel_initializer=init_weights, bias_initializer=init_bias, name='l2', trainable=trainable) actions = tf.layers.dense(nn, self.action_dim, activation=tf.nn.tanh, kernel_initializer=init_weights, bias_initializer=init_bias, name='a', trainable=trainable) scaled_actions = tf.multiply(actions, self.action_bound, name='scaled_actions') return scaled_actions def add_gradient(self, a_gradients): self.policy_gradients_and_vars = tf.gradients(ys=self.a, xs=self.eval_parameters, grad_ys=a_gradients) opt = tf.train.RMSPropOptimizer(-self.learning_rate) # gradient ascent self.train_op = opt.apply_gradients(zip(self.policy_gradients_and_vars, self.eval_parameters), global_step=GLOBAL_STEP)
class Actor: def __init__(self, sess, learning_rate, action_dim, action_bound): self.sess = sess self.action_dim = action_dim self.action_bound = action_bound self.learning_rate = learning_rate self.a = self.build_neural_network(S, scope='eval_nn', trainable=True) self.a_ = self.build_neural_network(S_, scope='target_nn', trainable=False) self.eval_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/eval_nn') self.target_parameters = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope='Actor/target_nn') def act(self, s): s = s[np.newaxis, :] return self.sess.run(self.a, feed_dict={s: state})[0] def learn(self, state): self.sess.run(self.train_op, feed_dict={s: state}) if self.t_replace_counter % self.t_replace_iter == 0: self.sess.run([tf.assign(t, e) for (t, e) in zip(self.target_parameters, self.eval_parameters)]) self.t_replace_counter += 1 def build_neural_network(self, s, scope, trainable): init_weights = tf.random_normal_initializer(0.0, 0.1) init_bias = tf.constant_initializer(0.01) nn = tf.layers.dense(s, 500, activation=tf.nn.relu, kernel_initializer=init_weights, bias_initializer=init_bias, name='l1', trainable=trainable) nn = tf.layers.dense(nn, 200, activation=tf.nn.relu, kernel_initializer=init_weights, bias_initializer=init_bias, name='l2', trainable=trainable) actions = tf.layers.dense(nn, self.action_dim, activation=tf.nn.tanh, kernel_initializer=init_weights, bias_initializer=init_bias, name='a', trainable=trainable) scaled_actions = tf.multiply(actions, self.action_bound, name='scaled_actions') return scaled_actions def add_gradient(self, a_gradients): self.policy_gradients_and_vars = tf.gradients(ys=self.a, xs=self.eval_parameters, grad_ys=a_gradients) opt = tf.train.RMSPropOptimizer(-self.learning_rate) self.train_op = opt.apply_gradients(zip(self.policy_gradients_and_vars, self.eval_parameters), global_step=GLOBAL_STEP)
""" PlotPlayer Validators Subpackage contains various modules to support input and type validations. Public Modules: * type_validation - Contains methods to validating various types """
""" PlotPlayer Validators Subpackage contains various modules to support input and type validations. Public Modules: * type_validation - Contains methods to validating various types """
class ParserError(Exception): pass
class Parsererror(Exception): pass
r = int(input()) w = [int(x) for x in input().split()] c = [int(x) for x in input().split()] m = [0] for i in range(1, r + 1): m.append(max([x[0] + m[i - x[1]] for x in zip(c, w) if x[1] <= i], default = 0)) print(m)
r = int(input()) w = [int(x) for x in input().split()] c = [int(x) for x in input().split()] m = [0] for i in range(1, r + 1): m.append(max([x[0] + m[i - x[1]] for x in zip(c, w) if x[1] <= i], default=0)) print(m)
'''"Template" day module for AoC 2015''' def run(args): print(f'day0: {args}')
""""Template" day module for AoC 2015""" def run(args): print(f'day0: {args}')
''' @Author: Hata @Date: 2020-07-26 03:41:32 @LastEditors: Hata @LastEditTime: 2020-07-28 21:31:17 @FilePath: \LeetCode\116.py @Description: https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/ ''' class Solution: def connect(self, root: 'Node') -> 'Node': if root is None: return root node_queue = [root] while node_queue: curr = None for _ in range(len(node_queue)): node = node_queue.pop(0) if curr is None: curr = node else: curr.next = node curr = curr.next if curr.left: node_queue.append(curr.left) if curr.right: node_queue.append(curr.right) return root
""" @Author: Hata @Date: 2020-07-26 03:41:32 @LastEditors: Hata @LastEditTime: 2020-07-28 21:31:17 @FilePath: \\LeetCodeN.py @Description: https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/ """ class Solution: def connect(self, root: 'Node') -> 'Node': if root is None: return root node_queue = [root] while node_queue: curr = None for _ in range(len(node_queue)): node = node_queue.pop(0) if curr is None: curr = node else: curr.next = node curr = curr.next if curr.left: node_queue.append(curr.left) if curr.right: node_queue.append(curr.right) return root
name = "boost" version = "1.61.0" authors = [ "Beman Dawes", "David Abrahams" ] description = \ """ Boost is a set of libraries for the C++ programming language that provide support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing. """ requires = [ "cmake-3+", "gcc-6+", "python-2.7+" ] variants = [ ["platform-linux"] ] tools = [ "boost" ] build_system = "cmake" with scope("config") as config: config.build_thread_count = "logical_cores" uuid = "boost-{version}".format(version=str(version)) def commands(): env.LD_LIBRARY_PATH.prepend("{root}/lib") # Helper environment variables. env.BOOST_INCLUDE_PATH.set("{root}/include") env.BOOST_LIBRARY_PATH.set("{root}/lib")
name = 'boost' version = '1.61.0' authors = ['Beman Dawes', 'David Abrahams'] description = '\n Boost is a set of libraries for the C++ programming language that provide support for tasks and structures such\n as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions,\n and unit testing.\n ' requires = ['cmake-3+', 'gcc-6+', 'python-2.7+'] variants = [['platform-linux']] tools = ['boost'] build_system = 'cmake' with scope('config') as config: config.build_thread_count = 'logical_cores' uuid = 'boost-{version}'.format(version=str(version)) def commands(): env.LD_LIBRARY_PATH.prepend('{root}/lib') env.BOOST_INCLUDE_PATH.set('{root}/include') env.BOOST_LIBRARY_PATH.set('{root}/lib')
class Solution: # Iterative def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if not root: return None stack = [root] while len(stack) > 0: currentNode = stack.pop() currentNode.left, currentNode.right = currentNode.right, currentNode.left if currentNode.left is not None: stack.append(currentNode.left) if currentNode.right is not None: stack.append(currentNode.right) return root # Recursive def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if not root: return None root.left, root.right = root.right, root.left self.invertTree(root.left) self.invertTree(root.right) return root
class Solution: def invert_tree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if not root: return None stack = [root] while len(stack) > 0: current_node = stack.pop() (currentNode.left, currentNode.right) = (currentNode.right, currentNode.left) if currentNode.left is not None: stack.append(currentNode.left) if currentNode.right is not None: stack.append(currentNode.right) return root def invert_tree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if not root: return None (root.left, root.right) = (root.right, root.left) self.invertTree(root.left) self.invertTree(root.right) return root
#!/usr/bin/env python # -*- coding: utf-8 -*- # A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number. # A number n is called deficient if the sum of its proper divisors is less than n and it is called abundant if this sum exceeds n. # As 12 is the smallest abundant number, 1 + 2 + 3 + 4 + 6 = 16, the smallest number that can be written as the sum of two abundant numbers is 24. By mathematical analysis, it can be shown that all integers greater than 28123 can be written as the sum of two abundant numbers. However, this upper limit cannot be reduced any further by analysis even though it is known that the greatest number that cannot be expressed as the sum of two abundant numbers is less than this limit. # Find the sum of all the positive integers which cannot be written as the sum of two abundant numbers. class Abundant(): def __init__(self): self.abundants = [] def generateAbindantNumbers(self, maxValue): for number in range(maxValue): if number % 1000 == 0: print('GEN: itt jarunk:', number) total = 0 for divisor in range(1, (number/2)+1): if number % divisor == 0: total += divisor if total > number: self.abundants.append(number) #print(self.abundants) print('Count: ', len(self.abundants)) def sumOfToAbundant(self, maxValue): total = 0 for number in range(maxValue): if number % 1000 == 0: print('SUM: itt jarunk:', number, total) for i in self.abundants: if number < i * 2: total += number break if (number - i) in self.abundants: break print(total) def main(): generator = Abundant() maxval = 28124 generator.generateAbindantNumbers(maxval) generator.sumOfToAbundant(maxval) if __name__ == '__main__': main()
class Abundant: def __init__(self): self.abundants = [] def generate_abindant_numbers(self, maxValue): for number in range(maxValue): if number % 1000 == 0: print('GEN: itt jarunk:', number) total = 0 for divisor in range(1, number / 2 + 1): if number % divisor == 0: total += divisor if total > number: self.abundants.append(number) print('Count: ', len(self.abundants)) def sum_of_to_abundant(self, maxValue): total = 0 for number in range(maxValue): if number % 1000 == 0: print('SUM: itt jarunk:', number, total) for i in self.abundants: if number < i * 2: total += number break if number - i in self.abundants: break print(total) def main(): generator = abundant() maxval = 28124 generator.generateAbindantNumbers(maxval) generator.sumOfToAbundant(maxval) if __name__ == '__main__': main()
def returnHazards(map): hazards = [] for x_index, x in enumerate(map): for y_index, y in enumerate(x): if y == 'x': hazards.append({"x":x_index,"y":y_index}) return hazards
def return_hazards(map): hazards = [] for (x_index, x) in enumerate(map): for (y_index, y) in enumerate(x): if y == 'x': hazards.append({'x': x_index, 'y': y_index}) return hazards
# Codechef June2020 # PRICECON # https://www.codechef.com/problems/PRICECON # Chef and Price Control """ Chef has N items in his shop (numbered 1 through N); for each valid i, the price of the i-th item is Pi. Since Chef has very loyal customers, all N items are guaranteed to be sold regardless of their price. However, the government introduced a price ceiling K, which means that for each item i such that Pi>K, its price should be reduced from Pi to K. Chef's revenue is the sum of prices of all the items he sells. Find the amount of revenue which Chef loses because of this price ceiling. """ test = int(input()) for t in range(test) : n, k = list(map(int, input().strip().split())) parr = list(map(int, input().strip().split())) loss = 0 for p in parr : if p > k : loss += (p-k) print(loss)
""" Chef has N items in his shop (numbered 1 through N); for each valid i, the price of the i-th item is Pi. Since Chef has very loyal customers, all N items are guaranteed to be sold regardless of their price. However, the government introduced a price ceiling K, which means that for each item i such that Pi>K, its price should be reduced from Pi to K. Chef's revenue is the sum of prices of all the items he sells. Find the amount of revenue which Chef loses because of this price ceiling. """ test = int(input()) for t in range(test): (n, k) = list(map(int, input().strip().split())) parr = list(map(int, input().strip().split())) loss = 0 for p in parr: if p > k: loss += p - k print(loss)
# # set up logging # from config import logging # logger = logging.getLogger(__name__) # import re class Criterion: """A set of conditions for matching Actions against PRAW objects""" def __init__(self, values): # convert the dict to attributes self.conditions = values self.modifiers = dict() # re-duplicate concatenated targets # parse out modifiers target_syntax = re.compile(r'^(?P<targets>[a-z0-9\_\+]+)(?P<modifiers>\([a-z0-9\_,]*\))?$') for k, v in self.conditions.items(): parts = target_syntax.match(k) # now split the targets and modifiers # targets = [] # modifiers = [] # for target in targets: # self.conditions[target] = v # self.modifiers[target] = modifiers def matches(self, item): logger.debug("Checking item {}".format(item)) # Conditions are in self.__dict__ for condition, value in self.conditions.items(): logger.debug("- Checking `{}` for `{}`".format(condition, value)) # uhhhh... this is kinda scary if not getattr(item, condition, None) == value: return False # for condition in self.conditions: # if not condition.matches(item): # return False return True class Action: """A sequence of steps to perform on and in response to reddit content""" def __init__(self, values): self.actions = values def perform_on(self, item): for action, argument in self.actions.items(): method = getattr(item, action, getattr(item.mod, action, None)) if method: method(argument) else: raise AttributeError("No such method {} on {}".format(method, item)) class Rule: """A collection of conditions and response actions triggered on matching content""" def __init__(self, values): # TODO lowercase keys logger.debug("Creating new rule...") self.yaml = yaml.dump(values) # Handle single/multiple criteria self.criteria = [] if isinstance(values["criteria"], list): for criterion in values["criteria"]: self.criteria.append(Criterion(criterion)) elif isinstance(values["criteria"], dict): self.criteria.append(Criterion(values["criteria"])) # same for actions self.actions = [] if isinstance(values["actions"], list): for action in values["actions"]: self.actions.append(Action(action)) elif isinstance(values["actions"], dict): self.actions.append(Action(values["actions"])) # TODO consolidate the above two blocks, cleverly pprint.pprint(vars(self)) for c in self.criteria: pprint.pprint(vars(c)) for a in self.actions: pprint.pprint(vars(a)) def matches(self, item): # for reference later? self.matched = [] for criterion in self.criteria: if criterion.matches(item): self.matched.append(criterion) if len(self.matched) > 0: return True def _perform_actions_on(self, item): for action in self.actions: action.perform_on(item) def process(self, item): if self.matches(item): logger.debug("Matched {}".format(item)) self._perform_actions_on(item)
class Criterion: """A set of conditions for matching Actions against PRAW objects""" def __init__(self, values): self.conditions = values self.modifiers = dict() target_syntax = re.compile('^(?P<targets>[a-z0-9\\_\\+]+)(?P<modifiers>\\([a-z0-9\\_,]*\\))?$') for (k, v) in self.conditions.items(): parts = target_syntax.match(k) def matches(self, item): logger.debug('Checking item {}'.format(item)) for (condition, value) in self.conditions.items(): logger.debug('- Checking `{}` for `{}`'.format(condition, value)) if not getattr(item, condition, None) == value: return False return True class Action: """A sequence of steps to perform on and in response to reddit content""" def __init__(self, values): self.actions = values def perform_on(self, item): for (action, argument) in self.actions.items(): method = getattr(item, action, getattr(item.mod, action, None)) if method: method(argument) else: raise attribute_error('No such method {} on {}'.format(method, item)) class Rule: """A collection of conditions and response actions triggered on matching content""" def __init__(self, values): logger.debug('Creating new rule...') self.yaml = yaml.dump(values) self.criteria = [] if isinstance(values['criteria'], list): for criterion in values['criteria']: self.criteria.append(criterion(criterion)) elif isinstance(values['criteria'], dict): self.criteria.append(criterion(values['criteria'])) self.actions = [] if isinstance(values['actions'], list): for action in values['actions']: self.actions.append(action(action)) elif isinstance(values['actions'], dict): self.actions.append(action(values['actions'])) pprint.pprint(vars(self)) for c in self.criteria: pprint.pprint(vars(c)) for a in self.actions: pprint.pprint(vars(a)) def matches(self, item): self.matched = [] for criterion in self.criteria: if criterion.matches(item): self.matched.append(criterion) if len(self.matched) > 0: return True def _perform_actions_on(self, item): for action in self.actions: action.perform_on(item) def process(self, item): if self.matches(item): logger.debug('Matched {}'.format(item)) self._perform_actions_on(item)
result = 0 boxIds = [] with open("input.txt", "r") as input: for line in input: line = line.strip() boxIds.append(line) count2 = 0 count3 = 0 for boxId in boxIds: flag2 = True flag3 = True for c in set(boxId): n = boxId.count(c) if n == 2 and flag2: count2 += 1 flag2 = False elif n == 3 and flag3: count3 += 1 flag3 = False result = count2 * count3 with open("output1.txt", "w") as output: output.write(str(result)) print(str(result))
result = 0 box_ids = [] with open('input.txt', 'r') as input: for line in input: line = line.strip() boxIds.append(line) count2 = 0 count3 = 0 for box_id in boxIds: flag2 = True flag3 = True for c in set(boxId): n = boxId.count(c) if n == 2 and flag2: count2 += 1 flag2 = False elif n == 3 and flag3: count3 += 1 flag3 = False result = count2 * count3 with open('output1.txt', 'w') as output: output.write(str(result)) print(str(result))
class Solution(object): def XXX(self, n): g5=5**0.5 b=(((1+g5)/2)**(n+1)-((1-g5)/2)**(n+1))/g5 return int(round(b))
class Solution(object): def xxx(self, n): g5 = 5 ** 0.5 b = (((1 + g5) / 2) ** (n + 1) - ((1 - g5) / 2) ** (n + 1)) / g5 return int(round(b))
"""Created by sgoswami on 7/18/17.""" """Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words. You may assume the dictionary does not contain duplicate words. For example, given s = "leetcode", dict = ["leet", "code"]. Return true because "leetcode" can be segmented as "leet code".""" class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ memo = [False for _ in range(len(s) + 1)] memo[0] = True for i in range(1, len(s) + 1): for w in wordDict: if memo[i - len(w)] and s[i - len(w):i] == w: memo[i] = True return memo[-1] if __name__ == '__main__': solution = Solution() print(solution.wordBreak('applepieapple', ['apple', 'pie']))
"""Created by sgoswami on 7/18/17.""" 'Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be \nsegmented into a space-separated sequence of one or more dictionary words. You may assume the dictionary does not \ncontain duplicate words.\n\nFor example, given\ns = "leetcode",\ndict = ["leet", "code"].\n\nReturn true because "leetcode" can be segmented as "leet code".' class Solution(object): def word_break(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ memo = [False for _ in range(len(s) + 1)] memo[0] = True for i in range(1, len(s) + 1): for w in wordDict: if memo[i - len(w)] and s[i - len(w):i] == w: memo[i] = True return memo[-1] if __name__ == '__main__': solution = solution() print(solution.wordBreak('applepieapple', ['apple', 'pie']))
names = [] addr = 0x148 + 0x4E4 while addr <= 0x148 + 0x7FC: names.append('\t' + Name(Dword(addr)) + ' = ') addr += 8 with open('names.txt', 'w') as f: f.write('\n'.join(names))
names = [] addr = 328 + 1252 while addr <= 328 + 2044: names.append('\t' + name(dword(addr)) + ' = ') addr += 8 with open('names.txt', 'w') as f: f.write('\n'.join(names))
# Defines sample_keymap_string and sample_keymap_bytes # Python 2 type Python 3 type # sample_keymap_string unicode str # sample_keymap_bytes str bytes # This sample keymap is the output of xkbcomp :0 [filename] on my # system - it wasn't chosen for any other reason. Some of the tests # may rely on its details. sample_keymap_string = r""" xkb_keymap { xkb_keycodes "evdev+aliases(qwerty)" { minimum = 8; maximum = 255; <ESC> = 9; <AE01> = 10; <AE02> = 11; <AE03> = 12; <AE04> = 13; <AE05> = 14; <AE06> = 15; <AE07> = 16; <AE08> = 17; <AE09> = 18; <AE10> = 19; <AE11> = 20; <AE12> = 21; <BKSP> = 22; <TAB> = 23; <AD01> = 24; <AD02> = 25; <AD03> = 26; <AD04> = 27; <AD05> = 28; <AD06> = 29; <AD07> = 30; <AD08> = 31; <AD09> = 32; <AD10> = 33; <AD11> = 34; <AD12> = 35; <RTRN> = 36; <LCTL> = 37; <AC01> = 38; <AC02> = 39; <AC03> = 40; <AC04> = 41; <AC05> = 42; <AC06> = 43; <AC07> = 44; <AC08> = 45; <AC09> = 46; <AC10> = 47; <AC11> = 48; <TLDE> = 49; <LFSH> = 50; <BKSL> = 51; <AB01> = 52; <AB02> = 53; <AB03> = 54; <AB04> = 55; <AB05> = 56; <AB06> = 57; <AB07> = 58; <AB08> = 59; <AB09> = 60; <AB10> = 61; <RTSH> = 62; <KPMU> = 63; <LALT> = 64; <SPCE> = 65; <CAPS> = 66; <FK01> = 67; <FK02> = 68; <FK03> = 69; <FK04> = 70; <FK05> = 71; <FK06> = 72; <FK07> = 73; <FK08> = 74; <FK09> = 75; <FK10> = 76; <NMLK> = 77; <SCLK> = 78; <KP7> = 79; <KP8> = 80; <KP9> = 81; <KPSU> = 82; <KP4> = 83; <KP5> = 84; <KP6> = 85; <KPAD> = 86; <KP1> = 87; <KP2> = 88; <KP3> = 89; <KP0> = 90; <KPDL> = 91; <LVL3> = 92; <LSGT> = 94; <FK11> = 95; <FK12> = 96; <AB11> = 97; <KATA> = 98; <HIRA> = 99; <HENK> = 100; <HKTG> = 101; <MUHE> = 102; <JPCM> = 103; <KPEN> = 104; <RCTL> = 105; <KPDV> = 106; <PRSC> = 107; <RALT> = 108; <LNFD> = 109; <HOME> = 110; <UP> = 111; <PGUP> = 112; <LEFT> = 113; <RGHT> = 114; <END> = 115; <DOWN> = 116; <PGDN> = 117; <INS> = 118; <DELE> = 119; <I120> = 120; <MUTE> = 121; <VOL-> = 122; <VOL+> = 123; <POWR> = 124; <KPEQ> = 125; <I126> = 126; <PAUS> = 127; <I128> = 128; <I129> = 129; <HNGL> = 130; <HJCV> = 131; <AE13> = 132; <LWIN> = 133; <RWIN> = 134; <COMP> = 135; <STOP> = 136; <AGAI> = 137; <PROP> = 138; <UNDO> = 139; <FRNT> = 140; <COPY> = 141; <OPEN> = 142; <PAST> = 143; <FIND> = 144; <CUT> = 145; <HELP> = 146; <I147> = 147; <I148> = 148; <I149> = 149; <I150> = 150; <I151> = 151; <I152> = 152; <I153> = 153; <I154> = 154; <I155> = 155; <I156> = 156; <I157> = 157; <I158> = 158; <I159> = 159; <I160> = 160; <I161> = 161; <I162> = 162; <I163> = 163; <I164> = 164; <I165> = 165; <I166> = 166; <I167> = 167; <I168> = 168; <I169> = 169; <I170> = 170; <I171> = 171; <I172> = 172; <I173> = 173; <I174> = 174; <I175> = 175; <I176> = 176; <I177> = 177; <I178> = 178; <I179> = 179; <I180> = 180; <I181> = 181; <I182> = 182; <I183> = 183; <I184> = 184; <I185> = 185; <I186> = 186; <I187> = 187; <I188> = 188; <I189> = 189; <I190> = 190; <FK13> = 191; <FK14> = 192; <FK15> = 193; <FK16> = 194; <FK17> = 195; <FK18> = 196; <FK19> = 197; <FK20> = 198; <FK21> = 199; <FK22> = 200; <FK23> = 201; <FK24> = 202; <MDSW> = 203; <ALT> = 204; <META> = 205; <SUPR> = 206; <HYPR> = 207; <I208> = 208; <I209> = 209; <I210> = 210; <I211> = 211; <I212> = 212; <I213> = 213; <I214> = 214; <I215> = 215; <I216> = 216; <I217> = 217; <I218> = 218; <I219> = 219; <I220> = 220; <I221> = 221; <I222> = 222; <I223> = 223; <I224> = 224; <I225> = 225; <I226> = 226; <I227> = 227; <I228> = 228; <I229> = 229; <I230> = 230; <I231> = 231; <I232> = 232; <I233> = 233; <I234> = 234; <I235> = 235; <I236> = 236; <I237> = 237; <I238> = 238; <I239> = 239; <I240> = 240; <I241> = 241; <I242> = 242; <I243> = 243; <I244> = 244; <I245> = 245; <I246> = 246; <I247> = 247; <I248> = 248; <I249> = 249; <I250> = 250; <I251> = 251; <I252> = 252; <I253> = 253; indicator 1 = "Caps Lock"; indicator 2 = "Num Lock"; indicator 3 = "Scroll Lock"; indicator 4 = "Compose"; indicator 5 = "Kana"; indicator 6 = "Sleep"; indicator 7 = "Suspend"; indicator 8 = "Mute"; indicator 9 = "Misc"; indicator 10 = "Mail"; indicator 11 = "Charging"; virtual indicator 12 = "Shift Lock"; virtual indicator 13 = "Group 2"; virtual indicator 14 = "Mouse Keys"; alias <AC12> = <BKSL>; alias <MENU> = <COMP>; alias <HZTG> = <TLDE>; alias <LMTA> = <LWIN>; alias <RMTA> = <RWIN>; alias <ALGR> = <RALT>; alias <KPPT> = <I129>; alias <LatQ> = <AD01>; alias <LatW> = <AD02>; alias <LatE> = <AD03>; alias <LatR> = <AD04>; alias <LatT> = <AD05>; alias <LatY> = <AD06>; alias <LatU> = <AD07>; alias <LatI> = <AD08>; alias <LatO> = <AD09>; alias <LatP> = <AD10>; alias <LatA> = <AC01>; alias <LatS> = <AC02>; alias <LatD> = <AC03>; alias <LatF> = <AC04>; alias <LatG> = <AC05>; alias <LatH> = <AC06>; alias <LatJ> = <AC07>; alias <LatK> = <AC08>; alias <LatL> = <AC09>; alias <LatZ> = <AB01>; alias <LatX> = <AB02>; alias <LatC> = <AB03>; alias <LatV> = <AB04>; alias <LatB> = <AB05>; alias <LatN> = <AB06>; alias <LatM> = <AB07>; }; xkb_types "complete" { virtual_modifiers NumLock,Alt,LevelThree,LAlt,RAlt,RControl,LControl,ScrollLock,LevelFive,AltGr,Meta,Super,Hyper; type "ONE_LEVEL" { modifiers= none; level_name[Level1]= "Any"; }; type "TWO_LEVEL" { modifiers= Shift; map[Shift]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; }; type "ALPHABETIC" { modifiers= Shift+Lock; map[Shift]= Level2; map[Lock]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Caps"; }; type "KEYPAD" { modifiers= Shift+NumLock; map[Shift]= Level2; map[NumLock]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Number"; }; type "SHIFT+ALT" { modifiers= Shift+Alt; map[Shift+Alt]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Shift+Alt"; }; type "PC_SUPER_LEVEL2" { modifiers= Mod4; map[Mod4]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Super"; }; type "PC_CONTROL_LEVEL2" { modifiers= Control; map[Control]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Control"; }; type "PC_LCONTROL_LEVEL2" { modifiers= LControl; map[LControl]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "LControl"; }; type "PC_RCONTROL_LEVEL2" { modifiers= RControl; map[RControl]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "RControl"; }; type "PC_ALT_LEVEL2" { modifiers= Alt; map[Alt]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "Alt"; }; type "PC_LALT_LEVEL2" { modifiers= LAlt; map[LAlt]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "LAlt"; }; type "PC_RALT_LEVEL2" { modifiers= RAlt; map[RAlt]= Level2; level_name[Level1]= "Base"; level_name[Level2]= "RAlt"; }; type "CTRL+ALT" { modifiers= Shift+Control+Alt+LevelThree; map[Shift]= Level2; preserve[Shift]= Shift; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; preserve[Shift+LevelThree]= Shift; map[Control+Alt]= Level5; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; level_name[Level5]= "Ctrl+Alt"; }; type "LOCAL_EIGHT_LEVEL" { modifiers= Shift+Lock+Control+LevelThree; map[Shift+Lock]= Level1; map[Shift]= Level2; map[Lock]= Level2; map[LevelThree]= Level3; map[Shift+Lock+LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock+LevelThree]= Level4; map[Control]= Level5; map[Shift+Lock+Control]= Level5; map[Shift+Control]= Level6; map[Lock+Control]= Level6; map[Control+LevelThree]= Level7; map[Shift+Lock+Control+LevelThree]= Level7; map[Shift+Control+LevelThree]= Level8; map[Lock+Control+LevelThree]= Level8; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Level3"; level_name[Level4]= "Shift Level3"; level_name[Level5]= "Ctrl"; level_name[Level6]= "Shift Ctrl"; level_name[Level7]= "Level3 Ctrl"; level_name[Level8]= "Shift Level3 Ctrl"; }; type "THREE_LEVEL" { modifiers= Shift+LevelThree; map[Shift]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level3; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Level3"; }; type "EIGHT_LEVEL" { modifiers= Shift+LevelThree+LevelFive; map[Shift]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[LevelFive]= Level5; map[Shift+LevelFive]= Level6; map[LevelThree+LevelFive]= Level7; map[Shift+LevelThree+LevelFive]= Level8; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; level_name[Level5]= "X"; level_name[Level6]= "X Shift"; level_name[Level7]= "X Alt Base"; level_name[Level8]= "X Shift Alt"; }; type "EIGHT_LEVEL_ALPHABETIC" { modifiers= Shift+Lock+LevelThree+LevelFive; map[Shift]= Level2; map[Lock]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock+LevelThree]= Level4; map[Shift+Lock+LevelThree]= Level3; map[LevelFive]= Level5; map[Shift+LevelFive]= Level6; map[Lock+LevelFive]= Level6; map[LevelThree+LevelFive]= Level7; map[Shift+LevelThree+LevelFive]= Level8; map[Lock+LevelThree+LevelFive]= Level8; map[Shift+Lock+LevelThree+LevelFive]= Level7; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; level_name[Level5]= "X"; level_name[Level6]= "X Shift"; level_name[Level7]= "X Alt Base"; level_name[Level8]= "X Shift Alt"; }; type "EIGHT_LEVEL_SEMIALPHABETIC" { modifiers= Shift+Lock+LevelThree+LevelFive; map[Shift]= Level2; map[Lock]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock+LevelThree]= Level3; preserve[Lock+LevelThree]= Lock; map[Shift+Lock+LevelThree]= Level4; preserve[Shift+Lock+LevelThree]= Lock; map[LevelFive]= Level5; map[Shift+LevelFive]= Level6; map[Lock+LevelFive]= Level6; preserve[Lock+LevelFive]= Lock; map[Shift+Lock+LevelFive]= Level6; preserve[Shift+Lock+LevelFive]= Lock; map[LevelThree+LevelFive]= Level7; map[Shift+LevelThree+LevelFive]= Level8; map[Lock+LevelThree+LevelFive]= Level7; preserve[Lock+LevelThree+LevelFive]= Lock; map[Shift+Lock+LevelThree+LevelFive]= Level8; preserve[Shift+Lock+LevelThree+LevelFive]= Lock; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; level_name[Level5]= "X"; level_name[Level6]= "X Shift"; level_name[Level7]= "X Alt Base"; level_name[Level8]= "X Shift Alt"; }; type "FOUR_LEVEL" { modifiers= Shift+LevelThree; map[Shift]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; }; type "FOUR_LEVEL_ALPHABETIC" { modifiers= Shift+Lock+LevelThree; map[Shift]= Level2; map[Lock]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock+LevelThree]= Level4; map[Shift+Lock+LevelThree]= Level3; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; }; type "FOUR_LEVEL_SEMIALPHABETIC" { modifiers= Shift+Lock+LevelThree; map[Shift]= Level2; map[Lock]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock+LevelThree]= Level3; preserve[Lock+LevelThree]= Lock; map[Shift+Lock+LevelThree]= Level4; preserve[Shift+Lock+LevelThree]= Lock; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; }; type "FOUR_LEVEL_MIXED_KEYPAD" { modifiers= Shift+NumLock+LevelThree; map[Shift+NumLock]= Level1; map[NumLock]= Level2; map[Shift]= Level2; map[LevelThree]= Level3; map[NumLock+LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Shift+NumLock+LevelThree]= Level4; level_name[Level1]= "Base"; level_name[Level2]= "Number"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; }; type "FOUR_LEVEL_X" { modifiers= Shift+Control+Alt+LevelThree; map[LevelThree]= Level2; map[Shift+LevelThree]= Level3; map[Control+Alt]= Level4; level_name[Level1]= "Base"; level_name[Level2]= "Alt Base"; level_name[Level3]= "Shift Alt"; level_name[Level4]= "Ctrl+Alt"; }; type "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC" { modifiers= Shift+Lock+LevelThree; map[Shift]= Level2; map[Lock]= Level4; preserve[Lock]= Lock; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock+LevelThree]= Level3; preserve[Lock+LevelThree]= Lock; map[Shift+Lock+LevelThree]= Level3; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "AltGr Base"; level_name[Level4]= "Shift AltGr"; }; type "FOUR_LEVEL_PLUS_LOCK" { modifiers= Shift+Lock+LevelThree; map[Shift]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[Lock]= Level5; map[Shift+Lock]= Level2; map[Lock+LevelThree]= Level3; map[Shift+Lock+LevelThree]= Level4; level_name[Level1]= "Base"; level_name[Level2]= "Shift"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Shift Alt"; level_name[Level5]= "Lock"; }; type "FOUR_LEVEL_KEYPAD" { modifiers= Shift+NumLock+LevelThree; map[Shift]= Level2; map[NumLock]= Level2; map[LevelThree]= Level3; map[Shift+LevelThree]= Level4; map[NumLock+LevelThree]= Level4; map[Shift+NumLock+LevelThree]= Level3; level_name[Level1]= "Base"; level_name[Level2]= "Number"; level_name[Level3]= "Alt Base"; level_name[Level4]= "Alt Number"; }; }; xkb_compatibility "complete" { virtual_modifiers NumLock,Alt,LevelThree,LAlt,RAlt,RControl,LControl,ScrollLock,LevelFive,AltGr,Meta,Super,Hyper; interpret.useModMapMods= AnyLevel; interpret.repeat= False; interpret.locking= False; interpret ISO_Level2_Latch+Exactly(Shift) { useModMapMods=level1; action= LatchMods(modifiers=Shift,clearLocks,latchToLock); }; interpret Shift_Lock+AnyOf(Shift+Lock) { action= LockMods(modifiers=Shift); }; interpret Num_Lock+AnyOf(all) { virtualModifier= NumLock; action= LockMods(modifiers=NumLock); }; interpret ISO_Level3_Shift+AnyOf(all) { virtualModifier= LevelThree; useModMapMods=level1; action= SetMods(modifiers=LevelThree,clearLocks); }; interpret ISO_Level3_Latch+AnyOf(all) { virtualModifier= LevelThree; useModMapMods=level1; action= LatchMods(modifiers=LevelThree,clearLocks,latchToLock); }; interpret ISO_Level3_Lock+AnyOf(all) { virtualModifier= LevelThree; useModMapMods=level1; action= LockMods(modifiers=LevelThree); }; interpret Alt_L+AnyOf(all) { virtualModifier= Alt; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Alt_R+AnyOf(all) { virtualModifier= Alt; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Meta_L+AnyOf(all) { virtualModifier= Meta; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Meta_R+AnyOf(all) { virtualModifier= Meta; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Super_L+AnyOf(all) { virtualModifier= Super; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Super_R+AnyOf(all) { virtualModifier= Super; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Hyper_L+AnyOf(all) { virtualModifier= Hyper; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Hyper_R+AnyOf(all) { virtualModifier= Hyper; action= SetMods(modifiers=modMapMods,clearLocks); }; interpret Scroll_Lock+AnyOf(all) { virtualModifier= ScrollLock; action= LockMods(modifiers=modMapMods); }; interpret ISO_Level5_Shift+AnyOf(all) { virtualModifier= LevelFive; useModMapMods=level1; action= SetMods(modifiers=LevelFive,clearLocks); }; interpret ISO_Level5_Latch+AnyOf(all) { virtualModifier= LevelFive; useModMapMods=level1; action= LatchMods(modifiers=LevelFive,clearLocks,latchToLock); }; interpret ISO_Level5_Lock+AnyOf(all) { virtualModifier= LevelFive; useModMapMods=level1; action= LockMods(modifiers=LevelFive); }; interpret Mode_switch+AnyOfOrNone(all) { virtualModifier= AltGr; useModMapMods=level1; action= SetGroup(group=+1); }; interpret ISO_Level3_Shift+AnyOfOrNone(all) { action= SetMods(modifiers=LevelThree,clearLocks); }; interpret ISO_Level3_Latch+AnyOfOrNone(all) { action= LatchMods(modifiers=LevelThree,clearLocks,latchToLock); }; interpret ISO_Level3_Lock+AnyOfOrNone(all) { action= LockMods(modifiers=LevelThree); }; interpret ISO_Group_Latch+AnyOfOrNone(all) { virtualModifier= AltGr; useModMapMods=level1; action= LatchGroup(group=2); }; interpret ISO_Next_Group+AnyOfOrNone(all) { virtualModifier= AltGr; useModMapMods=level1; action= LockGroup(group=+1); }; interpret ISO_Prev_Group+AnyOfOrNone(all) { virtualModifier= AltGr; useModMapMods=level1; action= LockGroup(group=-1); }; interpret ISO_First_Group+AnyOfOrNone(all) { action= LockGroup(group=1); }; interpret ISO_Last_Group+AnyOfOrNone(all) { action= LockGroup(group=2); }; interpret KP_1+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=+1); }; interpret KP_End+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=+1); }; interpret KP_2+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+0,y=+1); }; interpret KP_Down+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+0,y=+1); }; interpret KP_3+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=+1); }; interpret KP_Next+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=+1); }; interpret KP_4+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=+0); }; interpret KP_Left+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=+0); }; interpret KP_6+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=+0); }; interpret KP_Right+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=+0); }; interpret KP_7+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=-1); }; interpret KP_Home+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=-1); }; interpret KP_8+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+0,y=-1); }; interpret KP_Up+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+0,y=-1); }; interpret KP_9+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=-1); }; interpret KP_Prior+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=-1); }; interpret KP_5+AnyOfOrNone(all) { repeat= True; action= PtrBtn(button=default); }; interpret KP_Begin+AnyOfOrNone(all) { repeat= True; action= PtrBtn(button=default); }; interpret KP_F2+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=1); }; interpret KP_Divide+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=1); }; interpret KP_F3+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=2); }; interpret KP_Multiply+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=2); }; interpret KP_F4+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=3); }; interpret KP_Subtract+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=3); }; interpret KP_Separator+AnyOfOrNone(all) { repeat= True; action= PtrBtn(button=default,count=2); }; interpret KP_Add+AnyOfOrNone(all) { repeat= True; action= PtrBtn(button=default,count=2); }; interpret KP_0+AnyOfOrNone(all) { repeat= True; action= LockPtrBtn(button=default,affect=lock); }; interpret KP_Insert+AnyOfOrNone(all) { repeat= True; action= LockPtrBtn(button=default,affect=lock); }; interpret KP_Decimal+AnyOfOrNone(all) { repeat= True; action= LockPtrBtn(button=default,affect=unlock); }; interpret KP_Delete+AnyOfOrNone(all) { repeat= True; action= LockPtrBtn(button=default,affect=unlock); }; interpret F25+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=1); }; interpret F26+AnyOfOrNone(all) { repeat= True; action= SetPtrDflt(affect=button,button=2); }; interpret F27+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=-1); }; interpret F29+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=-1); }; interpret F31+AnyOfOrNone(all) { repeat= True; action= PtrBtn(button=default); }; interpret F33+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=-1,y=+1); }; interpret F35+AnyOfOrNone(all) { repeat= True; action= MovePtr(x=+1,y=+1); }; interpret Pointer_Button_Dflt+AnyOfOrNone(all) { action= PtrBtn(button=default); }; interpret Pointer_Button1+AnyOfOrNone(all) { action= PtrBtn(button=1); }; interpret Pointer_Button2+AnyOfOrNone(all) { action= PtrBtn(button=2); }; interpret Pointer_Button3+AnyOfOrNone(all) { action= PtrBtn(button=3); }; interpret Pointer_DblClick_Dflt+AnyOfOrNone(all) { action= PtrBtn(button=default,count=2); }; interpret Pointer_DblClick1+AnyOfOrNone(all) { action= PtrBtn(button=1,count=2); }; interpret Pointer_DblClick2+AnyOfOrNone(all) { action= PtrBtn(button=2,count=2); }; interpret Pointer_DblClick3+AnyOfOrNone(all) { action= PtrBtn(button=3,count=2); }; interpret Pointer_Drag_Dflt+AnyOfOrNone(all) { action= LockPtrBtn(button=default,affect=both); }; interpret Pointer_Drag1+AnyOfOrNone(all) { action= LockPtrBtn(button=1,affect=both); }; interpret Pointer_Drag2+AnyOfOrNone(all) { action= LockPtrBtn(button=2,affect=both); }; interpret Pointer_Drag3+AnyOfOrNone(all) { action= LockPtrBtn(button=3,affect=both); }; interpret Pointer_EnableKeys+AnyOfOrNone(all) { action= LockControls(controls=MouseKeys); }; interpret Pointer_Accelerate+AnyOfOrNone(all) { action= LockControls(controls=MouseKeysAccel); }; interpret Pointer_DfltBtnNext+AnyOfOrNone(all) { action= SetPtrDflt(affect=button,button=+1); }; interpret Pointer_DfltBtnPrev+AnyOfOrNone(all) { action= SetPtrDflt(affect=button,button=-1); }; interpret AccessX_Enable+AnyOfOrNone(all) { action= LockControls(controls=AccessXKeys); }; interpret AccessX_Feedback_Enable+AnyOfOrNone(all) { action= LockControls(controls=AccessXFeedback); }; interpret RepeatKeys_Enable+AnyOfOrNone(all) { action= LockControls(controls=RepeatKeys); }; interpret SlowKeys_Enable+AnyOfOrNone(all) { action= LockControls(controls=SlowKeys); }; interpret BounceKeys_Enable+AnyOfOrNone(all) { action= LockControls(controls=BounceKeys); }; interpret StickyKeys_Enable+AnyOfOrNone(all) { action= LockControls(controls=StickyKeys); }; interpret MouseKeys_Enable+AnyOfOrNone(all) { action= LockControls(controls=MouseKeys); }; interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) { action= LockControls(controls=MouseKeysAccel); }; interpret Overlay1_Enable+AnyOfOrNone(all) { action= LockControls(controls=Overlay1); }; interpret Overlay2_Enable+AnyOfOrNone(all) { action= LockControls(controls=Overlay2); }; interpret AudibleBell_Enable+AnyOfOrNone(all) { action= LockControls(controls=AudibleBell); }; interpret Terminate_Server+AnyOfOrNone(all) { action= Terminate(); }; interpret Alt_L+AnyOfOrNone(all) { action= SetMods(modifiers=Alt,clearLocks); }; interpret Alt_R+AnyOfOrNone(all) { action= SetMods(modifiers=Alt,clearLocks); }; interpret Meta_L+AnyOfOrNone(all) { action= SetMods(modifiers=Meta,clearLocks); }; interpret Meta_R+AnyOfOrNone(all) { action= SetMods(modifiers=Meta,clearLocks); }; interpret Super_L+AnyOfOrNone(all) { action= SetMods(modifiers=Super,clearLocks); }; interpret Super_R+AnyOfOrNone(all) { action= SetMods(modifiers=Super,clearLocks); }; interpret Hyper_L+AnyOfOrNone(all) { action= SetMods(modifiers=Hyper,clearLocks); }; interpret Hyper_R+AnyOfOrNone(all) { action= SetMods(modifiers=Hyper,clearLocks); }; interpret Shift_L+AnyOfOrNone(all) { action= SetMods(modifiers=Shift,clearLocks); }; interpret XF86Switch_VT_1+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=1,!same); }; interpret XF86Switch_VT_2+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=2,!same); }; interpret XF86Switch_VT_3+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=3,!same); }; interpret XF86Switch_VT_4+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=4,!same); }; interpret XF86Switch_VT_5+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=5,!same); }; interpret XF86Switch_VT_6+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=6,!same); }; interpret XF86Switch_VT_7+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=7,!same); }; interpret XF86Switch_VT_8+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=8,!same); }; interpret XF86Switch_VT_9+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=9,!same); }; interpret XF86Switch_VT_10+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=10,!same); }; interpret XF86Switch_VT_11+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=11,!same); }; interpret XF86Switch_VT_12+AnyOfOrNone(all) { repeat= True; action= SwitchScreen(screen=12,!same); }; interpret XF86LogGrabInfo+AnyOfOrNone(all) { repeat= True; action= Private(type=0x86,data[0]=0x50,data[1]=0x72,data[2]=0x47,data[3]=0x72,data[4]=0x62,data[5]=0x73,data[6]=0x00); }; interpret XF86LogWindowTree+AnyOfOrNone(all) { repeat= True; action= Private(type=0x86,data[0]=0x50,data[1]=0x72,data[2]=0x57,data[3]=0x69,data[4]=0x6e,data[5]=0x73,data[6]=0x00); }; interpret XF86Next_VMode+AnyOfOrNone(all) { repeat= True; action= Private(type=0x86,data[0]=0x2b,data[1]=0x56,data[2]=0x4d,data[3]=0x6f,data[4]=0x64,data[5]=0x65,data[6]=0x00); }; interpret XF86Prev_VMode+AnyOfOrNone(all) { repeat= True; action= Private(type=0x86,data[0]=0x2d,data[1]=0x56,data[2]=0x4d,data[3]=0x6f,data[4]=0x64,data[5]=0x65,data[6]=0x00); }; interpret ISO_Level5_Shift+AnyOfOrNone(all) { action= SetMods(modifiers=LevelFive,clearLocks); }; interpret ISO_Level5_Latch+AnyOfOrNone(all) { action= LatchMods(modifiers=LevelFive,clearLocks,latchToLock); }; interpret ISO_Level5_Lock+AnyOfOrNone(all) { action= LockMods(modifiers=LevelFive); }; interpret Caps_Lock+AnyOfOrNone(all) { action= LockMods(modifiers=Lock); }; interpret Any+Exactly(Lock) { action= LockMods(modifiers=Lock); }; interpret Any+AnyOf(all) { action= SetMods(modifiers=modMapMods,clearLocks); }; group 2 = AltGr; group 3 = AltGr; group 4 = AltGr; indicator "Caps Lock" { !allowExplicit; whichModState= locked; modifiers= Lock; }; indicator "Num Lock" { !allowExplicit; whichModState= locked; modifiers= NumLock; }; indicator "Scroll Lock" { whichModState= locked; modifiers= ScrollLock; }; indicator "Shift Lock" { !allowExplicit; whichModState= locked; modifiers= Shift; }; indicator "Group 2" { !allowExplicit; groups= 0xfe; }; indicator "Mouse Keys" { indicatorDrivesKeyboard; controls= mouseKeys; }; }; xkb_symbols "pc+gb+us:2+inet(evdev)+compose(ralt)" { name[group1]="English (UK)"; name[group2]="English (US)"; key <ESC> { [ Escape ] }; key <AE01> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 1, exclam, onesuperior, exclamdown ], symbols[Group2]= [ 1, exclam ] }; key <AE02> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 2, quotedbl, twosuperior, oneeighth ], symbols[Group2]= [ 2, at ] }; key <AE03> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 3, sterling, threesuperior, sterling ], symbols[Group2]= [ 3, numbersign ] }; key <AE04> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 4, dollar, EuroSign, onequarter ], symbols[Group2]= [ 4, dollar ] }; key <AE05> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 5, percent, onehalf, threeeighths ], symbols[Group2]= [ 5, percent ] }; key <AE06> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 6, asciicircum, threequarters, fiveeighths ], symbols[Group2]= [ 6, asciicircum ] }; key <AE07> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 7, ampersand, braceleft, seveneighths ], symbols[Group2]= [ 7, ampersand ] }; key <AE08> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 8, asterisk, bracketleft, trademark ], symbols[Group2]= [ 8, asterisk ] }; key <AE09> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 9, parenleft, bracketright, plusminus ], symbols[Group2]= [ 9, parenleft ] }; key <AE10> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ 0, parenright, braceright, degree ], symbols[Group2]= [ 0, parenright ] }; key <AE11> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ minus, underscore, backslash, questiondown ], symbols[Group2]= [ minus, underscore ] }; key <AE12> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ equal, plus, dead_cedilla, dead_ogonek ], symbols[Group2]= [ equal, plus ] }; key <BKSP> { [ BackSpace, BackSpace ] }; key <TAB> { [ Tab, ISO_Left_Tab ] }; key <AD01> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ q, Q, at, Greek_OMEGA ], symbols[Group2]= [ q, Q ] }; key <AD02> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ w, W, lstroke, Lstroke ], symbols[Group2]= [ w, W ] }; key <AD03> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ e, E, e, E ], symbols[Group2]= [ e, E ] }; key <AD04> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ r, R, paragraph, registered ], symbols[Group2]= [ r, R ] }; key <AD05> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ t, T, tslash, Tslash ], symbols[Group2]= [ t, T ] }; key <AD06> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ y, Y, leftarrow, yen ], symbols[Group2]= [ y, Y ] }; key <AD07> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ u, U, downarrow, uparrow ], symbols[Group2]= [ u, U ] }; key <AD08> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ i, I, rightarrow, idotless ], symbols[Group2]= [ i, I ] }; key <AD09> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ o, O, oslash, Oslash ], symbols[Group2]= [ o, O ] }; key <AD10> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ p, P, thorn, THORN ], symbols[Group2]= [ p, P ] }; key <AD11> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ bracketleft, braceleft, dead_diaeresis, dead_abovering ], symbols[Group2]= [ bracketleft, braceleft ] }; key <AD12> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ bracketright, braceright, dead_tilde, dead_macron ], symbols[Group2]= [ bracketright, braceright ] }; key <RTRN> { [ Return ] }; key <LCTL> { [ Control_L ] }; key <AC01> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ a, A, ae, AE ], symbols[Group2]= [ a, A ] }; key <AC02> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ s, S, ssharp, section ], symbols[Group2]= [ s, S ] }; key <AC03> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ d, D, eth, ETH ], symbols[Group2]= [ d, D ] }; key <AC04> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ f, F, dstroke, ordfeminine ], symbols[Group2]= [ f, F ] }; key <AC05> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ g, G, eng, ENG ], symbols[Group2]= [ g, G ] }; key <AC06> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ h, H, hstroke, Hstroke ], symbols[Group2]= [ h, H ] }; key <AC07> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ j, J, dead_hook, dead_horn ], symbols[Group2]= [ j, J ] }; key <AC08> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ k, K, kra, ampersand ], symbols[Group2]= [ k, K ] }; key <AC09> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ l, L, lstroke, Lstroke ], symbols[Group2]= [ l, L ] }; key <AC10> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ semicolon, colon, dead_acute, dead_doubleacute ], symbols[Group2]= [ semicolon, colon ] }; key <AC11> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ apostrophe, at, dead_circumflex, dead_caron ], symbols[Group2]= [ apostrophe, quotedbl ] }; key <TLDE> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ grave, notsign, bar, bar ], symbols[Group2]= [ grave, asciitilde ] }; key <LFSH> { [ Shift_L ] }; key <BKSL> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ numbersign, asciitilde, dead_grave, dead_breve ], symbols[Group2]= [ backslash, bar ] }; key <AB01> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ z, Z, guillemotleft, less ], symbols[Group2]= [ z, Z ] }; key <AB02> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ x, X, guillemotright, greater ], symbols[Group2]= [ x, X ] }; key <AB03> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ c, C, cent, copyright ], symbols[Group2]= [ c, C ] }; key <AB04> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ v, V, leftdoublequotemark, leftsinglequotemark ], symbols[Group2]= [ v, V ] }; key <AB05> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ b, B, rightdoublequotemark, rightsinglequotemark ], symbols[Group2]= [ b, B ] }; key <AB06> { type[group1]= "FOUR_LEVEL_ALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ n, N, n, N ], symbols[Group2]= [ n, N ] }; key <AB07> { type[group1]= "FOUR_LEVEL_SEMIALPHABETIC", type[group2]= "ALPHABETIC", symbols[Group1]= [ m, M, mu, masculine ], symbols[Group2]= [ m, M ] }; key <AB08> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ comma, less, horizconnector, multiply ], symbols[Group2]= [ comma, less ] }; key <AB09> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ period, greater, periodcentered, division ], symbols[Group2]= [ period, greater ] }; key <AB10> { type[group1]= "FOUR_LEVEL", symbols[Group1]= [ slash, question, dead_belowdot, dead_abovedot ], symbols[Group2]= [ slash, question ] }; key <RTSH> { [ Shift_R ] }; key <KPMU> { type= "CTRL+ALT", symbols[Group1]= [ KP_Multiply, KP_Multiply, KP_Multiply, KP_Multiply, XF86ClearGrab ] }; key <LALT> { [ Alt_L, Meta_L ] }; key <SPCE> { [ space ] }; key <CAPS> { [ Caps_Lock ] }; key <FK01> { type= "CTRL+ALT", symbols[Group1]= [ F1, F1, F1, F1, XF86Switch_VT_1 ] }; key <FK02> { type= "CTRL+ALT", symbols[Group1]= [ F2, F2, F2, F2, XF86Switch_VT_2 ] }; key <FK03> { type= "CTRL+ALT", symbols[Group1]= [ F3, F3, F3, F3, XF86Switch_VT_3 ] }; key <FK04> { type= "CTRL+ALT", symbols[Group1]= [ F4, F4, F4, F4, XF86Switch_VT_4 ] }; key <FK05> { type= "CTRL+ALT", symbols[Group1]= [ F5, F5, F5, F5, XF86Switch_VT_5 ] }; key <FK06> { type= "CTRL+ALT", symbols[Group1]= [ F6, F6, F6, F6, XF86Switch_VT_6 ] }; key <FK07> { type= "CTRL+ALT", symbols[Group1]= [ F7, F7, F7, F7, XF86Switch_VT_7 ] }; key <FK08> { type= "CTRL+ALT", symbols[Group1]= [ F8, F8, F8, F8, XF86Switch_VT_8 ] }; key <FK09> { type= "CTRL+ALT", symbols[Group1]= [ F9, F9, F9, F9, XF86Switch_VT_9 ] }; key <FK10> { type= "CTRL+ALT", symbols[Group1]= [ F10, F10, F10, F10, XF86Switch_VT_10 ] }; key <NMLK> { [ Num_Lock ] }; key <SCLK> { [ Scroll_Lock ] }; key <KP7> { [ KP_Home, KP_7 ] }; key <KP8> { [ KP_Up, KP_8 ] }; key <KP9> { [ KP_Prior, KP_9 ] }; key <KPSU> { type= "CTRL+ALT", symbols[Group1]= [ KP_Subtract, KP_Subtract, KP_Subtract, KP_Subtract, XF86Prev_VMode ] }; key <KP4> { [ KP_Left, KP_4 ] }; key <KP5> { [ KP_Begin, KP_5 ] }; key <KP6> { [ KP_Right, KP_6 ] }; key <KPAD> { type= "CTRL+ALT", symbols[Group1]= [ KP_Add, KP_Add, KP_Add, KP_Add, XF86Next_VMode ] }; key <KP1> { [ KP_End, KP_1 ] }; key <KP2> { [ KP_Down, KP_2 ] }; key <KP3> { [ KP_Next, KP_3 ] }; key <KP0> { [ KP_Insert, KP_0 ] }; key <KPDL> { [ KP_Delete, KP_Decimal ] }; key <LVL3> { type= "ONE_LEVEL", symbols[Group1]= [ ISO_Level3_Shift ] }; key <LSGT> { type= "FOUR_LEVEL", symbols[Group1]= [ backslash, bar, bar, brokenbar ] }; key <FK11> { type= "CTRL+ALT", symbols[Group1]= [ F11, F11, F11, F11, XF86Switch_VT_11 ] }; key <FK12> { type= "CTRL+ALT", symbols[Group1]= [ F12, F12, F12, F12, XF86Switch_VT_12 ] }; key <KATA> { [ Katakana ] }; key <HIRA> { [ Hiragana ] }; key <HENK> { [ Henkan_Mode ] }; key <HKTG> { [ Hiragana_Katakana ] }; key <MUHE> { [ Muhenkan ] }; key <KPEN> { [ KP_Enter ] }; key <RCTL> { [ Control_R ] }; key <KPDV> { type= "CTRL+ALT", symbols[Group1]= [ KP_Divide, KP_Divide, KP_Divide, KP_Divide, XF86Ungrab ] }; key <PRSC> { type= "PC_ALT_LEVEL2", symbols[Group1]= [ Print, Sys_Req ] }; key <RALT> { type= "TWO_LEVEL", symbols[Group1]= [ Multi_key, Multi_key ] }; key <LNFD> { [ Linefeed ] }; key <HOME> { [ Home ] }; key <UP> { [ Up ] }; key <PGUP> { [ Prior ] }; key <LEFT> { [ Left ] }; key <RGHT> { [ Right ] }; key <END> { [ End ] }; key <DOWN> { [ Down ] }; key <PGDN> { [ Next ] }; key <INS> { [ Insert ] }; key <DELE> { [ Delete ] }; key <MUTE> { [ XF86AudioMute ] }; key <VOL-> { [ XF86AudioLowerVolume ] }; key <VOL+> { [ XF86AudioRaiseVolume ] }; key <POWR> { [ XF86PowerOff ] }; key <KPEQ> { [ KP_Equal ] }; key <I126> { [ plusminus ] }; key <PAUS> { type= "PC_CONTROL_LEVEL2", symbols[Group1]= [ Pause, Break ] }; key <I128> { [ XF86LaunchA ] }; key <I129> { [ KP_Decimal, KP_Decimal ] }; key <HNGL> { [ Hangul ] }; key <HJCV> { [ Hangul_Hanja ] }; key <LWIN> { [ Super_L ] }; key <RWIN> { [ Super_R ] }; key <COMP> { [ Menu ] }; key <STOP> { [ Cancel ] }; key <AGAI> { [ Redo ] }; key <PROP> { [ SunProps ] }; key <UNDO> { [ Undo ] }; key <FRNT> { [ SunFront ] }; key <COPY> { [ XF86Copy ] }; key <OPEN> { [ XF86Open ] }; key <PAST> { [ XF86Paste ] }; key <FIND> { [ Find ] }; key <CUT> { [ XF86Cut ] }; key <HELP> { [ Help ] }; key <I147> { [ XF86MenuKB ] }; key <I148> { [ XF86Calculator ] }; key <I150> { [ XF86Sleep ] }; key <I151> { [ XF86WakeUp ] }; key <I152> { [ XF86Explorer ] }; key <I153> { [ XF86Send ] }; key <I155> { [ XF86Xfer ] }; key <I156> { [ XF86Launch1 ] }; key <I157> { [ XF86Launch2 ] }; key <I158> { [ XF86WWW ] }; key <I159> { [ XF86DOS ] }; key <I160> { [ XF86ScreenSaver ] }; key <I161> { [ XF86RotateWindows ] }; key <I162> { [ XF86TaskPane ] }; key <I163> { [ XF86Mail ] }; key <I164> { [ XF86Favorites ] }; key <I165> { [ XF86MyComputer ] }; key <I166> { [ XF86Back ] }; key <I167> { [ XF86Forward ] }; key <I169> { [ XF86Eject ] }; key <I170> { [ XF86Eject, XF86Eject ] }; key <I171> { [ XF86AudioNext ] }; key <I172> { [ XF86AudioPlay, XF86AudioPause ] }; key <I173> { [ XF86AudioPrev ] }; key <I174> { [ XF86AudioStop, XF86Eject ] }; key <I175> { [ XF86AudioRecord ] }; key <I176> { [ XF86AudioRewind ] }; key <I177> { [ XF86Phone ] }; key <I179> { [ XF86Tools ] }; key <I180> { [ XF86HomePage ] }; key <I181> { [ XF86Reload ] }; key <I182> { [ XF86Close ] }; key <I185> { [ XF86ScrollUp ] }; key <I186> { [ XF86ScrollDown ] }; key <I187> { [ parenleft ] }; key <I188> { [ parenright ] }; key <I189> { [ XF86New ] }; key <I190> { [ Redo ] }; key <FK13> { [ XF86Tools ] }; key <FK14> { [ XF86Launch5 ] }; key <FK15> { [ XF86Launch6 ] }; key <FK16> { [ XF86Launch7 ] }; key <FK17> { [ XF86Launch8 ] }; key <FK18> { [ XF86Launch9 ] }; key <FK20> { [ XF86AudioMicMute ] }; key <FK21> { [ XF86TouchpadToggle ] }; key <FK22> { [ XF86TouchpadOn ] }; key <FK23> { [ XF86TouchpadOff ] }; key <MDSW> { [ Mode_switch ] }; key <ALT> { [ NoSymbol, Alt_L ] }; key <META> { [ NoSymbol, Meta_L ] }; key <SUPR> { [ NoSymbol, Super_L ] }; key <HYPR> { [ NoSymbol, Hyper_L ] }; key <I208> { [ XF86AudioPlay ] }; key <I209> { [ XF86AudioPause ] }; key <I210> { [ XF86Launch3 ] }; key <I211> { [ XF86Launch4 ] }; key <I212> { [ XF86LaunchB ] }; key <I213> { [ XF86Suspend ] }; key <I214> { [ XF86Close ] }; key <I215> { [ XF86AudioPlay ] }; key <I216> { [ XF86AudioForward ] }; key <I218> { [ Print ] }; key <I220> { [ XF86WebCam ] }; key <I223> { [ XF86Mail ] }; key <I224> { [ XF86Messenger ] }; key <I225> { [ XF86Search ] }; key <I226> { [ XF86Go ] }; key <I227> { [ XF86Finance ] }; key <I228> { [ XF86Game ] }; key <I229> { [ XF86Shop ] }; key <I231> { [ Cancel ] }; key <I232> { [ XF86MonBrightnessDown ] }; key <I233> { [ XF86MonBrightnessUp ] }; key <I234> { [ XF86AudioMedia ] }; key <I235> { [ XF86Display ] }; key <I236> { [ XF86KbdLightOnOff ] }; key <I237> { [ XF86KbdBrightnessDown ] }; key <I238> { [ XF86KbdBrightnessUp ] }; key <I239> { [ XF86Send ] }; key <I240> { [ XF86Reply ] }; key <I241> { [ XF86MailForward ] }; key <I242> { [ XF86Save ] }; key <I243> { [ XF86Documents ] }; key <I244> { [ XF86Battery ] }; key <I245> { [ XF86Bluetooth ] }; key <I246> { [ XF86WLAN ] }; modifier_map Control { <LCTL> }; modifier_map Shift { <LFSH> }; modifier_map Shift { <RTSH> }; modifier_map Mod1 { <LALT> }; modifier_map Lock { <CAPS> }; modifier_map Mod2 { <NMLK> }; modifier_map Mod5 { <LVL3> }; modifier_map Control { <RCTL> }; modifier_map Mod4 { <LWIN> }; modifier_map Mod4 { <RWIN> }; modifier_map Mod5 { <MDSW> }; modifier_map Mod1 { <META> }; modifier_map Mod4 { <SUPR> }; modifier_map Mod4 { <HYPR> }; }; xkb_geometry "pc(pc105)" { width= 470; height= 180; alias <AC00> = <CAPS>; alias <AA00> = <LCTL>; baseColor= "white"; labelColor= "black"; xfont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; description= "Generic 105"; shape "NORM" { corner= 1, { [ 18, 18 ] }, { [ 2, 1 ], [ 16, 16 ] } }; shape "BKSP" { corner= 1, { [ 38, 18 ] }, { [ 2, 1 ], [ 36, 16 ] } }; shape "TABK" { corner= 1, { [ 28, 18 ] }, { [ 2, 1 ], [ 26, 16 ] } }; shape "BKSL" { corner= 1, { [ 28, 18 ] }, { [ 2, 1 ], [ 26, 16 ] } }; shape "RTRN" { corner= 1, { [ 0, 0 ], [ 28, 0 ], [ 28, 37 ], [ 5, 37 ], [ 5, 18 ], [ 0, 18 ] }, { [ 2, 1 ], [ 26, 1 ], [ 26, 35 ], [ 7, 35 ], [ 7, 16 ], [ 2, 16 ] }, approx= { [ 5, 0 ], [ 28, 37 ] } }; shape "CAPS" { corner= 1, { [ 33, 18 ] }, { [ 2, 1 ], [ 31, 16 ] } }; shape "LFSH" { corner= 1, { [ 25, 18 ] }, { [ 2, 1 ], [ 23, 16 ] } }; shape "RTSH" { corner= 1, { [ 50, 18 ] }, { [ 2, 1 ], [ 48, 16 ] } }; shape "MODK" { corner= 1, { [ 27, 18 ] }, { [ 2, 1 ], [ 25, 16 ] } }; shape "SMOD" { corner= 1, { [ 23, 18 ] }, { [ 2, 1 ], [ 21, 16 ] } }; shape "SPCE" { corner= 1, { [ 113, 18 ] }, { [ 2, 1 ], [ 111, 16 ] } }; shape "KP0" { corner= 1, { [ 37, 18 ] }, { [ 2, 1 ], [ 35, 16 ] } }; shape "KPAD" { corner= 1, { [ 18, 37 ] }, { [ 2, 1 ], [ 16, 35 ] } }; shape "LEDS" { { [ 75, 20 ] } }; shape "LED" { { [ 5, 1 ] } }; section "Function" { key.color= "grey20"; priority= 7; top= 22; left= 19; width= 351; height= 19; row { top= 1; left= 1; keys { { <ESC>, "NORM", 1 }, { <FK01>, "NORM", 20, color="white" }, { <FK02>, "NORM", 1, color="white" }, { <FK03>, "NORM", 1, color="white" }, { <FK04>, "NORM", 1, color="white" }, { <FK05>, "NORM", 11, color="white" }, { <FK06>, "NORM", 1, color="white" }, { <FK07>, "NORM", 1, color="white" }, { <FK08>, "NORM", 1, color="white" }, { <FK09>, "NORM", 11, color="white" }, { <FK10>, "NORM", 1, color="white" }, { <FK11>, "NORM", 1, color="white" }, { <FK12>, "NORM", 1, color="white" }, { <PRSC>, "NORM", 8, color="white" }, { <SCLK>, "NORM", 1, color="white" }, { <PAUS>, "NORM", 1, color="white" } }; }; }; // End of "Function" section section "Alpha" { key.color= "white"; priority= 8; top= 61; left= 19; width= 287; height= 95; row { top= 1; left= 1; keys { { <TLDE>, "NORM", 1 }, { <AE01>, "NORM", 1 }, { <AE02>, "NORM", 1 }, { <AE03>, "NORM", 1 }, { <AE04>, "NORM", 1 }, { <AE05>, "NORM", 1 }, { <AE06>, "NORM", 1 }, { <AE07>, "NORM", 1 }, { <AE08>, "NORM", 1 }, { <AE09>, "NORM", 1 }, { <AE10>, "NORM", 1 }, { <AE11>, "NORM", 1 }, { <AE12>, "NORM", 1 }, { <BKSP>, "BKSP", 1, color="grey20" } }; }; row { top= 20; left= 1; keys { { <TAB>, "TABK", 1, color="grey20" }, { <AD01>, "NORM", 1 }, { <AD02>, "NORM", 1 }, { <AD03>, "NORM", 1 }, { <AD04>, "NORM", 1 }, { <AD05>, "NORM", 1 }, { <AD06>, "NORM", 1 }, { <AD07>, "NORM", 1 }, { <AD08>, "NORM", 1 }, { <AD09>, "NORM", 1 }, { <AD10>, "NORM", 1 }, { <AD11>, "NORM", 1 }, { <AD12>, "NORM", 1 }, { <RTRN>, "RTRN", 1, color="grey20" } }; }; row { top= 39; left= 1; keys { { <CAPS>, "CAPS", 1, color="grey20" }, { <AC01>, "NORM", 1 }, { <AC02>, "NORM", 1 }, { <AC03>, "NORM", 1 }, { <AC04>, "NORM", 1 }, { <AC05>, "NORM", 1 }, { <AC06>, "NORM", 1 }, { <AC07>, "NORM", 1 }, { <AC08>, "NORM", 1 }, { <AC09>, "NORM", 1 }, { <AC10>, "NORM", 1 }, { <AC11>, "NORM", 1 }, { <BKSL>, "NORM", 1 } }; }; row { top= 58; left= 1; keys { { <LFSH>, "LFSH", 1, color="grey20" }, { <LSGT>, "NORM", 1 }, { <AB01>, "NORM", 1 }, { <AB02>, "NORM", 1 }, { <AB03>, "NORM", 1 }, { <AB04>, "NORM", 1 }, { <AB05>, "NORM", 1 }, { <AB06>, "NORM", 1 }, { <AB07>, "NORM", 1 }, { <AB08>, "NORM", 1 }, { <AB09>, "NORM", 1 }, { <AB10>, "NORM", 1 }, { <RTSH>, "RTSH", 1, color="grey20" } }; }; row { top= 77; left= 1; keys { { <LCTL>, "MODK", 1, color="grey20" }, { <LWIN>, "SMOD", 1, color="grey20" }, { <LALT>, "SMOD", 1, color="grey20" }, { <SPCE>, "SPCE", 1 }, { <RALT>, "SMOD", 1, color="grey20" }, { <RWIN>, "SMOD", 1, color="grey20" }, { <MENU>, "SMOD", 1, color="grey20" }, { <RCTL>, "SMOD", 1, color="grey20" } }; }; }; // End of "Alpha" section section "Editing" { key.color= "grey20"; priority= 9; top= 61; left= 312; width= 58; height= 95; row { top= 1; left= 1; keys { { <INS>, "NORM", 1 }, { <HOME>, "NORM", 1 }, { <PGUP>, "NORM", 1 } }; }; row { top= 20; left= 1; keys { { <DELE>, "NORM", 1 }, { <END>, "NORM", 1 }, { <PGDN>, "NORM", 1 } }; }; row { top= 58; left= 20; keys { { <UP>, "NORM", 1 } }; }; row { top= 77; left= 1; keys { { <LEFT>, "NORM", 1 }, { <DOWN>, "NORM", 1 }, { <RGHT>, "NORM", 1 } }; }; }; // End of "Editing" section section "Keypad" { key.color= "grey20"; priority= 10; top= 61; left= 376; width= 77; height= 95; row { top= 1; left= 1; keys { { <NMLK>, "NORM", 1 }, { <KPDV>, "NORM", 1 }, { <KPMU>, "NORM", 1 }, { <KPSU>, "NORM", 1 } }; }; row { top= 20; left= 1; keys { { <KP7>, "NORM", 1, color="white" }, { <KP8>, "NORM", 1, color="white" }, { <KP9>, "NORM", 1, color="white" }, { <KPAD>, "KPAD", 1 } }; }; row { top= 39; left= 1; keys { { <KP4>, "NORM", 1, color="white" }, { <KP5>, "NORM", 1, color="white" }, { <KP6>, "NORM", 1, color="white" } }; }; row { top= 58; left= 1; keys { { <KP1>, "NORM", 1, color="white" }, { <KP2>, "NORM", 1, color="white" }, { <KP3>, "NORM", 1, color="white" }, { <KPEN>, "KPAD", 1 } }; }; row { top= 77; left= 1; keys { { <KP0>, "KP0", 1, color="white" }, { <KPDL>, "NORM", 1, color="white" } }; }; }; // End of "Keypad" section solid "LedPanel" { top= 22; left= 377; priority= 0; color= "grey10"; shape= "LEDS"; }; indicator "Num Lock" { top= 37; left= 382; priority= 1; onColor= "green"; offColor= "green30"; shape= "LED"; }; indicator "Caps Lock" { top= 37; left= 407; priority= 2; onColor= "green"; offColor= "green30"; shape= "LED"; }; indicator "Scroll Lock" { top= 37; left= 433; priority= 3; onColor= "green"; offColor= "green30"; shape= "LED"; }; text "NumLockLabel" { top= 25; left= 378; priority= 4; width= 19.8; height= 10; XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; text= "Num\nLock"; }; text "CapsLockLabel" { top= 25; left= 403; priority= 5; width= 26.4; height= 10; XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; text= "Caps\nLock"; }; text "ScrollLockLabel" { top= 25; left= 428; priority= 6; width= 39.6; height= 10; XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; text= "Scroll\nLock"; }; }; }; """ sample_keymap_bytes = sample_keymap_string.encode('ascii')
sample_keymap_string = '\nxkb_keymap {\nxkb_keycodes "evdev+aliases(qwerty)" {\n minimum = 8;\n maximum = 255;\n <ESC> = 9;\n <AE01> = 10;\n <AE02> = 11;\n <AE03> = 12;\n <AE04> = 13;\n <AE05> = 14;\n <AE06> = 15;\n <AE07> = 16;\n <AE08> = 17;\n <AE09> = 18;\n <AE10> = 19;\n <AE11> = 20;\n <AE12> = 21;\n <BKSP> = 22;\n <TAB> = 23;\n <AD01> = 24;\n <AD02> = 25;\n <AD03> = 26;\n <AD04> = 27;\n <AD05> = 28;\n <AD06> = 29;\n <AD07> = 30;\n <AD08> = 31;\n <AD09> = 32;\n <AD10> = 33;\n <AD11> = 34;\n <AD12> = 35;\n <RTRN> = 36;\n <LCTL> = 37;\n <AC01> = 38;\n <AC02> = 39;\n <AC03> = 40;\n <AC04> = 41;\n <AC05> = 42;\n <AC06> = 43;\n <AC07> = 44;\n <AC08> = 45;\n <AC09> = 46;\n <AC10> = 47;\n <AC11> = 48;\n <TLDE> = 49;\n <LFSH> = 50;\n <BKSL> = 51;\n <AB01> = 52;\n <AB02> = 53;\n <AB03> = 54;\n <AB04> = 55;\n <AB05> = 56;\n <AB06> = 57;\n <AB07> = 58;\n <AB08> = 59;\n <AB09> = 60;\n <AB10> = 61;\n <RTSH> = 62;\n <KPMU> = 63;\n <LALT> = 64;\n <SPCE> = 65;\n <CAPS> = 66;\n <FK01> = 67;\n <FK02> = 68;\n <FK03> = 69;\n <FK04> = 70;\n <FK05> = 71;\n <FK06> = 72;\n <FK07> = 73;\n <FK08> = 74;\n <FK09> = 75;\n <FK10> = 76;\n <NMLK> = 77;\n <SCLK> = 78;\n <KP7> = 79;\n <KP8> = 80;\n <KP9> = 81;\n <KPSU> = 82;\n <KP4> = 83;\n <KP5> = 84;\n <KP6> = 85;\n <KPAD> = 86;\n <KP1> = 87;\n <KP2> = 88;\n <KP3> = 89;\n <KP0> = 90;\n <KPDL> = 91;\n <LVL3> = 92;\n <LSGT> = 94;\n <FK11> = 95;\n <FK12> = 96;\n <AB11> = 97;\n <KATA> = 98;\n <HIRA> = 99;\n <HENK> = 100;\n <HKTG> = 101;\n <MUHE> = 102;\n <JPCM> = 103;\n <KPEN> = 104;\n <RCTL> = 105;\n <KPDV> = 106;\n <PRSC> = 107;\n <RALT> = 108;\n <LNFD> = 109;\n <HOME> = 110;\n <UP> = 111;\n <PGUP> = 112;\n <LEFT> = 113;\n <RGHT> = 114;\n <END> = 115;\n <DOWN> = 116;\n <PGDN> = 117;\n <INS> = 118;\n <DELE> = 119;\n <I120> = 120;\n <MUTE> = 121;\n <VOL-> = 122;\n <VOL+> = 123;\n <POWR> = 124;\n <KPEQ> = 125;\n <I126> = 126;\n <PAUS> = 127;\n <I128> = 128;\n <I129> = 129;\n <HNGL> = 130;\n <HJCV> = 131;\n <AE13> = 132;\n <LWIN> = 133;\n <RWIN> = 134;\n <COMP> = 135;\n <STOP> = 136;\n <AGAI> = 137;\n <PROP> = 138;\n <UNDO> = 139;\n <FRNT> = 140;\n <COPY> = 141;\n <OPEN> = 142;\n <PAST> = 143;\n <FIND> = 144;\n <CUT> = 145;\n <HELP> = 146;\n <I147> = 147;\n <I148> = 148;\n <I149> = 149;\n <I150> = 150;\n <I151> = 151;\n <I152> = 152;\n <I153> = 153;\n <I154> = 154;\n <I155> = 155;\n <I156> = 156;\n <I157> = 157;\n <I158> = 158;\n <I159> = 159;\n <I160> = 160;\n <I161> = 161;\n <I162> = 162;\n <I163> = 163;\n <I164> = 164;\n <I165> = 165;\n <I166> = 166;\n <I167> = 167;\n <I168> = 168;\n <I169> = 169;\n <I170> = 170;\n <I171> = 171;\n <I172> = 172;\n <I173> = 173;\n <I174> = 174;\n <I175> = 175;\n <I176> = 176;\n <I177> = 177;\n <I178> = 178;\n <I179> = 179;\n <I180> = 180;\n <I181> = 181;\n <I182> = 182;\n <I183> = 183;\n <I184> = 184;\n <I185> = 185;\n <I186> = 186;\n <I187> = 187;\n <I188> = 188;\n <I189> = 189;\n <I190> = 190;\n <FK13> = 191;\n <FK14> = 192;\n <FK15> = 193;\n <FK16> = 194;\n <FK17> = 195;\n <FK18> = 196;\n <FK19> = 197;\n <FK20> = 198;\n <FK21> = 199;\n <FK22> = 200;\n <FK23> = 201;\n <FK24> = 202;\n <MDSW> = 203;\n <ALT> = 204;\n <META> = 205;\n <SUPR> = 206;\n <HYPR> = 207;\n <I208> = 208;\n <I209> = 209;\n <I210> = 210;\n <I211> = 211;\n <I212> = 212;\n <I213> = 213;\n <I214> = 214;\n <I215> = 215;\n <I216> = 216;\n <I217> = 217;\n <I218> = 218;\n <I219> = 219;\n <I220> = 220;\n <I221> = 221;\n <I222> = 222;\n <I223> = 223;\n <I224> = 224;\n <I225> = 225;\n <I226> = 226;\n <I227> = 227;\n <I228> = 228;\n <I229> = 229;\n <I230> = 230;\n <I231> = 231;\n <I232> = 232;\n <I233> = 233;\n <I234> = 234;\n <I235> = 235;\n <I236> = 236;\n <I237> = 237;\n <I238> = 238;\n <I239> = 239;\n <I240> = 240;\n <I241> = 241;\n <I242> = 242;\n <I243> = 243;\n <I244> = 244;\n <I245> = 245;\n <I246> = 246;\n <I247> = 247;\n <I248> = 248;\n <I249> = 249;\n <I250> = 250;\n <I251> = 251;\n <I252> = 252;\n <I253> = 253;\n indicator 1 = "Caps Lock";\n indicator 2 = "Num Lock";\n indicator 3 = "Scroll Lock";\n indicator 4 = "Compose";\n indicator 5 = "Kana";\n indicator 6 = "Sleep";\n indicator 7 = "Suspend";\n indicator 8 = "Mute";\n indicator 9 = "Misc";\n indicator 10 = "Mail";\n indicator 11 = "Charging";\n virtual indicator 12 = "Shift Lock";\n virtual indicator 13 = "Group 2";\n virtual indicator 14 = "Mouse Keys";\n alias <AC12> = <BKSL>;\n alias <MENU> = <COMP>;\n alias <HZTG> = <TLDE>;\n alias <LMTA> = <LWIN>;\n alias <RMTA> = <RWIN>;\n alias <ALGR> = <RALT>;\n alias <KPPT> = <I129>;\n alias <LatQ> = <AD01>;\n alias <LatW> = <AD02>;\n alias <LatE> = <AD03>;\n alias <LatR> = <AD04>;\n alias <LatT> = <AD05>;\n alias <LatY> = <AD06>;\n alias <LatU> = <AD07>;\n alias <LatI> = <AD08>;\n alias <LatO> = <AD09>;\n alias <LatP> = <AD10>;\n alias <LatA> = <AC01>;\n alias <LatS> = <AC02>;\n alias <LatD> = <AC03>;\n alias <LatF> = <AC04>;\n alias <LatG> = <AC05>;\n alias <LatH> = <AC06>;\n alias <LatJ> = <AC07>;\n alias <LatK> = <AC08>;\n alias <LatL> = <AC09>;\n alias <LatZ> = <AB01>;\n alias <LatX> = <AB02>;\n alias <LatC> = <AB03>;\n alias <LatV> = <AB04>;\n alias <LatB> = <AB05>;\n alias <LatN> = <AB06>;\n alias <LatM> = <AB07>;\n};\n\nxkb_types "complete" {\n\n virtual_modifiers NumLock,Alt,LevelThree,LAlt,RAlt,RControl,LControl,ScrollLock,LevelFive,AltGr,Meta,Super,Hyper;\n\n type "ONE_LEVEL" {\n modifiers= none;\n level_name[Level1]= "Any";\n };\n type "TWO_LEVEL" {\n modifiers= Shift;\n map[Shift]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n };\n type "ALPHABETIC" {\n modifiers= Shift+Lock;\n map[Shift]= Level2;\n map[Lock]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Caps";\n };\n type "KEYPAD" {\n modifiers= Shift+NumLock;\n map[Shift]= Level2;\n map[NumLock]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Number";\n };\n type "SHIFT+ALT" {\n modifiers= Shift+Alt;\n map[Shift+Alt]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift+Alt";\n };\n type "PC_SUPER_LEVEL2" {\n modifiers= Mod4;\n map[Mod4]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Super";\n };\n type "PC_CONTROL_LEVEL2" {\n modifiers= Control;\n map[Control]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Control";\n };\n type "PC_LCONTROL_LEVEL2" {\n modifiers= LControl;\n map[LControl]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "LControl";\n };\n type "PC_RCONTROL_LEVEL2" {\n modifiers= RControl;\n map[RControl]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "RControl";\n };\n type "PC_ALT_LEVEL2" {\n modifiers= Alt;\n map[Alt]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "Alt";\n };\n type "PC_LALT_LEVEL2" {\n modifiers= LAlt;\n map[LAlt]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "LAlt";\n };\n type "PC_RALT_LEVEL2" {\n modifiers= RAlt;\n map[RAlt]= Level2;\n level_name[Level1]= "Base";\n level_name[Level2]= "RAlt";\n };\n type "CTRL+ALT" {\n modifiers= Shift+Control+Alt+LevelThree;\n map[Shift]= Level2;\n preserve[Shift]= Shift;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n preserve[Shift+LevelThree]= Shift;\n map[Control+Alt]= Level5;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n level_name[Level5]= "Ctrl+Alt";\n };\n type "LOCAL_EIGHT_LEVEL" {\n modifiers= Shift+Lock+Control+LevelThree;\n map[Shift+Lock]= Level1;\n map[Shift]= Level2;\n map[Lock]= Level2;\n map[LevelThree]= Level3;\n map[Shift+Lock+LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock+LevelThree]= Level4;\n map[Control]= Level5;\n map[Shift+Lock+Control]= Level5;\n map[Shift+Control]= Level6;\n map[Lock+Control]= Level6;\n map[Control+LevelThree]= Level7;\n map[Shift+Lock+Control+LevelThree]= Level7;\n map[Shift+Control+LevelThree]= Level8;\n map[Lock+Control+LevelThree]= Level8;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Level3";\n level_name[Level4]= "Shift Level3";\n level_name[Level5]= "Ctrl";\n level_name[Level6]= "Shift Ctrl";\n level_name[Level7]= "Level3 Ctrl";\n level_name[Level8]= "Shift Level3 Ctrl";\n };\n type "THREE_LEVEL" {\n modifiers= Shift+LevelThree;\n map[Shift]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level3;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Level3";\n };\n type "EIGHT_LEVEL" {\n modifiers= Shift+LevelThree+LevelFive;\n map[Shift]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[LevelFive]= Level5;\n map[Shift+LevelFive]= Level6;\n map[LevelThree+LevelFive]= Level7;\n map[Shift+LevelThree+LevelFive]= Level8;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n level_name[Level5]= "X";\n level_name[Level6]= "X Shift";\n level_name[Level7]= "X Alt Base";\n level_name[Level8]= "X Shift Alt";\n };\n type "EIGHT_LEVEL_ALPHABETIC" {\n modifiers= Shift+Lock+LevelThree+LevelFive;\n map[Shift]= Level2;\n map[Lock]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock+LevelThree]= Level4;\n map[Shift+Lock+LevelThree]= Level3;\n map[LevelFive]= Level5;\n map[Shift+LevelFive]= Level6;\n map[Lock+LevelFive]= Level6;\n map[LevelThree+LevelFive]= Level7;\n map[Shift+LevelThree+LevelFive]= Level8;\n map[Lock+LevelThree+LevelFive]= Level8;\n map[Shift+Lock+LevelThree+LevelFive]= Level7;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n level_name[Level5]= "X";\n level_name[Level6]= "X Shift";\n level_name[Level7]= "X Alt Base";\n level_name[Level8]= "X Shift Alt";\n };\n type "EIGHT_LEVEL_SEMIALPHABETIC" {\n modifiers= Shift+Lock+LevelThree+LevelFive;\n map[Shift]= Level2;\n map[Lock]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock+LevelThree]= Level3;\n preserve[Lock+LevelThree]= Lock;\n map[Shift+Lock+LevelThree]= Level4;\n preserve[Shift+Lock+LevelThree]= Lock;\n map[LevelFive]= Level5;\n map[Shift+LevelFive]= Level6;\n map[Lock+LevelFive]= Level6;\n preserve[Lock+LevelFive]= Lock;\n map[Shift+Lock+LevelFive]= Level6;\n preserve[Shift+Lock+LevelFive]= Lock;\n map[LevelThree+LevelFive]= Level7;\n map[Shift+LevelThree+LevelFive]= Level8;\n map[Lock+LevelThree+LevelFive]= Level7;\n preserve[Lock+LevelThree+LevelFive]= Lock;\n map[Shift+Lock+LevelThree+LevelFive]= Level8;\n preserve[Shift+Lock+LevelThree+LevelFive]= Lock;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n level_name[Level5]= "X";\n level_name[Level6]= "X Shift";\n level_name[Level7]= "X Alt Base";\n level_name[Level8]= "X Shift Alt";\n };\n type "FOUR_LEVEL" {\n modifiers= Shift+LevelThree;\n map[Shift]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n };\n type "FOUR_LEVEL_ALPHABETIC" {\n modifiers= Shift+Lock+LevelThree;\n map[Shift]= Level2;\n map[Lock]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock+LevelThree]= Level4;\n map[Shift+Lock+LevelThree]= Level3;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n };\n type "FOUR_LEVEL_SEMIALPHABETIC" {\n modifiers= Shift+Lock+LevelThree;\n map[Shift]= Level2;\n map[Lock]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock+LevelThree]= Level3;\n preserve[Lock+LevelThree]= Lock;\n map[Shift+Lock+LevelThree]= Level4;\n preserve[Shift+Lock+LevelThree]= Lock;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n };\n type "FOUR_LEVEL_MIXED_KEYPAD" {\n modifiers= Shift+NumLock+LevelThree;\n map[Shift+NumLock]= Level1;\n map[NumLock]= Level2;\n map[Shift]= Level2;\n map[LevelThree]= Level3;\n map[NumLock+LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Shift+NumLock+LevelThree]= Level4;\n level_name[Level1]= "Base";\n level_name[Level2]= "Number";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n };\n type "FOUR_LEVEL_X" {\n modifiers= Shift+Control+Alt+LevelThree;\n map[LevelThree]= Level2;\n map[Shift+LevelThree]= Level3;\n map[Control+Alt]= Level4;\n level_name[Level1]= "Base";\n level_name[Level2]= "Alt Base";\n level_name[Level3]= "Shift Alt";\n level_name[Level4]= "Ctrl+Alt";\n };\n type "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC" {\n modifiers= Shift+Lock+LevelThree;\n map[Shift]= Level2;\n map[Lock]= Level4;\n preserve[Lock]= Lock;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock+LevelThree]= Level3;\n preserve[Lock+LevelThree]= Lock;\n map[Shift+Lock+LevelThree]= Level3;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "AltGr Base";\n level_name[Level4]= "Shift AltGr";\n };\n type "FOUR_LEVEL_PLUS_LOCK" {\n modifiers= Shift+Lock+LevelThree;\n map[Shift]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[Lock]= Level5;\n map[Shift+Lock]= Level2;\n map[Lock+LevelThree]= Level3;\n map[Shift+Lock+LevelThree]= Level4;\n level_name[Level1]= "Base";\n level_name[Level2]= "Shift";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Shift Alt";\n level_name[Level5]= "Lock";\n };\n type "FOUR_LEVEL_KEYPAD" {\n modifiers= Shift+NumLock+LevelThree;\n map[Shift]= Level2;\n map[NumLock]= Level2;\n map[LevelThree]= Level3;\n map[Shift+LevelThree]= Level4;\n map[NumLock+LevelThree]= Level4;\n map[Shift+NumLock+LevelThree]= Level3;\n level_name[Level1]= "Base";\n level_name[Level2]= "Number";\n level_name[Level3]= "Alt Base";\n level_name[Level4]= "Alt Number";\n };\n};\n\nxkb_compatibility "complete" {\n\n virtual_modifiers NumLock,Alt,LevelThree,LAlt,RAlt,RControl,LControl,ScrollLock,LevelFive,AltGr,Meta,Super,Hyper;\n\n interpret.useModMapMods= AnyLevel;\n interpret.repeat= False;\n interpret.locking= False;\n interpret ISO_Level2_Latch+Exactly(Shift) {\n useModMapMods=level1;\n action= LatchMods(modifiers=Shift,clearLocks,latchToLock);\n };\n interpret Shift_Lock+AnyOf(Shift+Lock) {\n action= LockMods(modifiers=Shift);\n };\n interpret Num_Lock+AnyOf(all) {\n virtualModifier= NumLock;\n action= LockMods(modifiers=NumLock);\n };\n interpret ISO_Level3_Shift+AnyOf(all) {\n virtualModifier= LevelThree;\n useModMapMods=level1;\n action= SetMods(modifiers=LevelThree,clearLocks);\n };\n interpret ISO_Level3_Latch+AnyOf(all) {\n virtualModifier= LevelThree;\n useModMapMods=level1;\n action= LatchMods(modifiers=LevelThree,clearLocks,latchToLock);\n };\n interpret ISO_Level3_Lock+AnyOf(all) {\n virtualModifier= LevelThree;\n useModMapMods=level1;\n action= LockMods(modifiers=LevelThree);\n };\n interpret Alt_L+AnyOf(all) {\n virtualModifier= Alt;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Alt_R+AnyOf(all) {\n virtualModifier= Alt;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Meta_L+AnyOf(all) {\n virtualModifier= Meta;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Meta_R+AnyOf(all) {\n virtualModifier= Meta;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Super_L+AnyOf(all) {\n virtualModifier= Super;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Super_R+AnyOf(all) {\n virtualModifier= Super;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Hyper_L+AnyOf(all) {\n virtualModifier= Hyper;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Hyper_R+AnyOf(all) {\n virtualModifier= Hyper;\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n interpret Scroll_Lock+AnyOf(all) {\n virtualModifier= ScrollLock;\n action= LockMods(modifiers=modMapMods);\n };\n interpret ISO_Level5_Shift+AnyOf(all) {\n virtualModifier= LevelFive;\n useModMapMods=level1;\n action= SetMods(modifiers=LevelFive,clearLocks);\n };\n interpret ISO_Level5_Latch+AnyOf(all) {\n virtualModifier= LevelFive;\n useModMapMods=level1;\n action= LatchMods(modifiers=LevelFive,clearLocks,latchToLock);\n };\n interpret ISO_Level5_Lock+AnyOf(all) {\n virtualModifier= LevelFive;\n useModMapMods=level1;\n action= LockMods(modifiers=LevelFive);\n };\n interpret Mode_switch+AnyOfOrNone(all) {\n virtualModifier= AltGr;\n useModMapMods=level1;\n action= SetGroup(group=+1);\n };\n interpret ISO_Level3_Shift+AnyOfOrNone(all) {\n action= SetMods(modifiers=LevelThree,clearLocks);\n };\n interpret ISO_Level3_Latch+AnyOfOrNone(all) {\n action= LatchMods(modifiers=LevelThree,clearLocks,latchToLock);\n };\n interpret ISO_Level3_Lock+AnyOfOrNone(all) {\n action= LockMods(modifiers=LevelThree);\n };\n interpret ISO_Group_Latch+AnyOfOrNone(all) {\n virtualModifier= AltGr;\n useModMapMods=level1;\n action= LatchGroup(group=2);\n };\n interpret ISO_Next_Group+AnyOfOrNone(all) {\n virtualModifier= AltGr;\n useModMapMods=level1;\n action= LockGroup(group=+1);\n };\n interpret ISO_Prev_Group+AnyOfOrNone(all) {\n virtualModifier= AltGr;\n useModMapMods=level1;\n action= LockGroup(group=-1);\n };\n interpret ISO_First_Group+AnyOfOrNone(all) {\n action= LockGroup(group=1);\n };\n interpret ISO_Last_Group+AnyOfOrNone(all) {\n action= LockGroup(group=2);\n };\n interpret KP_1+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=+1);\n };\n interpret KP_End+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=+1);\n };\n interpret KP_2+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+0,y=+1);\n };\n interpret KP_Down+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+0,y=+1);\n };\n interpret KP_3+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=+1);\n };\n interpret KP_Next+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=+1);\n };\n interpret KP_4+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=+0);\n };\n interpret KP_Left+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=+0);\n };\n interpret KP_6+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=+0);\n };\n interpret KP_Right+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=+0);\n };\n interpret KP_7+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=-1);\n };\n interpret KP_Home+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=-1);\n };\n interpret KP_8+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+0,y=-1);\n };\n interpret KP_Up+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+0,y=-1);\n };\n interpret KP_9+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=-1);\n };\n interpret KP_Prior+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=-1);\n };\n interpret KP_5+AnyOfOrNone(all) {\n repeat= True;\n action= PtrBtn(button=default);\n };\n interpret KP_Begin+AnyOfOrNone(all) {\n repeat= True;\n action= PtrBtn(button=default);\n };\n interpret KP_F2+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=1);\n };\n interpret KP_Divide+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=1);\n };\n interpret KP_F3+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=2);\n };\n interpret KP_Multiply+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=2);\n };\n interpret KP_F4+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=3);\n };\n interpret KP_Subtract+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=3);\n };\n interpret KP_Separator+AnyOfOrNone(all) {\n repeat= True;\n action= PtrBtn(button=default,count=2);\n };\n interpret KP_Add+AnyOfOrNone(all) {\n repeat= True;\n action= PtrBtn(button=default,count=2);\n };\n interpret KP_0+AnyOfOrNone(all) {\n repeat= True;\n action= LockPtrBtn(button=default,affect=lock);\n };\n interpret KP_Insert+AnyOfOrNone(all) {\n repeat= True;\n action= LockPtrBtn(button=default,affect=lock);\n };\n interpret KP_Decimal+AnyOfOrNone(all) {\n repeat= True;\n action= LockPtrBtn(button=default,affect=unlock);\n };\n interpret KP_Delete+AnyOfOrNone(all) {\n repeat= True;\n action= LockPtrBtn(button=default,affect=unlock);\n };\n interpret F25+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=1);\n };\n interpret F26+AnyOfOrNone(all) {\n repeat= True;\n action= SetPtrDflt(affect=button,button=2);\n };\n interpret F27+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=-1);\n };\n interpret F29+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=-1);\n };\n interpret F31+AnyOfOrNone(all) {\n repeat= True;\n action= PtrBtn(button=default);\n };\n interpret F33+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=-1,y=+1);\n };\n interpret F35+AnyOfOrNone(all) {\n repeat= True;\n action= MovePtr(x=+1,y=+1);\n };\n interpret Pointer_Button_Dflt+AnyOfOrNone(all) {\n action= PtrBtn(button=default);\n };\n interpret Pointer_Button1+AnyOfOrNone(all) {\n action= PtrBtn(button=1);\n };\n interpret Pointer_Button2+AnyOfOrNone(all) {\n action= PtrBtn(button=2);\n };\n interpret Pointer_Button3+AnyOfOrNone(all) {\n action= PtrBtn(button=3);\n };\n interpret Pointer_DblClick_Dflt+AnyOfOrNone(all) {\n action= PtrBtn(button=default,count=2);\n };\n interpret Pointer_DblClick1+AnyOfOrNone(all) {\n action= PtrBtn(button=1,count=2);\n };\n interpret Pointer_DblClick2+AnyOfOrNone(all) {\n action= PtrBtn(button=2,count=2);\n };\n interpret Pointer_DblClick3+AnyOfOrNone(all) {\n action= PtrBtn(button=3,count=2);\n };\n interpret Pointer_Drag_Dflt+AnyOfOrNone(all) {\n action= LockPtrBtn(button=default,affect=both);\n };\n interpret Pointer_Drag1+AnyOfOrNone(all) {\n action= LockPtrBtn(button=1,affect=both);\n };\n interpret Pointer_Drag2+AnyOfOrNone(all) {\n action= LockPtrBtn(button=2,affect=both);\n };\n interpret Pointer_Drag3+AnyOfOrNone(all) {\n action= LockPtrBtn(button=3,affect=both);\n };\n interpret Pointer_EnableKeys+AnyOfOrNone(all) {\n action= LockControls(controls=MouseKeys);\n };\n interpret Pointer_Accelerate+AnyOfOrNone(all) {\n action= LockControls(controls=MouseKeysAccel);\n };\n interpret Pointer_DfltBtnNext+AnyOfOrNone(all) {\n action= SetPtrDflt(affect=button,button=+1);\n };\n interpret Pointer_DfltBtnPrev+AnyOfOrNone(all) {\n action= SetPtrDflt(affect=button,button=-1);\n };\n interpret AccessX_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=AccessXKeys);\n };\n interpret AccessX_Feedback_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=AccessXFeedback);\n };\n interpret RepeatKeys_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=RepeatKeys);\n };\n interpret SlowKeys_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=SlowKeys);\n };\n interpret BounceKeys_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=BounceKeys);\n };\n interpret StickyKeys_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=StickyKeys);\n };\n interpret MouseKeys_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=MouseKeys);\n };\n interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=MouseKeysAccel);\n };\n interpret Overlay1_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=Overlay1);\n };\n interpret Overlay2_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=Overlay2);\n };\n interpret AudibleBell_Enable+AnyOfOrNone(all) {\n action= LockControls(controls=AudibleBell);\n };\n interpret Terminate_Server+AnyOfOrNone(all) {\n action= Terminate();\n };\n interpret Alt_L+AnyOfOrNone(all) {\n action= SetMods(modifiers=Alt,clearLocks);\n };\n interpret Alt_R+AnyOfOrNone(all) {\n action= SetMods(modifiers=Alt,clearLocks);\n };\n interpret Meta_L+AnyOfOrNone(all) {\n action= SetMods(modifiers=Meta,clearLocks);\n };\n interpret Meta_R+AnyOfOrNone(all) {\n action= SetMods(modifiers=Meta,clearLocks);\n };\n interpret Super_L+AnyOfOrNone(all) {\n action= SetMods(modifiers=Super,clearLocks);\n };\n interpret Super_R+AnyOfOrNone(all) {\n action= SetMods(modifiers=Super,clearLocks);\n };\n interpret Hyper_L+AnyOfOrNone(all) {\n action= SetMods(modifiers=Hyper,clearLocks);\n };\n interpret Hyper_R+AnyOfOrNone(all) {\n action= SetMods(modifiers=Hyper,clearLocks);\n };\n interpret Shift_L+AnyOfOrNone(all) {\n action= SetMods(modifiers=Shift,clearLocks);\n };\n interpret XF86Switch_VT_1+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=1,!same);\n };\n interpret XF86Switch_VT_2+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=2,!same);\n };\n interpret XF86Switch_VT_3+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=3,!same);\n };\n interpret XF86Switch_VT_4+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=4,!same);\n };\n interpret XF86Switch_VT_5+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=5,!same);\n };\n interpret XF86Switch_VT_6+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=6,!same);\n };\n interpret XF86Switch_VT_7+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=7,!same);\n };\n interpret XF86Switch_VT_8+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=8,!same);\n };\n interpret XF86Switch_VT_9+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=9,!same);\n };\n interpret XF86Switch_VT_10+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=10,!same);\n };\n interpret XF86Switch_VT_11+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=11,!same);\n };\n interpret XF86Switch_VT_12+AnyOfOrNone(all) {\n repeat= True;\n action= SwitchScreen(screen=12,!same);\n };\n interpret XF86LogGrabInfo+AnyOfOrNone(all) {\n repeat= True;\n action= Private(type=0x86,data[0]=0x50,data[1]=0x72,data[2]=0x47,data[3]=0x72,data[4]=0x62,data[5]=0x73,data[6]=0x00);\n };\n interpret XF86LogWindowTree+AnyOfOrNone(all) {\n repeat= True;\n action= Private(type=0x86,data[0]=0x50,data[1]=0x72,data[2]=0x57,data[3]=0x69,data[4]=0x6e,data[5]=0x73,data[6]=0x00);\n };\n interpret XF86Next_VMode+AnyOfOrNone(all) {\n repeat= True;\n action= Private(type=0x86,data[0]=0x2b,data[1]=0x56,data[2]=0x4d,data[3]=0x6f,data[4]=0x64,data[5]=0x65,data[6]=0x00);\n };\n interpret XF86Prev_VMode+AnyOfOrNone(all) {\n repeat= True;\n action= Private(type=0x86,data[0]=0x2d,data[1]=0x56,data[2]=0x4d,data[3]=0x6f,data[4]=0x64,data[5]=0x65,data[6]=0x00);\n };\n interpret ISO_Level5_Shift+AnyOfOrNone(all) {\n action= SetMods(modifiers=LevelFive,clearLocks);\n };\n interpret ISO_Level5_Latch+AnyOfOrNone(all) {\n action= LatchMods(modifiers=LevelFive,clearLocks,latchToLock);\n };\n interpret ISO_Level5_Lock+AnyOfOrNone(all) {\n action= LockMods(modifiers=LevelFive);\n };\n interpret Caps_Lock+AnyOfOrNone(all) {\n action= LockMods(modifiers=Lock);\n };\n interpret Any+Exactly(Lock) {\n action= LockMods(modifiers=Lock);\n };\n interpret Any+AnyOf(all) {\n action= SetMods(modifiers=modMapMods,clearLocks);\n };\n group 2 = AltGr;\n group 3 = AltGr;\n group 4 = AltGr;\n indicator "Caps Lock" {\n !allowExplicit;\n whichModState= locked;\n modifiers= Lock;\n };\n indicator "Num Lock" {\n !allowExplicit;\n whichModState= locked;\n modifiers= NumLock;\n };\n indicator "Scroll Lock" {\n whichModState= locked;\n modifiers= ScrollLock;\n };\n indicator "Shift Lock" {\n !allowExplicit;\n whichModState= locked;\n modifiers= Shift;\n };\n indicator "Group 2" {\n !allowExplicit;\n groups= 0xfe;\n };\n indicator "Mouse Keys" {\n indicatorDrivesKeyboard;\n controls= mouseKeys;\n };\n};\n\nxkb_symbols "pc+gb+us:2+inet(evdev)+compose(ralt)" {\n\n name[group1]="English (UK)";\n name[group2]="English (US)";\n\n key <ESC> { [ Escape ] };\n key <AE01> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 1, exclam, onesuperior, exclamdown ],\n symbols[Group2]= [ 1, exclam ]\n };\n key <AE02> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 2, quotedbl, twosuperior, oneeighth ],\n symbols[Group2]= [ 2, at ]\n };\n key <AE03> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 3, sterling, threesuperior, sterling ],\n symbols[Group2]= [ 3, numbersign ]\n };\n key <AE04> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 4, dollar, EuroSign, onequarter ],\n symbols[Group2]= [ 4, dollar ]\n };\n key <AE05> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 5, percent, onehalf, threeeighths ],\n symbols[Group2]= [ 5, percent ]\n };\n key <AE06> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 6, asciicircum, threequarters, fiveeighths ],\n symbols[Group2]= [ 6, asciicircum ]\n };\n key <AE07> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 7, ampersand, braceleft, seveneighths ],\n symbols[Group2]= [ 7, ampersand ]\n };\n key <AE08> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 8, asterisk, bracketleft, trademark ],\n symbols[Group2]= [ 8, asterisk ]\n };\n key <AE09> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 9, parenleft, bracketright, plusminus ],\n symbols[Group2]= [ 9, parenleft ]\n };\n key <AE10> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ 0, parenright, braceright, degree ],\n symbols[Group2]= [ 0, parenright ]\n };\n key <AE11> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ minus, underscore, backslash, questiondown ],\n symbols[Group2]= [ minus, underscore ]\n };\n key <AE12> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ equal, plus, dead_cedilla, dead_ogonek ],\n symbols[Group2]= [ equal, plus ]\n };\n key <BKSP> { [ BackSpace, BackSpace ] };\n key <TAB> { [ Tab, ISO_Left_Tab ] };\n key <AD01> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ q, Q, at, Greek_OMEGA ],\n symbols[Group2]= [ q, Q ]\n };\n key <AD02> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ w, W, lstroke, Lstroke ],\n symbols[Group2]= [ w, W ]\n };\n key <AD03> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ e, E, e, E ],\n symbols[Group2]= [ e, E ]\n };\n key <AD04> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ r, R, paragraph, registered ],\n symbols[Group2]= [ r, R ]\n };\n key <AD05> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ t, T, tslash, Tslash ],\n symbols[Group2]= [ t, T ]\n };\n key <AD06> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ y, Y, leftarrow, yen ],\n symbols[Group2]= [ y, Y ]\n };\n key <AD07> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ u, U, downarrow, uparrow ],\n symbols[Group2]= [ u, U ]\n };\n key <AD08> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ i, I, rightarrow, idotless ],\n symbols[Group2]= [ i, I ]\n };\n key <AD09> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ o, O, oslash, Oslash ],\n symbols[Group2]= [ o, O ]\n };\n key <AD10> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ p, P, thorn, THORN ],\n symbols[Group2]= [ p, P ]\n };\n key <AD11> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ bracketleft, braceleft, dead_diaeresis, dead_abovering ],\n symbols[Group2]= [ bracketleft, braceleft ]\n };\n key <AD12> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ bracketright, braceright, dead_tilde, dead_macron ],\n symbols[Group2]= [ bracketright, braceright ]\n };\n key <RTRN> { [ Return ] };\n key <LCTL> { [ Control_L ] };\n key <AC01> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ a, A, ae, AE ],\n symbols[Group2]= [ a, A ]\n };\n key <AC02> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ s, S, ssharp, section ],\n symbols[Group2]= [ s, S ]\n };\n key <AC03> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ d, D, eth, ETH ],\n symbols[Group2]= [ d, D ]\n };\n key <AC04> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ f, F, dstroke, ordfeminine ],\n symbols[Group2]= [ f, F ]\n };\n key <AC05> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ g, G, eng, ENG ],\n symbols[Group2]= [ g, G ]\n };\n key <AC06> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ h, H, hstroke, Hstroke ],\n symbols[Group2]= [ h, H ]\n };\n key <AC07> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ j, J, dead_hook, dead_horn ],\n symbols[Group2]= [ j, J ]\n };\n key <AC08> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ k, K, kra, ampersand ],\n symbols[Group2]= [ k, K ]\n };\n key <AC09> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ l, L, lstroke, Lstroke ],\n symbols[Group2]= [ l, L ]\n };\n key <AC10> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ semicolon, colon, dead_acute, dead_doubleacute ],\n symbols[Group2]= [ semicolon, colon ]\n };\n key <AC11> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ apostrophe, at, dead_circumflex, dead_caron ],\n symbols[Group2]= [ apostrophe, quotedbl ]\n };\n key <TLDE> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ grave, notsign, bar, bar ],\n symbols[Group2]= [ grave, asciitilde ]\n };\n key <LFSH> { [ Shift_L ] };\n key <BKSL> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ numbersign, asciitilde, dead_grave, dead_breve ],\n symbols[Group2]= [ backslash, bar ]\n };\n key <AB01> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ z, Z, guillemotleft, less ],\n symbols[Group2]= [ z, Z ]\n };\n key <AB02> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ x, X, guillemotright, greater ],\n symbols[Group2]= [ x, X ]\n };\n key <AB03> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ c, C, cent, copyright ],\n symbols[Group2]= [ c, C ]\n };\n key <AB04> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ v, V, leftdoublequotemark, leftsinglequotemark ],\n symbols[Group2]= [ v, V ]\n };\n key <AB05> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ b, B, rightdoublequotemark, rightsinglequotemark ],\n symbols[Group2]= [ b, B ]\n };\n key <AB06> {\n type[group1]= "FOUR_LEVEL_ALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ n, N, n, N ],\n symbols[Group2]= [ n, N ]\n };\n key <AB07> {\n type[group1]= "FOUR_LEVEL_SEMIALPHABETIC",\n type[group2]= "ALPHABETIC",\n symbols[Group1]= [ m, M, mu, masculine ],\n symbols[Group2]= [ m, M ]\n };\n key <AB08> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ comma, less, horizconnector, multiply ],\n symbols[Group2]= [ comma, less ]\n };\n key <AB09> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ period, greater, periodcentered, division ],\n symbols[Group2]= [ period, greater ]\n };\n key <AB10> {\n type[group1]= "FOUR_LEVEL",\n symbols[Group1]= [ slash, question, dead_belowdot, dead_abovedot ],\n symbols[Group2]= [ slash, question ]\n };\n key <RTSH> { [ Shift_R ] };\n key <KPMU> {\n type= "CTRL+ALT",\n symbols[Group1]= [ KP_Multiply, KP_Multiply, KP_Multiply, KP_Multiply, XF86ClearGrab ]\n };\n key <LALT> { [ Alt_L, Meta_L ] };\n key <SPCE> { [ space ] };\n key <CAPS> { [ Caps_Lock ] };\n key <FK01> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F1, F1, F1, F1, XF86Switch_VT_1 ]\n };\n key <FK02> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F2, F2, F2, F2, XF86Switch_VT_2 ]\n };\n key <FK03> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F3, F3, F3, F3, XF86Switch_VT_3 ]\n };\n key <FK04> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F4, F4, F4, F4, XF86Switch_VT_4 ]\n };\n key <FK05> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F5, F5, F5, F5, XF86Switch_VT_5 ]\n };\n key <FK06> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F6, F6, F6, F6, XF86Switch_VT_6 ]\n };\n key <FK07> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F7, F7, F7, F7, XF86Switch_VT_7 ]\n };\n key <FK08> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F8, F8, F8, F8, XF86Switch_VT_8 ]\n };\n key <FK09> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F9, F9, F9, F9, XF86Switch_VT_9 ]\n };\n key <FK10> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F10, F10, F10, F10, XF86Switch_VT_10 ]\n };\n key <NMLK> { [ Num_Lock ] };\n key <SCLK> { [ Scroll_Lock ] };\n key <KP7> { [ KP_Home, KP_7 ] };\n key <KP8> { [ KP_Up, KP_8 ] };\n key <KP9> { [ KP_Prior, KP_9 ] };\n key <KPSU> {\n type= "CTRL+ALT",\n symbols[Group1]= [ KP_Subtract, KP_Subtract, KP_Subtract, KP_Subtract, XF86Prev_VMode ]\n };\n key <KP4> { [ KP_Left, KP_4 ] };\n key <KP5> { [ KP_Begin, KP_5 ] };\n key <KP6> { [ KP_Right, KP_6 ] };\n key <KPAD> {\n type= "CTRL+ALT",\n symbols[Group1]= [ KP_Add, KP_Add, KP_Add, KP_Add, XF86Next_VMode ]\n };\n key <KP1> { [ KP_End, KP_1 ] };\n key <KP2> { [ KP_Down, KP_2 ] };\n key <KP3> { [ KP_Next, KP_3 ] };\n key <KP0> { [ KP_Insert, KP_0 ] };\n key <KPDL> { [ KP_Delete, KP_Decimal ] };\n key <LVL3> {\n type= "ONE_LEVEL",\n symbols[Group1]= [ ISO_Level3_Shift ]\n };\n key <LSGT> {\n type= "FOUR_LEVEL",\n symbols[Group1]= [ backslash, bar, bar, brokenbar ]\n };\n key <FK11> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F11, F11, F11, F11, XF86Switch_VT_11 ]\n };\n key <FK12> {\n type= "CTRL+ALT",\n symbols[Group1]= [ F12, F12, F12, F12, XF86Switch_VT_12 ]\n };\n key <KATA> { [ Katakana ] };\n key <HIRA> { [ Hiragana ] };\n key <HENK> { [ Henkan_Mode ] };\n key <HKTG> { [ Hiragana_Katakana ] };\n key <MUHE> { [ Muhenkan ] };\n key <KPEN> { [ KP_Enter ] };\n key <RCTL> { [ Control_R ] };\n key <KPDV> {\n type= "CTRL+ALT",\n symbols[Group1]= [ KP_Divide, KP_Divide, KP_Divide, KP_Divide, XF86Ungrab ]\n };\n key <PRSC> {\n type= "PC_ALT_LEVEL2",\n symbols[Group1]= [ Print, Sys_Req ]\n };\n key <RALT> {\n type= "TWO_LEVEL",\n symbols[Group1]= [ Multi_key, Multi_key ]\n };\n key <LNFD> { [ Linefeed ] };\n key <HOME> { [ Home ] };\n key <UP> { [ Up ] };\n key <PGUP> { [ Prior ] };\n key <LEFT> { [ Left ] };\n key <RGHT> { [ Right ] };\n key <END> { [ End ] };\n key <DOWN> { [ Down ] };\n key <PGDN> { [ Next ] };\n key <INS> { [ Insert ] };\n key <DELE> { [ Delete ] };\n key <MUTE> { [ XF86AudioMute ] };\n key <VOL-> { [ XF86AudioLowerVolume ] };\n key <VOL+> { [ XF86AudioRaiseVolume ] };\n key <POWR> { [ XF86PowerOff ] };\n key <KPEQ> { [ KP_Equal ] };\n key <I126> { [ plusminus ] };\n key <PAUS> {\n type= "PC_CONTROL_LEVEL2",\n symbols[Group1]= [ Pause, Break ]\n };\n key <I128> { [ XF86LaunchA ] };\n key <I129> { [ KP_Decimal, KP_Decimal ] };\n key <HNGL> { [ Hangul ] };\n key <HJCV> { [ Hangul_Hanja ] };\n key <LWIN> { [ Super_L ] };\n key <RWIN> { [ Super_R ] };\n key <COMP> { [ Menu ] };\n key <STOP> { [ Cancel ] };\n key <AGAI> { [ Redo ] };\n key <PROP> { [ SunProps ] };\n key <UNDO> { [ Undo ] };\n key <FRNT> { [ SunFront ] };\n key <COPY> { [ XF86Copy ] };\n key <OPEN> { [ XF86Open ] };\n key <PAST> { [ XF86Paste ] };\n key <FIND> { [ Find ] };\n key <CUT> { [ XF86Cut ] };\n key <HELP> { [ Help ] };\n key <I147> { [ XF86MenuKB ] };\n key <I148> { [ XF86Calculator ] };\n key <I150> { [ XF86Sleep ] };\n key <I151> { [ XF86WakeUp ] };\n key <I152> { [ XF86Explorer ] };\n key <I153> { [ XF86Send ] };\n key <I155> { [ XF86Xfer ] };\n key <I156> { [ XF86Launch1 ] };\n key <I157> { [ XF86Launch2 ] };\n key <I158> { [ XF86WWW ] };\n key <I159> { [ XF86DOS ] };\n key <I160> { [ XF86ScreenSaver ] };\n key <I161> { [ XF86RotateWindows ] };\n key <I162> { [ XF86TaskPane ] };\n key <I163> { [ XF86Mail ] };\n key <I164> { [ XF86Favorites ] };\n key <I165> { [ XF86MyComputer ] };\n key <I166> { [ XF86Back ] };\n key <I167> { [ XF86Forward ] };\n key <I169> { [ XF86Eject ] };\n key <I170> { [ XF86Eject, XF86Eject ] };\n key <I171> { [ XF86AudioNext ] };\n key <I172> { [ XF86AudioPlay, XF86AudioPause ] };\n key <I173> { [ XF86AudioPrev ] };\n key <I174> { [ XF86AudioStop, XF86Eject ] };\n key <I175> { [ XF86AudioRecord ] };\n key <I176> { [ XF86AudioRewind ] };\n key <I177> { [ XF86Phone ] };\n key <I179> { [ XF86Tools ] };\n key <I180> { [ XF86HomePage ] };\n key <I181> { [ XF86Reload ] };\n key <I182> { [ XF86Close ] };\n key <I185> { [ XF86ScrollUp ] };\n key <I186> { [ XF86ScrollDown ] };\n key <I187> { [ parenleft ] };\n key <I188> { [ parenright ] };\n key <I189> { [ XF86New ] };\n key <I190> { [ Redo ] };\n key <FK13> { [ XF86Tools ] };\n key <FK14> { [ XF86Launch5 ] };\n key <FK15> { [ XF86Launch6 ] };\n key <FK16> { [ XF86Launch7 ] };\n key <FK17> { [ XF86Launch8 ] };\n key <FK18> { [ XF86Launch9 ] };\n key <FK20> { [ XF86AudioMicMute ] };\n key <FK21> { [ XF86TouchpadToggle ] };\n key <FK22> { [ XF86TouchpadOn ] };\n key <FK23> { [ XF86TouchpadOff ] };\n key <MDSW> { [ Mode_switch ] };\n key <ALT> { [ NoSymbol, Alt_L ] };\n key <META> { [ NoSymbol, Meta_L ] };\n key <SUPR> { [ NoSymbol, Super_L ] };\n key <HYPR> { [ NoSymbol, Hyper_L ] };\n key <I208> { [ XF86AudioPlay ] };\n key <I209> { [ XF86AudioPause ] };\n key <I210> { [ XF86Launch3 ] };\n key <I211> { [ XF86Launch4 ] };\n key <I212> { [ XF86LaunchB ] };\n key <I213> { [ XF86Suspend ] };\n key <I214> { [ XF86Close ] };\n key <I215> { [ XF86AudioPlay ] };\n key <I216> { [ XF86AudioForward ] };\n key <I218> { [ Print ] };\n key <I220> { [ XF86WebCam ] };\n key <I223> { [ XF86Mail ] };\n key <I224> { [ XF86Messenger ] };\n key <I225> { [ XF86Search ] };\n key <I226> { [ XF86Go ] };\n key <I227> { [ XF86Finance ] };\n key <I228> { [ XF86Game ] };\n key <I229> { [ XF86Shop ] };\n key <I231> { [ Cancel ] };\n key <I232> { [ XF86MonBrightnessDown ] };\n key <I233> { [ XF86MonBrightnessUp ] };\n key <I234> { [ XF86AudioMedia ] };\n key <I235> { [ XF86Display ] };\n key <I236> { [ XF86KbdLightOnOff ] };\n key <I237> { [ XF86KbdBrightnessDown ] };\n key <I238> { [ XF86KbdBrightnessUp ] };\n key <I239> { [ XF86Send ] };\n key <I240> { [ XF86Reply ] };\n key <I241> { [ XF86MailForward ] };\n key <I242> { [ XF86Save ] };\n key <I243> { [ XF86Documents ] };\n key <I244> { [ XF86Battery ] };\n key <I245> { [ XF86Bluetooth ] };\n key <I246> { [ XF86WLAN ] };\n modifier_map Control { <LCTL> };\n modifier_map Shift { <LFSH> };\n modifier_map Shift { <RTSH> };\n modifier_map Mod1 { <LALT> };\n modifier_map Lock { <CAPS> };\n modifier_map Mod2 { <NMLK> };\n modifier_map Mod5 { <LVL3> };\n modifier_map Control { <RCTL> };\n modifier_map Mod4 { <LWIN> };\n modifier_map Mod4 { <RWIN> };\n modifier_map Mod5 { <MDSW> };\n modifier_map Mod1 { <META> };\n modifier_map Mod4 { <SUPR> };\n modifier_map Mod4 { <HYPR> };\n};\n\nxkb_geometry "pc(pc105)" {\n\n width= 470;\n height= 180;\n\n alias <AC00> = <CAPS>;\n alias <AA00> = <LCTL>;\n\n baseColor= "white";\n labelColor= "black";\n xfont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1";\n description= "Generic 105";\n\n shape "NORM" {\n corner= 1,\n { [ 18, 18 ] },\n { [ 2, 1 ], [ 16, 16 ] }\n };\n shape "BKSP" {\n corner= 1,\n { [ 38, 18 ] },\n { [ 2, 1 ], [ 36, 16 ] }\n };\n shape "TABK" {\n corner= 1,\n { [ 28, 18 ] },\n { [ 2, 1 ], [ 26, 16 ] }\n };\n shape "BKSL" {\n corner= 1,\n { [ 28, 18 ] },\n { [ 2, 1 ], [ 26, 16 ] }\n };\n shape "RTRN" {\n corner= 1,\n { [ 0, 0 ], [ 28, 0 ], [ 28, 37 ], [ 5, 37 ],\n [ 5, 18 ], [ 0, 18 ] },\n { [ 2, 1 ], [ 26, 1 ], [ 26, 35 ], [ 7, 35 ],\n [ 7, 16 ], [ 2, 16 ] },\n approx= { [ 5, 0 ], [ 28, 37 ] }\n };\n shape "CAPS" {\n corner= 1,\n { [ 33, 18 ] },\n { [ 2, 1 ], [ 31, 16 ] }\n };\n shape "LFSH" {\n corner= 1,\n { [ 25, 18 ] },\n { [ 2, 1 ], [ 23, 16 ] }\n };\n shape "RTSH" {\n corner= 1,\n { [ 50, 18 ] },\n { [ 2, 1 ], [ 48, 16 ] }\n };\n shape "MODK" {\n corner= 1,\n { [ 27, 18 ] },\n { [ 2, 1 ], [ 25, 16 ] }\n };\n shape "SMOD" {\n corner= 1,\n { [ 23, 18 ] },\n { [ 2, 1 ], [ 21, 16 ] }\n };\n shape "SPCE" {\n corner= 1,\n { [ 113, 18 ] },\n { [ 2, 1 ], [ 111, 16 ] }\n };\n shape "KP0" {\n corner= 1,\n { [ 37, 18 ] },\n { [ 2, 1 ], [ 35, 16 ] }\n };\n shape "KPAD" {\n corner= 1,\n { [ 18, 37 ] },\n { [ 2, 1 ], [ 16, 35 ] }\n };\n shape "LEDS" { { [ 75, 20 ] } };\n shape "LED" { { [ 5, 1 ] } };\n section "Function" {\n key.color= "grey20";\n priority= 7;\n top= 22;\n left= 19;\n width= 351;\n height= 19;\n row {\n top= 1;\n left= 1;\n keys {\n { <ESC>, "NORM", 1 },\n { <FK01>, "NORM", 20, color="white" },\n { <FK02>, "NORM", 1, color="white" },\n { <FK03>, "NORM", 1, color="white" },\n { <FK04>, "NORM", 1, color="white" },\n { <FK05>, "NORM", 11, color="white" },\n { <FK06>, "NORM", 1, color="white" },\n { <FK07>, "NORM", 1, color="white" },\n { <FK08>, "NORM", 1, color="white" },\n { <FK09>, "NORM", 11, color="white" },\n { <FK10>, "NORM", 1, color="white" },\n { <FK11>, "NORM", 1, color="white" },\n { <FK12>, "NORM", 1, color="white" },\n { <PRSC>, "NORM", 8, color="white" },\n { <SCLK>, "NORM", 1, color="white" },\n { <PAUS>, "NORM", 1, color="white" }\n };\n };\n }; // End of "Function" section\n\n section "Alpha" {\n key.color= "white";\n priority= 8;\n top= 61;\n left= 19;\n width= 287;\n height= 95;\n row {\n top= 1;\n left= 1;\n keys {\n { <TLDE>, "NORM", 1 }, { <AE01>, "NORM", 1 },\n { <AE02>, "NORM", 1 }, { <AE03>, "NORM", 1 },\n { <AE04>, "NORM", 1 }, { <AE05>, "NORM", 1 },\n { <AE06>, "NORM", 1 }, { <AE07>, "NORM", 1 },\n { <AE08>, "NORM", 1 }, { <AE09>, "NORM", 1 },\n { <AE10>, "NORM", 1 }, { <AE11>, "NORM", 1 },\n { <AE12>, "NORM", 1 },\n { <BKSP>, "BKSP", 1, color="grey20" }\n };\n };\n row {\n top= 20;\n left= 1;\n keys {\n { <TAB>, "TABK", 1, color="grey20" },\n { <AD01>, "NORM", 1 }, { <AD02>, "NORM", 1 },\n { <AD03>, "NORM", 1 }, { <AD04>, "NORM", 1 },\n { <AD05>, "NORM", 1 }, { <AD06>, "NORM", 1 },\n { <AD07>, "NORM", 1 }, { <AD08>, "NORM", 1 },\n { <AD09>, "NORM", 1 }, { <AD10>, "NORM", 1 },\n { <AD11>, "NORM", 1 }, { <AD12>, "NORM", 1 },\n { <RTRN>, "RTRN", 1, color="grey20" }\n };\n };\n row {\n top= 39;\n left= 1;\n keys {\n { <CAPS>, "CAPS", 1, color="grey20" },\n { <AC01>, "NORM", 1 }, { <AC02>, "NORM", 1 },\n { <AC03>, "NORM", 1 }, { <AC04>, "NORM", 1 },\n { <AC05>, "NORM", 1 }, { <AC06>, "NORM", 1 },\n { <AC07>, "NORM", 1 }, { <AC08>, "NORM", 1 },\n { <AC09>, "NORM", 1 }, { <AC10>, "NORM", 1 },\n { <AC11>, "NORM", 1 }, { <BKSL>, "NORM", 1 }\n };\n };\n row {\n top= 58;\n left= 1;\n keys {\n { <LFSH>, "LFSH", 1, color="grey20" },\n { <LSGT>, "NORM", 1 }, { <AB01>, "NORM", 1 },\n { <AB02>, "NORM", 1 }, { <AB03>, "NORM", 1 },\n { <AB04>, "NORM", 1 }, { <AB05>, "NORM", 1 },\n { <AB06>, "NORM", 1 }, { <AB07>, "NORM", 1 },\n { <AB08>, "NORM", 1 }, { <AB09>, "NORM", 1 },\n { <AB10>, "NORM", 1 },\n { <RTSH>, "RTSH", 1, color="grey20" }\n };\n };\n row {\n top= 77;\n left= 1;\n keys {\n { <LCTL>, "MODK", 1, color="grey20" },\n { <LWIN>, "SMOD", 1, color="grey20" },\n { <LALT>, "SMOD", 1, color="grey20" },\n { <SPCE>, "SPCE", 1 },\n { <RALT>, "SMOD", 1, color="grey20" },\n { <RWIN>, "SMOD", 1, color="grey20" },\n { <MENU>, "SMOD", 1, color="grey20" },\n { <RCTL>, "SMOD", 1, color="grey20" }\n };\n };\n }; // End of "Alpha" section\n\n section "Editing" {\n key.color= "grey20";\n priority= 9;\n top= 61;\n left= 312;\n width= 58;\n height= 95;\n row {\n top= 1;\n left= 1;\n keys {\n { <INS>, "NORM", 1 }, { <HOME>, "NORM", 1 },\n { <PGUP>, "NORM", 1 }\n };\n };\n row {\n top= 20;\n left= 1;\n keys {\n { <DELE>, "NORM", 1 }, { <END>, "NORM", 1 },\n { <PGDN>, "NORM", 1 }\n };\n };\n row {\n top= 58;\n left= 20;\n keys {\n { <UP>, "NORM", 1 }\n };\n };\n row {\n top= 77;\n left= 1;\n keys {\n { <LEFT>, "NORM", 1 }, { <DOWN>, "NORM", 1 },\n { <RGHT>, "NORM", 1 }\n };\n };\n }; // End of "Editing" section\n\n section "Keypad" {\n key.color= "grey20";\n priority= 10;\n top= 61;\n left= 376;\n width= 77;\n height= 95;\n row {\n top= 1;\n left= 1;\n keys {\n { <NMLK>, "NORM", 1 }, { <KPDV>, "NORM", 1 },\n { <KPMU>, "NORM", 1 }, { <KPSU>, "NORM", 1 }\n };\n };\n row {\n top= 20;\n left= 1;\n keys {\n { <KP7>, "NORM", 1, color="white" },\n { <KP8>, "NORM", 1, color="white" },\n { <KP9>, "NORM", 1, color="white" },\n { <KPAD>, "KPAD", 1 }\n };\n };\n row {\n top= 39;\n left= 1;\n keys {\n { <KP4>, "NORM", 1, color="white" },\n { <KP5>, "NORM", 1, color="white" },\n { <KP6>, "NORM", 1, color="white" }\n };\n };\n row {\n top= 58;\n left= 1;\n keys {\n { <KP1>, "NORM", 1, color="white" },\n { <KP2>, "NORM", 1, color="white" },\n { <KP3>, "NORM", 1, color="white" },\n { <KPEN>, "KPAD", 1 }\n };\n };\n row {\n top= 77;\n left= 1;\n keys {\n { <KP0>, "KP0", 1, color="white" },\n { <KPDL>, "NORM", 1, color="white" }\n };\n };\n }; // End of "Keypad" section\n\n solid "LedPanel" {\n top= 22;\n left= 377;\n priority= 0;\n color= "grey10";\n shape= "LEDS";\n };\n indicator "Num Lock" {\n top= 37;\n left= 382;\n priority= 1;\n onColor= "green";\n offColor= "green30";\n shape= "LED";\n };\n indicator "Caps Lock" {\n top= 37;\n left= 407;\n priority= 2;\n onColor= "green";\n offColor= "green30";\n shape= "LED";\n };\n indicator "Scroll Lock" {\n top= 37;\n left= 433;\n priority= 3;\n onColor= "green";\n offColor= "green30";\n shape= "LED";\n };\n text "NumLockLabel" {\n top= 25;\n left= 378;\n priority= 4;\n width= 19.8;\n height= 10;\n XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1";\n text= "Num\\nLock";\n };\n text "CapsLockLabel" {\n top= 25;\n left= 403;\n priority= 5;\n width= 26.4;\n height= 10;\n XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1";\n text= "Caps\\nLock";\n };\n text "ScrollLockLabel" {\n top= 25;\n left= 428;\n priority= 6;\n width= 39.6;\n height= 10;\n XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1";\n text= "Scroll\\nLock";\n };\n};\n\n};\n' sample_keymap_bytes = sample_keymap_string.encode('ascii')
prenom = input("Votre prenom svp ") langue = input("Votre langue: ") # Langue devait etre "francais" ou "anglais" if langue == "francais": print("Bonjour %s" % prenom) elif langue == "anglais": print("Hello %s" % prenom) else: print("ERREUR")
prenom = input('Votre prenom svp ') langue = input('Votre langue: ') if langue == 'francais': print('Bonjour %s' % prenom) elif langue == 'anglais': print('Hello %s' % prenom) else: print('ERREUR')
""" Day 1 Solutions """ def part1(input_lines): """ The captcha requires you to review a sequence of digits (your puzzle input) and find the sum of all digits that match the next digit in the list. The list is circular, so the digit after the last digit is the first digit in the list. For example: - 1122 produces a sum of 3 (1 + 2) because the first digit (1) matches the second digit and the third digit (2) matches the fourth digit. - 1111 produces 4 because each digit (all 1) matches the next. - 1234 produces 0 because no digit matches the next. - 91212129 produces 9 because the only digit that matches the next one is the last digit, 9. """ captcha = input_lines[0] captcha = captcha + captcha[0] return sum([ int(captcha[i]) for i in range(1, len(captcha)) if captcha[i] == captcha[i - 1] ]) def part2(input_lines): """ Now, instead of considering the next digit, it wants you to consider the digit halfway around the circular list. That is, if your list contains 10 items, only include a digit in your sum if the digit 10/2 = 5 steps forward matches it. Fortunately, your list has an even number of elements. For example: - 1212 produces 6: the list contains 4 items, and all four digits match the digit 2 items ahead. - 1221 produces 0, because every comparison is between a 1 and a 2. - 123425 produces 4, because both 2s match each other, but no other digit has a match. - 123123 produces 12. - 12131415 produces 4. """ captcha = input_lines[0] if len(captcha) % 2 != 0: raise AssertionError("Day 1, Part 2 anticaptchas must have an even number of digits!") offset = len(captcha) // 2 mod = len(captcha) return sum([ int(captcha[i]) for i in range(len(captcha)) if captcha[i] == captcha[(i + offset) % mod] ])
""" Day 1 Solutions """ def part1(input_lines): """ The captcha requires you to review a sequence of digits (your puzzle input) and find the sum of all digits that match the next digit in the list. The list is circular, so the digit after the last digit is the first digit in the list. For example: - 1122 produces a sum of 3 (1 + 2) because the first digit (1) matches the second digit and the third digit (2) matches the fourth digit. - 1111 produces 4 because each digit (all 1) matches the next. - 1234 produces 0 because no digit matches the next. - 91212129 produces 9 because the only digit that matches the next one is the last digit, 9. """ captcha = input_lines[0] captcha = captcha + captcha[0] return sum([int(captcha[i]) for i in range(1, len(captcha)) if captcha[i] == captcha[i - 1]]) def part2(input_lines): """ Now, instead of considering the next digit, it wants you to consider the digit halfway around the circular list. That is, if your list contains 10 items, only include a digit in your sum if the digit 10/2 = 5 steps forward matches it. Fortunately, your list has an even number of elements. For example: - 1212 produces 6: the list contains 4 items, and all four digits match the digit 2 items ahead. - 1221 produces 0, because every comparison is between a 1 and a 2. - 123425 produces 4, because both 2s match each other, but no other digit has a match. - 123123 produces 12. - 12131415 produces 4. """ captcha = input_lines[0] if len(captcha) % 2 != 0: raise assertion_error('Day 1, Part 2 anticaptchas must have an even number of digits!') offset = len(captcha) // 2 mod = len(captcha) return sum([int(captcha[i]) for i in range(len(captcha)) if captcha[i] == captcha[(i + offset) % mod]])
"""Top-level package for deployer-fsm.""" __author__ = """Luke Smith""" __email__ = 'lsmith@zenoscave.com' __version__ = '0.1.5'
"""Top-level package for deployer-fsm.""" __author__ = 'Luke Smith' __email__ = 'lsmith@zenoscave.com' __version__ = '0.1.5'
class Solution: # @param A : list of list of integers # @return an integer def cnt(self, A, mid): l = 0 r = len(A)-1 while l <= r: m = (l+r)//2 if A[m] <= mid: l = m+1 else: r = m-1 return l def findMedian(self, A): l = 1 r = 1000000000 n = len(A) m = len(A[0]) while l <= r: mid = (l+r)//2 ct = 0 for i in range(n): ct += self.cnt(A[i], mid) if ct <= (n*m)//2: l = mid+1 else: r = mid-1 return l
class Solution: def cnt(self, A, mid): l = 0 r = len(A) - 1 while l <= r: m = (l + r) // 2 if A[m] <= mid: l = m + 1 else: r = m - 1 return l def find_median(self, A): l = 1 r = 1000000000 n = len(A) m = len(A[0]) while l <= r: mid = (l + r) // 2 ct = 0 for i in range(n): ct += self.cnt(A[i], mid) if ct <= n * m // 2: l = mid + 1 else: r = mid - 1 return l
# raider.io api configuration RIO_MAX_PAGE = 5 # need to update in templates/stats_table.html # need to update in templates/compositions.html # need to update in templates/navbar.html RIO_SEASON = "season-sl-3" WCL_SEASON = 3 WCL_PARTITION = 1 # config RAID_NAME = "Sepulcher of the First Ones" # for heroic week, set this to 10 # after that in the season, set this at 16 MIN_KEY_LEVEL = 16 # to generate a tier list based on heroic week data # have to manually toggle this MAX_RAID_DIFFICULTY = "Mythic" #MAX_RAID_DIFFICULTY = "Heroic"
rio_max_page = 5 rio_season = 'season-sl-3' wcl_season = 3 wcl_partition = 1 raid_name = 'Sepulcher of the First Ones' min_key_level = 16 max_raid_difficulty = 'Mythic'
__all__ = [ 'plotting', 'misc', 'colors', 'tables', 'nodes', 'containers', 'values', 'basic', 'textures', 'drawing', ] __version__ = '1.1.1'
__all__ = ['plotting', 'misc', 'colors', 'tables', 'nodes', 'containers', 'values', 'basic', 'textures', 'drawing'] __version__ = '1.1.1'
''' Q: Popular star patterns Pattern 1: * ** *** **** ***** ****** Pattern 2: * * * * * * * * * * * * * * * * * * * * * Pattern 3: * *** ***** ******* ********* Pattern 4: * * * * * * * * * * * * * * * Notes: ------ Usually the outer for loop determines the height of the pattern Output screenshot: https://github.com/Ranjul-Arumadi/Coding-Problems/blob/main/Output%20Screenshots/patterns.jpg ''' '''*-------------------------Solution in python-------------------------''' #pattern 1 for i in range(0,7): for j in range(i): print('*', end="") print() #pattern 2 for i in range(6, 0, -1): for j in range(i): print('*', end=" ") print() #pattern 3 print('Enter tree height: ',end='') height = int(input()) count=1 for i in range(height, 0, -1): for j in range(i): print(' ', end="") for k in range(count): print('*', end="") count = count+2 print() #pattern 4 print('Enter tree height: ',end='') height = int(input()) count=1 lineOne = True for i in range(height, 0, -1): for j in range(i): print(' ', end="") print('*',end="") if i==1: for x in range(height-1): print(' *',end='') exit() else: if lineOne==False: for k in range(count): print(' ',end="") print('*',end="") count = count+2 print() lineOne = False
""" Q: Popular star patterns Pattern 1: * ** *** **** ***** ****** Pattern 2: * * * * * * * * * * * * * * * * * * * * * Pattern 3: * *** ***** ******* ********* Pattern 4: * * * * * * * * * * * * * * * Notes: ------ Usually the outer for loop determines the height of the pattern Output screenshot: https://github.com/Ranjul-Arumadi/Coding-Problems/blob/main/Output%20Screenshots/patterns.jpg """ '*-------------------------Solution in python-------------------------' for i in range(0, 7): for j in range(i): print('*', end='') print() for i in range(6, 0, -1): for j in range(i): print('*', end=' ') print() print('Enter tree height: ', end='') height = int(input()) count = 1 for i in range(height, 0, -1): for j in range(i): print(' ', end='') for k in range(count): print('*', end='') count = count + 2 print() print('Enter tree height: ', end='') height = int(input()) count = 1 line_one = True for i in range(height, 0, -1): for j in range(i): print(' ', end='') print('*', end='') if i == 1: for x in range(height - 1): print(' *', end='') exit() elif lineOne == False: for k in range(count): print(' ', end='') print('*', end='') count = count + 2 print() line_one = False
# 27. Remove Element # Python 3 # https://leetcode.com/problems/remove-element def removeElement(nums, val): """ :type nums: List[int] :type val: int :rtype: int """ nums[:] = [num for num in nums if num != val] return len(nums) numbers, value = [3, 2, 2, 3], 3 print('Length: {} | Array: {}'.format(removeElement(numbers, value), numbers))
def remove_element(nums, val): """ :type nums: List[int] :type val: int :rtype: int """ nums[:] = [num for num in nums if num != val] return len(nums) (numbers, value) = ([3, 2, 2, 3], 3) print('Length: {} | Array: {}'.format(remove_element(numbers, value), numbers))
class Guild: __slots__ = ('id', 'name', 'icon', 'owner', 'client_is_owner', 'permissions', 'region', 'afk_channel', 'afk_timeout', 'verification_level', 'roles', 'emojis', 'system_channel', 'features', 'mfa_level', 'created', 'large', 'member_count', 'voice_states', 'members', 'channels', 'max_members', 'vanity_url_code', 'description', 'banner', 'premium_tier', 'premium_subscription_count') def __new__(cls): raise Exception('Guilds should not be created manually.') @classmethod def _create_guild(cls, data: dict): guild = object.__new__(cls) guild.id = data.get('id') guild.name = data.get('name') guild.icon = data.get('icon') guild.owner = data.get('owner_id') guild.client_is_owner = data.get('owner') guild.permissions = data.get('permissions') guild.members = data.get('members') guild.region = data.get('region') guild.afk_channel = data.get('afk_channel_id') guild.afk_timeout = data.get('afk_timeout') guild.verification_level = data.get('verification_level') guild.roles = data.get('roles') guild.emojis = data.get('emojis') guild.features = data.get('features') guild.mfa_level = data.get('mfa_level') guild.created = data.get('joined_at') guild.large = data.get('large') guild.member_count = data.get('member_count') guild.voice_states = data.get('voice_states') guild.channels = data.get('channels') guild.max_members = data.get('max_members') guild.vanity_url_code = data.get('vanity_code_url') guild.description = data.get('description') guild.banner = data.get('banner') guild.premium_tier = data.get('premium_tier') guild.premium_subscription_count = data.get('premium_subscription_count') return guild
class Guild: __slots__ = ('id', 'name', 'icon', 'owner', 'client_is_owner', 'permissions', 'region', 'afk_channel', 'afk_timeout', 'verification_level', 'roles', 'emojis', 'system_channel', 'features', 'mfa_level', 'created', 'large', 'member_count', 'voice_states', 'members', 'channels', 'max_members', 'vanity_url_code', 'description', 'banner', 'premium_tier', 'premium_subscription_count') def __new__(cls): raise exception('Guilds should not be created manually.') @classmethod def _create_guild(cls, data: dict): guild = object.__new__(cls) guild.id = data.get('id') guild.name = data.get('name') guild.icon = data.get('icon') guild.owner = data.get('owner_id') guild.client_is_owner = data.get('owner') guild.permissions = data.get('permissions') guild.members = data.get('members') guild.region = data.get('region') guild.afk_channel = data.get('afk_channel_id') guild.afk_timeout = data.get('afk_timeout') guild.verification_level = data.get('verification_level') guild.roles = data.get('roles') guild.emojis = data.get('emojis') guild.features = data.get('features') guild.mfa_level = data.get('mfa_level') guild.created = data.get('joined_at') guild.large = data.get('large') guild.member_count = data.get('member_count') guild.voice_states = data.get('voice_states') guild.channels = data.get('channels') guild.max_members = data.get('max_members') guild.vanity_url_code = data.get('vanity_code_url') guild.description = data.get('description') guild.banner = data.get('banner') guild.premium_tier = data.get('premium_tier') guild.premium_subscription_count = data.get('premium_subscription_count') return guild
q_data = [ {"question": "Japan was part of the Allied Powers during World War I.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "easy", "question": "The Tiananmen Square protests of 1989 were held in Hong Kong.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "In World War II, Hawker Typhoons served in the Pacific theater.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "The M41 Walker Bulldog remains in service in some countries to this day.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "hard", "question": "The Kingdom of Prussia briefly held land in Estonia.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Assyrian king Sennacherib&#039;s destruction of Babylon in 689 BCE was viewed as a triumph by other Assyrian citizens.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Brezhnev was the 5th leader of the USSR.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "hard", "question": "The fourth funnel of the RMS Titanic was fake designed to make the ship look more powerful and symmetrical.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Theodore Roosevelt Jr. was the only General involved in the initial assault on D-Day.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "easy", "question": "The United States of America declared their independence from the British Empire on July 4th, 1776.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Abraham Lincoln was the first U.S. President to be born outside the borders of the thirteen original states. ", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "United States President Ronald Reagan was the first president to appoint a woman to the Supreme Court. ", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "hard", "question": "The Battle of Trafalgar took place on October 23rd, 1805", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Martin Luther King Jr. and Anne Frank were born the same year. ", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "easy", "question": "Adolf Hitler was tried at the Nuremberg trials.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Adolf Hitler was accepted into the Vienna Academy of Fine Arts.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "hard", "question": "During the Winter War, the amount of Soviet Union soliders that died or went missing was five times more than Finland&#039;s.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "easy", "question": "The United States of America was the first country to launch a man into space.", "correct_answer": "False", "incorrect_answers": ["True"]}, {"category": "History", "type": "boolean", "difficulty": "medium", "question": "Sir Issac Newton served as a Member of Parliament, but the only recorded time he spoke was to complain about a draft in the chambers.", "correct_answer": "True", "incorrect_answers": ["False"]}, {"category": "History", "type": "boolean", "difficulty": "hard", "question": "The man that shot Alexander Hamilton was named Aaron Burr.", "correct_answer": "True", "incorrect_answers": ["False"]}]
q_data = [{'question': 'Japan was part of the Allied Powers during World War I.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'The Tiananmen Square protests of 1989 were held in Hong Kong.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'In World War II, Hawker Typhoons served in the Pacific theater.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'The M41 Walker Bulldog remains in service in some countries to this day.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The Kingdom of Prussia briefly held land in Estonia.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Assyrian king Sennacherib&#039;s destruction of Babylon in 689 BCE was viewed as a triumph by other Assyrian citizens.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Brezhnev was the 5th leader of the USSR.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The fourth funnel of the RMS Titanic was fake designed to make the ship look more powerful and symmetrical.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Theodore Roosevelt Jr. was the only General involved in the initial assault on D-Day.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'The United States of America declared their independence from the British Empire on July 4th, 1776.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Abraham Lincoln was the first U.S. President to be born outside the borders of the thirteen original states. ', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'United States President Ronald Reagan was the first president to appoint a woman to the Supreme Court. ', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The Battle of Trafalgar took place on October 23rd, 1805', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Martin Luther King Jr. and Anne Frank were born the same year. ', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'Adolf Hitler was tried at the Nuremberg trials.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Adolf Hitler was accepted into the Vienna Academy of Fine Arts.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'During the Winter War, the amount of Soviet Union soliders that died or went missing was five times more than Finland&#039;s.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'easy', 'question': 'The United States of America was the first country to launch a man into space.', 'correct_answer': 'False', 'incorrect_answers': ['True']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'medium', 'question': 'Sir Issac Newton served as a Member of Parliament, but the only recorded time he spoke was to complain about a draft in the chambers.', 'correct_answer': 'True', 'incorrect_answers': ['False']}, {'category': 'History', 'type': 'boolean', 'difficulty': 'hard', 'question': 'The man that shot Alexander Hamilton was named Aaron Burr.', 'correct_answer': 'True', 'incorrect_answers': ['False']}]
#GamePlay.py #Richard Greenbaum, Karson Daecher, Max Melamed """This module contains the functions needed to support pentago gameplay. A pentago gameboard is represented by a 6x6 2D array. Each location on the board is initialized to "" and is set to 0 or 1 when the player or the AI respectively places a marble on that location. Each array in the gameboard nested array represents a column of the board. Thus the gameboard can be viewed as the square in the 1st coordinate quadrant with x and y coordinates ranging from 0...5. For example, the bottom right location on the gameboard can be accessed with the command board[5][0]. The four squares on the board are indexed 1...4 with 1 as bottom left, 2 as top left, 3 as bottom right, and 4 as top right. """ def new_board(): """Returns an empty board""" return [[" ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " "], [" ", " ", " ", " ", " ", " "]] def printBoard(board): """prints out the board in a legible format""" print("\033[1m -----------------------------------\033[0m") print("5 \033[1m| \033[0m" + returnMarble(str(board[0][5])) + " | " + returnMarble(str(board[1][5])) + " | " + returnMarble(str(board[2][5])) + "\033[1m | \033[0m" + returnMarble(str(board[3][5])) + " | " + returnMarble(str(board[4][5])) + " | " + returnMarble(str(board[5][5])) +"\033[1m |\033[0m") print(" \033[1m|\033[0m-----------------\033[1m|\033[0m-----------------\033[1m|\033[0m") print("4 \033[1m| \033[0m" +returnMarble(str(board[0][4])) + " | " + returnMarble(str(board[1][4])) + " | " + returnMarble(str(board[2][4])) + "\033[1m | \033[0m" + returnMarble(str(board[3][4])) + " | " + returnMarble(str(board[4][4])) + " | " + returnMarble(str(board[5][4]))+"\033[1m |\033[0m") print(" \033[1m|\033[0m-----------------\033[1m|\033[0m-----------------\033[1m|\033[0m") print("3 \033[1m| \033[0m" +returnMarble(str(board[0][3])) + " | " + returnMarble(str(board[1][3])) + " | " + returnMarble(str(board[2][3])) + "\033[1m | \033[0m" + returnMarble(str(board[3][3])) + " | " + returnMarble(str(board[4][3])) + " | " + returnMarble(str(board[5][3]))+"\033[1m |\033[0m 2 | 4 ") print("\033[1m |-----------------|-----------------|\033[0m --|-- ") print("2 \033[1m| \033[0m" +returnMarble(str(board[0][2])) + " | " + returnMarble(str(board[1][2])) + " | " + returnMarble(str(board[2][2])) + "\033[1m | \033[0m" + returnMarble(str(board[3][2])) + " | " + returnMarble(str(board[4][2])) + " | " + returnMarble(str(board[5][2]))+"\033[1m |\033[0m 1 | 3 ") print(" \033[1m|\033[0m-----------------\033[1m|\033[0m-----------------\033[1m|\033[0m") print("1 \033[1m| \033[0m" + returnMarble(str(board[0][1])) + " | " + returnMarble(str(board[1][1])) + " | " + returnMarble(str(board[2][1])) + "\033[1m | \033[0m" + returnMarble(str(board[3][1])) + " | " + returnMarble(str(board[4][1])) + " | " + returnMarble(str(board[5][1]))+"\033[1m |\033[0m") print(" \033[1m|\033[0m-----------------\033[1m|\033[0m-----------------\033[1m|\033[0m") print("0 \033[1m| \033[0m" + returnMarble(str(board[0][0])) + " | " + returnMarble(str(board[1][0])) + " | " + returnMarble(str(board[2][0])) + "\033[1m | \033[0m" + returnMarble(str(board[3][0])) + " | " + returnMarble(str(board[4][0])) + " | " + returnMarble(str(board[5][0]))+"\033[1m |\033[0m") print("\033[1m -----------------------------------\033[0m") print(" 0 1 2 3 4 5") return def returnMarble(number): """Returns a string, red X for AI and black X for human player""" if (number =="1"): return "\033[91mX\033[0m" elif (number == "0"): return "X" else: return number def rotate(board, direction, square_index): """Returns a copy of the board with the indicated square rotated 90 degrees in the indicated direction Parameter board: a valid pentago board Parameter direction: the direction of rotation "R" or "L" Parameter square_index: the index of the square to be rotated int 1...4 """ if square_index == 1: vertical_offset = 0 horizontal_offset = 0 if square_index == 2: vertical_offset = 3 horizontal_offset = 0 if square_index == 3: vertical_offset = 0 horizontal_offset = 3 if square_index == 4: vertical_offset = 3 horizontal_offset = 3 if direction == "R": temp1 = board[2 + horizontal_offset][1 + vertical_offset] temp2 = board[1 + horizontal_offset][0 + vertical_offset] board[2 + horizontal_offset][1 + vertical_offset] = board[1 + horizontal_offset][2 + vertical_offset] board[1 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[0 + horizontal_offset][1 + vertical_offset] board[0 + horizontal_offset][1 + vertical_offset] = temp2 board[1 + horizontal_offset][2 + vertical_offset] = temp1 temp1 = board[2 + horizontal_offset][2 + vertical_offset] temp2 = board[2 + horizontal_offset][0 + vertical_offset] board[2 + horizontal_offset][2 + vertical_offset] = board[0 + horizontal_offset][2 + vertical_offset] board[2 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[0 + horizontal_offset][0 + vertical_offset] board[0 + horizontal_offset][0 + vertical_offset] = temp2 board[0 + horizontal_offset][2 + vertical_offset] = temp1 if direction == "L": temp1 = board[0 + horizontal_offset][1 + vertical_offset] temp2 = board[1 + horizontal_offset][0 + vertical_offset] board[0 + horizontal_offset][1 + vertical_offset] = board[1 + horizontal_offset][2 + vertical_offset] board[1 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[2 + horizontal_offset][1 + vertical_offset] board[2 + horizontal_offset][1 + vertical_offset] = temp2 board[1 + horizontal_offset][2 + vertical_offset] = temp1 temp1 = board[0 + horizontal_offset][2 + vertical_offset] temp2 = board[0 + horizontal_offset][0 + vertical_offset] board[0 + horizontal_offset][2 + vertical_offset] = board[2 + horizontal_offset][2 + vertical_offset] board[0 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[2 + horizontal_offset][0 + vertical_offset] board[2 + horizontal_offset][0 + vertical_offset] = temp2 board[2 + horizontal_offset][2 + vertical_offset] = temp1 return board def take_action(board, action, player): """Takes a given action on a given board for a given player. Returns the new board. Parameter board: a valid game board Parameter action: an instance of type Action Parameter player: either "Player" or "AI" """ if player == "Player": set_value = 0 else: set_value = 1 temp=board temp[action.x_coordinate][action.y_coordinate] = set_value return rotate(temp, action.direction, action.square_index) class Action(object): """Each acton is composed of the location on the board for a marble to be placed, a square selection, and the direction that that square should be rotated.""" def __init__(self, x_coordinate, y_coordinate, square_index, direction): """Creates an instance of class Action Parameter x_coordinate: x coordinate of the location for the marble to be placed int 0...5 Parameter y_coordinate: y coordinate of the location for the marble to be placed int 0...5 Parameter square_index: the index of the square to be rotated int 1...4 Parameter direction: the direction of rotation "R" or "L" """ self.x_coordinate = x_coordinate self.y_coordinate = y_coordinate self.square_index = square_index self.direction = direction def equals(self, action): """method of class Action that determines if an action is equal to another action""" assert(isinstance(action, Action)) if not(self.x_coordinate==action.x_coordinate): return False if not(self.y_coordinate==action.y_coordinate): return False if not(self.square_index==action.square_index): return False if not(self.direction==action.direction): return False return True
"""This module contains the functions needed to support pentago gameplay. A pentago gameboard is represented by a 6x6 2D array. Each location on the board is initialized to "" and is set to 0 or 1 when the player or the AI respectively places a marble on that location. Each array in the gameboard nested array represents a column of the board. Thus the gameboard can be viewed as the square in the 1st coordinate quadrant with x and y coordinates ranging from 0...5. For example, the bottom right location on the gameboard can be accessed with the command board[5][0]. The four squares on the board are indexed 1...4 with 1 as bottom left, 2 as top left, 3 as bottom right, and 4 as top right. """ def new_board(): """Returns an empty board""" return [[' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' '], [' ', ' ', ' ', ' ', ' ', ' ']] def print_board(board): """prints out the board in a legible format""" print('\x1b[1m -----------------------------------\x1b[0m') print('5 \x1b[1m| \x1b[0m' + return_marble(str(board[0][5])) + ' | ' + return_marble(str(board[1][5])) + ' | ' + return_marble(str(board[2][5])) + '\x1b[1m | \x1b[0m' + return_marble(str(board[3][5])) + ' | ' + return_marble(str(board[4][5])) + ' | ' + return_marble(str(board[5][5])) + '\x1b[1m |\x1b[0m') print(' \x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m') print('4 \x1b[1m| \x1b[0m' + return_marble(str(board[0][4])) + ' | ' + return_marble(str(board[1][4])) + ' | ' + return_marble(str(board[2][4])) + '\x1b[1m | \x1b[0m' + return_marble(str(board[3][4])) + ' | ' + return_marble(str(board[4][4])) + ' | ' + return_marble(str(board[5][4])) + '\x1b[1m |\x1b[0m') print(' \x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m') print('3 \x1b[1m| \x1b[0m' + return_marble(str(board[0][3])) + ' | ' + return_marble(str(board[1][3])) + ' | ' + return_marble(str(board[2][3])) + '\x1b[1m | \x1b[0m' + return_marble(str(board[3][3])) + ' | ' + return_marble(str(board[4][3])) + ' | ' + return_marble(str(board[5][3])) + '\x1b[1m |\x1b[0m 2 | 4 ') print('\x1b[1m |-----------------|-----------------|\x1b[0m --|-- ') print('2 \x1b[1m| \x1b[0m' + return_marble(str(board[0][2])) + ' | ' + return_marble(str(board[1][2])) + ' | ' + return_marble(str(board[2][2])) + '\x1b[1m | \x1b[0m' + return_marble(str(board[3][2])) + ' | ' + return_marble(str(board[4][2])) + ' | ' + return_marble(str(board[5][2])) + '\x1b[1m |\x1b[0m 1 | 3 ') print(' \x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m') print('1 \x1b[1m| \x1b[0m' + return_marble(str(board[0][1])) + ' | ' + return_marble(str(board[1][1])) + ' | ' + return_marble(str(board[2][1])) + '\x1b[1m | \x1b[0m' + return_marble(str(board[3][1])) + ' | ' + return_marble(str(board[4][1])) + ' | ' + return_marble(str(board[5][1])) + '\x1b[1m |\x1b[0m') print(' \x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m-----------------\x1b[1m|\x1b[0m') print('0 \x1b[1m| \x1b[0m' + return_marble(str(board[0][0])) + ' | ' + return_marble(str(board[1][0])) + ' | ' + return_marble(str(board[2][0])) + '\x1b[1m | \x1b[0m' + return_marble(str(board[3][0])) + ' | ' + return_marble(str(board[4][0])) + ' | ' + return_marble(str(board[5][0])) + '\x1b[1m |\x1b[0m') print('\x1b[1m -----------------------------------\x1b[0m') print(' 0 1 2 3 4 5') return def return_marble(number): """Returns a string, red X for AI and black X for human player""" if number == '1': return '\x1b[91mX\x1b[0m' elif number == '0': return 'X' else: return number def rotate(board, direction, square_index): """Returns a copy of the board with the indicated square rotated 90 degrees in the indicated direction Parameter board: a valid pentago board Parameter direction: the direction of rotation "R" or "L" Parameter square_index: the index of the square to be rotated int 1...4 """ if square_index == 1: vertical_offset = 0 horizontal_offset = 0 if square_index == 2: vertical_offset = 3 horizontal_offset = 0 if square_index == 3: vertical_offset = 0 horizontal_offset = 3 if square_index == 4: vertical_offset = 3 horizontal_offset = 3 if direction == 'R': temp1 = board[2 + horizontal_offset][1 + vertical_offset] temp2 = board[1 + horizontal_offset][0 + vertical_offset] board[2 + horizontal_offset][1 + vertical_offset] = board[1 + horizontal_offset][2 + vertical_offset] board[1 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[0 + horizontal_offset][1 + vertical_offset] board[0 + horizontal_offset][1 + vertical_offset] = temp2 board[1 + horizontal_offset][2 + vertical_offset] = temp1 temp1 = board[2 + horizontal_offset][2 + vertical_offset] temp2 = board[2 + horizontal_offset][0 + vertical_offset] board[2 + horizontal_offset][2 + vertical_offset] = board[0 + horizontal_offset][2 + vertical_offset] board[2 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[0 + horizontal_offset][0 + vertical_offset] board[0 + horizontal_offset][0 + vertical_offset] = temp2 board[0 + horizontal_offset][2 + vertical_offset] = temp1 if direction == 'L': temp1 = board[0 + horizontal_offset][1 + vertical_offset] temp2 = board[1 + horizontal_offset][0 + vertical_offset] board[0 + horizontal_offset][1 + vertical_offset] = board[1 + horizontal_offset][2 + vertical_offset] board[1 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[2 + horizontal_offset][1 + vertical_offset] board[2 + horizontal_offset][1 + vertical_offset] = temp2 board[1 + horizontal_offset][2 + vertical_offset] = temp1 temp1 = board[0 + horizontal_offset][2 + vertical_offset] temp2 = board[0 + horizontal_offset][0 + vertical_offset] board[0 + horizontal_offset][2 + vertical_offset] = board[2 + horizontal_offset][2 + vertical_offset] board[0 + horizontal_offset][0 + vertical_offset] = temp1 temp1 = board[2 + horizontal_offset][0 + vertical_offset] board[2 + horizontal_offset][0 + vertical_offset] = temp2 board[2 + horizontal_offset][2 + vertical_offset] = temp1 return board def take_action(board, action, player): """Takes a given action on a given board for a given player. Returns the new board. Parameter board: a valid game board Parameter action: an instance of type Action Parameter player: either "Player" or "AI" """ if player == 'Player': set_value = 0 else: set_value = 1 temp = board temp[action.x_coordinate][action.y_coordinate] = set_value return rotate(temp, action.direction, action.square_index) class Action(object): """Each acton is composed of the location on the board for a marble to be placed, a square selection, and the direction that that square should be rotated.""" def __init__(self, x_coordinate, y_coordinate, square_index, direction): """Creates an instance of class Action Parameter x_coordinate: x coordinate of the location for the marble to be placed int 0...5 Parameter y_coordinate: y coordinate of the location for the marble to be placed int 0...5 Parameter square_index: the index of the square to be rotated int 1...4 Parameter direction: the direction of rotation "R" or "L" """ self.x_coordinate = x_coordinate self.y_coordinate = y_coordinate self.square_index = square_index self.direction = direction def equals(self, action): """method of class Action that determines if an action is equal to another action""" assert isinstance(action, Action) if not self.x_coordinate == action.x_coordinate: return False if not self.y_coordinate == action.y_coordinate: return False if not self.square_index == action.square_index: return False if not self.direction == action.direction: return False return True
def func(s): one = 0 zero = 0 for i in range(len(s)): if i > 0 and s[i] == s[i-1] : continue if s[i] == "1": one += 1 else : zero += 1 return min(one,zero) s = input() print(func(s))
def func(s): one = 0 zero = 0 for i in range(len(s)): if i > 0 and s[i] == s[i - 1]: continue if s[i] == '1': one += 1 else: zero += 1 return min(one, zero) s = input() print(func(s))
# n points def lerp_line(pt0, pt1, n): pts = [] for i in range(n + 1): t = i / float(n) pt = pt0 * t + pt1 * (1.0 - t) pts.append(pt) return pts def pole_to_lines(pt0, pt1, color=[0, 255, 0], n=20): lines = [] pts = lerp_line(pt0, pt1, n) for pt in pts: lines.append([pt[0], pt[1], pt[2], color[0], color[1], color[2]]) return lines def frame_to_lines(Tcw, n=5): Twc = inv_T(Tcw) p000 = np.array([0.0, 0.0, 0.0]) p100 = np.array([1.0, 0.0, 0.0]) p010 = np.array([0.0, 1.0, 0.0]) p001 = np.array([0.0, 0.0, 1.0]) p100 /= 10.0 p010 /= 10.0 p001 /= 10.0 xs = lerp_line(p000, p100, n) ys = lerp_line(p000, p010, n) zs = lerp_line(p000, p001, n) wxs = [apply_T(Twc, p) for p in xs] wys = [apply_T(Twc, p) for p in ys] wzs = [apply_T(Twc, p) for p in zs] lines = [] Ow = apply_T(Twc, p000) lines.append([Ow[0], Ow[1], Ow[2], 255, 255, 255]) for p in wxs[1:]: lines.append([p[0], p[1], p[2], 255, 0, 0]) for p in wys[1:]: lines.append([p[0], p[1], p[2], 0, 255, 0]) for p in wzs[1:]: lines.append([p[0], p[1], p[2], 0, 0, 255]) return lines
def lerp_line(pt0, pt1, n): pts = [] for i in range(n + 1): t = i / float(n) pt = pt0 * t + pt1 * (1.0 - t) pts.append(pt) return pts def pole_to_lines(pt0, pt1, color=[0, 255, 0], n=20): lines = [] pts = lerp_line(pt0, pt1, n) for pt in pts: lines.append([pt[0], pt[1], pt[2], color[0], color[1], color[2]]) return lines def frame_to_lines(Tcw, n=5): twc = inv_t(Tcw) p000 = np.array([0.0, 0.0, 0.0]) p100 = np.array([1.0, 0.0, 0.0]) p010 = np.array([0.0, 1.0, 0.0]) p001 = np.array([0.0, 0.0, 1.0]) p100 /= 10.0 p010 /= 10.0 p001 /= 10.0 xs = lerp_line(p000, p100, n) ys = lerp_line(p000, p010, n) zs = lerp_line(p000, p001, n) wxs = [apply_t(Twc, p) for p in xs] wys = [apply_t(Twc, p) for p in ys] wzs = [apply_t(Twc, p) for p in zs] lines = [] ow = apply_t(Twc, p000) lines.append([Ow[0], Ow[1], Ow[2], 255, 255, 255]) for p in wxs[1:]: lines.append([p[0], p[1], p[2], 255, 0, 0]) for p in wys[1:]: lines.append([p[0], p[1], p[2], 0, 255, 0]) for p in wzs[1:]: lines.append([p[0], p[1], p[2], 0, 0, 255]) return lines
class MetaData: ''' convert to dynamically adding attributes by passing in **kwargs and setting each key value pair attention will need to be given for when this class is used in other processes to make sure they know the attributes that exists with each class however, not necessary just now ''' def __init__(self): self.data_raw = None self.file_type = None self.metadata_type = None self.origin_date = None self.author = None self.location = None self.compression_alg = None self.metadata_dict = None self.metadata_dict_indexlst = None def get_metadata_dict(self): return self.metadata_dict def get_file_type(self): return self.file_type def get_type_md(self): return self.metadata_type def get_origin_date(self): return self.origin_date def get_author(self): return self.author def get_compression_alg(self): return self.compression_alg def get_location_taken(self): return self.location
class Metadata: """ convert to dynamically adding attributes by passing in **kwargs and setting each key value pair attention will need to be given for when this class is used in other processes to make sure they know the attributes that exists with each class however, not necessary just now """ def __init__(self): self.data_raw = None self.file_type = None self.metadata_type = None self.origin_date = None self.author = None self.location = None self.compression_alg = None self.metadata_dict = None self.metadata_dict_indexlst = None def get_metadata_dict(self): return self.metadata_dict def get_file_type(self): return self.file_type def get_type_md(self): return self.metadata_type def get_origin_date(self): return self.origin_date def get_author(self): return self.author def get_compression_alg(self): return self.compression_alg def get_location_taken(self): return self.location
# A non-empty zero-indexed array A consisting of N integers is given. # # A permutation is a sequence containing each element from 1 to N once, and # only once. # # For example, array A such that: # A = [4, 1, 3, 2] # is a permutation, but array A such that: # A = [4, 1, 3] # is not a permutation, because value 2 is missing. # # The goal is to check whether array A is a permutation. # # Write a function: # def solution(A) # that, given a zero-indexed array A, returns 1 if array A is a permutation # and 0 if it is not. # # For example, given array A such that: # A = [4, 1, 3, 2] # the function should return 1. # # Given array A such that: # A = [4, 1, 3] # the function should return 0. # # Assume that: # * N is an integer within the range [1..100,000]; # * each element of array A is an integer within the range [1..1,000,000,000]. # # Complexity: # * expected worst-case time complexity is O(N); # * expected worst-case space complexity is O(N), beyond input storage (not # counting the storage required for input arguments). def solution(A): N = len(A) if N == 1: if A[0] == 1: return 1 else: return 0 count = {} for i in range(N): if A[i] not in count: count[A[i]] = 0 count[A[i]] += 1 if count[A[i]] > 1: return 0 # print(count) values = count.keys() # print(values) if max(values) == N: return 1 return 0
def solution(A): n = len(A) if N == 1: if A[0] == 1: return 1 else: return 0 count = {} for i in range(N): if A[i] not in count: count[A[i]] = 0 count[A[i]] += 1 if count[A[i]] > 1: return 0 values = count.keys() if max(values) == N: return 1 return 0
while(True): jars = [int(x) for x in input().split()] if sum(jars) == 0: break if sum(jars) == 13: print("Never speak again.") elif jars[0] > jars[1]: print("To the convention.") elif jars[1] > jars[0]: print("Left beehind.") elif jars[1] == jars[0]: print("Undecided.")
while True: jars = [int(x) for x in input().split()] if sum(jars) == 0: break if sum(jars) == 13: print('Never speak again.') elif jars[0] > jars[1]: print('To the convention.') elif jars[1] > jars[0]: print('Left beehind.') elif jars[1] == jars[0]: print('Undecided.')
DATE_PATTERNS = ["%d.%m.%Y", "%Y-%m-%d", "%y-%m-%d", "%Y-%m-%dT%H:%M:%S", "%Y-%m-%d %H:%M:%S", "%d.%m.%Y %H:%M"] DEFAULT_DICT_SHARE = 70 SUPPORTED_FILE_TYPES = ['xls', 'xlsx', 'csv', 'xml', 'json', 'jsonl', 'yaml', 'tsv', 'sql', 'bson'] DEFAULT_OPTIONS = {'encoding' : 'utf8', 'delimiter' : ',', 'limit' : 1000 }
date_patterns = ['%d.%m.%Y', '%Y-%m-%d', '%y-%m-%d', '%Y-%m-%dT%H:%M:%S', '%Y-%m-%d %H:%M:%S', '%d.%m.%Y %H:%M'] default_dict_share = 70 supported_file_types = ['xls', 'xlsx', 'csv', 'xml', 'json', 'jsonl', 'yaml', 'tsv', 'sql', 'bson'] default_options = {'encoding': 'utf8', 'delimiter': ',', 'limit': 1000}
''' This solution was submitted by Team: eyeCoders_UOP during ACES Coders v8 2020 Team lead: Rusiru Thushara thusharakart@gmail.com The solution runs in O(n) ''' def getline():return [float(x) for x in input().strip().split(' ')] c,e,n,s0 = getline() arr, lst = [], [] m = c/s0 for i in range(int(n)): x,s = getline() arr.append((x,s)) if x<c and s>=0: m = max(m,(c-x)/s) elif s<0: lst.append((x,s)) count = 0 for x,s in lst: if x+s*m <= c: count+=1 print(round(m),count)
""" This solution was submitted by Team: eyeCoders_UOP during ACES Coders v8 2020 Team lead: Rusiru Thushara thusharakart@gmail.com The solution runs in O(n) """ def getline(): return [float(x) for x in input().strip().split(' ')] (c, e, n, s0) = getline() (arr, lst) = ([], []) m = c / s0 for i in range(int(n)): (x, s) = getline() arr.append((x, s)) if x < c and s >= 0: m = max(m, (c - x) / s) elif s < 0: lst.append((x, s)) count = 0 for (x, s) in lst: if x + s * m <= c: count += 1 print(round(m), count)
# TODO: Make this a relative path local_url = "/home/garrison/Code/blogengine/output" remote_url = "http://www.example.com" site_title = "My Vanilla Blog" site_description = "The really cool blog in which I write about stuff" copy_rst = False disqus_shortname = "mydisqusshortname"
local_url = '/home/garrison/Code/blogengine/output' remote_url = 'http://www.example.com' site_title = 'My Vanilla Blog' site_description = 'The really cool blog in which I write about stuff' copy_rst = False disqus_shortname = 'mydisqusshortname'
in_code = 'abcdefghijklmnopqrstuvwxyz' out_code = '9128645!@#$%^&*()/.,;:~|[]' code = str.maketrans(in_code, out_code) print('this is encrypted!'.translate(code))
in_code = 'abcdefghijklmnopqrstuvwxyz' out_code = '9128645!@#$%^&*()/.,;:~|[]' code = str.maketrans(in_code, out_code) print('this is encrypted!'.translate(code))
# Question:5 countNumber = input("Enter the string ") print ("Original string is : " + countNumber) res = len(countNumber.split()) print ("Number of words in string is : " + str(res))
count_number = input('Enter the string ') print('Original string is : ' + countNumber) res = len(countNumber.split()) print('Number of words in string is : ' + str(res))
class Solution: def isValid(self, s: str) -> bool: while '[]' in s or '()' in s or '{}' in s: s = s.replace('[]','').replace('()','').replace('{}','') return len(s) == 0 """ time: 10 min time: O(n) space: O(n) errors: lower case values/keys Have to use stack because 3 charactors open/close """ class Solution: def isValid(self, s: str) -> bool: stk = [] mp = {")":"(", "}":"{", "]":"["} for c in s: if c in mp.values(): stk.append(c) elif c in mp.keys(): test = stk.pop() if stk else '#' if mp[c] != test: return False return len(stk) == 0 class Solution: def isValid(self, s) -> bool: stk = [] for c in s: if c == '(': stk.append(')') elif c == '[': stk.append(']') elif c == '{': stk.append('}') elif not stk or stk.pop() != c: return False return not stk
class Solution: def is_valid(self, s: str) -> bool: while '[]' in s or '()' in s or '{}' in s: s = s.replace('[]', '').replace('()', '').replace('{}', '') return len(s) == 0 '\ntime: 10 min\ntime: O(n)\nspace: O(n)\nerrors:\nlower case values/keys\nHave to use stack because 3 charactors open/close\n' class Solution: def is_valid(self, s: str) -> bool: stk = [] mp = {')': '(', '}': '{', ']': '['} for c in s: if c in mp.values(): stk.append(c) elif c in mp.keys(): test = stk.pop() if stk else '#' if mp[c] != test: return False return len(stk) == 0 class Solution: def is_valid(self, s) -> bool: stk = [] for c in s: if c == '(': stk.append(')') elif c == '[': stk.append(']') elif c == '{': stk.append('}') elif not stk or stk.pop() != c: return False return not stk
class Solution: def __init__(self): self.result = None def findMax(self, root): if root == None: return 0 # find max for left and right node left = self.findMax(root.left) right = self.findMax(root.right) # can either go straight down i.e. from root to one of the children and downwards maxStraight = max(max(left, right) + root.val, root.val) # or can come to root from either of the child nodes and go to other child node maxCurved = max(left + right + root.val, maxStraight) # update the result self.result = max(self.result, maxCurved) # can only return max straight, since we're going upwards return maxStraight def maxPathSum(self, root): if root == None: return 0 self.result = float('-inf') self.findMax(root) return self.result # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def main(): root = TreeNode(5) root.left = TreeNode(2) root.right = TreeNode(7) root.left.left = TreeNode(1) root.left.right = TreeNode(3) root.right.left = TreeNode(5) root.right.right = TreeNode(9) mySol = Solution() print("The max path sum in the binary tree is " + str(mySol.maxPathSum(root))) if __name__ == "__main__": main()
class Solution: def __init__(self): self.result = None def find_max(self, root): if root == None: return 0 left = self.findMax(root.left) right = self.findMax(root.right) max_straight = max(max(left, right) + root.val, root.val) max_curved = max(left + right + root.val, maxStraight) self.result = max(self.result, maxCurved) return maxStraight def max_path_sum(self, root): if root == None: return 0 self.result = float('-inf') self.findMax(root) return self.result class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def main(): root = tree_node(5) root.left = tree_node(2) root.right = tree_node(7) root.left.left = tree_node(1) root.left.right = tree_node(3) root.right.left = tree_node(5) root.right.right = tree_node(9) my_sol = solution() print('The max path sum in the binary tree is ' + str(mySol.maxPathSum(root))) if __name__ == '__main__': main()
class DatasetVO: def __init__(self): self._id = None self._name = "" self._folder = "" self._description = "" self._data_type = "" self._size = 0 self._count = 0 @property def count(self): return self._count @count.setter def count(self, value): if self._size and self._size > 0: self._count = value else: self._count = 0 @property def size(self): return self._size @size.setter def size(self, value): self._size = value @property def folder(self): return self._folder @folder.setter def folder(self, value): self._folder = value @property def id(self): return self._id @id.setter def id(self, value): self._id = value @property def name(self): return self._name @name.setter def name(self, value): self._name = value @property def description(self): return self._description @description.setter def description(self, value): self._description = value @property def data_type(self): return self._data_type @data_type.setter def data_type(self, value): self._data_type = value
class Datasetvo: def __init__(self): self._id = None self._name = '' self._folder = '' self._description = '' self._data_type = '' self._size = 0 self._count = 0 @property def count(self): return self._count @count.setter def count(self, value): if self._size and self._size > 0: self._count = value else: self._count = 0 @property def size(self): return self._size @size.setter def size(self, value): self._size = value @property def folder(self): return self._folder @folder.setter def folder(self, value): self._folder = value @property def id(self): return self._id @id.setter def id(self, value): self._id = value @property def name(self): return self._name @name.setter def name(self, value): self._name = value @property def description(self): return self._description @description.setter def description(self, value): self._description = value @property def data_type(self): return self._data_type @data_type.setter def data_type(self, value): self._data_type = value
class TembaException(Exception): def __str__(self): return self.message class TembaConnectionError(TembaException): message = "Unable to connect to host" class TembaBadRequestError(TembaException): def __init__(self, errors): self.errors = errors def __str__(self): msgs = [] if isinstance(self.errors, dict): for field, field_errors in self.errors.items(): if isinstance(field_errors, str): # e.g. {"detail": "message..."} msgs.append(field_errors) else: for error in field_errors: # e.g. {"field1": ["msg1...", "msg2..."]} msgs.append(error) elif isinstance(self.errors, list): msgs = self.errors return msgs[0] if len(msgs) == 1 else ". ".join(msgs) class TembaTokenError(TembaException): message = "Authentication with provided token failed" class TembaNoSuchObjectError(TembaException): message = "No such object exists" class TembaRateExceededError(TembaException): message = ( "You have exceeded the number of requests allowed per org in a given time window. " "Please wait %d seconds before making further requests" ) def __init__(self, retry_after): self.retry_after = retry_after def __str__(self): return self.message % self.retry_after class TembaHttpError(TembaException): def __init__(self, caused_by): self.caused_by = caused_by def __str__(self): return str(self.caused_by) class TembaSerializationException(TembaException): pass class TembaMultipleResultsError(TembaException): message = "Request for single object returned multiple objects"
class Tembaexception(Exception): def __str__(self): return self.message class Tembaconnectionerror(TembaException): message = 'Unable to connect to host' class Tembabadrequesterror(TembaException): def __init__(self, errors): self.errors = errors def __str__(self): msgs = [] if isinstance(self.errors, dict): for (field, field_errors) in self.errors.items(): if isinstance(field_errors, str): msgs.append(field_errors) else: for error in field_errors: msgs.append(error) elif isinstance(self.errors, list): msgs = self.errors return msgs[0] if len(msgs) == 1 else '. '.join(msgs) class Tembatokenerror(TembaException): message = 'Authentication with provided token failed' class Tembanosuchobjecterror(TembaException): message = 'No such object exists' class Tembarateexceedederror(TembaException): message = 'You have exceeded the number of requests allowed per org in a given time window. Please wait %d seconds before making further requests' def __init__(self, retry_after): self.retry_after = retry_after def __str__(self): return self.message % self.retry_after class Tembahttperror(TembaException): def __init__(self, caused_by): self.caused_by = caused_by def __str__(self): return str(self.caused_by) class Tembaserializationexception(TembaException): pass class Tembamultipleresultserror(TembaException): message = 'Request for single object returned multiple objects'
DEFAULT_WINDOW_SIZE = 32 DEFAULT_THRESHOLD_MIN_BASIC = 45.39 DEFAULT_THRESHOLD_MAX_BASIC = 46.0 DEFAULT_THRESHOLD_MIN_ABS = 50.32 DEFAULT_THRESHOLD_MAX_ABS = 52.96 DEFAULT_THRESHOLD_MIN_WITHOUT_GC = 11.28 DEFAULT_THRESHOLD_MAX_WITHOUT_GC = 11.42 DEFAULT_MEAN_GC = 0.46354823199323626 DEFAULT_MAX_EVALUE = 0.00445 DEFAULT_PENALTY_BLACK = 2.2 DEFAULT_PENALTY_WHITE = 0.7 DEFAULT_BLACK_LIST = [ 'VOG0496', 'VOG5264', 'VOG4730', 'VOG5818', 'VOG7281', 'VOG6063', 'VOG6030', 'VOG1710', 'VOG0996', 'VOG4524', 'VOG8021', 'VOG8536', 'VOG2368', 'VOG1850', 'VOG1031', 'VOG0985', 'VOG0274', 'VOG4344', 'VOG1844', 'VOG0088', 'VOG8607', 'VOG4615', 'VOG8992', 'VOG3235', 'VOG0092', 'VOG4155', 'VOG3532', 'VOG1045', 'VOG4149', 'VOG8062', 'VOG4562', 'VOG7442', 'VOG7446', 'VOG0419', 'VOG4319', 'VOG8429', 'VOG4409', 'VOG1422', 'VOG10018', 'VOG3101', 'VOG5441', 'VOG4469', 'VOG6988', 'VOG4678', 'VOG3722', ] DEFAULT_WHITE_LIST = [ "VOG0568", "VOG0569", "VOG0565", "VOG0566", "VOG0567", "VOG0562", "VOG2703", "VOG0968", "VOG0700", "VOG0701", "VOG0703", "VOG0704", "VOG8223", "VOG9502", "VOG5046", "VOG5260", "VOG4643", "VOG4645", "VOG4647", "VOG9348", "VOG3606", "VOG9762", "VOG4736", "VOG3424", "VOG9962", "VOG8568", "VOG7616", "VOG7615", "VOG6418", "VOG7437", "VOG10916", "VOG6520", "VOG9667", "VOG0825", "VOG0824", "VOG0827", "VOG0559", "VOG0557", "VOG2779", "VOG4545", "VOG0953", "VOG1159", "VOG0602", "VOG5254", "VOG0044", "VOG4652", "VOG4659", "VOG3309", "VOG4438", "VOG2545", "VOG10850", "VOG1942", "VOG1319", "VOG3891", "VOG3890", "VOG2388", "VOG3892", "VOG3894", "VOG3897", "VOG2166", "VOG1837", "VOG0541", "VOG0947", "VOG0945", "VOG0723", "VOG0720", "VOG0727", "VOG0724", "VOG0725", "VOG0837", "VOG0835", "VOG0832", "VOG0833", "VOG0830", "VOG0831", "VOG0838", "VOG0839", "VOG0618", "VOG0614", "VOG0615", "VOG5060", "VOG0583", "VOG0051", "VOG0054", "VOG5660", "VOG4829", "VOG4828", "VOG4820", "VOG8497", "VOG0588", "VOG3622", "VOG3396", "VOG4757", "VOG3401", "VOG3406", "VOG3409", "VOG2119", "VOG1956", "VOG0536", "VOG0534", "VOG0539", "VOG0283", "VOG0843", "VOG0842", "VOG0847", "VOG0848", "VOG0198", "VOG0195", "VOG10933", "VOG9374", "VOG4630", "VOG4632", "VOG4633", "VOG4634", "VOG10054", "VOG10059", "VOG5621", "VOG8445", "VOG6866", "VOG0524", "VOG0526", "VOG6440", "VOG0840", "VOG0298", "VOG0299", "VOG0292", "VOG0296", "VOG0850", "VOG0855", "VOG0186", "VOG0181", "VOG0189", "VOG9547", "VOG0275", "VOG5357", "VOG10608", "VOG5734", "VOG4609", "VOG4606", "VOG4600", "VOG4602", "VOG3379", "VOG4171", "VOG4994", "VOG4999", "VOG8520", "VOG4771", "VOG4772", "VOG8855", "VOG6876", "VOG0519", "VOG0518", "VOG0514", "VOG2644", "VOG0641", "VOG5994", "VOG4618", "VOG4619", "VOG4612", "VOG3699", "VOG9474", "VOG4986", "VOG7882", "VOG4763", "VOG2341", "VOG10969", "VOG2124", "VOG2125", "VOG6600", "VOG1900", "VOG2015", "VOG0650", "VOG0651", "VOG0655", "VOG5023", "VOG5027", "VOG10898", "VOG0254", "VOG1309", "VOG9583", "VOG8509", "VOG4573", "VOG4572", "VOG0952", "VOG4888", "VOG4799", "VOG2337", "VOG2336", "VOG2339", "VOG2338", "VOG7693", "VOG1912", "VOG1915", "VOG1047", "VOG1049", "VOG2790", "VOG2793", "VOG2086", "VOG2795", "VOG2794", "VOG0790", "VOG0796", "VOG0799", "VOG0221", "VOG0227", "VOG0226", "VOG4364", "VOG4361", "VOG9227", "VOG5942", "VOG4563", "VOG4564", "VOG4565", "VOG4566", "VOG4567", "VOG4568", "VOG4890", "VOG3327", "VOG3328", "VOG6138", "VOG7440", "VOG7686", "VOG6001", "VOG2788", "VOG0800", "VOG1320", "VOG1329", "VOG9609", "VOG9857", "VOG4555", "VOG4557", "VOG4556", "VOG4550", "VOG4553", "VOG4552", "VOG3798", "VOG8306", "VOG7238", "VOG6545", "VOG6495", "VOG0939", "VOG4559", "VOG1887", "VOG5029", "VOG5092", "VOG5096", "VOG5095", "VOG0753", "VOG1333", "VOG4544", "VOG2791", "VOG3498", "VOG10343", "VOG3304", "VOG3652", "VOG3651", "VOG3477", "VOG3478", "VOG8337", "VOG8336", "VOG10230", "VOG0251", "VOG6153", "VOG6154", "VOG1433", "VOG0327", "VOG0322", "VOG0321", "VOG6203", "VOG0528", "VOG5084", "VOG4672", "VOG1348", "VOG9470", "VOG0696", "VOG0697", "VOG0695", "VOG0692", "VOG0691", "VOG0698", "VOG0107", "VOG4684", "VOG9305", "VOG4593", "VOG4596", "VOG4599", "VOG4598", "VOG4845", "VOG4841", "VOG3480", "VOG3648", "VOG3649", "VOG3644", "VOG3313", "VOG3461", "VOG3462", "VOG3468", "VOG8923", "VOG10227", "VOG7569", "VOG0356", "VOG0355", "VOG1350", "VOG1352", "VOG1353", "VOG1356", "VOG5155", "VOG4693", "VOG4690", "VOG4691", "VOG4694", "VOG4699", "VOG2165", "VOG2163", "VOG9315", "VOG9317", "VOG4589", "VOG4586", "VOG4581", "VOG8134", "VOG8354", "VOG2215", "VOG3298", "VOG11077", "VOG1637", "VOG1638", "VOG7483", "VOG2186", "VOG2188", "VOG1183", "VOG0582", "VOG1298", "VOG0584", "VOG0585", "VOG1563", "VOG0901", "VOG0764", "VOG0765", "VOG5443", "VOG0010", "VOG4002", "VOG4005", "VOG4862", "VOG4865", "VOG5996", "VOG4716", "VOG4713", "VOG4711", "VOG8340", "VOG8904", "VOG3287", "VOG4605", "VOG6163", "VOG2154", "VOG2153", "VOG6181", "VOG0801", "VOG0577", "VOG0574", "VOG0573", "VOG0572", "VOG0571", "VOG0977", "VOG0976", "VOG0152", "VOG0397", "VOG0204", "VOG0021", "VOG0025", "VOG0026", "VOG3616", "VOG4705", "VOG4701", "VOG3434", "VOG2792", "VOG3721", "VOG3549", "VOG2142", "VOG10904", "VOG2149", "VOG2096", "VOG9438", ]
default_window_size = 32 default_threshold_min_basic = 45.39 default_threshold_max_basic = 46.0 default_threshold_min_abs = 50.32 default_threshold_max_abs = 52.96 default_threshold_min_without_gc = 11.28 default_threshold_max_without_gc = 11.42 default_mean_gc = 0.46354823199323625 default_max_evalue = 0.00445 default_penalty_black = 2.2 default_penalty_white = 0.7 default_black_list = ['VOG0496', 'VOG5264', 'VOG4730', 'VOG5818', 'VOG7281', 'VOG6063', 'VOG6030', 'VOG1710', 'VOG0996', 'VOG4524', 'VOG8021', 'VOG8536', 'VOG2368', 'VOG1850', 'VOG1031', 'VOG0985', 'VOG0274', 'VOG4344', 'VOG1844', 'VOG0088', 'VOG8607', 'VOG4615', 'VOG8992', 'VOG3235', 'VOG0092', 'VOG4155', 'VOG3532', 'VOG1045', 'VOG4149', 'VOG8062', 'VOG4562', 'VOG7442', 'VOG7446', 'VOG0419', 'VOG4319', 'VOG8429', 'VOG4409', 'VOG1422', 'VOG10018', 'VOG3101', 'VOG5441', 'VOG4469', 'VOG6988', 'VOG4678', 'VOG3722'] default_white_list = ['VOG0568', 'VOG0569', 'VOG0565', 'VOG0566', 'VOG0567', 'VOG0562', 'VOG2703', 'VOG0968', 'VOG0700', 'VOG0701', 'VOG0703', 'VOG0704', 'VOG8223', 'VOG9502', 'VOG5046', 'VOG5260', 'VOG4643', 'VOG4645', 'VOG4647', 'VOG9348', 'VOG3606', 'VOG9762', 'VOG4736', 'VOG3424', 'VOG9962', 'VOG8568', 'VOG7616', 'VOG7615', 'VOG6418', 'VOG7437', 'VOG10916', 'VOG6520', 'VOG9667', 'VOG0825', 'VOG0824', 'VOG0827', 'VOG0559', 'VOG0557', 'VOG2779', 'VOG4545', 'VOG0953', 'VOG1159', 'VOG0602', 'VOG5254', 'VOG0044', 'VOG4652', 'VOG4659', 'VOG3309', 'VOG4438', 'VOG2545', 'VOG10850', 'VOG1942', 'VOG1319', 'VOG3891', 'VOG3890', 'VOG2388', 'VOG3892', 'VOG3894', 'VOG3897', 'VOG2166', 'VOG1837', 'VOG0541', 'VOG0947', 'VOG0945', 'VOG0723', 'VOG0720', 'VOG0727', 'VOG0724', 'VOG0725', 'VOG0837', 'VOG0835', 'VOG0832', 'VOG0833', 'VOG0830', 'VOG0831', 'VOG0838', 'VOG0839', 'VOG0618', 'VOG0614', 'VOG0615', 'VOG5060', 'VOG0583', 'VOG0051', 'VOG0054', 'VOG5660', 'VOG4829', 'VOG4828', 'VOG4820', 'VOG8497', 'VOG0588', 'VOG3622', 'VOG3396', 'VOG4757', 'VOG3401', 'VOG3406', 'VOG3409', 'VOG2119', 'VOG1956', 'VOG0536', 'VOG0534', 'VOG0539', 'VOG0283', 'VOG0843', 'VOG0842', 'VOG0847', 'VOG0848', 'VOG0198', 'VOG0195', 'VOG10933', 'VOG9374', 'VOG4630', 'VOG4632', 'VOG4633', 'VOG4634', 'VOG10054', 'VOG10059', 'VOG5621', 'VOG8445', 'VOG6866', 'VOG0524', 'VOG0526', 'VOG6440', 'VOG0840', 'VOG0298', 'VOG0299', 'VOG0292', 'VOG0296', 'VOG0850', 'VOG0855', 'VOG0186', 'VOG0181', 'VOG0189', 'VOG9547', 'VOG0275', 'VOG5357', 'VOG10608', 'VOG5734', 'VOG4609', 'VOG4606', 'VOG4600', 'VOG4602', 'VOG3379', 'VOG4171', 'VOG4994', 'VOG4999', 'VOG8520', 'VOG4771', 'VOG4772', 'VOG8855', 'VOG6876', 'VOG0519', 'VOG0518', 'VOG0514', 'VOG2644', 'VOG0641', 'VOG5994', 'VOG4618', 'VOG4619', 'VOG4612', 'VOG3699', 'VOG9474', 'VOG4986', 'VOG7882', 'VOG4763', 'VOG2341', 'VOG10969', 'VOG2124', 'VOG2125', 'VOG6600', 'VOG1900', 'VOG2015', 'VOG0650', 'VOG0651', 'VOG0655', 'VOG5023', 'VOG5027', 'VOG10898', 'VOG0254', 'VOG1309', 'VOG9583', 'VOG8509', 'VOG4573', 'VOG4572', 'VOG0952', 'VOG4888', 'VOG4799', 'VOG2337', 'VOG2336', 'VOG2339', 'VOG2338', 'VOG7693', 'VOG1912', 'VOG1915', 'VOG1047', 'VOG1049', 'VOG2790', 'VOG2793', 'VOG2086', 'VOG2795', 'VOG2794', 'VOG0790', 'VOG0796', 'VOG0799', 'VOG0221', 'VOG0227', 'VOG0226', 'VOG4364', 'VOG4361', 'VOG9227', 'VOG5942', 'VOG4563', 'VOG4564', 'VOG4565', 'VOG4566', 'VOG4567', 'VOG4568', 'VOG4890', 'VOG3327', 'VOG3328', 'VOG6138', 'VOG7440', 'VOG7686', 'VOG6001', 'VOG2788', 'VOG0800', 'VOG1320', 'VOG1329', 'VOG9609', 'VOG9857', 'VOG4555', 'VOG4557', 'VOG4556', 'VOG4550', 'VOG4553', 'VOG4552', 'VOG3798', 'VOG8306', 'VOG7238', 'VOG6545', 'VOG6495', 'VOG0939', 'VOG4559', 'VOG1887', 'VOG5029', 'VOG5092', 'VOG5096', 'VOG5095', 'VOG0753', 'VOG1333', 'VOG4544', 'VOG2791', 'VOG3498', 'VOG10343', 'VOG3304', 'VOG3652', 'VOG3651', 'VOG3477', 'VOG3478', 'VOG8337', 'VOG8336', 'VOG10230', 'VOG0251', 'VOG6153', 'VOG6154', 'VOG1433', 'VOG0327', 'VOG0322', 'VOG0321', 'VOG6203', 'VOG0528', 'VOG5084', 'VOG4672', 'VOG1348', 'VOG9470', 'VOG0696', 'VOG0697', 'VOG0695', 'VOG0692', 'VOG0691', 'VOG0698', 'VOG0107', 'VOG4684', 'VOG9305', 'VOG4593', 'VOG4596', 'VOG4599', 'VOG4598', 'VOG4845', 'VOG4841', 'VOG3480', 'VOG3648', 'VOG3649', 'VOG3644', 'VOG3313', 'VOG3461', 'VOG3462', 'VOG3468', 'VOG8923', 'VOG10227', 'VOG7569', 'VOG0356', 'VOG0355', 'VOG1350', 'VOG1352', 'VOG1353', 'VOG1356', 'VOG5155', 'VOG4693', 'VOG4690', 'VOG4691', 'VOG4694', 'VOG4699', 'VOG2165', 'VOG2163', 'VOG9315', 'VOG9317', 'VOG4589', 'VOG4586', 'VOG4581', 'VOG8134', 'VOG8354', 'VOG2215', 'VOG3298', 'VOG11077', 'VOG1637', 'VOG1638', 'VOG7483', 'VOG2186', 'VOG2188', 'VOG1183', 'VOG0582', 'VOG1298', 'VOG0584', 'VOG0585', 'VOG1563', 'VOG0901', 'VOG0764', 'VOG0765', 'VOG5443', 'VOG0010', 'VOG4002', 'VOG4005', 'VOG4862', 'VOG4865', 'VOG5996', 'VOG4716', 'VOG4713', 'VOG4711', 'VOG8340', 'VOG8904', 'VOG3287', 'VOG4605', 'VOG6163', 'VOG2154', 'VOG2153', 'VOG6181', 'VOG0801', 'VOG0577', 'VOG0574', 'VOG0573', 'VOG0572', 'VOG0571', 'VOG0977', 'VOG0976', 'VOG0152', 'VOG0397', 'VOG0204', 'VOG0021', 'VOG0025', 'VOG0026', 'VOG3616', 'VOG4705', 'VOG4701', 'VOG3434', 'VOG2792', 'VOG3721', 'VOG3549', 'VOG2142', 'VOG10904', 'VOG2149', 'VOG2096', 'VOG9438']
# @desc Add a short description or instruction here. This will show up at the top of the exercise. def function_name(parameter): # give your function a name and parameter(s) # have it do stuff return # what does it return? This will be what the user types when they predict the result. def main(): print(function_name(parameter1)) print(function_name(parameter2)) print(function_name(parameter3)) print(function_name(parameter4)) if __name__ == '__main__': main()
def function_name(parameter): return def main(): print(function_name(parameter1)) print(function_name(parameter2)) print(function_name(parameter3)) print(function_name(parameter4)) if __name__ == '__main__': main()
s = input() g1 = {} for i in range(1, len(s)): g1[s[i-1: i+1]] = g1.get(s[i-1: i+1], 0) + 1 s = input() g2 = set() for i in range(1, len(s)): g2.add(s[i-1: i+1]) print(sum([g1[g] for g in frozenset(g1.keys()) & g2]))
s = input() g1 = {} for i in range(1, len(s)): g1[s[i - 1:i + 1]] = g1.get(s[i - 1:i + 1], 0) + 1 s = input() g2 = set() for i in range(1, len(s)): g2.add(s[i - 1:i + 1]) print(sum([g1[g] for g in frozenset(g1.keys()) & g2]))
"""Defines LidarObject class. ---------------------------------------------------------------------------------------------------------- This file is part of Sim-ATAV project and licensed under MIT license. Copyright (c) 2018 Cumhur Erkan Tuncali, Georgios Fainekos, Danil Prokhorov, Hisahiro Ito, James Kapinski. For questions please contact: C. Erkan Tuncali (etuncali [at] asu.edu) ---------------------------------------------------------------------------------------------------------- """ class LidarObject(object): OBJECT_CAR = 0 OBJECT_PEDESTRIAN = 1 OBJECT_BIKE = 2 OBJECT_TRUCK = 3 """LidarObject class defines features of the object detected by LIDAR.""" def __init__(self, lidar_cluster, object_class, relative_position): self.lidar_cluster = lidar_cluster self.object_class = object_class self.relative_position = relative_position
"""Defines LidarObject class. ---------------------------------------------------------------------------------------------------------- This file is part of Sim-ATAV project and licensed under MIT license. Copyright (c) 2018 Cumhur Erkan Tuncali, Georgios Fainekos, Danil Prokhorov, Hisahiro Ito, James Kapinski. For questions please contact: C. Erkan Tuncali (etuncali [at] asu.edu) ---------------------------------------------------------------------------------------------------------- """ class Lidarobject(object): object_car = 0 object_pedestrian = 1 object_bike = 2 object_truck = 3 'LidarObject class defines features of the object detected by LIDAR.' def __init__(self, lidar_cluster, object_class, relative_position): self.lidar_cluster = lidar_cluster self.object_class = object_class self.relative_position = relative_position
# Code Demo for 13 Lecture # Working with Python Strings # CIS 135 - Code Demo File # Lecture example showing string contatenation firstName = "Peter" lastName = "Parker" print("\nString Contcatenation in Pyton uses the + operator") print(f'First Name = {firstName}') print(f'Last Name = {lastName}') print("Peter Parker can be concatenated as 'firstName' + ' ' + 'lastName'") print("Hello,", firstName + ' ' + lastName) # Example slicing JJC JJC = "Joliet Junior College" print('\nJJC = "Joliet Junior College"') print("\nExtract 'Joliet' from the variable JJC") print(JJC[0:6]) # this returns the first six characters print("\nExtract 'College' from the variable JJC") print(JJC[-7:]) # this returns the final seven characters print("\nExtract 'Junior' from the variable JJC") print(JJC[7:-7]) # this returns the final seven characters alphas = 'abcdefghi' print(f'\nThe variable alphas = {alphas}') print('alphas[1:3] extract characters ', alphas[4:8]) print('alphas[:3] = will extract characters ', alphas[:3]) print('alphas[-2:] = will extract characters ', alphas[-2:]) print('alphas[-3:-2] = will extract characters ', alphas[-3:-2]) this_string = " some text " print(this_string.lstrip()) print(this_string.rstrip())
first_name = 'Peter' last_name = 'Parker' print('\nString Contcatenation in Pyton uses the + operator') print(f'First Name = {firstName}') print(f'Last Name = {lastName}') print("Peter Parker can be concatenated as 'firstName' + ' ' + 'lastName'") print('Hello,', firstName + ' ' + lastName) jjc = 'Joliet Junior College' print('\nJJC = "Joliet Junior College"') print("\nExtract 'Joliet' from the variable JJC") print(JJC[0:6]) print("\nExtract 'College' from the variable JJC") print(JJC[-7:]) print("\nExtract 'Junior' from the variable JJC") print(JJC[7:-7]) alphas = 'abcdefghi' print(f'\nThe variable alphas = {alphas}') print('alphas[1:3] extract characters ', alphas[4:8]) print('alphas[:3] = will extract characters ', alphas[:3]) print('alphas[-2:] = will extract characters ', alphas[-2:]) print('alphas[-3:-2] = will extract characters ', alphas[-3:-2]) this_string = ' some text ' print(this_string.lstrip()) print(this_string.rstrip())
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/10/17 21:35 # @Author : jacson # @FileName: file_from_pycharm.py print("hello world!!!")
print('hello world!!!')
def percentual(qtde, total): return (100 * qtde) / total n = int(input()) c = r = s = 0 for i in range(n): val, tipo = input().split() qtde = int(val) if tipo == 'C': c += qtde if tipo == 'R': r += qtde if tipo == 'S': s += qtde total = c + r + s print('Total: {} cobaias'.format(total)) print('Total de coelhos: {}\nTotal de ratos: {}\nTotal de sapos: {}'.format(c, r, s)) print('Percentual de coelhos: {:.2f} %'.format(percentual(c, total))) print('Percentual de ratos: {:.2f} %'.format(percentual(r, total))) print('Percentual de sapos: {:.2f} %'.format(percentual(s, total)))
def percentual(qtde, total): return 100 * qtde / total n = int(input()) c = r = s = 0 for i in range(n): (val, tipo) = input().split() qtde = int(val) if tipo == 'C': c += qtde if tipo == 'R': r += qtde if tipo == 'S': s += qtde total = c + r + s print('Total: {} cobaias'.format(total)) print('Total de coelhos: {}\nTotal de ratos: {}\nTotal de sapos: {}'.format(c, r, s)) print('Percentual de coelhos: {:.2f} %'.format(percentual(c, total))) print('Percentual de ratos: {:.2f} %'.format(percentual(r, total))) print('Percentual de sapos: {:.2f} %'.format(percentual(s, total)))
# See: http://django-suit.readthedocs.org/en/develop/ SUIT_CONFIG = { # header 'ADMIN_NAME': 'Augeo', # 'HEADER_DATE_FORMAT': 'l, j. F Y', # 'HEADER_TIME_FORMAT': 'H:i', }
suit_config = {'ADMIN_NAME': 'Augeo'}
def convert(my_str): my_list = list(my_str.split(' ')) return my_list values = {} times = {} weights = {} ids = [] f = open('crime_scene.txt') my_lines = f.readlines() stripped_lines = [line.strip() for line in my_lines] f.close() N = int(stripped_lines[1]) w = int(convert(stripped_lines[0])[0]) t = int(convert(stripped_lines[0])[1]) if N != 1: for n in range(2,N+2): content = convert(stripped_lines[n]) values[content[0]] = content[3] times[content[0]] = content[2] weights[content[0]] = content[1] ids.append(content[0]) else: n = 2 content = convert(stripped_lines[n]) values[content[0]] = content[3] times[content[0]] = content[2] weights[content[0]] = content[1] ids.append(content[0]) def list_sum(my_lst,wanted = None): if wanted == None: wanted = 0 if len(my_lst) == 0: return wanted wanted = wanted + int(my_lst[0]) return list_sum(my_lst[1:],wanted) def my_weights(my_lst,wanted = None): if wanted == None: wanted = [] if len(my_lst) == 0: return wanted wanted.append(weights[my_lst[0]]) return my_weights(my_lst[1:],wanted) def my_times(my_lst,wanted = None): if wanted == None: wanted = [] if len(my_lst) == 0: return wanted wanted.append(times[my_lst[0]]) return my_times(my_lst[1:],wanted) def my_values(my_lst,wanted = None): if wanted == None: wanted = [] if len(my_lst) == 0: return wanted wanted.append(values[my_lst[0]]) return my_values(my_lst[1:],wanted) def control1(my_lst): # output 1 if list_sum(my_weights(my_lst)) <= w: return True else: return False def control2(my_lst): # output 2 if list_sum(my_times(my_lst)) <= t: return True else: return False def control3(my_lst): # output 3 if list_sum(my_weights(my_lst)) <= w and list_sum(my_times(my_lst)) <= t: return True else: return False def creating_lst(my_lst,for_lst,wanted = None): if wanted == None: wanted = [] if len(for_lst) == 0: return wanted wanted.append([my_lst[-1]]+for_lst[0]) return creating_lst(my_lst,for_lst[1:],wanted) def combinations(my_lst): if my_lst: sonuc = combinations(my_lst[:-1]) wanted = sonuc + creating_lst(my_lst,sonuc) return wanted else: return [[]] def comb_control1(my_lst,i = None,wanted = None): # output 1 if i == len(combinations(my_lst)): return wanted if i == None: i = 0 if wanted == None: wanted = [] if control1(combinations(my_lst)[i]): wanted.append(combinations(my_lst)[i]) else: pass i += 1 return comb_control1(my_lst,i,wanted) def comb_control2(my_lst,i = None,wanted = None): # output 2 if i == len(combinations(my_lst)): return wanted if i == None: i = 0 if wanted == None: wanted = [] if control2(combinations(my_lst)[i]): wanted.append(combinations(my_lst)[i]) else: pass i += 1 return comb_control2(my_lst,i,wanted) def comb_control3(my_lst,i = None,wanted = None): # output 3 if i == len(combinations(my_lst)): return wanted if i == None: i = 0 if wanted == None: wanted = [] if control3(combinations(my_lst)[i]): wanted.append(combinations(my_lst)[i]) else: pass i += 1 return comb_control3(my_lst,i,wanted) def biggest_subset(my_lst,max = None,wanted_lst = None): if len(my_lst) == 0: return wanted_lst if max == None: max = 0 if wanted_lst == None: wanted_lst = [] if list_sum(my_values(my_lst[0])) > max: max = list_sum(my_values(my_lst[0])) wanted_lst = my_lst[0] else: pass return biggest_subset(my_lst[1:],max,wanted_lst) ideal_list1 = biggest_subset(comb_control1(ids)) ideal_list2 = biggest_subset(comb_control2(ids)) ideal_list3 = biggest_subset(comb_control3(ids)) sorted_output1 = [] # w sorted_output2 = [] # t sorted_output3 = [] # t and w while ideal_list1: my_min = ideal_list1[0] for evidence in ideal_list1: if int(evidence) < int(my_min): my_min = evidence sorted_output1.append(my_min) ideal_list1.remove(my_min) while ideal_list2: my_min = ideal_list2[0] for evidence in ideal_list2: if int(evidence) < int(my_min): my_min = evidence sorted_output2.append(my_min) ideal_list2.remove(my_min) while ideal_list3: my_min = ideal_list3[0] for evidence in ideal_list3: if int(evidence) < int(my_min): my_min = evidence sorted_output3.append(my_min) ideal_list3.remove(my_min) def _output1(my_lst): f1 = open('solution_part1.txt','w+') f1.write(str(list_sum(my_values(my_lst)))+'\n') for evidence in my_lst: f1.write(str(evidence)+' ') f1.close() def _output2(my_lst): f2 = open('solution_part2.txt','w+') f2.write(str(list_sum(my_values(my_lst)))+'\n') for evidence in my_lst: f2.write(str(evidence)+' ') f2.close() def _output3(my_lst): f3 = open('solution_part3.txt','w+') f3.write(str(list_sum(my_values(my_lst)))+'\n') for evidence in my_lst: f3.write(str(evidence)+' ') f3.close() _output1(sorted_output1) _output2(sorted_output2) _output3(sorted_output3)
def convert(my_str): my_list = list(my_str.split(' ')) return my_list values = {} times = {} weights = {} ids = [] f = open('crime_scene.txt') my_lines = f.readlines() stripped_lines = [line.strip() for line in my_lines] f.close() n = int(stripped_lines[1]) w = int(convert(stripped_lines[0])[0]) t = int(convert(stripped_lines[0])[1]) if N != 1: for n in range(2, N + 2): content = convert(stripped_lines[n]) values[content[0]] = content[3] times[content[0]] = content[2] weights[content[0]] = content[1] ids.append(content[0]) else: n = 2 content = convert(stripped_lines[n]) values[content[0]] = content[3] times[content[0]] = content[2] weights[content[0]] = content[1] ids.append(content[0]) def list_sum(my_lst, wanted=None): if wanted == None: wanted = 0 if len(my_lst) == 0: return wanted wanted = wanted + int(my_lst[0]) return list_sum(my_lst[1:], wanted) def my_weights(my_lst, wanted=None): if wanted == None: wanted = [] if len(my_lst) == 0: return wanted wanted.append(weights[my_lst[0]]) return my_weights(my_lst[1:], wanted) def my_times(my_lst, wanted=None): if wanted == None: wanted = [] if len(my_lst) == 0: return wanted wanted.append(times[my_lst[0]]) return my_times(my_lst[1:], wanted) def my_values(my_lst, wanted=None): if wanted == None: wanted = [] if len(my_lst) == 0: return wanted wanted.append(values[my_lst[0]]) return my_values(my_lst[1:], wanted) def control1(my_lst): if list_sum(my_weights(my_lst)) <= w: return True else: return False def control2(my_lst): if list_sum(my_times(my_lst)) <= t: return True else: return False def control3(my_lst): if list_sum(my_weights(my_lst)) <= w and list_sum(my_times(my_lst)) <= t: return True else: return False def creating_lst(my_lst, for_lst, wanted=None): if wanted == None: wanted = [] if len(for_lst) == 0: return wanted wanted.append([my_lst[-1]] + for_lst[0]) return creating_lst(my_lst, for_lst[1:], wanted) def combinations(my_lst): if my_lst: sonuc = combinations(my_lst[:-1]) wanted = sonuc + creating_lst(my_lst, sonuc) return wanted else: return [[]] def comb_control1(my_lst, i=None, wanted=None): if i == len(combinations(my_lst)): return wanted if i == None: i = 0 if wanted == None: wanted = [] if control1(combinations(my_lst)[i]): wanted.append(combinations(my_lst)[i]) else: pass i += 1 return comb_control1(my_lst, i, wanted) def comb_control2(my_lst, i=None, wanted=None): if i == len(combinations(my_lst)): return wanted if i == None: i = 0 if wanted == None: wanted = [] if control2(combinations(my_lst)[i]): wanted.append(combinations(my_lst)[i]) else: pass i += 1 return comb_control2(my_lst, i, wanted) def comb_control3(my_lst, i=None, wanted=None): if i == len(combinations(my_lst)): return wanted if i == None: i = 0 if wanted == None: wanted = [] if control3(combinations(my_lst)[i]): wanted.append(combinations(my_lst)[i]) else: pass i += 1 return comb_control3(my_lst, i, wanted) def biggest_subset(my_lst, max=None, wanted_lst=None): if len(my_lst) == 0: return wanted_lst if max == None: max = 0 if wanted_lst == None: wanted_lst = [] if list_sum(my_values(my_lst[0])) > max: max = list_sum(my_values(my_lst[0])) wanted_lst = my_lst[0] else: pass return biggest_subset(my_lst[1:], max, wanted_lst) ideal_list1 = biggest_subset(comb_control1(ids)) ideal_list2 = biggest_subset(comb_control2(ids)) ideal_list3 = biggest_subset(comb_control3(ids)) sorted_output1 = [] sorted_output2 = [] sorted_output3 = [] while ideal_list1: my_min = ideal_list1[0] for evidence in ideal_list1: if int(evidence) < int(my_min): my_min = evidence sorted_output1.append(my_min) ideal_list1.remove(my_min) while ideal_list2: my_min = ideal_list2[0] for evidence in ideal_list2: if int(evidence) < int(my_min): my_min = evidence sorted_output2.append(my_min) ideal_list2.remove(my_min) while ideal_list3: my_min = ideal_list3[0] for evidence in ideal_list3: if int(evidence) < int(my_min): my_min = evidence sorted_output3.append(my_min) ideal_list3.remove(my_min) def _output1(my_lst): f1 = open('solution_part1.txt', 'w+') f1.write(str(list_sum(my_values(my_lst))) + '\n') for evidence in my_lst: f1.write(str(evidence) + ' ') f1.close() def _output2(my_lst): f2 = open('solution_part2.txt', 'w+') f2.write(str(list_sum(my_values(my_lst))) + '\n') for evidence in my_lst: f2.write(str(evidence) + ' ') f2.close() def _output3(my_lst): f3 = open('solution_part3.txt', 'w+') f3.write(str(list_sum(my_values(my_lst))) + '\n') for evidence in my_lst: f3.write(str(evidence) + ' ') f3.close() _output1(sorted_output1) _output2(sorted_output2) _output3(sorted_output3)
class Command: def exec(self, ob): met = getattr(self, "on"+type(ob).__name__) return met(ob) def onNode(self, a): pass def onConnection(self, a): pass def onGenome(self, a): pass
class Command: def exec(self, ob): met = getattr(self, 'on' + type(ob).__name__) return met(ob) def on_node(self, a): pass def on_connection(self, a): pass def on_genome(self, a): pass
__all__ = ['interpolation_slicing_default_param'] def interpolation_slicing_default_param(key): """ Returns the default parameters with the specified key. """ if key in default_parameters: return default_parameters[key] else: raise ValueError('The parameter with key : ' + str(key) + ' does not exist in the defaults of curved_slicing parameters. ') default_parameters = \ { # geodesics method 'target_LOW_geodesics_method': 'exact_igl', 'target_HIGH_geodesics_method': 'exact_igl', # union method for HIGH target # if all are false, then default 'min' method is used 'target_HIGH_smooth_union': [False, [10.0]], # blend radius 'target_HIGH_chamfer_union': [False, [100.0]], # size 'target_HIGH_stairs_union': [False, [80.0, 3]], # size, n-1 number of peaks 'uneven_upper_targets_offset': 0, }
__all__ = ['interpolation_slicing_default_param'] def interpolation_slicing_default_param(key): """ Returns the default parameters with the specified key. """ if key in default_parameters: return default_parameters[key] else: raise value_error('The parameter with key : ' + str(key) + ' does not exist in the defaults of curved_slicing parameters. ') default_parameters = {'target_LOW_geodesics_method': 'exact_igl', 'target_HIGH_geodesics_method': 'exact_igl', 'target_HIGH_smooth_union': [False, [10.0]], 'target_HIGH_chamfer_union': [False, [100.0]], 'target_HIGH_stairs_union': [False, [80.0, 3]], 'uneven_upper_targets_offset': 0}
FILTER_ACTION_ON_CHOICES = ( ('entry', 'On Entry'), ('exit', 'On Exit'), ) FILTER_ACTION_TYPE_CHOICES = ( ('eml', 'Send Email Notification'), ('sms', 'Send SMS Notification'), ('slk', 'Send Slack Notification'), ('cus', 'Custom Action'), ('drv', 'Derive Stream Action'), ('rpt', 'Report Generation Action'), ('smry', 'Summary Report Generation Action'), )
filter_action_on_choices = (('entry', 'On Entry'), ('exit', 'On Exit')) filter_action_type_choices = (('eml', 'Send Email Notification'), ('sms', 'Send SMS Notification'), ('slk', 'Send Slack Notification'), ('cus', 'Custom Action'), ('drv', 'Derive Stream Action'), ('rpt', 'Report Generation Action'), ('smry', 'Summary Report Generation Action'))
# countup.py # http://asu-compmethodsphysics-phy494.github.io/ASU-PHY494//2017/01/19/03_Introduction_to_Python_2/#the-while-loop tmax = 10. t, dt = 0, 2. while t <= tmax: print("time " + str(t)) t += dt print("Finished")
tmax = 10.0 (t, dt) = (0, 2.0) while t <= tmax: print('time ' + str(t)) t += dt print('Finished')
wordList = ['quail'] def isValidWord(word, hand, wordList): """ Returns True if word is in the wordList and is entirely composed of letters in the hand. Otherwise, returns False. Does not mutate hand or wordList. word: string hand: dictionary (string -> int) wordList: list of lowercase strings """ if len(word) == 0: return False for letter in word: if word.count(letter) > hand.get(letter, 0) or word not in wordList: return False return True hand = {'a':1, 'q':1, 'l':2, 'm':1, 'u':1, 'i':1} print(isValidWord('quail', hand, wordList))
word_list = ['quail'] def is_valid_word(word, hand, wordList): """ Returns True if word is in the wordList and is entirely composed of letters in the hand. Otherwise, returns False. Does not mutate hand or wordList. word: string hand: dictionary (string -> int) wordList: list of lowercase strings """ if len(word) == 0: return False for letter in word: if word.count(letter) > hand.get(letter, 0) or word not in wordList: return False return True hand = {'a': 1, 'q': 1, 'l': 2, 'm': 1, 'u': 1, 'i': 1} print(is_valid_word('quail', hand, wordList))
def func1(): """ ## Create a QA Task To reach the tasks and assignments repositories go to <a href="https://sdk-docs.dataloop.ai/en/latest/repositories.html#module-dtlpy.repositories.tasks" target="_blank">tasks</a> and <a href="https://sdk-docs.dataloop.ai/en/latest/repositories.html#module-dtlpy.repositories.assignments" target="_blank">assignments</a>. To reach the tasks and assignments entities go to <a href="https://sdk-docs.dataloop.ai/en/latest/entities.html#module-dtlpy.entities.task" target="_blank">tasks</a> and <a href="https://sdk-docs.dataloop.ai/en/latest/entities.html#module-dtlpy.entities.assignment" target="_blank">assignments</a>. In Dataloop there are two ways to create a QA task: 1. You can create a QA task from the annotation task. This will collect all completed Items and create a QA Task. 2. You can create a standalone QA task. ### QA task from the annotation task #### prep """ def func2(): """ #### 2. Create a QA Task This action will collect all completed Items and create a QA Task under the annotation task. <div style="background-color: lightblue; color: black; width: 50%; padding: 10px; border-radius: 15px 5px 5px 5px;"><b>Note</b><br> Adding filters is <b>optional</b>. Learn all about filters <a href="https://dataloop.ai/docs/sdk-sort-filter" target="_blank">here</a>.</div> """ def func3(): """ ### A standalone QA task #### prep """ def func4(): """ #### 2. Add filter by directory <div style="background-color: lightblue; color: black; width: 50%; padding: 10px; border-radius: 15px 5px 5px 5px;"><b>Note</b><br> Adding filters is <b>optional</b>. Learn all about filters <a href="https://dataloop.ai/docs/sdk-sort-filter" target="_blank">here</a>.</div> """ def func5(): """ ### Create a QA Task This action will collect all items on the folder and create a QA Task from them. """
def func1(): """ ## Create a QA Task To reach the tasks and assignments repositories go to <a href="https://sdk-docs.dataloop.ai/en/latest/repositories.html#module-dtlpy.repositories.tasks" target="_blank">tasks</a> and <a href="https://sdk-docs.dataloop.ai/en/latest/repositories.html#module-dtlpy.repositories.assignments" target="_blank">assignments</a>. To reach the tasks and assignments entities go to <a href="https://sdk-docs.dataloop.ai/en/latest/entities.html#module-dtlpy.entities.task" target="_blank">tasks</a> and <a href="https://sdk-docs.dataloop.ai/en/latest/entities.html#module-dtlpy.entities.assignment" target="_blank">assignments</a>. In Dataloop there are two ways to create a QA task: 1. You can create a QA task from the annotation task. This will collect all completed Items and create a QA Task. 2. You can create a standalone QA task. ### QA task from the annotation task #### prep """ def func2(): """ #### 2. Create a QA Task This action will collect all completed Items and create a QA Task under the annotation task. <div style="background-color: lightblue; color: black; width: 50%; padding: 10px; border-radius: 15px 5px 5px 5px;"><b>Note</b><br> Adding filters is <b>optional</b>. Learn all about filters <a href="https://dataloop.ai/docs/sdk-sort-filter" target="_blank">here</a>.</div> """ def func3(): """ ### A standalone QA task #### prep """ def func4(): """ #### 2. Add filter by directory <div style="background-color: lightblue; color: black; width: 50%; padding: 10px; border-radius: 15px 5px 5px 5px;"><b>Note</b><br> Adding filters is <b>optional</b>. Learn all about filters <a href="https://dataloop.ai/docs/sdk-sort-filter" target="_blank">here</a>.</div> """ def func5(): """ ### Create a QA Task This action will collect all items on the folder and create a QA Task from them. """
# https://leetcode.com/problems/partition-array-into-three-parts-with-equal-sum/ # Easy (47.22%) # Total Accepted: 2,951 # Total Submissions: 6,250 # beats 100.0% of python submissions class Solution(object): def canThreePartsEqualSum(self, A): """ :type A: List[int] :rtype: bool """ s = sum(A) if s % 3 != 0: return False target = s / 3 cur_s, p = 0, 0 for idx, n in enumerate(A): cur_s += n if cur_s == target: cur_s = 0 p += 1 if p == 2: return True if sum(A[idx+1:]) == target else False return False
class Solution(object): def can_three_parts_equal_sum(self, A): """ :type A: List[int] :rtype: bool """ s = sum(A) if s % 3 != 0: return False target = s / 3 (cur_s, p) = (0, 0) for (idx, n) in enumerate(A): cur_s += n if cur_s == target: cur_s = 0 p += 1 if p == 2: return True if sum(A[idx + 1:]) == target else False return False
''' Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Created on Apr 9, 2014 @author: dfleck ''' class MessageCache(list): ''' Holds a list of tuples (envelope, message) ''' def __contains__(self, otherEnvelope): #print("\n-- Message Cache Check -- ") for value in self: (envelope, message) = value #print("MessageCache comparing: [%s][%s]" % (otherEnvelope['msgID'], envelope['msgID'])) if envelope['msgID'] == otherEnvelope['msgID']: #print("Message Cache: TRUE\n -- ") return True #print("Message Cache: FALSE\n -- ") return False
""" Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Created on Apr 9, 2014 @author: dfleck """ class Messagecache(list): """ Holds a list of tuples (envelope, message) """ def __contains__(self, otherEnvelope): for value in self: (envelope, message) = value if envelope['msgID'] == otherEnvelope['msgID']: return True return False
class Request: def __init__(self): self.timeout = 5000 def get_params(self): return {} def get_body(self): return {}
class Request: def __init__(self): self.timeout = 5000 def get_params(self): return {} def get_body(self): return {}
a = ['a', 'b', 'c', 'd'] print("This is a list", a) print("It is", len(a), "elements length.") print("Let's check if element 'd' is in the list:", 'd' in a) print("This should be the maximun value of the list", max(a)) print("This should be the minnimun value of the list", min(a)) print("This is a list, item by item: ", end=' ') for item in a: print(item, end=' ') print("\r\nThis is the first element of the list: ", a[0]) a.remove('b') print("This is the list after removing the 'b' ", a) del a[0] print("This is the list after removing the first element", a)
a = ['a', 'b', 'c', 'd'] print('This is a list', a) print('It is', len(a), 'elements length.') print("Let's check if element 'd' is in the list:", 'd' in a) print('This should be the maximun value of the list', max(a)) print('This should be the minnimun value of the list', min(a)) print('This is a list, item by item: ', end=' ') for item in a: print(item, end=' ') print('\r\nThis is the first element of the list: ', a[0]) a.remove('b') print("This is the list after removing the 'b' ", a) del a[0] print('This is the list after removing the first element', a)
def soft_update_network(target, source, tau): for target_param, source_param in zip(target.parameters(), source.parameters()): target_param.data.copy_( target_param.data * (1 - tau) + source_param.data * tau ) def hard_update_network(target, source): target.load_state_dict(source.state_dict())
def soft_update_network(target, source, tau): for (target_param, source_param) in zip(target.parameters(), source.parameters()): target_param.data.copy_(target_param.data * (1 - tau) + source_param.data * tau) def hard_update_network(target, source): target.load_state_dict(source.state_dict())
class PropertyError(Exception): """Represents game property error.""" pass
class Propertyerror(Exception): """Represents game property error.""" pass
words = { 'i': 520, 'am': 100, 'batman': 20, 'hello': 100 } # iterate over keys # for key in words.keys(): # print(key) # for key in words: # print(key) # iterate over values # words_keys = words.keys() # print(words_keys) # words_values = words.values() # print(words_values) # for value in words.values(): # print(value) # print(list(map(str, words.values()))) # iterate over items for key, value in words.items(): print(key, value)
words = {'i': 520, 'am': 100, 'batman': 20, 'hello': 100} for (key, value) in words.items(): print(key, value)
SECRET = "very secret key" DEBUG = False LOG_FILE = "log" LOG_FORMAT = ''' Message type: %(levelname)s Location: %(pathname)s:%(lineno)d Module: %(module)s Function: %(funcName)s Time: %(asctime)s Message: %(message)s ''' SENDGRID_APIKEY = "BLAABLAA" RECEIPTS_FOLDER = '/tmp/' TMP_FOLDER = '/tmp/' SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/dev.db' SQLALCHEMY_TRACK_MODIFICATIONS = False
secret = 'very secret key' debug = False log_file = 'log' log_format = '\nMessage type: %(levelname)s\nLocation: %(pathname)s:%(lineno)d\nModule: %(module)s\nFunction: %(funcName)s\nTime: %(asctime)s\n\nMessage:\n\n%(message)s\n' sendgrid_apikey = 'BLAABLAA' receipts_folder = '/tmp/' tmp_folder = '/tmp/' sqlalchemy_database_uri = 'sqlite:////tmp/dev.db' sqlalchemy_track_modifications = False
CONTAINERS_DISCOVERY_LOCK_KEY = 'containers_discovery.lock' CONTAINERS_DISCOVERY_LAST_UPDATE_KEY = 'containers_discovery.last_update' CONTAINERS_DISCOVERY_DATA_KEY = 'containers_discovery.data' RESOURCES_DISCOVERY_LOCK_KEY = 'resources_discovery.lock' RESOURCES_DISCOVERY_LAST_UPDATE_KEY = 'resources_discovery.last_update' RESOURCES_DISCOVERY_DATA_KEY = 'resources_discovery.data'
containers_discovery_lock_key = 'containers_discovery.lock' containers_discovery_last_update_key = 'containers_discovery.last_update' containers_discovery_data_key = 'containers_discovery.data' resources_discovery_lock_key = 'resources_discovery.lock' resources_discovery_last_update_key = 'resources_discovery.last_update' resources_discovery_data_key = 'resources_discovery.data'
def assert_revision(revision, author=None, message=None): """Asserts values of the given fields in the provided revision. :param revision: The revision to validate :param author: that must be present in the ``revision`` :param message: message substring that must be present in ``revision`` """ if author: assert author == revision.author if message: assert message in revision.message
def assert_revision(revision, author=None, message=None): """Asserts values of the given fields in the provided revision. :param revision: The revision to validate :param author: that must be present in the ``revision`` :param message: message substring that must be present in ``revision`` """ if author: assert author == revision.author if message: assert message in revision.message
class ScraperFactoryException(Exception): pass class SpiderNotFoundError(ScraperFactoryException): pass class InvalidUrlError(ScraperFactoryException): pass
class Scraperfactoryexception(Exception): pass class Spidernotfounderror(ScraperFactoryException): pass class Invalidurlerror(ScraperFactoryException): pass
"""Functions for calculating biomass from TCH of canopy height models""" def longo2016_acd(top_of_canopy_height: float) -> float: """ Convert `top_of_canopy_height` (tch) to biomass according to the formula in Longo et al. 2016. Source: https://agupubs.onlinelibrary.wiley.com/action/downloadSupplement? doi=10.1002%2F2016GB005465&file=gbc20478-sup-0001-supplementary.pdf Note: The original formula is in units of kgC/m2. We therefore multiply the result by 10 to get the ACD values in MgC/ha Args: top_of_canopy_height (float): Top of canopy height in meters (meant to work with mean TCH at 50x50m resolution as that is what was used in the creation of the formula) Returns: float: Above ground carbon density in MgC/ha. """ # Note: ACD units are in MgC/ha (hence multiplication by 10). To get units in # kgC/ha, remove multiplication by 10 return 10 * 0.054 * top_of_canopy_height ** 1.76 def asner2014_acd(top_of_canopy_height: float) -> float: """ Convert `top_of_canopy_height` (tch) to biomass according to the general ACD formula in Asner & Mascaro 2014. Source: https://www.sciencedirect.com/science/article/pii/S003442571300360X Args: top_of_canopy_height (float): Top of canopy height in meters (meant to work with mean TCH at 50x50m resolution as that is what was used in the creation of the formula) Returns: float: Above ground carbon density in MgC/ha. """ # Note: native ACD unit of formula is MgC/ha. To convert to # kgC/m2, divide by 10. return 6.8500 * top_of_canopy_height ** 0.9520 def asner2014_colombia_acd(top_of_canopy_height: float) -> float: """ Convert `top_of_canopy_height` (tch) to biomass according to the Colombia ACD formula in Asner & Mascaro 2014. Source: https://www.sciencedirect.com/science/article/pii/S003442571300360X Args: top_of_canopy_height (float): Top of canopy height in meters (meant to work with mean TCH at 50x50m resolution as that is what was used in the creation of the formula) Returns: float: Above ground carbon density in MgC/ha. """ # Note: native ACD unit of formula is MgC/ha. To convert to # kgC/m2, divide by 10. return 2.1011 * top_of_canopy_height ** 1.2682
"""Functions for calculating biomass from TCH of canopy height models""" def longo2016_acd(top_of_canopy_height: float) -> float: """ Convert `top_of_canopy_height` (tch) to biomass according to the formula in Longo et al. 2016. Source: https://agupubs.onlinelibrary.wiley.com/action/downloadSupplement? doi=10.1002%2F2016GB005465&file=gbc20478-sup-0001-supplementary.pdf Note: The original formula is in units of kgC/m2. We therefore multiply the result by 10 to get the ACD values in MgC/ha Args: top_of_canopy_height (float): Top of canopy height in meters (meant to work with mean TCH at 50x50m resolution as that is what was used in the creation of the formula) Returns: float: Above ground carbon density in MgC/ha. """ return 10 * 0.054 * top_of_canopy_height ** 1.76 def asner2014_acd(top_of_canopy_height: float) -> float: """ Convert `top_of_canopy_height` (tch) to biomass according to the general ACD formula in Asner & Mascaro 2014. Source: https://www.sciencedirect.com/science/article/pii/S003442571300360X Args: top_of_canopy_height (float): Top of canopy height in meters (meant to work with mean TCH at 50x50m resolution as that is what was used in the creation of the formula) Returns: float: Above ground carbon density in MgC/ha. """ return 6.85 * top_of_canopy_height ** 0.952 def asner2014_colombia_acd(top_of_canopy_height: float) -> float: """ Convert `top_of_canopy_height` (tch) to biomass according to the Colombia ACD formula in Asner & Mascaro 2014. Source: https://www.sciencedirect.com/science/article/pii/S003442571300360X Args: top_of_canopy_height (float): Top of canopy height in meters (meant to work with mean TCH at 50x50m resolution as that is what was used in the creation of the formula) Returns: float: Above ground carbon density in MgC/ha. """ return 2.1011 * top_of_canopy_height ** 1.2682
class Solution: def findRelativeRanks(self, score: List[int]) -> List[str]: sorted_score = sorted(score,reverse=True) rankings = {} for i in range(len(sorted_score)): if i == 0: rankings[sorted_score[i]] = 'Gold Medal' elif i == 1: rankings[sorted_score[i]] = 'Silver Medal' elif i == 2: rankings[sorted_score[i]] = 'Bronze Medal' else: rankings[sorted_score[i]] = str(i+1) return [rankings[points] for points in score]
class Solution: def find_relative_ranks(self, score: List[int]) -> List[str]: sorted_score = sorted(score, reverse=True) rankings = {} for i in range(len(sorted_score)): if i == 0: rankings[sorted_score[i]] = 'Gold Medal' elif i == 1: rankings[sorted_score[i]] = 'Silver Medal' elif i == 2: rankings[sorted_score[i]] = 'Bronze Medal' else: rankings[sorted_score[i]] = str(i + 1) return [rankings[points] for points in score]