content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#lab1 ex2 print('Please insert Your name, surname and year of birth:') a = input() b = a.split() name = b[0] surname = b[1] year_of_birth = b[2] print(surname, year_of_birth, name)
print('Please insert Your name, surname and year of birth:') a = input() b = a.split() name = b[0] surname = b[1] year_of_birth = b[2] print(surname, year_of_birth, name)
class HTML_Icon(): HTML_Icon_Color_Default_Display='inline' HTML_Icon_Color_Default_Show='blue' HTML_Icon_Color_Default_Hide='grey' HTML_Icon_Size_Default=0 HTML_Icon_Sizes=[ '', 'fa-lg', 'fa-2x', 'fa-xs','fa-sm', 'fa-3x','fa-5x','fa-7x','fa-10x', ] ##! ##! ##! def HTML_Icon(self,icon,color=None,size=None,options=None,style=None): if (options==None): options={} if (style==None): style={} if (options.has_key("style")): style.update(options[ "style" ]) return self.XML_Tags( "I","", self.HTML_Icon_Options(icon,color,size,options,style) ) ##! ##! ##! def HTML_Icon_Options(self,icon,color,size,options,style): if (not options.has_key("class")): options[ "class" ]=[] options[ "class" ]=options[ "class" ]+self.HTML_Icon_Classes(icon,color,size,options,style) options[ "style" ]=self.HTML_Icon_Style(icon,color,size,options,style) return options ##! ##! ##! def HTML_Icon_Classes(self,icon,color,size,options,style): return [ icon, self.HTML_Icon_Size(icon,color,size,options,style), "nowrap" ] ##! ##! ##! def HTML_Icon_Size(self,icon,color,size,options,style): if (size==None): size=self.HTML_Icon_Size_Default if (isinstance(size, int)): size=self.HTML_Icon_Sizes[ size ] return size ##! ##! ##! def HTML_Icon_Style(self,icon,color,size,options,style): style[ "color" ]=self.HTML_Icon_Color(icon,color,size,options,style) style[ "background-color" ]="white" return style ##! ##! ##! def HTML_Icon_Color(self,icon,color,size,options,style): if (color==None): color=self.HTML_Icon_Color_Default_Show if (style.has_key("color")): color=style[ "color" ] return color
class Html_Icon: html__icon__color__default__display = 'inline' html__icon__color__default__show = 'blue' html__icon__color__default__hide = 'grey' html__icon__size__default = 0 html__icon__sizes = ['', 'fa-lg', 'fa-2x', 'fa-xs', 'fa-sm', 'fa-3x', 'fa-5x', 'fa-7x', 'fa-10x'] def html__icon(self, icon, color=None, size=None, options=None, style=None): if options == None: options = {} if style == None: style = {} if options.has_key('style'): style.update(options['style']) return self.XML_Tags('I', '', self.HTML_Icon_Options(icon, color, size, options, style)) def html__icon__options(self, icon, color, size, options, style): if not options.has_key('class'): options['class'] = [] options['class'] = options['class'] + self.HTML_Icon_Classes(icon, color, size, options, style) options['style'] = self.HTML_Icon_Style(icon, color, size, options, style) return options def html__icon__classes(self, icon, color, size, options, style): return [icon, self.HTML_Icon_Size(icon, color, size, options, style), 'nowrap'] def html__icon__size(self, icon, color, size, options, style): if size == None: size = self.HTML_Icon_Size_Default if isinstance(size, int): size = self.HTML_Icon_Sizes[size] return size def html__icon__style(self, icon, color, size, options, style): style['color'] = self.HTML_Icon_Color(icon, color, size, options, style) style['background-color'] = 'white' return style def html__icon__color(self, icon, color, size, options, style): if color == None: color = self.HTML_Icon_Color_Default_Show if style.has_key('color'): color = style['color'] return color
''' A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null. Construct a deep copy of the list. The deep copy should consist of exactly n brand new nodes, where each new node has its value set to the value of its corresponding original node. Both the next and random pointer of the new nodes should point to new nodes in the copied list such that the pointers in the original list and copied list represent the same list state. None of the pointers in the new list should point to nodes in the original list. For example, if there are two nodes X and Y in the original list, where X.random --> Y, then for the corresponding two nodes x and y in the copied list, x.random --> y. Return the head of the copied linked list. The linked list is represented in the input/output as a list of n nodes. Each node is represented as a pair of [val, random_index] where: val: an integer representing Node.val random_index: the index of the node (range from 0 to n-1) that the random pointer points to, or null if it does not point to any node. Your code will only be given the head of the original linked list. Example 1: Input: head = [[7,null],[13,0],[11,4],[10,2],[1,0]] Output: [[7,null],[13,0],[11,4],[10,2],[1,0]] Example 2: Input: head = [[1,1],[2,1]] Output: [[1,1],[2,1]] Example 3: Input: head = [[3,null],[3,0],[3,null]] Output: [[3,null],[3,0],[3,null]] ''' class Solution(object): def __init__(self): # Creating a visited dictionary to hold old node reference as "key" and new node reference as the "value" self.visited = {} def getClonedNode(self, node): # If node exists then if node: # Check if its in the visited dictionary if node in self.visited: # If its in the visited dictionary then return the new node reference from the dictionary return self.visited[node] else: # Otherwise create a new node, save the reference in the visited dictionary and return it. self.visited[node] = Node(node.val, None, None) return self.visited[node] return None def copyRandomList(self, head): """ :type head: Node :rtype: Node """ if not head: return head old_node = head # Creating the new head node. new_node = Node(old_node.val, None, None) self.visited[old_node] = new_node # Iterate on the linked list until all nodes are cloned. while old_node != None: # Get the clones of the nodes referenced by random and next pointers. new_node.random = self.getClonedNode(old_node.random) new_node.next = self.getClonedNode(old_node.next) # Move one step ahead in the linked list. old_node = old_node.next new_node = new_node.next return self.visited[head]
""" A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null. Construct a deep copy of the list. The deep copy should consist of exactly n brand new nodes, where each new node has its value set to the value of its corresponding original node. Both the next and random pointer of the new nodes should point to new nodes in the copied list such that the pointers in the original list and copied list represent the same list state. None of the pointers in the new list should point to nodes in the original list. For example, if there are two nodes X and Y in the original list, where X.random --> Y, then for the corresponding two nodes x and y in the copied list, x.random --> y. Return the head of the copied linked list. The linked list is represented in the input/output as a list of n nodes. Each node is represented as a pair of [val, random_index] where: val: an integer representing Node.val random_index: the index of the node (range from 0 to n-1) that the random pointer points to, or null if it does not point to any node. Your code will only be given the head of the original linked list. Example 1: Input: head = [[7,null],[13,0],[11,4],[10,2],[1,0]] Output: [[7,null],[13,0],[11,4],[10,2],[1,0]] Example 2: Input: head = [[1,1],[2,1]] Output: [[1,1],[2,1]] Example 3: Input: head = [[3,null],[3,0],[3,null]] Output: [[3,null],[3,0],[3,null]] """ class Solution(object): def __init__(self): self.visited = {} def get_cloned_node(self, node): if node: if node in self.visited: return self.visited[node] else: self.visited[node] = node(node.val, None, None) return self.visited[node] return None def copy_random_list(self, head): """ :type head: Node :rtype: Node """ if not head: return head old_node = head new_node = node(old_node.val, None, None) self.visited[old_node] = new_node while old_node != None: new_node.random = self.getClonedNode(old_node.random) new_node.next = self.getClonedNode(old_node.next) old_node = old_node.next new_node = new_node.next return self.visited[head]
# logic: # a function which would accept a number #the number would be tried agains all the positive numbers less than itself excpet 0 wo see if it is a prime number #the result would be returned def prime(number): divi=[ i for i in range(1,number) if number%i==0] if number==1: return print('the number is not prime') if divi.__len__()>2: print('the number is not prime') else: print("the number is prime") prime(1381)
def prime(number): divi = [i for i in range(1, number) if number % i == 0] if number == 1: return print('the number is not prime') if divi.__len__() > 2: print('the number is not prime') else: print('the number is prime') prime(1381)
def stop(): pass class Load(): def __init__(self, chan): self.channel = chan.channel self.all_channels = chan.owner.channels self.botnick = chan.botnick self.sendmsg = chan.sendmsg self.name = "broadcast" def run(self, ircmsg): if ircmsg.lower().find(self.channel) != -1 and ircmsg.lower().find(self.botnick) != -1: if ircmsg.lower().find("broadcast") != -1: try: msg = ircmsg.split("broadcast")[1] for channel in self.all_channels: channel.sendmsg(msg) finally: return True def __del__(self): pass
def stop(): pass class Load: def __init__(self, chan): self.channel = chan.channel self.all_channels = chan.owner.channels self.botnick = chan.botnick self.sendmsg = chan.sendmsg self.name = 'broadcast' def run(self, ircmsg): if ircmsg.lower().find(self.channel) != -1 and ircmsg.lower().find(self.botnick) != -1: if ircmsg.lower().find('broadcast') != -1: try: msg = ircmsg.split('broadcast')[1] for channel in self.all_channels: channel.sendmsg(msg) finally: return True def __del__(self): pass
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: longest, current = "", "" for j in range(len(s)): i = current.find(s[j]) if i >= 0: current = current[i + 1:] current += s[j] if len(longest) < len(current): longest = current[0:len(current)] print(longest, current) return len(longest) sol = Solution() # sin = "abcabcbb" sin = "pwwkew" print(sol.lengthOfLongestSubstring(sin))
class Solution: def length_of_longest_substring(self, s: str) -> int: (longest, current) = ('', '') for j in range(len(s)): i = current.find(s[j]) if i >= 0: current = current[i + 1:] current += s[j] if len(longest) < len(current): longest = current[0:len(current)] print(longest, current) return len(longest) sol = solution() sin = 'pwwkew' print(sol.lengthOfLongestSubstring(sin))
"""ex097 - Um print especial Faca um programa que tenha uma funcao chamada escreva(), que receba um texto qualquer como parametro e mostre uma mensagem com tamanho adaptavel. Ex: escreva("Ola, Mundo!") saida: ~~~~~~~~~~~~~~ Ola, Mundo! ~~~~~~~~~~~~~~""" def escreva(msg): tam = len(msg) + 4 print("~" * tam) print(f" {msg}") print("~" * tam) # PROGRAMA PRINCIPAL escreva("Jeffer Marcelino") escreva("Curso de Python no Youtube") escreva("CeV")
"""ex097 - Um print especial Faca um programa que tenha uma funcao chamada escreva(), que receba um texto qualquer como parametro e mostre uma mensagem com tamanho adaptavel. Ex: escreva("Ola, Mundo!") saida: ~~~~~~~~~~~~~~ Ola, Mundo! ~~~~~~~~~~~~~~""" def escreva(msg): tam = len(msg) + 4 print('~' * tam) print(f' {msg}') print('~' * tam) escreva('Jeffer Marcelino') escreva('Curso de Python no Youtube') escreva('CeV')
''' .. _snippets-pythonapi-metadata: Python API: Managing Metadata ============================= This is the tested source code for the snippets used in :ref:`pythonapi-metadata`. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. Setup ----- .. code-block:: python >>> import datafs >>> from fs.tempfs import TempFS We test with the following setup: .. code-block:: python >>> api = datafs.get_api( ... config_file='examples/snippets/resources/datafs_mongo.yml') ... This assumes that you have a config file at the above location. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. clean up any previous test failures .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except (KeyError, OSError): ... pass ... >>> try: ... api.manager.delete_table('DataFiles') ... except KeyError: ... pass ... Add a fresh manager table: .. code-block:: python >>> api.manager.create_archive_table('DataFiles') Example 1 --------- Displayed example 1 code .. EXAMPLE-BLOCK-1-START .. code-block:: python >>> sample_archive = api.create( ... 'sample_archive', ... metadata = { ... 'oneline_description': 'tas by admin region', ... 'source': 'NASA BCSD', ... 'notes': 'important note'}) ... .. EXAMPLE-BLOCK-1-END Example 2 --------- Displayed example 2 code .. EXAMPLE-BLOCK-2-START .. code-block:: python >>> for archive_name in api.filter(): ... print(archive_name) ... sample_archive .. EXAMPLE-BLOCK-2-END Example 3 --------- Displayed example 3 code .. EXAMPLE-BLOCK-3-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NASA BCSD'} .. EXAMPLE-BLOCK-3-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NASA BCSD'} ... True Example 4 --------- Displayed example 4 code .. EXAMPLE-BLOCK-4-START .. code-block:: python >>> sample_archive.update_metadata(dict( ... source='NOAAs better temp data', ... related_links='http://wwww.noaa.gov')) ... .. EXAMPLE-BLOCK-4-END Example 5 --------- Displayed example 5 code .. EXAMPLE-BLOCK-5-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data', u'related_links': u'http://wwww.no aa.gov'} .. EXAMPLE-BLOCK-5-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data', ... u'related_links': u'http://wwww.noaa.gov'} ... True Example 6 --------- Displayed example 6 code .. EXAMPLE-BLOCK-6-START .. code-block:: python >>> sample_archive.update_metadata(dict(related_links=None)) >>> >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data'} .. EXAMPLE-BLOCK-6-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data'} ... True Teardown -------- .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except KeyError: ... pass ... >>> api.manager.delete_table('DataFiles') '''
""" .. _snippets-pythonapi-metadata: Python API: Managing Metadata ============================= This is the tested source code for the snippets used in :ref:`pythonapi-metadata`. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. Setup ----- .. code-block:: python >>> import datafs >>> from fs.tempfs import TempFS We test with the following setup: .. code-block:: python >>> api = datafs.get_api( ... config_file='examples/snippets/resources/datafs_mongo.yml') ... This assumes that you have a config file at the above location. The config file we're using in this example can be downloaded :download:`here <../../examples/snippets/resources/datafs_mongo.yml>`. clean up any previous test failures .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except (KeyError, OSError): ... pass ... >>> try: ... api.manager.delete_table('DataFiles') ... except KeyError: ... pass ... Add a fresh manager table: .. code-block:: python >>> api.manager.create_archive_table('DataFiles') Example 1 --------- Displayed example 1 code .. EXAMPLE-BLOCK-1-START .. code-block:: python >>> sample_archive = api.create( ... 'sample_archive', ... metadata = { ... 'oneline_description': 'tas by admin region', ... 'source': 'NASA BCSD', ... 'notes': 'important note'}) ... .. EXAMPLE-BLOCK-1-END Example 2 --------- Displayed example 2 code .. EXAMPLE-BLOCK-2-START .. code-block:: python >>> for archive_name in api.filter(): ... print(archive_name) ... sample_archive .. EXAMPLE-BLOCK-2-END Example 3 --------- Displayed example 3 code .. EXAMPLE-BLOCK-3-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NASA BCSD'} .. EXAMPLE-BLOCK-3-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NASA BCSD'} ... True Example 4 --------- Displayed example 4 code .. EXAMPLE-BLOCK-4-START .. code-block:: python >>> sample_archive.update_metadata(dict( ... source='NOAAs better temp data', ... related_links='http://wwww.noaa.gov')) ... .. EXAMPLE-BLOCK-4-END Example 5 --------- Displayed example 5 code .. EXAMPLE-BLOCK-5-START .. code-block:: python >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data', u'related_links': u'http://wwww.no aa.gov'} .. EXAMPLE-BLOCK-5-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data', ... u'related_links': u'http://wwww.noaa.gov'} ... True Example 6 --------- Displayed example 6 code .. EXAMPLE-BLOCK-6-START .. code-block:: python >>> sample_archive.update_metadata(dict(related_links=None)) >>> >>> sample_archive.get_metadata() # doctest: +SKIP {u'notes': u'important note', u'oneline_description': u'tas by admin region ', u'source': u'NOAAs better temp data'} .. EXAMPLE-BLOCK-6-END The last line of this test cannot be tested directly (exact dictionary formatting is unstable), so is tested in a second block: .. code-block:: python >>> sample_archive.get_metadata() == { ... u'notes': u'important note', ... u'oneline_description': u'tas by admin region', ... u'source': u'NOAAs better temp data'} ... True Teardown -------- .. code-block:: python >>> try: ... api.delete_archive('sample_archive') ... except KeyError: ... pass ... >>> api.manager.delete_table('DataFiles') """
#!/usr/bin/env python # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. def debian_package_install(packages): """Jinja utility method for building debian-based package install command apt-get is not capable of installing .deb files from a URL and the template logic to construct a series of steps to install regular packages from apt repos as well as .deb files that need to be downloaded, manually installed, and cleaned up is complicated. This method will construct the proper string required to install all packages in a way that's a bit easier to follow. :param packages: a list of strings that are either packages to install from an apt repo, or URLs to .deb files :type packages: list :returns: string suitable to provide to RUN command in a Dockerfile that will install the given packages :rtype: string """ cmds = [] # divide the list into two groups, one for regular packages and one for # URL packages reg_packages, url_packages = [], [] for package in packages: if package.startswith('http'): url_packages.append(package) else: reg_packages.append(package) # handle the apt-get install if reg_packages: cmds.append('apt-get -y install --no-install-recommends {}'.format( ' '.join(reg_packages) )) cmds.append('apt-get clean') # handle URL packages for url in url_packages: # the path portion should be the file name name = url[url.rfind('/') + 1:] cmds.extend([ 'curl --location {} -o {}'.format(url, name), 'dpkg -i {}'.format(name), 'rm -rf {}'.format(name), ]) # return the list of commands return ' && '.join(cmds)
def debian_package_install(packages): """Jinja utility method for building debian-based package install command apt-get is not capable of installing .deb files from a URL and the template logic to construct a series of steps to install regular packages from apt repos as well as .deb files that need to be downloaded, manually installed, and cleaned up is complicated. This method will construct the proper string required to install all packages in a way that's a bit easier to follow. :param packages: a list of strings that are either packages to install from an apt repo, or URLs to .deb files :type packages: list :returns: string suitable to provide to RUN command in a Dockerfile that will install the given packages :rtype: string """ cmds = [] (reg_packages, url_packages) = ([], []) for package in packages: if package.startswith('http'): url_packages.append(package) else: reg_packages.append(package) if reg_packages: cmds.append('apt-get -y install --no-install-recommends {}'.format(' '.join(reg_packages))) cmds.append('apt-get clean') for url in url_packages: name = url[url.rfind('/') + 1:] cmds.extend(['curl --location {} -o {}'.format(url, name), 'dpkg -i {}'.format(name), 'rm -rf {}'.format(name)]) return ' && '.join(cmds)
"""Constants used by yggdrasil.""" # ====================================================== # Do not edit this file past this point as the following # is generated by yggdrasil.schema.update_constants # ====================================================== LANG2EXT = { 'R': '.R', 'c': '.c', 'c++': '.cpp', 'cpp': '.cpp', 'cxx': '.cpp', 'executable': '.exe', 'fortran': '.f90', 'lpy': '.lpy', 'matlab': '.m', 'osr': '.xml', 'python': '.py', 'r': '.R', 'sbml': '.xml', 'yaml': '.yml', } EXT2LANG = {v: k for k, v in LANG2EXT.items()} LANGUAGES = { 'compiled': [ 'c', 'c++', 'fortran'], 'interpreted': [ 'R', 'matlab', 'python'], 'build': [ 'cmake', 'make'], 'dsl': [ 'lpy', 'osr', 'sbml'], 'other': [ 'executable', 'function', 'timesync'], } LANGUAGES['all'] = ( LANGUAGES['compiled'] + LANGUAGES['interpreted'] + LANGUAGES['build'] + LANGUAGES['dsl'] + LANGUAGES['other']) LANGUAGES_WITH_ALIASES = { 'compiled': [ 'c', 'c++', 'cpp', 'cxx', 'fortran'], 'interpreted': [ 'R', 'r', 'matlab', 'python'], 'build': [ 'cmake', 'make'], 'dsl': [ 'lpy', 'osr', 'sbml'], 'other': [ 'executable', 'function', 'timesync'], } LANGUAGES_WITH_ALIASES['all'] = ( LANGUAGES_WITH_ALIASES['compiled'] + LANGUAGES_WITH_ALIASES['interpreted'] + LANGUAGES_WITH_ALIASES['build'] + LANGUAGES_WITH_ALIASES['dsl'] + LANGUAGES_WITH_ALIASES['other']) COMPILER_ENV_VARS = { 'c': { 'exec': 'CC', 'flags': 'CFLAGS', }, 'c++': { 'exec': 'CXX', 'flags': 'CXXFLAGS', }, 'fortran': { 'exec': 'FC', 'flags': 'FFLAGS', }, } COMPILATION_TOOL_VARS = { 'LIB': { 'exec': None, 'flags': None, }, 'LINK': { 'exec': 'LINK', 'flags': 'LDFLAGS', }, 'ar': { 'exec': 'AR', 'flags': None, }, 'cl': { 'exec': 'CC', 'flags': 'CFLAGS', }, 'cl++': { 'exec': 'CXX', 'flags': 'CXXFLAGS', }, 'clang': { 'exec': 'CC', 'flags': 'CFLAGS', }, 'clang++': { 'exec': 'CXX', 'flags': 'CXXFLAGS', }, 'cmake': { 'exec': None, 'flags': None, }, 'g++': { 'exec': 'CXX', 'flags': 'CXXFLAGS', }, 'gcc': { 'exec': 'CC', 'flags': 'CFLAGS', }, 'gfortran': { 'exec': 'FC', 'flags': 'FFLAGS', }, 'ld': { 'exec': 'LD', 'flags': 'LDFLAGS', }, 'libtool': { 'exec': 'LIBTOOL', 'flags': None, }, 'make': { 'exec': None, 'flags': None, }, 'nmake': { 'exec': None, 'flags': None, }, }
"""Constants used by yggdrasil.""" lang2_ext = {'R': '.R', 'c': '.c', 'c++': '.cpp', 'cpp': '.cpp', 'cxx': '.cpp', 'executable': '.exe', 'fortran': '.f90', 'lpy': '.lpy', 'matlab': '.m', 'osr': '.xml', 'python': '.py', 'r': '.R', 'sbml': '.xml', 'yaml': '.yml'} ext2_lang = {v: k for (k, v) in LANG2EXT.items()} languages = {'compiled': ['c', 'c++', 'fortran'], 'interpreted': ['R', 'matlab', 'python'], 'build': ['cmake', 'make'], 'dsl': ['lpy', 'osr', 'sbml'], 'other': ['executable', 'function', 'timesync']} LANGUAGES['all'] = LANGUAGES['compiled'] + LANGUAGES['interpreted'] + LANGUAGES['build'] + LANGUAGES['dsl'] + LANGUAGES['other'] languages_with_aliases = {'compiled': ['c', 'c++', 'cpp', 'cxx', 'fortran'], 'interpreted': ['R', 'r', 'matlab', 'python'], 'build': ['cmake', 'make'], 'dsl': ['lpy', 'osr', 'sbml'], 'other': ['executable', 'function', 'timesync']} LANGUAGES_WITH_ALIASES['all'] = LANGUAGES_WITH_ALIASES['compiled'] + LANGUAGES_WITH_ALIASES['interpreted'] + LANGUAGES_WITH_ALIASES['build'] + LANGUAGES_WITH_ALIASES['dsl'] + LANGUAGES_WITH_ALIASES['other'] compiler_env_vars = {'c': {'exec': 'CC', 'flags': 'CFLAGS'}, 'c++': {'exec': 'CXX', 'flags': 'CXXFLAGS'}, 'fortran': {'exec': 'FC', 'flags': 'FFLAGS'}} compilation_tool_vars = {'LIB': {'exec': None, 'flags': None}, 'LINK': {'exec': 'LINK', 'flags': 'LDFLAGS'}, 'ar': {'exec': 'AR', 'flags': None}, 'cl': {'exec': 'CC', 'flags': 'CFLAGS'}, 'cl++': {'exec': 'CXX', 'flags': 'CXXFLAGS'}, 'clang': {'exec': 'CC', 'flags': 'CFLAGS'}, 'clang++': {'exec': 'CXX', 'flags': 'CXXFLAGS'}, 'cmake': {'exec': None, 'flags': None}, 'g++': {'exec': 'CXX', 'flags': 'CXXFLAGS'}, 'gcc': {'exec': 'CC', 'flags': 'CFLAGS'}, 'gfortran': {'exec': 'FC', 'flags': 'FFLAGS'}, 'ld': {'exec': 'LD', 'flags': 'LDFLAGS'}, 'libtool': {'exec': 'LIBTOOL', 'flags': None}, 'make': {'exec': None, 'flags': None}, 'nmake': {'exec': None, 'flags': None}}
# # PySNMP MIB module NV-ATKK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NV-ATKK-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:25:52 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") iso, NotificationType, Counter32, Counter64, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, mib_2, ObjectIdentity, Gauge32, IpAddress, ModuleIdentity, MibIdentifier, Integer32, Bits, enterprises, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "NotificationType", "Counter32", "Counter64", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "mib-2", "ObjectIdentity", "Gauge32", "IpAddress", "ModuleIdentity", "MibIdentifier", "Integer32", "Bits", "enterprises", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 class BridgeId(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class Timeout(Integer32): pass c3716TR = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 3)) atiSystemConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 1)) atiSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 3)) atiSysSerialno = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: atiSysSerialno.setStatus('mandatory') if mibBuilder.loadTexts: atiSysSerialno.setDescription('Serial number.') atiSysTftpIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysTftpIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpIPAddress.setDescription('TFTP Server IP address.') atiSysTftpFilename = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysTftpFilename.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpFilename.setDescription('TFTP file name.') atiSysPowerupCount = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiSysPowerupCount.setStatus('mandatory') if mibBuilder.loadTexts: atiSysPowerupCount.setDescription('Powerup Count.') atiSysBrcastCutoffRate = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setStatus('mandatory') if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setDescription('Broadcast Cutoff Rate. (0..100000)') atiSysGatewayIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSysGatewayIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysGatewayIPAddress.setDescription('Gateway IP address.') atiPortTable = MibTable((1, 3, 6, 1, 4, 1, 207, 8, 3, 2), ) if mibBuilder.loadTexts: atiPortTable.setStatus('mandatory') if mibBuilder.loadTexts: atiPortTable.setDescription('The port setup table.') atiPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1), ).setIndexNames((0, "NV-ATKK-MIB", "atiPort")) if mibBuilder.loadTexts: atiPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: atiPortEntry.setDescription('The port setup entry.') atiPort = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPort.setStatus('mandatory') if mibBuilder.loadTexts: atiPort.setDescription('A number from 1 to number of ports on the switch.') atiPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortStatus.setDescription('Port status.') atiPortDuplexStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("half", 1), ("full", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortDuplexStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortDuplexStatus.setDescription('Port duplex status.') atiPortForwardedFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortForwardedFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortForwardedFrames.setDescription('Number of frames received on this port and forwarded to another port on the system module for processing.') atiPortRcvdLocalFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setDescription('Number of frames received where the destination is on this port.') atiSwitchIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchIPAddress.setDescription('Since bridges can now be accessed without an IP address, there needs to be a way to find out there addresses.') atiSwitchSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchSubnetMask.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSubnetMask.setDescription("The switch's submask.") atiActiveAgingTime = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiActiveAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiActiveAgingTime.setDescription('Active Aging Time.') atiPurgeAgingTime = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiPurgeAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiPurgeAgingTime.setDescription('Purge Aging Time.') atiSwitchSTPStatus = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchSTPStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSTPStatus.setDescription("The switch's Spanning Tree status, enter ON or OFF.") atiSwitchManager = MibScalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitchManager.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchManager.setDescription('The 1th SNMP Trap Destination.') atiSwitcTrapRcvr1 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setDescription('The 1th SNMP Trap Destination.') atiSwitcTrapRcvr2 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setDescription('The 2th SNMP Trap Destination.') atiSwitcTrapRcvr3 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setDescription('The 3th SNMP Trap Destination.') atiSwitcTrapRcvr4 = MibTableColumn((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setDescription('The 4th SNMP Trap Destination.') mibBuilder.exportSymbols("NV-ATKK-MIB", atiSysSerialno=atiSysSerialno, atiPortForwardedFrames=atiPortForwardedFrames, atiSwitcTrapRcvr2=atiSwitcTrapRcvr2, atiSwitchSubnetMask=atiSwitchSubnetMask, atiSwitchSTPStatus=atiSwitchSTPStatus, atiSwitch=atiSwitch, atiSwitchManager=atiSwitchManager, c3716TR=c3716TR, atiPortDuplexStatus=atiPortDuplexStatus, atiSwitcTrapRcvr1=atiSwitcTrapRcvr1, atiPortTable=atiPortTable, atiSwitchIPAddress=atiSwitchIPAddress, atiSwitcTrapRcvr4=atiSwitcTrapRcvr4, Timeout=Timeout, atiSysGatewayIPAddress=atiSysGatewayIPAddress, atiSwitcTrapRcvr3=atiSwitcTrapRcvr3, atiSysPowerupCount=atiSysPowerupCount, MacAddress=MacAddress, BridgeId=BridgeId, atiSysTftpIPAddress=atiSysTftpIPAddress, atiPortRcvdLocalFrames=atiPortRcvdLocalFrames, atiSysTftpFilename=atiSysTftpFilename, atiPortStatus=atiPortStatus, atiSysBrcastCutoffRate=atiSysBrcastCutoffRate, atiPurgeAgingTime=atiPurgeAgingTime, atiPortEntry=atiPortEntry, atiActiveAgingTime=atiActiveAgingTime, atiPort=atiPort, atiSystemConfig=atiSystemConfig)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (iso, notification_type, counter32, counter64, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, mib_2, object_identity, gauge32, ip_address, module_identity, mib_identifier, integer32, bits, enterprises, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'NotificationType', 'Counter32', 'Counter64', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'mib-2', 'ObjectIdentity', 'Gauge32', 'IpAddress', 'ModuleIdentity', 'MibIdentifier', 'Integer32', 'Bits', 'enterprises', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Macaddress(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 class Bridgeid(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Timeout(Integer32): pass c3716_tr = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 3)) ati_system_config = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 1)) ati_switch = mib_identifier((1, 3, 6, 1, 4, 1, 207, 8, 3, 3)) ati_sys_serialno = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: atiSysSerialno.setStatus('mandatory') if mibBuilder.loadTexts: atiSysSerialno.setDescription('Serial number.') ati_sys_tftp_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysTftpIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpIPAddress.setDescription('TFTP Server IP address.') ati_sys_tftp_filename = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysTftpFilename.setStatus('mandatory') if mibBuilder.loadTexts: atiSysTftpFilename.setDescription('TFTP file name.') ati_sys_powerup_count = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiSysPowerupCount.setStatus('mandatory') if mibBuilder.loadTexts: atiSysPowerupCount.setDescription('Powerup Count.') ati_sys_brcast_cutoff_rate = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setStatus('mandatory') if mibBuilder.loadTexts: atiSysBrcastCutoffRate.setDescription('Broadcast Cutoff Rate. (0..100000)') ati_sys_gateway_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 1, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSysGatewayIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSysGatewayIPAddress.setDescription('Gateway IP address.') ati_port_table = mib_table((1, 3, 6, 1, 4, 1, 207, 8, 3, 2)) if mibBuilder.loadTexts: atiPortTable.setStatus('mandatory') if mibBuilder.loadTexts: atiPortTable.setDescription('The port setup table.') ati_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1)).setIndexNames((0, 'NV-ATKK-MIB', 'atiPort')) if mibBuilder.loadTexts: atiPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: atiPortEntry.setDescription('The port setup entry.') ati_port = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPort.setStatus('mandatory') if mibBuilder.loadTexts: atiPort.setDescription('A number from 1 to number of ports on the switch.') ati_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortStatus.setDescription('Port status.') ati_port_duplex_status = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('half', 1), ('full', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortDuplexStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiPortDuplexStatus.setDescription('Port duplex status.') ati_port_forwarded_frames = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortForwardedFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortForwardedFrames.setDescription('Number of frames received on this port and forwarded to another port on the system module for processing.') ati_port_rcvd_local_frames = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setStatus('mandatory') if mibBuilder.loadTexts: atiPortRcvdLocalFrames.setDescription('Number of frames received where the destination is on this port.') ati_switch_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchIPAddress.setDescription('Since bridges can now be accessed without an IP address, there needs to be a way to find out there addresses.') ati_switch_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchSubnetMask.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSubnetMask.setDescription("The switch's submask.") ati_active_aging_time = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiActiveAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiActiveAgingTime.setDescription('Active Aging Time.') ati_purge_aging_time = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiPurgeAgingTime.setStatus('mandatory') if mibBuilder.loadTexts: atiPurgeAgingTime.setDescription('Purge Aging Time.') ati_switch_stp_status = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchSTPStatus.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchSTPStatus.setDescription("The switch's Spanning Tree status, enter ON or OFF.") ati_switch_manager = mib_scalar((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitchManager.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitchManager.setDescription('The 1th SNMP Trap Destination.') ati_switc_trap_rcvr1 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr1.setDescription('The 1th SNMP Trap Destination.') ati_switc_trap_rcvr2 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr2.setDescription('The 2th SNMP Trap Destination.') ati_switc_trap_rcvr3 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr3.setDescription('The 3th SNMP Trap Destination.') ati_switc_trap_rcvr4 = mib_table_column((1, 3, 6, 1, 4, 1, 207, 8, 3, 3, 6, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setStatus('mandatory') if mibBuilder.loadTexts: atiSwitcTrapRcvr4.setDescription('The 4th SNMP Trap Destination.') mibBuilder.exportSymbols('NV-ATKK-MIB', atiSysSerialno=atiSysSerialno, atiPortForwardedFrames=atiPortForwardedFrames, atiSwitcTrapRcvr2=atiSwitcTrapRcvr2, atiSwitchSubnetMask=atiSwitchSubnetMask, atiSwitchSTPStatus=atiSwitchSTPStatus, atiSwitch=atiSwitch, atiSwitchManager=atiSwitchManager, c3716TR=c3716TR, atiPortDuplexStatus=atiPortDuplexStatus, atiSwitcTrapRcvr1=atiSwitcTrapRcvr1, atiPortTable=atiPortTable, atiSwitchIPAddress=atiSwitchIPAddress, atiSwitcTrapRcvr4=atiSwitcTrapRcvr4, Timeout=Timeout, atiSysGatewayIPAddress=atiSysGatewayIPAddress, atiSwitcTrapRcvr3=atiSwitcTrapRcvr3, atiSysPowerupCount=atiSysPowerupCount, MacAddress=MacAddress, BridgeId=BridgeId, atiSysTftpIPAddress=atiSysTftpIPAddress, atiPortRcvdLocalFrames=atiPortRcvdLocalFrames, atiSysTftpFilename=atiSysTftpFilename, atiPortStatus=atiPortStatus, atiSysBrcastCutoffRate=atiSysBrcastCutoffRate, atiPurgeAgingTime=atiPurgeAgingTime, atiPortEntry=atiPortEntry, atiActiveAgingTime=atiActiveAgingTime, atiPort=atiPort, atiSystemConfig=atiSystemConfig)
# https://www.codewars.com/kata/521c2db8ddc89b9b7a0000c1/ ''' Instructions : Snail Sort Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise. array = [[1,2,3], [4,5,6], [7,8,9]] snail(array) #=> [1,2,3,6,9,8,7,4,5] For better understanding, please follow the numbers of the next array consecutively: array = [[1,2,3], [8,9,4], [7,6,5]] snail(array) #=> [1,2,3,4,5,6,7,8,9] This image will illustrate things more clearly: https://www.haan.lu/files/2513/8347/2456/snail.png NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern. NOTE 2: The 0x0 (empty matrix) is represented as en empty array inside an array [[]]. ''' def snail(matrix): res = [] if len(matrix) == 0: return res row_begin = 0 row_end = len(matrix) - 1 col_begin = 0 col_end = len(matrix[0]) - 1 while row_begin <= row_end and col_begin <= col_end: for i in range(col_begin, col_end+1): res.append(matrix[row_begin][i]) row_begin += 1 for i in range(row_begin, row_end+1): res.append(matrix[i][col_end]) col_end -= 1 if row_begin <= row_end: for i in range(col_end, col_begin-1, -1): res.append(matrix[row_end][i]) row_end -= 1 if col_begin <= col_end: for i in range(row_end, row_begin-1, -1): res.append(matrix[i][col_begin]) col_begin += 1 return res
""" Instructions : Snail Sort Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise. array = [[1,2,3], [4,5,6], [7,8,9]] snail(array) #=> [1,2,3,6,9,8,7,4,5] For better understanding, please follow the numbers of the next array consecutively: array = [[1,2,3], [8,9,4], [7,6,5]] snail(array) #=> [1,2,3,4,5,6,7,8,9] This image will illustrate things more clearly: https://www.haan.lu/files/2513/8347/2456/snail.png NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern. NOTE 2: The 0x0 (empty matrix) is represented as en empty array inside an array [[]]. """ def snail(matrix): res = [] if len(matrix) == 0: return res row_begin = 0 row_end = len(matrix) - 1 col_begin = 0 col_end = len(matrix[0]) - 1 while row_begin <= row_end and col_begin <= col_end: for i in range(col_begin, col_end + 1): res.append(matrix[row_begin][i]) row_begin += 1 for i in range(row_begin, row_end + 1): res.append(matrix[i][col_end]) col_end -= 1 if row_begin <= row_end: for i in range(col_end, col_begin - 1, -1): res.append(matrix[row_end][i]) row_end -= 1 if col_begin <= col_end: for i in range(row_end, row_begin - 1, -1): res.append(matrix[i][col_begin]) col_begin += 1 return res
command = '/home/slunk/code/racks_project/env/bin/gunicorn' pythonpath = '/home/slunk/code/racks_project/racks' bind = '127.0.0.1:8001' workers = 5 user = 'slunk' limit_request_fields = 32000 limit_request_field_size = 0 raw_enw = 'DJANGO_SETTINGS_MODULE=racks.settings'
command = '/home/slunk/code/racks_project/env/bin/gunicorn' pythonpath = '/home/slunk/code/racks_project/racks' bind = '127.0.0.1:8001' workers = 5 user = 'slunk' limit_request_fields = 32000 limit_request_field_size = 0 raw_enw = 'DJANGO_SETTINGS_MODULE=racks.settings'
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.204603, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.363393, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.11055, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.635775, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.10093, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.631416, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.36812, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.458173, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 7.7797, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.209808, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0230473, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.243032, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.170449, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.45284, 'Execution Unit/Register Files/Runtime Dynamic': 0.193497, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.643318, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.59116, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 4.92155, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00206893, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000798397, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00244852, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00927873, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.02299, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.163857, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.47197, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.556533, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.22463, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0733521, 'L2/Runtime Dynamic': 0.0149759, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.49788, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.53945, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.170198, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.170198, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.30486, 'Load Store Unit/Runtime Dynamic': 3.549, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.419679, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.839358, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.148946, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.15004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0773917, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.815992, 'Memory Management Unit/Runtime Dynamic': 0.227432, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 29.5043, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.731972, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.041318, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.317832, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.09112, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 11.0287, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0588041, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.248876, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.376591, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.287381, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.463534, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.233977, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.984892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.270943, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.9829, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0711461, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.012054, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.106781, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.089147, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.177927, 'Execution Unit/Register Files/Runtime Dynamic': 0.101201, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.239662, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.59396, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.33431, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00161558, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00063566, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.0012806, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0065629, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.016909, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0856993, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.45121, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.280368, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.291073, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.93428, 'Instruction Fetch Unit/Runtime Dynamic': 0.680612, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0327293, 'L2/Runtime Dynamic': 0.0134497, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.28732, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.01348, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.60054, 'Load Store Unit/Runtime Dynamic': 1.40692, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.163555, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.327111, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0580464, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0585369, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.338936, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0459651, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.594759, 'Memory Management Unit/Runtime Dynamic': 0.104502, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.7347, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.187153, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0152434, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.143713, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.34611, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.8859, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0543055, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.245343, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394195, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.260055, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.41946, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.211729, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.891244, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.236992, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.92342, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0744719, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0109079, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.095105, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0806705, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.169577, 'Execution Unit/Register Files/Runtime Dynamic': 0.0915784, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.213939, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.555101, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.18864, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00154949, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000617927, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00115884, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0061903, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0155103, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0775507, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.93289, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.227723, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.263397, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.3908, 'Instruction Fetch Unit/Runtime Dynamic': 0.590371, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0228357, 'L2/Runtime Dynamic': 0.00464711, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.6387, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.15404, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.0056, 'Load Store Unit/Runtime Dynamic': 1.61491, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.191587, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.383174, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.067995, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0683372, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.306709, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0373336, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.579621, 'Memory Management Unit/Runtime Dynamic': 0.105671, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.5118, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195901, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0141171, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.129012, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.33903, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.84328, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0623769, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.251682, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.337606, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.224582, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.362242, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.182848, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.769672, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.205098, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.81868, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0637809, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00941997, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0914408, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0696664, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.155222, 'Execution Unit/Register Files/Runtime Dynamic': 0.0790864, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.208238, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.526198, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.03202, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00115785, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000452173, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00100076, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00480069, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0124079, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0669721, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.26, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.200165, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.227468, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.68526, 'Instruction Fetch Unit/Runtime Dynamic': 0.511813, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0382461, 'L2/Runtime Dynamic': 0.0083586, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.12016, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.38594, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.56062, 'Load Store Unit/Runtime Dynamic': 1.9392, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.229996, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.459992, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0816263, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0822004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.264871, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0328147, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.5612, 'Memory Management Unit/Runtime Dynamic': 0.115015, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.2535, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.167778, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0121743, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.111723, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.291676, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.89808, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.7987100371612288, 'Runtime Dynamic': 1.7987100371612288, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.129484, 'Runtime Dynamic': 0.0800318, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 91.1337, 'Peak Power': 124.246, 'Runtime Dynamic': 25.736, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 91.0042, 'Total Cores/Runtime Dynamic': 25.656, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.129484, 'Total L3s/Runtime Dynamic': 0.0800318, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.204603, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.363393, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.11055, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.635775, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.10093, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.631416, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.36812, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.458173, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 7.7797, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.209808, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0230473, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.243032, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.170449, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.45284, 'Execution Unit/Register Files/Runtime Dynamic': 0.193497, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.643318, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.59116, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 4.92155, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00238064, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00206893, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000798397, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00244852, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00927873, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.02299, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.163857, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.47197, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.556533, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.22463, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0733521, 'L2/Runtime Dynamic': 0.0149759, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.49788, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.53945, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.170198, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.170198, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.30486, 'Load Store Unit/Runtime Dynamic': 3.549, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.419679, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.839358, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.148946, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.15004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0773917, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.815992, 'Memory Management Unit/Runtime Dynamic': 0.227432, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 29.5043, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.731972, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.041318, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.317832, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.09112, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 11.0287, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0588041, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.248876, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.376591, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.287381, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.463534, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.233977, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.984892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.270943, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.9829, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0711461, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.012054, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.106781, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.089147, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.177927, 'Execution Unit/Register Files/Runtime Dynamic': 0.101201, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.239662, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.59396, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.33431, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00183336, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00161558, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00063566, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.0012806, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0065629, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.016909, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0856993, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.45121, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.280368, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.291073, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.93428, 'Instruction Fetch Unit/Runtime Dynamic': 0.680612, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0327293, 'L2/Runtime Dynamic': 0.0134497, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.28732, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.01348, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0663288, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.60054, 'Load Store Unit/Runtime Dynamic': 1.40692, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.163555, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.327111, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0580464, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0585369, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.338936, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0459651, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.594759, 'Memory Management Unit/Runtime Dynamic': 0.104502, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.7347, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.187153, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0152434, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.143713, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.34611, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.8859, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0543055, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.245343, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.394195, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.260055, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.41946, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.211729, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.891244, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.236992, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.92342, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0744719, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0109079, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.095105, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0806705, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.169577, 'Execution Unit/Register Files/Runtime Dynamic': 0.0915784, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.213939, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.555101, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.18864, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00174099, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00154949, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000617927, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00115884, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0061903, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0155103, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0775507, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.93289, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.227723, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.263397, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.3908, 'Instruction Fetch Unit/Runtime Dynamic': 0.590371, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0228357, 'L2/Runtime Dynamic': 0.00464711, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.6387, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.15404, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0776969, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.0056, 'Load Store Unit/Runtime Dynamic': 1.61491, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.191587, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.383174, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.067995, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0683372, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.306709, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0373336, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.579621, 'Memory Management Unit/Runtime Dynamic': 0.105671, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.5118, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.195901, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0141171, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.129012, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.33903, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.84328, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0623769, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.251682, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.337606, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.224582, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.362242, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.182848, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.769672, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.205098, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.81868, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0637809, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00941997, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0914408, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0696664, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.155222, 'Execution Unit/Register Files/Runtime Dynamic': 0.0790864, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.208238, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.526198, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.03202, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00132104, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00115785, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000452173, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00100076, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00480069, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0124079, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0669721, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.26, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.200165, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.227468, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.68526, 'Instruction Fetch Unit/Runtime Dynamic': 0.511813, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0382461, 'L2/Runtime Dynamic': 0.0083586, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.12016, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.38594, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0932732, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.56062, 'Load Store Unit/Runtime Dynamic': 1.9392, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.229996, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.459992, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0816263, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0822004, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.264871, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0328147, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.5612, 'Memory Management Unit/Runtime Dynamic': 0.115015, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 20.2535, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.167778, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0121743, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.111723, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.291676, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.89808, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 1.7987100371612288, 'Runtime Dynamic': 1.7987100371612288, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.129484, 'Runtime Dynamic': 0.0800318, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 91.1337, 'Peak Power': 124.246, 'Runtime Dynamic': 25.736, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 91.0042, 'Total Cores/Runtime Dynamic': 25.656, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.129484, 'Total L3s/Runtime Dynamic': 0.0800318, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
def calculate_max_profit(prices): '''Calculates the maximum profit given a list of prices of a stock by buying and selling exactly once. >>> calculate_max_profit([9, 11, 8, 5, 7, 10]) 5 >>> calculate_max_profit([10, 9, 8, 5, 2]) 0 ''' smallest_element_so_far = float('inf') largest_gain = 0 for value in prices: smallest_element_so_far = min(value, smallest_element_so_far) largest_gain = max(value - smallest_element_so_far, largest_gain) return largest_gain
def calculate_max_profit(prices): """Calculates the maximum profit given a list of prices of a stock by buying and selling exactly once. >>> calculate_max_profit([9, 11, 8, 5, 7, 10]) 5 >>> calculate_max_profit([10, 9, 8, 5, 2]) 0 """ smallest_element_so_far = float('inf') largest_gain = 0 for value in prices: smallest_element_so_far = min(value, smallest_element_so_far) largest_gain = max(value - smallest_element_so_far, largest_gain) return largest_gain
class FailedRequestingEcoCounterError(Exception): pass class PublishError(Exception): pass
class Failedrequestingecocountererror(Exception): pass class Publisherror(Exception): pass
fname = input('Enter file: ') try: fhandle = open(fname, 'r') except: print('No such file.') quit() hrs = dict() for line in fhandle: if not line.startswith('From '): continue tmp = line.find(':') hour = line[tmp-2:tmp] hrs[hour] = hrs.get(hour, 0) + 1 for (k, v) in sorted(hrs.items()): print(k, v)
fname = input('Enter file: ') try: fhandle = open(fname, 'r') except: print('No such file.') quit() hrs = dict() for line in fhandle: if not line.startswith('From '): continue tmp = line.find(':') hour = line[tmp - 2:tmp] hrs[hour] = hrs.get(hour, 0) + 1 for (k, v) in sorted(hrs.items()): print(k, v)
sides = {} data = input() while not data == "Lumpawaroo": keep_it = True idk = False if "|" in data: side, name = data.split(" | ") if side in sides: for person in sides[side]: if name in person: idk = True break idk = True if side not in sides and name not in sides.keys(): sides[side] = [name] if idk is True: sides[side].append(name) elif " -> " in data: name, side = data.split(" -> ") for Side, Name in sides.items(): if name in Name: sides[Side].remove(name) sides[side].append(name) print(f"{name} joins the {side} side!") keep_it = False break if keep_it is True: for Side, Name in sides.items(): if name not in Name and len(sides.get(Side)) != None: sides[side].append(name) print(f"{name} joins the {side} side!") break elif name not in Name: sides[side] = [name] print(f"{name} joins the {side} side!") break data = input() continue for side, name in sorted(sides.items(), key=lambda x: (-len(x[1]), x[0])): if 0 == len(name): continue else: print(f"Side: {side}, Members: {len(name)}") for person in sorted(name): print(f"! {person}")
sides = {} data = input() while not data == 'Lumpawaroo': keep_it = True idk = False if '|' in data: (side, name) = data.split(' | ') if side in sides: for person in sides[side]: if name in person: idk = True break idk = True if side not in sides and name not in sides.keys(): sides[side] = [name] if idk is True: sides[side].append(name) elif ' -> ' in data: (name, side) = data.split(' -> ') for (side, name) in sides.items(): if name in Name: sides[Side].remove(name) sides[side].append(name) print(f'{name} joins the {side} side!') keep_it = False break if keep_it is True: for (side, name) in sides.items(): if name not in Name and len(sides.get(Side)) != None: sides[side].append(name) print(f'{name} joins the {side} side!') break elif name not in Name: sides[side] = [name] print(f'{name} joins the {side} side!') break data = input() continue for (side, name) in sorted(sides.items(), key=lambda x: (-len(x[1]), x[0])): if 0 == len(name): continue else: print(f'Side: {side}, Members: {len(name)}') for person in sorted(name): print(f'! {person}')
class Customer: #function to update the details of the customer def __init__(self,name,email): self.name = name self.email = email self.purchases = [] #function to have a customer make a purchase def purchase(self,inventory, product): inventory_dict = inventory.inventory if product in inventory_dict: if inventory_dict[product] > 1: self.purchases.append(product) inventory_dict[product]-=1 else: print('We are out of stock') else: print("We don't have the product") def print_purchases(self): print('The customer has purchased:') bill = 0 for items in self.purchases: print(items.name + " $"+str(items.price)) bill+=items.price print(customer.name +"'s Total Bill is $" + str(bill)) class Product: #function to add the name and price of the product def __init__(self,name,price): self.name = name self.price = price class Inventory: def __init__(self): self.inventory = {} #inventory is a Dictionary to hold the key and value of the product #funtion to add product to the inventory def add_product(self,product,quantity): if product not in self.inventory: self.inventory[product] = quantity else: self.inventory[product]+=quantity def print_inventory(self): print('Product: Quantity') for key,value in self.inventory.items(): print(key.name + ": " + str(value)) print() customer = Customer('Joe Rogan','joe@gmail.com') print('Name of the Customer: ') print(customer.name) apple_watch = Product('apple_watch',299) mac = Product('mac',1999) nike = Product('Nike',1500) iphone = Product('IPhone',900) inventory = Inventory() inventory.add_product(apple_watch,500) inventory.add_product(iphone,15) inventory.add_product(mac,800) inventory.add_product(nike,70) print() inventory.print_inventory() #function to add the customers purchase customer.purchase(inventory,apple_watch) customer.purchase(inventory,iphone) #printing the *Updated* inventory and the Customers purchase inventory.print_inventory() print() customer.print_purchases()
class Customer: def __init__(self, name, email): self.name = name self.email = email self.purchases = [] def purchase(self, inventory, product): inventory_dict = inventory.inventory if product in inventory_dict: if inventory_dict[product] > 1: self.purchases.append(product) inventory_dict[product] -= 1 else: print('We are out of stock') else: print("We don't have the product") def print_purchases(self): print('The customer has purchased:') bill = 0 for items in self.purchases: print(items.name + ' $' + str(items.price)) bill += items.price print(customer.name + "'s Total Bill is $" + str(bill)) class Product: def __init__(self, name, price): self.name = name self.price = price class Inventory: def __init__(self): self.inventory = {} def add_product(self, product, quantity): if product not in self.inventory: self.inventory[product] = quantity else: self.inventory[product] += quantity def print_inventory(self): print('Product: Quantity') for (key, value) in self.inventory.items(): print(key.name + ': ' + str(value)) print() customer = customer('Joe Rogan', 'joe@gmail.com') print('Name of the Customer: ') print(customer.name) apple_watch = product('apple_watch', 299) mac = product('mac', 1999) nike = product('Nike', 1500) iphone = product('IPhone', 900) inventory = inventory() inventory.add_product(apple_watch, 500) inventory.add_product(iphone, 15) inventory.add_product(mac, 800) inventory.add_product(nike, 70) print() inventory.print_inventory() customer.purchase(inventory, apple_watch) customer.purchase(inventory, iphone) inventory.print_inventory() print() customer.print_purchases()
""" Copyright (c) 2020, Souvik Ghosh. Distributed under the terms of the MIT License. The full license is in the file LICENSE, distributed with this software. Created on Mar 15, 2020 @author """ def Solve(): m = [] for j in range(1, i): if i % j == 0: m.append(j) yield sum(m) e = int(input("Enter a range of numbers to check: ")) for _ in range(e): i = int(input("Enter a number: ")) for u in Solve(): if i == u: print("Yes") else: print("No")
""" Copyright (c) 2020, Souvik Ghosh. Distributed under the terms of the MIT License. The full license is in the file LICENSE, distributed with this software. Created on Mar 15, 2020 @author """ def solve(): m = [] for j in range(1, i): if i % j == 0: m.append(j) yield sum(m) e = int(input('Enter a range of numbers to check: ')) for _ in range(e): i = int(input('Enter a number: ')) for u in solve(): if i == u: print('Yes') else: print('No')
samples = [ { "input": { "array": [5, 1, 22, 25, 6, -1, 8, 10], }, "output": [1, 6, -1, 10], }, ]
samples = [{'input': {'array': [5, 1, 22, 25, 6, -1, 8, 10]}, 'output': [1, 6, -1, 10]}]
def process_flags(all_flags): """ Argument: Return: list of """ fixed_map = {'fixed': True, 'param': False} flags = [Flags(name, fixed_map[flag_type]) for name, flag_type in all_flags.items()] return flags def process_hparams(all_hparams): """ Argument: Return: """ hparams = [Hparams(name, values) for name, values in all_hparams.items()] return hparams class Hparams: def __init__(self, hparam_name, values): self.hparam_name = hparam_name self.raw_values = values self.values = [Hparam(hparam_name, value) for value in values] def __repr__(self): return f'{self.hparam_name}: {[value for value in self.raw_values]}' class Hparam: def __init__(self, hparam_name, value): self.hparam_name = hparam_name self.value = value def get_command(self): return f'--{self.hparam_name} {self.value}' def __repr__(self): return f'{self.hparam_name}: {self.value}' class Flags: def __init__(self, flag_name, fixed): self.flag_name = flag_name self.fixed = fixed if fixed: self.values = [Flag(flag_name, True)] else: self.values = [Flag(flag_name, True), Flag(flag_name, False)] def __repr__(self): return f'{self.flag_name}: {"fixed" if self.fixed else "param"}' class Flag: def __init__(self, flag_name, present): self.flag_name = flag_name self.present = present def get_command(self): if self.present: return f'--{self.flag_name}' else: return '' def __repr__(self): return f'{self.flag_name}: {self.present}'
def process_flags(all_flags): """ Argument: Return: list of """ fixed_map = {'fixed': True, 'param': False} flags = [flags(name, fixed_map[flag_type]) for (name, flag_type) in all_flags.items()] return flags def process_hparams(all_hparams): """ Argument: Return: """ hparams = [hparams(name, values) for (name, values) in all_hparams.items()] return hparams class Hparams: def __init__(self, hparam_name, values): self.hparam_name = hparam_name self.raw_values = values self.values = [hparam(hparam_name, value) for value in values] def __repr__(self): return f'{self.hparam_name}: {[value for value in self.raw_values]}' class Hparam: def __init__(self, hparam_name, value): self.hparam_name = hparam_name self.value = value def get_command(self): return f'--{self.hparam_name} {self.value}' def __repr__(self): return f'{self.hparam_name}: {self.value}' class Flags: def __init__(self, flag_name, fixed): self.flag_name = flag_name self.fixed = fixed if fixed: self.values = [flag(flag_name, True)] else: self.values = [flag(flag_name, True), flag(flag_name, False)] def __repr__(self): return f"{self.flag_name}: {('fixed' if self.fixed else 'param')}" class Flag: def __init__(self, flag_name, present): self.flag_name = flag_name self.present = present def get_command(self): if self.present: return f'--{self.flag_name}' else: return '' def __repr__(self): return f'{self.flag_name}: {self.present}'
def doNothing(rawSolutions): #TODO - accept some sort of number QoI from somewhere number_qoi = 1 list_of_qoi = [] for _ in range(number_qoi): qoi_values = [] for raw_solution in rawSolutions: qoi_values.append(raw_solution) list_of_qoi.append(qoi_values) return list_of_qoi
def do_nothing(rawSolutions): number_qoi = 1 list_of_qoi = [] for _ in range(number_qoi): qoi_values = [] for raw_solution in rawSolutions: qoi_values.append(raw_solution) list_of_qoi.append(qoi_values) return list_of_qoi
class SaleorAppError(Exception): """Generic Saleor App Error, all framework errros inherit from this""" class InstallAppError(SaleorAppError): """Install App error""" class ConfigurationError(SaleorAppError): """App is misconfigured"""
class Saleorapperror(Exception): """Generic Saleor App Error, all framework errros inherit from this""" class Installapperror(SaleorAppError): """Install App error""" class Configurationerror(SaleorAppError): """App is misconfigured"""
class Plan: def __init__(self): self.tasks = [] def add_task(self, task): assert task.task_id is None self.tasks.append(task) def take_tasks(self): tasks = self.tasks self.tasks = [] return tasks
class Plan: def __init__(self): self.tasks = [] def add_task(self, task): assert task.task_id is None self.tasks.append(task) def take_tasks(self): tasks = self.tasks self.tasks = [] return tasks
# Program : Linear search in an array. # Input : size = 5, array = [1, 3, 5, 2, 4], target = 5 # Output : 2 # Explanation : The index of the element 5 is 2. # Language : Python3 # O(n) time | O(1) space def linear_search(size, array, target): # Do for each element in the array. for i in range(size): # Declare the current element. current_element = array[i] # If the current element is equal to the target, then return the current index. if current_element == target: return i # If the target is not found, then return -1. return -1 # Main function. if __name__ == '__main__': # Declare the size, array and target. size = 5 array = [1, 3, 5, 2, 4] target = 5 # Find the index of the target and store the result in the answer variable. answer = linear_search(size, array, target) # Print the answer. print(answer)
def linear_search(size, array, target): for i in range(size): current_element = array[i] if current_element == target: return i return -1 if __name__ == '__main__': size = 5 array = [1, 3, 5, 2, 4] target = 5 answer = linear_search(size, array, target) print(answer)
# -*- coding: utf-8 -*- """ Used to space/separate choices group """ class Separator: line = '-' * 15 def __init__(self, line=None): if line: self.line = line def __str__(self): return self.line
""" Used to space/separate choices group """ class Separator: line = '-' * 15 def __init__(self, line=None): if line: self.line = line def __str__(self): return self.line
def pego_correndo(speed, is_birthday): retorno = 0 if is_birthday == True: if speed <= 65: retorno = 0 elif 65 < speed <= 85 : retorno = 1 elif speed > 85 : retorno = 2 elif is_birthday == False: if speed <= 60 : retorno = 0 elif 60 < speed <= 80 : retorno = 1 elif speed > 80 : retorno = 2 return retorno
def pego_correndo(speed, is_birthday): retorno = 0 if is_birthday == True: if speed <= 65: retorno = 0 elif 65 < speed <= 85: retorno = 1 elif speed > 85: retorno = 2 elif is_birthday == False: if speed <= 60: retorno = 0 elif 60 < speed <= 80: retorno = 1 elif speed > 80: retorno = 2 return retorno
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @created: 11.01.21 @author: felix """
""" @created: 11.01.21 @author: felix """
class Solution: def checkInclusion(self, s1: str, s2: str) -> bool: s1_len = len(s1) s2_len = len(s2) flag = False for i,v in enumerate(s2): for k in s1: if k != v: flag = False break; else: flag = True if flag: break; return flag if __name__ == "__main__": s = Solution() case1 = ["ab", "eidbaooo"] case2 = ["ab", "eidabooo"] print(s.checkInclusion(case1[0], case1[1])) print(s.checkInclusion(case2[0], case2[1]))
class Solution: def check_inclusion(self, s1: str, s2: str) -> bool: s1_len = len(s1) s2_len = len(s2) flag = False for (i, v) in enumerate(s2): for k in s1: if k != v: flag = False break else: flag = True if flag: break return flag if __name__ == '__main__': s = solution() case1 = ['ab', 'eidbaooo'] case2 = ['ab', 'eidabooo'] print(s.checkInclusion(case1[0], case1[1])) print(s.checkInclusion(case2[0], case2[1]))
my_list = ["one", 2, "three"] print(my_list) print(type(my_list)) l = [] # an empty list
my_list = ['one', 2, 'three'] print(my_list) print(type(my_list)) l = []
class Solution: def minimumDeviation(self, nums: List[int]) -> int: # since heapq is a min-heap # we use negative of the numbers to mimic a max-heap evens = [] minimum = inf for num in nums: if num % 2 == 0: evens.append(-num) minimum = min(minimum, num) else: evens.append(-num*2) minimum = min(minimum, num*2) heapq.heapify(evens) min_deviation = inf while evens: current_value = -heapq.heappop(evens) min_deviation = min(min_deviation, current_value-minimum) if current_value % 2 == 0: minimum = min(minimum, current_value//2) heapq.heappush(evens, -current_value//2) else: # if the maximum is odd, break and return break return min_deviation
class Solution: def minimum_deviation(self, nums: List[int]) -> int: evens = [] minimum = inf for num in nums: if num % 2 == 0: evens.append(-num) minimum = min(minimum, num) else: evens.append(-num * 2) minimum = min(minimum, num * 2) heapq.heapify(evens) min_deviation = inf while evens: current_value = -heapq.heappop(evens) min_deviation = min(min_deviation, current_value - minimum) if current_value % 2 == 0: minimum = min(minimum, current_value // 2) heapq.heappush(evens, -current_value // 2) else: break return min_deviation
def scanstring(s, end, strict=True, _b=BACKSLASH, _m=STRINGCHUNK.match): """Scan the string s for a JSON string. End is the index of the character in s after the quote that started the JSON string. Unescapes all valid JSON string escape sequences and raises ValueError on attempt to decode an invalid string. If strict is False then literal control characters are allowed in the string. Returns a tuple of the decoded string and the index of the character in s after the end quote.""" chunks = [] _append = chunks.append begin = end - 1 while 1: chunk = _m(s, end) if chunk is None: raise JSONDecodeError("Unterminated string starting at", s, begin) end = chunk.end() content, terminator = chunk.groups() # Content is contains zero or more unescaped string characters if content: _append(content) # Terminator is the end of string, a literal control character, # or a backslash denoting that an escape sequence follows if terminator == '"': break elif terminator != '\\': if strict: #msg = "Invalid control character %r at" % (terminator,) msg = "Invalid control character {0!r} at".format(terminator) raise JSONDecodeError(msg, s, end) else: _append(terminator) continue try: esc = s[end] except IndexError: raise JSONDecodeError("Unterminated string starting at", s, begin) from None # If not a unicode escape sequence, must be in the lookup table if esc != 'u': try: char = _b[esc] except KeyError: msg = "Invalid \\escape: {0!r}".format(esc) raise JSONDecodeError(msg, s, end) end += 1 else: uni = _decode_uXXXX(s, end) end += 5 if 0xd800 <= uni <= 0xdbff and s[end:end + 2] == '\\u': uni2 = _decode_uXXXX(s, end + 1) if 0xdc00 <= uni2 <= 0xdfff: uni = 0x10000 + (((uni - 0xd800) << 10) | (uni2 - 0xdc00)) end += 6 char = chr(uni) _append(char) return ''.join(chunks), end def lex(string): tokens = [] while len(string): renString, string = lex_string(string) if renString is not None: tokens.append(renString) continue renNumber, string = lex_number(string) if renNumber is not None: tokens.append(renNumber) continue renBool, string = lex_bool(string) if renBool is not None: tokens.append(renBool) continue renNull, string = lex_null(string) if renNull is not None: tokens.append(None) continue if string[0] in {'{', '}', '(', ')', '#', ' ', '\t', '\n'}: tokens.append(string[0]) string = string[1:] else: raise ValueError('Unexpected character: {}'.format(string[0])) return tokens def lexString(string: str) -> typing.Tuple[typing.Optional[str], str]: renString = '' if string[0] == '"': string = string[1:] else: return None, string for c in string: if c == '"': return renString, string[len(renString)+1:] else: renString += c raise ValueError('Expected end-of-string quote') def lexNumber(string): return None, string def lexBool(string): return None, string def lexNull(string): return None, string
def scanstring(s, end, strict=True, _b=BACKSLASH, _m=STRINGCHUNK.match): """Scan the string s for a JSON string. End is the index of the character in s after the quote that started the JSON string. Unescapes all valid JSON string escape sequences and raises ValueError on attempt to decode an invalid string. If strict is False then literal control characters are allowed in the string. Returns a tuple of the decoded string and the index of the character in s after the end quote.""" chunks = [] _append = chunks.append begin = end - 1 while 1: chunk = _m(s, end) if chunk is None: raise json_decode_error('Unterminated string starting at', s, begin) end = chunk.end() (content, terminator) = chunk.groups() if content: _append(content) if terminator == '"': break elif terminator != '\\': if strict: msg = 'Invalid control character {0!r} at'.format(terminator) raise json_decode_error(msg, s, end) else: _append(terminator) continue try: esc = s[end] except IndexError: raise json_decode_error('Unterminated string starting at', s, begin) from None if esc != 'u': try: char = _b[esc] except KeyError: msg = 'Invalid \\escape: {0!r}'.format(esc) raise json_decode_error(msg, s, end) end += 1 else: uni = _decode_u_xxxx(s, end) end += 5 if 55296 <= uni <= 56319 and s[end:end + 2] == '\\u': uni2 = _decode_u_xxxx(s, end + 1) if 56320 <= uni2 <= 57343: uni = 65536 + (uni - 55296 << 10 | uni2 - 56320) end += 6 char = chr(uni) _append(char) return (''.join(chunks), end) def lex(string): tokens = [] while len(string): (ren_string, string) = lex_string(string) if renString is not None: tokens.append(renString) continue (ren_number, string) = lex_number(string) if renNumber is not None: tokens.append(renNumber) continue (ren_bool, string) = lex_bool(string) if renBool is not None: tokens.append(renBool) continue (ren_null, string) = lex_null(string) if renNull is not None: tokens.append(None) continue if string[0] in {'{', '}', '(', ')', '#', ' ', '\t', '\n'}: tokens.append(string[0]) string = string[1:] else: raise value_error('Unexpected character: {}'.format(string[0])) return tokens def lex_string(string: str) -> typing.Tuple[typing.Optional[str], str]: ren_string = '' if string[0] == '"': string = string[1:] else: return (None, string) for c in string: if c == '"': return (renString, string[len(renString) + 1:]) else: ren_string += c raise value_error('Expected end-of-string quote') def lex_number(string): return (None, string) def lex_bool(string): return (None, string) def lex_null(string): return (None, string)
# # PySNMP MIB module HPN-ICF-TE-TUNNEL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-TE-TUNNEL-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:41:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint") hpnicfCommon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfCommon") MplsLabel, MplsTunnelInstanceIndex, MplsTunnelIndex, MplsExtendedTunnelId = mibBuilder.importSymbols("MPLS-TC-STD-MIB", "MplsLabel", "MplsTunnelInstanceIndex", "MplsTunnelIndex", "MplsExtendedTunnelId") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") iso, Counter64, ObjectIdentity, Gauge32, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, IpAddress, ModuleIdentity, Counter32, MibIdentifier, TimeTicks, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Counter64", "ObjectIdentity", "Gauge32", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "IpAddress", "ModuleIdentity", "Counter32", "MibIdentifier", "TimeTicks", "NotificationType") RowPointer, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowPointer", "TextualConvention", "DisplayString") hpnicfTeTunnel = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115)) if mibBuilder.loadTexts: hpnicfTeTunnel.setLastUpdated('201103240948Z') if mibBuilder.loadTexts: hpnicfTeTunnel.setOrganization('') if mibBuilder.loadTexts: hpnicfTeTunnel.setContactInfo('') if mibBuilder.loadTexts: hpnicfTeTunnel.setDescription('This MIB contains managed object definitions for the Multiprotocol Label Switching (MPLS) Te Tunnel.') hpnicfTeTunnelScalars = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1)) hpnicfTeTunnelMaxTunnelIndex = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1, 1), MplsTunnelIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setDescription('The max value of tunnel id is permitted configure on the device.') hpnicfTeTunnelObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2)) hpnicfTeTunnelStaticCrlspTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1), ) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setDescription('This table contains information for static-crlsp, and through this to get detail information about this static-crlsp. Only support transit LSR and egress LSR.') hpnicfTeTunnelStaticCrlspEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1), ).setIndexNames((0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspInLabel")) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setDescription('The entry in this table describes static-crlsp information.') hpnicfTeTunnelStaticCrlspInLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 1), MplsLabel()) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setDescription('This is unique label value that manualy assigned. Uniquely identifies a static-crlsp. Managers should use this to obtain detail static-crlsp information.') hpnicfTeTunnelStaticCrlspName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setDescription('The unique name assigned to the static-crlsp.') hpnicfTeTunnelStaticCrlspStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setDescription('Indicates the actual status of this static-crlsp, The value must be up when the static-crlsp status is up and the value must be down when the static-crlsp status is down.') hpnicfTeTunnelStaticCrlspRole = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("transit", 1), ("tail", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setDescription('This value indicate the role of this static-crlsp. This value must be transit at transit point of the tunnel, and tail at terminating point of the tunnel.') hpnicfTeTunnelStaticCrlspXCPointer = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 5), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setDescription('This pointer unique identify a row of mplsXCTable. This value should be zeroDotZero when the static-crlsp is down. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other.') hpnicfTeTunnelCoTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2), ) if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setDescription('This table contains information for Co-routed reverse crlsp and infomation of Co-routed bidirectional Tunnel Interface. If hpnicfCorouteTunnelLspInstance is zero, to obtain infomation of Co-routed bidirectional Tunnel Interface, otherwise to obtain Co-routed reverse crlsp infomation.') hpnicfTeTunnelCoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1), ).setIndexNames((0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoIndex"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoLspInstance"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoIngressLSRId"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoEgressLSRId")) if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setDescription('The entry in this table describes Co-routed infomation of bidirectional Tunnel Interface and reserver lsp information.') hpnicfTeTunnelCoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 1), MplsTunnelIndex()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setDescription('Uniquely identifies a set of tunnel instances between a pair of ingress and egress LSRs that specified at originating point. This value should be equal to the value signaled in the Tunnel Id of the Session object.') hpnicfTeTunnelCoLspInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 2), MplsTunnelInstanceIndex()) if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setDescription('When obtain infomation of Co-routed bidirectional Tunnel Interface, this vlaue should be zero. And this value must be LspID to obtain reverse crlsp information. Values greater than 0, but less than or equal to 65535, should be useless.') hpnicfTeTunnelCoIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 3), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setDescription('Identity the ingress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of originating endpoint.') hpnicfTeTunnelCoEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 4), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setDescription('Identity of the egress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of terminating point.') hpnicfTeTunnelCoBiMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("coroutedActive", 1), ("coroutedPassive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setDescription('This vlaue indicated the bidirection mode of tunnel interface. The valuemust be coroutedActive at the originating point of the tunnel and coroutedPassive at the terminating point.') hpnicfTeTunnelCoReverseLspInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 6), MplsTunnelInstanceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setDescription('This value indicated the reverse lsp instance, and should be equal to obverse lsp instance.') hpnicfTeTunnelCoReverseLspXCPointer = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 7), RowPointer()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setDescription('This pointer unique index to mplsXCTable of the reverse lsp. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other. A value of zeroDotZero indicate that there is no crlsp assigned to this.') hpnicfTeTunnelPsTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3), ) if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setDescription('This table defines some objects for managers to obtain TE tunnel Protection Switching group current status information.') hpnicfTeTunnelPsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1), ).setIndexNames((0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsIndex"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsIngressLSRId"), (0, "HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsEgressLSRId")) if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setDescription('The entry in this table describes TE tunnel Protection Switching group infromation.') hpnicfTeTunnelPsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 1), MplsTunnelIndex()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of work tunnel instance.') hpnicfTeTunnelPsIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 2), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setDescription('Identity the ingress LSR associated with work tunnel instance.') hpnicfTeTunnelPsEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 3), MplsExtendedTunnelId()) if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setDescription('Identity of the egress LSR associated with work tunnel instance.') hpnicfTeTunnelPsProtectIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 4), MplsTunnelIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of TE tunnel Protection Switching group instance.') hpnicfTeTunnelPsProtectIngressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 5), MplsExtendedTunnelId()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setDescription('Identity the ingress LSR associated with TE tunnel Protection Switching group instance.') hpnicfTeTunnelPsProtectEgressLSRId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 6), MplsExtendedTunnelId()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setDescription('Identity of the egress LSR associated with TE tunnel Protection Switching group instance.') hpnicfTeTunnelPsProtectType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("oneToOne", 1), ("onePlusOne", 2))).clone('oneToOne')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setDescription('This value indicated TE tunnel Protection Switching group type. The default value is oneToOne.') hpnicfTeTunnelPsRevertiveMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("revertive", 1), ("noRevertive", 2))).clone('revertive')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setDescription('This value indicated protect switch mode. The value must be revertive or nonRevertive, default value is revertive. ') hpnicfTeTunnelPsWtrTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 60)).clone(24)).setUnits('30 seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setDescription('The cycle time that switch to protect tunnel.') hpnicfTeTunnelPsHoldOffTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 20))).setUnits('500ms').setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setDescription('This value is switchback delay time. When detected the work path fault, switch to protect path after this time.') hpnicfTeTunnelPsSwitchMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("uniDirectional", 1), ("biDirectional", 2))).clone('uniDirectional')).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setDescription('This value indicated TE tunnel Protection Switching group switch mode.') hpnicfTeTunnelPsWorkPathStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("noDefect", 2), ("inDefect", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setDescription('This value indicates work path status. none, noDefect, inDefect will be used.') hpnicfTeTunnelPsProtectPathStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("noDefect", 2), ("inDefect", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setDescription('This value indicates protect path status. none, noDefect, inDefect(3) will be used.') hpnicfTeTunnelPsSwitchResult = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("workPath", 1), ("protectPath", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setDescription('This value indicated current using path is work path or protect path.') hpnicfTeTunnelNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3)) hpnicfTeTunnelNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0)) hpnicfTeTunnelPsSwitchWtoP = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 1)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWorkPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectPathStatus")) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setDescription('This notification is generated when protect workgroup switch from work tunnel to protect tunnel.') hpnicfTeTunnelPsSwitchPtoW = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 2)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWorkPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectPathStatus")) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setDescription('This notification is generated when protect workgroup switch from protect tunnel to work tunnel.') hpnicfTeTunnelConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4)) hpnicfTeTunnelCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1)) hpnicfTeTunnelCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1, 1)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelNotificationsGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelScalarsGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCorouteGroup"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelCompliance = hpnicfTeTunnelCompliance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCompliance.setDescription('The compliance statement for SNMP.') hpnicfTeTunnelGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2)) hpnicfTeTunnelNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 1)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchPtoW"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchWtoP")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelNotificationsGroup = hpnicfTeTunnelNotificationsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelNotificationsGroup.setDescription('This group contains MPLS Te Tunnel traps.') hpnicfTeTunnelScalarsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 2)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelMaxTunnelIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelScalarsGroup = hpnicfTeTunnelScalarsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelScalarsGroup.setDescription('Scalar object needed to implement MPLS te tunnels.') hpnicfTeTunnelStaticCrlspGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 3)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspName"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspRole"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelStaticCrlspXCPointer")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelStaticCrlspGroup = hpnicfTeTunnelStaticCrlspGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspGroup.setDescription('Objects for quering static-crlsp information.') hpnicfTeTunnelCorouteGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 4)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoBiMode"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoReverseLspInstance"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelCoReverseLspXCPointer")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelCorouteGroup = hpnicfTeTunnelCorouteGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCorouteGroup.setDescription('Objects for quering Co-routed reverse crlsp information.') hpnicfTeTunnelPsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 5)).setObjects(("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectIndex"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectIngressLSRId"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectEgressLSRId"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectType"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsRevertiveMode"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWtrTime"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsHoldOffTime"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchMode"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsWorkPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsProtectPathStatus"), ("HPN-ICF-TE-TUNNEL-MIB", "hpnicfTeTunnelPsSwitchResult")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicfTeTunnelPsGroup = hpnicfTeTunnelPsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsGroup.setDescription('Objects for quering protect workgroup information.') mibBuilder.exportSymbols("HPN-ICF-TE-TUNNEL-MIB", hpnicfTeTunnelCoIndex=hpnicfTeTunnelCoIndex, hpnicfTeTunnelNotificationsPrefix=hpnicfTeTunnelNotificationsPrefix, hpnicfTeTunnelCoIngressLSRId=hpnicfTeTunnelCoIngressLSRId, hpnicfTeTunnelPsWorkPathStatus=hpnicfTeTunnelPsWorkPathStatus, hpnicfTeTunnelConformance=hpnicfTeTunnelConformance, hpnicfTeTunnelPsProtectPathStatus=hpnicfTeTunnelPsProtectPathStatus, hpnicfTeTunnelStaticCrlspInLabel=hpnicfTeTunnelStaticCrlspInLabel, hpnicfTeTunnelCoEgressLSRId=hpnicfTeTunnelCoEgressLSRId, hpnicfTeTunnelObjects=hpnicfTeTunnelObjects, hpnicfTeTunnelCompliance=hpnicfTeTunnelCompliance, hpnicfTeTunnelCoLspInstance=hpnicfTeTunnelCoLspInstance, hpnicfTeTunnelStaticCrlspRole=hpnicfTeTunnelStaticCrlspRole, hpnicfTeTunnelPsIndex=hpnicfTeTunnelPsIndex, hpnicfTeTunnelPsRevertiveMode=hpnicfTeTunnelPsRevertiveMode, hpnicfTeTunnel=hpnicfTeTunnel, hpnicfTeTunnelPsSwitchResult=hpnicfTeTunnelPsSwitchResult, hpnicfTeTunnelNotifications=hpnicfTeTunnelNotifications, hpnicfTeTunnelPsEgressLSRId=hpnicfTeTunnelPsEgressLSRId, hpnicfTeTunnelPsWtrTime=hpnicfTeTunnelPsWtrTime, hpnicfTeTunnelPsSwitchPtoW=hpnicfTeTunnelPsSwitchPtoW, hpnicfTeTunnelGroups=hpnicfTeTunnelGroups, hpnicfTeTunnelPsTable=hpnicfTeTunnelPsTable, hpnicfTeTunnelPsSwitchMode=hpnicfTeTunnelPsSwitchMode, hpnicfTeTunnelNotificationsGroup=hpnicfTeTunnelNotificationsGroup, hpnicfTeTunnelMaxTunnelIndex=hpnicfTeTunnelMaxTunnelIndex, hpnicfTeTunnelScalars=hpnicfTeTunnelScalars, hpnicfTeTunnelCoEntry=hpnicfTeTunnelCoEntry, hpnicfTeTunnelPsEntry=hpnicfTeTunnelPsEntry, hpnicfTeTunnelPsIngressLSRId=hpnicfTeTunnelPsIngressLSRId, hpnicfTeTunnelPsProtectIndex=hpnicfTeTunnelPsProtectIndex, hpnicfTeTunnelStaticCrlspXCPointer=hpnicfTeTunnelStaticCrlspXCPointer, hpnicfTeTunnelPsSwitchWtoP=hpnicfTeTunnelPsSwitchWtoP, hpnicfTeTunnelScalarsGroup=hpnicfTeTunnelScalarsGroup, hpnicfTeTunnelPsProtectType=hpnicfTeTunnelPsProtectType, hpnicfTeTunnelCompliances=hpnicfTeTunnelCompliances, hpnicfTeTunnelPsProtectIngressLSRId=hpnicfTeTunnelPsProtectIngressLSRId, PYSNMP_MODULE_ID=hpnicfTeTunnel, hpnicfTeTunnelStaticCrlspName=hpnicfTeTunnelStaticCrlspName, hpnicfTeTunnelPsHoldOffTime=hpnicfTeTunnelPsHoldOffTime, hpnicfTeTunnelStaticCrlspStatus=hpnicfTeTunnelStaticCrlspStatus, hpnicfTeTunnelPsGroup=hpnicfTeTunnelPsGroup, hpnicfTeTunnelStaticCrlspTable=hpnicfTeTunnelStaticCrlspTable, hpnicfTeTunnelStaticCrlspEntry=hpnicfTeTunnelStaticCrlspEntry, hpnicfTeTunnelStaticCrlspGroup=hpnicfTeTunnelStaticCrlspGroup, hpnicfTeTunnelCoReverseLspXCPointer=hpnicfTeTunnelCoReverseLspXCPointer, hpnicfTeTunnelPsProtectEgressLSRId=hpnicfTeTunnelPsProtectEgressLSRId, hpnicfTeTunnelCorouteGroup=hpnicfTeTunnelCorouteGroup, hpnicfTeTunnelCoTable=hpnicfTeTunnelCoTable, hpnicfTeTunnelCoReverseLspInstance=hpnicfTeTunnelCoReverseLspInstance, hpnicfTeTunnelCoBiMode=hpnicfTeTunnelCoBiMode)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint') (hpnicf_common,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfCommon') (mpls_label, mpls_tunnel_instance_index, mpls_tunnel_index, mpls_extended_tunnel_id) = mibBuilder.importSymbols('MPLS-TC-STD-MIB', 'MplsLabel', 'MplsTunnelInstanceIndex', 'MplsTunnelIndex', 'MplsExtendedTunnelId') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (iso, counter64, object_identity, gauge32, unsigned32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, ip_address, module_identity, counter32, mib_identifier, time_ticks, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Counter64', 'ObjectIdentity', 'Gauge32', 'Unsigned32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'IpAddress', 'ModuleIdentity', 'Counter32', 'MibIdentifier', 'TimeTicks', 'NotificationType') (row_pointer, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'RowPointer', 'TextualConvention', 'DisplayString') hpnicf_te_tunnel = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115)) if mibBuilder.loadTexts: hpnicfTeTunnel.setLastUpdated('201103240948Z') if mibBuilder.loadTexts: hpnicfTeTunnel.setOrganization('') if mibBuilder.loadTexts: hpnicfTeTunnel.setContactInfo('') if mibBuilder.loadTexts: hpnicfTeTunnel.setDescription('This MIB contains managed object definitions for the Multiprotocol Label Switching (MPLS) Te Tunnel.') hpnicf_te_tunnel_scalars = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1)) hpnicf_te_tunnel_max_tunnel_index = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 1, 1), mpls_tunnel_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelMaxTunnelIndex.setDescription('The max value of tunnel id is permitted configure on the device.') hpnicf_te_tunnel_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2)) hpnicf_te_tunnel_static_crlsp_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1)) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspTable.setDescription('This table contains information for static-crlsp, and through this to get detail information about this static-crlsp. Only support transit LSR and egress LSR.') hpnicf_te_tunnel_static_crlsp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1)).setIndexNames((0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspInLabel')) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspEntry.setDescription('The entry in this table describes static-crlsp information.') hpnicf_te_tunnel_static_crlsp_in_label = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 1), mpls_label()) if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspInLabel.setDescription('This is unique label value that manualy assigned. Uniquely identifies a static-crlsp. Managers should use this to obtain detail static-crlsp information.') hpnicf_te_tunnel_static_crlsp_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspName.setDescription('The unique name assigned to the static-crlsp.') hpnicf_te_tunnel_static_crlsp_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspStatus.setDescription('Indicates the actual status of this static-crlsp, The value must be up when the static-crlsp status is up and the value must be down when the static-crlsp status is down.') hpnicf_te_tunnel_static_crlsp_role = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('transit', 1), ('tail', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspRole.setDescription('This value indicate the role of this static-crlsp. This value must be transit at transit point of the tunnel, and tail at terminating point of the tunnel.') hpnicf_te_tunnel_static_crlsp_xc_pointer = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 1, 1, 5), row_pointer()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspXCPointer.setDescription('This pointer unique identify a row of mplsXCTable. This value should be zeroDotZero when the static-crlsp is down. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other.') hpnicf_te_tunnel_co_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2)) if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoTable.setDescription('This table contains information for Co-routed reverse crlsp and infomation of Co-routed bidirectional Tunnel Interface. If hpnicfCorouteTunnelLspInstance is zero, to obtain infomation of Co-routed bidirectional Tunnel Interface, otherwise to obtain Co-routed reverse crlsp infomation.') hpnicf_te_tunnel_co_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1)).setIndexNames((0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoIndex'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoLspInstance'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoIngressLSRId'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoEgressLSRId')) if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEntry.setDescription('The entry in this table describes Co-routed infomation of bidirectional Tunnel Interface and reserver lsp information.') hpnicf_te_tunnel_co_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 1), mpls_tunnel_index()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIndex.setDescription('Uniquely identifies a set of tunnel instances between a pair of ingress and egress LSRs that specified at originating point. This value should be equal to the value signaled in the Tunnel Id of the Session object.') hpnicf_te_tunnel_co_lsp_instance = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 2), mpls_tunnel_instance_index()) if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoLspInstance.setDescription('When obtain infomation of Co-routed bidirectional Tunnel Interface, this vlaue should be zero. And this value must be LspID to obtain reverse crlsp information. Values greater than 0, but less than or equal to 65535, should be useless.') hpnicf_te_tunnel_co_ingress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 3), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoIngressLSRId.setDescription('Identity the ingress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of originating endpoint.') hpnicf_te_tunnel_co_egress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 4), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoEgressLSRId.setDescription('Identity of the egress LSR associated with this tunnel instance. This vlaue is equal to the LsrID of terminating point.') hpnicf_te_tunnel_co_bi_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('coroutedActive', 1), ('coroutedPassive', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoBiMode.setDescription('This vlaue indicated the bidirection mode of tunnel interface. The valuemust be coroutedActive at the originating point of the tunnel and coroutedPassive at the terminating point.') hpnicf_te_tunnel_co_reverse_lsp_instance = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 6), mpls_tunnel_instance_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspInstance.setDescription('This value indicated the reverse lsp instance, and should be equal to obverse lsp instance.') hpnicf_te_tunnel_co_reverse_lsp_xc_pointer = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 2, 1, 7), row_pointer()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCoReverseLspXCPointer.setDescription('This pointer unique index to mplsXCTable of the reverse lsp. The mplsXCTable identifies the segments that compose this tunnel, their characteristics, and relationships to each other. A value of zeroDotZero indicate that there is no crlsp assigned to this.') hpnicf_te_tunnel_ps_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3)) if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsTable.setDescription('This table defines some objects for managers to obtain TE tunnel Protection Switching group current status information.') hpnicf_te_tunnel_ps_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1)).setIndexNames((0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsIndex'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsIngressLSRId'), (0, 'HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsEgressLSRId')) if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEntry.setDescription('The entry in this table describes TE tunnel Protection Switching group infromation.') hpnicf_te_tunnel_ps_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 1), mpls_tunnel_index()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of work tunnel instance.') hpnicf_te_tunnel_ps_ingress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 2), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsIngressLSRId.setDescription('Identity the ingress LSR associated with work tunnel instance.') hpnicf_te_tunnel_ps_egress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 3), mpls_extended_tunnel_id()) if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsEgressLSRId.setDescription('Identity of the egress LSR associated with work tunnel instance.') hpnicf_te_tunnel_ps_protect_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 4), mpls_tunnel_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIndex.setDescription('Uniquely identifies a TE tunnel Protection Switching group instance. This value must be equal to the tunnel id of TE tunnel Protection Switching group instance.') hpnicf_te_tunnel_ps_protect_ingress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 5), mpls_extended_tunnel_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectIngressLSRId.setDescription('Identity the ingress LSR associated with TE tunnel Protection Switching group instance.') hpnicf_te_tunnel_ps_protect_egress_lsr_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 6), mpls_extended_tunnel_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectEgressLSRId.setDescription('Identity of the egress LSR associated with TE tunnel Protection Switching group instance.') hpnicf_te_tunnel_ps_protect_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('oneToOne', 1), ('onePlusOne', 2))).clone('oneToOne')).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectType.setDescription('This value indicated TE tunnel Protection Switching group type. The default value is oneToOne.') hpnicf_te_tunnel_ps_revertive_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('revertive', 1), ('noRevertive', 2))).clone('revertive')).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsRevertiveMode.setDescription('This value indicated protect switch mode. The value must be revertive or nonRevertive, default value is revertive. ') hpnicf_te_tunnel_ps_wtr_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 60)).clone(24)).setUnits('30 seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWtrTime.setDescription('The cycle time that switch to protect tunnel.') hpnicf_te_tunnel_ps_hold_off_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 20))).setUnits('500ms').setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsHoldOffTime.setDescription('This value is switchback delay time. When detected the work path fault, switch to protect path after this time.') hpnicf_te_tunnel_ps_switch_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('uniDirectional', 1), ('biDirectional', 2))).clone('uniDirectional')).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchMode.setDescription('This value indicated TE tunnel Protection Switching group switch mode.') hpnicf_te_tunnel_ps_work_path_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('noDefect', 2), ('inDefect', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsWorkPathStatus.setDescription('This value indicates work path status. none, noDefect, inDefect will be used.') hpnicf_te_tunnel_ps_protect_path_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('noDefect', 2), ('inDefect', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsProtectPathStatus.setDescription('This value indicates protect path status. none, noDefect, inDefect(3) will be used.') hpnicf_te_tunnel_ps_switch_result = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 2, 3, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('workPath', 1), ('protectPath', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchResult.setDescription('This value indicated current using path is work path or protect path.') hpnicf_te_tunnel_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3)) hpnicf_te_tunnel_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0)) hpnicf_te_tunnel_ps_switch_wto_p = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 1)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWorkPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectPathStatus')) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchWtoP.setDescription('This notification is generated when protect workgroup switch from work tunnel to protect tunnel.') hpnicf_te_tunnel_ps_switch_pto_w = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 3, 0, 2)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWorkPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectPathStatus')) if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsSwitchPtoW.setDescription('This notification is generated when protect workgroup switch from protect tunnel to work tunnel.') hpnicf_te_tunnel_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4)) hpnicf_te_tunnel_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1)) hpnicf_te_tunnel_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 1, 1)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelNotificationsGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelScalarsGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCorouteGroup'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_compliance = hpnicfTeTunnelCompliance.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCompliance.setDescription('The compliance statement for SNMP.') hpnicf_te_tunnel_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2)) hpnicf_te_tunnel_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 1)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchPtoW'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchWtoP')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_notifications_group = hpnicfTeTunnelNotificationsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelNotificationsGroup.setDescription('This group contains MPLS Te Tunnel traps.') hpnicf_te_tunnel_scalars_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 2)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelMaxTunnelIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_scalars_group = hpnicfTeTunnelScalarsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelScalarsGroup.setDescription('Scalar object needed to implement MPLS te tunnels.') hpnicf_te_tunnel_static_crlsp_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 3)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspName'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspRole'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelStaticCrlspXCPointer')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_static_crlsp_group = hpnicfTeTunnelStaticCrlspGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelStaticCrlspGroup.setDescription('Objects for quering static-crlsp information.') hpnicf_te_tunnel_coroute_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 4)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoBiMode'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoReverseLspInstance'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelCoReverseLspXCPointer')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_coroute_group = hpnicfTeTunnelCorouteGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelCorouteGroup.setDescription('Objects for quering Co-routed reverse crlsp information.') hpnicf_te_tunnel_ps_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 115, 4, 2, 5)).setObjects(('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectIndex'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectIngressLSRId'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectEgressLSRId'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectType'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsRevertiveMode'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWtrTime'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsHoldOffTime'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchMode'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsWorkPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsProtectPathStatus'), ('HPN-ICF-TE-TUNNEL-MIB', 'hpnicfTeTunnelPsSwitchResult')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpnicf_te_tunnel_ps_group = hpnicfTeTunnelPsGroup.setStatus('current') if mibBuilder.loadTexts: hpnicfTeTunnelPsGroup.setDescription('Objects for quering protect workgroup information.') mibBuilder.exportSymbols('HPN-ICF-TE-TUNNEL-MIB', hpnicfTeTunnelCoIndex=hpnicfTeTunnelCoIndex, hpnicfTeTunnelNotificationsPrefix=hpnicfTeTunnelNotificationsPrefix, hpnicfTeTunnelCoIngressLSRId=hpnicfTeTunnelCoIngressLSRId, hpnicfTeTunnelPsWorkPathStatus=hpnicfTeTunnelPsWorkPathStatus, hpnicfTeTunnelConformance=hpnicfTeTunnelConformance, hpnicfTeTunnelPsProtectPathStatus=hpnicfTeTunnelPsProtectPathStatus, hpnicfTeTunnelStaticCrlspInLabel=hpnicfTeTunnelStaticCrlspInLabel, hpnicfTeTunnelCoEgressLSRId=hpnicfTeTunnelCoEgressLSRId, hpnicfTeTunnelObjects=hpnicfTeTunnelObjects, hpnicfTeTunnelCompliance=hpnicfTeTunnelCompliance, hpnicfTeTunnelCoLspInstance=hpnicfTeTunnelCoLspInstance, hpnicfTeTunnelStaticCrlspRole=hpnicfTeTunnelStaticCrlspRole, hpnicfTeTunnelPsIndex=hpnicfTeTunnelPsIndex, hpnicfTeTunnelPsRevertiveMode=hpnicfTeTunnelPsRevertiveMode, hpnicfTeTunnel=hpnicfTeTunnel, hpnicfTeTunnelPsSwitchResult=hpnicfTeTunnelPsSwitchResult, hpnicfTeTunnelNotifications=hpnicfTeTunnelNotifications, hpnicfTeTunnelPsEgressLSRId=hpnicfTeTunnelPsEgressLSRId, hpnicfTeTunnelPsWtrTime=hpnicfTeTunnelPsWtrTime, hpnicfTeTunnelPsSwitchPtoW=hpnicfTeTunnelPsSwitchPtoW, hpnicfTeTunnelGroups=hpnicfTeTunnelGroups, hpnicfTeTunnelPsTable=hpnicfTeTunnelPsTable, hpnicfTeTunnelPsSwitchMode=hpnicfTeTunnelPsSwitchMode, hpnicfTeTunnelNotificationsGroup=hpnicfTeTunnelNotificationsGroup, hpnicfTeTunnelMaxTunnelIndex=hpnicfTeTunnelMaxTunnelIndex, hpnicfTeTunnelScalars=hpnicfTeTunnelScalars, hpnicfTeTunnelCoEntry=hpnicfTeTunnelCoEntry, hpnicfTeTunnelPsEntry=hpnicfTeTunnelPsEntry, hpnicfTeTunnelPsIngressLSRId=hpnicfTeTunnelPsIngressLSRId, hpnicfTeTunnelPsProtectIndex=hpnicfTeTunnelPsProtectIndex, hpnicfTeTunnelStaticCrlspXCPointer=hpnicfTeTunnelStaticCrlspXCPointer, hpnicfTeTunnelPsSwitchWtoP=hpnicfTeTunnelPsSwitchWtoP, hpnicfTeTunnelScalarsGroup=hpnicfTeTunnelScalarsGroup, hpnicfTeTunnelPsProtectType=hpnicfTeTunnelPsProtectType, hpnicfTeTunnelCompliances=hpnicfTeTunnelCompliances, hpnicfTeTunnelPsProtectIngressLSRId=hpnicfTeTunnelPsProtectIngressLSRId, PYSNMP_MODULE_ID=hpnicfTeTunnel, hpnicfTeTunnelStaticCrlspName=hpnicfTeTunnelStaticCrlspName, hpnicfTeTunnelPsHoldOffTime=hpnicfTeTunnelPsHoldOffTime, hpnicfTeTunnelStaticCrlspStatus=hpnicfTeTunnelStaticCrlspStatus, hpnicfTeTunnelPsGroup=hpnicfTeTunnelPsGroup, hpnicfTeTunnelStaticCrlspTable=hpnicfTeTunnelStaticCrlspTable, hpnicfTeTunnelStaticCrlspEntry=hpnicfTeTunnelStaticCrlspEntry, hpnicfTeTunnelStaticCrlspGroup=hpnicfTeTunnelStaticCrlspGroup, hpnicfTeTunnelCoReverseLspXCPointer=hpnicfTeTunnelCoReverseLspXCPointer, hpnicfTeTunnelPsProtectEgressLSRId=hpnicfTeTunnelPsProtectEgressLSRId, hpnicfTeTunnelCorouteGroup=hpnicfTeTunnelCorouteGroup, hpnicfTeTunnelCoTable=hpnicfTeTunnelCoTable, hpnicfTeTunnelCoReverseLspInstance=hpnicfTeTunnelCoReverseLspInstance, hpnicfTeTunnelCoBiMode=hpnicfTeTunnelCoBiMode)
class Solution: def swapNodes(self, head: ListNode, k: int) -> ListNode: n1, n2, p = None, None, head while p: k -= 1 if n2: n2 = n2.next if k == 0: n1 = p n2 = head p = p.next n1.val, n2.val = n2.val, n1.val return head
class Solution: def swap_nodes(self, head: ListNode, k: int) -> ListNode: (n1, n2, p) = (None, None, head) while p: k -= 1 if n2: n2 = n2.next if k == 0: n1 = p n2 = head p = p.next (n1.val, n2.val) = (n2.val, n1.val) return head
# # Define a generator # def test(): # print("phase one") # yield 5 # print("phase two") # yield 10 # # call and return the generator # gen=test() # # print(gen) #"only print the object of generator" # # work with for-loop # for data in gen: # print(data) def generateEven(maxNumber): number = 0 # yield number # number+=2 # yield number # number+=2 # yield number while number<maxNumber: yield number number+=2 evenGenerator = generateEven(10) for data in evenGenerator: print(data)
def generate_even(maxNumber): number = 0 while number < maxNumber: yield number number += 2 even_generator = generate_even(10) for data in evenGenerator: print(data)
c, r = 'ABCDEFGH', '12345678' cell = input("Which chess square? ") cc, cr = c.index(cell[0]), r.index(cell[1]) print("black") if (int(cc)+int(cr)) % 2 == 0 else print("white")
(c, r) = ('ABCDEFGH', '12345678') cell = input('Which chess square? ') (cc, cr) = (c.index(cell[0]), r.index(cell[1])) print('black') if (int(cc) + int(cr)) % 2 == 0 else print('white')
#!/usr/bin/env python3 def encrypt(text, s): result = "" # transverse the plain text for i in range(len(text)): char = text[i] # Encrypt uppercase characters in plain text if (char.isupper()): result += chr((ord(char) + s-65) % 26 + 65) # Encrypt lowercase characters in plain text else: result += chr((ord(char) + s - 97) % 26 + 97) return result text = "ATTACKATONCE" s = 4 print("Plain Text : " + text) print("Shift pattern : " + str(s)) print("Cipher: " + encrypt(text, s))
def encrypt(text, s): result = '' for i in range(len(text)): char = text[i] if char.isupper(): result += chr((ord(char) + s - 65) % 26 + 65) else: result += chr((ord(char) + s - 97) % 26 + 97) return result text = 'ATTACKATONCE' s = 4 print('Plain Text : ' + text) print('Shift pattern : ' + str(s)) print('Cipher: ' + encrypt(text, s))
# explicit conversion a="32" b=str(32) print(a+b) a=int(a) b=int(b) print(a+b) # python does not convert implicitly in these cases
a = '32' b = str(32) print(a + b) a = int(a) b = int(b) print(a + b)
def part_1(data): return sum(int(line) for line in data) def part_2(data): cumulative = 0 reached = {0} while True: for line in data: cumulative += int(line) if cumulative in reached: return cumulative reached.add(cumulative) if __name__ == '__main__': with open('day_01_input.txt', 'r') as f: inp = f.readlines() print("Part 1 answer: " + str(part_1(inp))) print("Part 2 answer: " + str(part_2(inp)))
def part_1(data): return sum((int(line) for line in data)) def part_2(data): cumulative = 0 reached = {0} while True: for line in data: cumulative += int(line) if cumulative in reached: return cumulative reached.add(cumulative) if __name__ == '__main__': with open('day_01_input.txt', 'r') as f: inp = f.readlines() print('Part 1 answer: ' + str(part_1(inp))) print('Part 2 answer: ' + str(part_2(inp)))
class Resistor: def __init__(self, p, R): self.type = 'R' self.p = p self.p1 = p.split('-')[0] self.p2 = p.split('-')[1] self.R = R self.Y = 1/R self.v = [] self.ic = [] def resolveInitialConditions(self): # self.v.append(0) # self.i.append(0) pass def resolveIh(self): pass def resolveV(self, vm): p1 = int(self.p1) p2 = int(self.p2) if p1 == 0: ddp = vm[p2-1][0] if p2 == 0: ddp = vm[p1-1][0] if p1 != 0 and p2 != 0: ddp = vm[p1-1][0] - vm[p2-1][0] vr = float(ddp) self.v.append(vr) return vr def resolveI(self): ir = float(self.v[-1]/self.R) self.ic.append(ir)
class Resistor: def __init__(self, p, R): self.type = 'R' self.p = p self.p1 = p.split('-')[0] self.p2 = p.split('-')[1] self.R = R self.Y = 1 / R self.v = [] self.ic = [] def resolve_initial_conditions(self): pass def resolve_ih(self): pass def resolve_v(self, vm): p1 = int(self.p1) p2 = int(self.p2) if p1 == 0: ddp = vm[p2 - 1][0] if p2 == 0: ddp = vm[p1 - 1][0] if p1 != 0 and p2 != 0: ddp = vm[p1 - 1][0] - vm[p2 - 1][0] vr = float(ddp) self.v.append(vr) return vr def resolve_i(self): ir = float(self.v[-1] / self.R) self.ic.append(ir)
def read_file(file_path): with open(file_path) as file: return file.read().split("|") def parser_list(questions): return [question.strip() for question in questions if question.strip()]
def read_file(file_path): with open(file_path) as file: return file.read().split('|') def parser_list(questions): return [question.strip() for question in questions if question.strip()]
def main(): phrase = input("Choose a phrase: ") # Write your code here main()
def main(): phrase = input('Choose a phrase: ') main()
COMPONENTS_BANNER_DOMESTIC = 'eu-exit-banner-domestic' COMPONENTS_BANNER_INTERNATIONAL = 'eu-exit-banner-international' EUEXIT_DOMESTIC_NEWS = 'eu-exit-news' EUEXIT_INTERNATIONAL_NEWS = 'international-eu-exit-news' EUEXIT_DOMESTIC_FORM = 'eu-exit-domestic' EUEXIT_FORM_SUCCESS = 'eu-exit-form-success' EUEXIT_INTERNATIONAL_FORM = 'eu-exit-international' FIND_A_SUPPLIER_INDUSTRY_LANDING = 'industries-landing-page' FIND_A_SUPPLIER_LANDING = 'landing-page' FIND_A_SUPPLIER_INDUSTRY_CONTACT = 'industry-contact' GREAT_GET_FINANCE = 'get-finance' GREAT_ADVICE = 'advice' GREAT_HOME = 'great-domestic-home' GREAT_HOME_OLD = 'home' GREAT_HOME_INTERNATIONAL = 'great-international-home' GREAT_HOME_INTERNATIONAL_OLD = 'international' GREAT_CAMPAIGNS = 'campaigns' GREAT_MARKETING_PAGES = 'export-readiness-marketing-pages' GREAT_PRIVACY_AND_COOKIES = 'privacy-and-cookies' GREAT_SITE_POLICY_PAGES = 'export-readiness-site-policy-pages' GREAT_TERMS_AND_CONDITIONS = 'terms-and-conditions' GREAT_ACCESSIBILITY_STATEMENT = 'accessibility-statement' HELP_ACCOUNT_COMPANY_NOT_FOUND = 'company-not-found' HELP_ACCOUNT_SOLE_TRADER_ADDRESS_NOT_FOUND = 'sole-trader-address-not-found' HELP_COMPANIES_HOUSE_LOGIN = 'companies-house-login' HELP_EXOPP_ALERTS_IRRELEVANT = 'alerts-not-relevant' HELP_EXOPPS_NO_RESPONSE = 'opportunity-no-response' HELP_EXPORTING_TO_UK = 'exporting-to-the-uk' HELP_FORM_SUCCESS = 'contact-success-form' HELP_FORM_SUCCESS_BEIS = 'contact-beis-success' HELP_FORM_SUCCESS_DEFRA = 'contact-defra-success' HELP_FORM_SUCCESS_DSO = 'contact-dso-success-form' HELP_FORM_SUCCESS_EVENTS = 'contact-events-success-form' HELP_FORM_SUCCESS_EXPORT_ADVICE = 'contact-export-advice-success-form' HELP_FORM_SUCCESS_FEEDBACK = 'contact-feedback-success-form' HELP_FORM_SUCCESS_FIND_COMPANIES = 'contact-find-companies-success-form' HELP_FORM_SUCCESS_INTERNATIONAL = 'contact-international-success-form' HELP_FORM_SUCCESS_SOO = 'contact-soo-success-form' HELP_MISSING_VERIFY_EMAIL = 'no-verification-email' HELP_PASSWORD_RESET = 'password-reset' HELP_VERIFICATION_CODE_ENTER = 'verification-letter-code' HELP_VERIFICATION_CODE_LETTER = 'no-verification-letter' HELP_VERIFICATION_CODE_MISSING = 'verification-missing' INTERNATIONAL_MARKETING_PAGES = 'great-international-marketing-pages' INTERNATIONAL_UK_HQ_PAGES = 'great-international-uk-hq-pages' INVEST_SECTOR_LANDING_PAGE = 'sector-landing-page' INVEST_GUIDE_LANDING_PAGE = 'setup-guide-landing-page' INVEST_HIGH_POTENTIAL_OPPORTUNITY_FORM = 'high-potential-opportunity-form' INVEST_HIGH_POTENTIAL_OPPORTUNITY_FORM_SUCCESS = ( 'high-potential-opportunity-submit-success' ) INVEST_UK_REGION_LANDING_PAGE = 'uk-region-landing-page' INVEST_HOME_PAGE = 'home-page' PERFORMANCE_DASHBOARD = 'performance-dashboard' PERFORMANCE_DASHBOARD_EXOPPS = 'performance-dashboard-export-opportunities' PERFORMANCE_DASHBOARD_INVEST = 'performance-dashboard-invest' PERFORMANCE_DASHBOARD_NOTES = 'performance-dashboard-notes' PERFORMANCE_DASHBOARD_SOO = 'performance-dashboard-selling-online-overseas' PERFORMANCE_DASHBOARD_TRADE_PROFILE = 'performance-dashboard-trade-profiles' # New tree-based routing slugs CONTACT_FORM_SLUG = 'contact' FORM_SUCCESS_SLUG = 'success' FAS_INTERNATIONAL_HOME_PAGE = 'trade' INVEST_INTERNATIONAL_HOME_PAGE = 'invest' INVEST_INTERNATIONAL_REGION_LANDING_PAGE = 'uk-regions' INVEST_INTERNATIONAL_HIGH_POTENTIAL_OPPORTUNITIES = 'high-potential-opportunities'
components_banner_domestic = 'eu-exit-banner-domestic' components_banner_international = 'eu-exit-banner-international' euexit_domestic_news = 'eu-exit-news' euexit_international_news = 'international-eu-exit-news' euexit_domestic_form = 'eu-exit-domestic' euexit_form_success = 'eu-exit-form-success' euexit_international_form = 'eu-exit-international' find_a_supplier_industry_landing = 'industries-landing-page' find_a_supplier_landing = 'landing-page' find_a_supplier_industry_contact = 'industry-contact' great_get_finance = 'get-finance' great_advice = 'advice' great_home = 'great-domestic-home' great_home_old = 'home' great_home_international = 'great-international-home' great_home_international_old = 'international' great_campaigns = 'campaigns' great_marketing_pages = 'export-readiness-marketing-pages' great_privacy_and_cookies = 'privacy-and-cookies' great_site_policy_pages = 'export-readiness-site-policy-pages' great_terms_and_conditions = 'terms-and-conditions' great_accessibility_statement = 'accessibility-statement' help_account_company_not_found = 'company-not-found' help_account_sole_trader_address_not_found = 'sole-trader-address-not-found' help_companies_house_login = 'companies-house-login' help_exopp_alerts_irrelevant = 'alerts-not-relevant' help_exopps_no_response = 'opportunity-no-response' help_exporting_to_uk = 'exporting-to-the-uk' help_form_success = 'contact-success-form' help_form_success_beis = 'contact-beis-success' help_form_success_defra = 'contact-defra-success' help_form_success_dso = 'contact-dso-success-form' help_form_success_events = 'contact-events-success-form' help_form_success_export_advice = 'contact-export-advice-success-form' help_form_success_feedback = 'contact-feedback-success-form' help_form_success_find_companies = 'contact-find-companies-success-form' help_form_success_international = 'contact-international-success-form' help_form_success_soo = 'contact-soo-success-form' help_missing_verify_email = 'no-verification-email' help_password_reset = 'password-reset' help_verification_code_enter = 'verification-letter-code' help_verification_code_letter = 'no-verification-letter' help_verification_code_missing = 'verification-missing' international_marketing_pages = 'great-international-marketing-pages' international_uk_hq_pages = 'great-international-uk-hq-pages' invest_sector_landing_page = 'sector-landing-page' invest_guide_landing_page = 'setup-guide-landing-page' invest_high_potential_opportunity_form = 'high-potential-opportunity-form' invest_high_potential_opportunity_form_success = 'high-potential-opportunity-submit-success' invest_uk_region_landing_page = 'uk-region-landing-page' invest_home_page = 'home-page' performance_dashboard = 'performance-dashboard' performance_dashboard_exopps = 'performance-dashboard-export-opportunities' performance_dashboard_invest = 'performance-dashboard-invest' performance_dashboard_notes = 'performance-dashboard-notes' performance_dashboard_soo = 'performance-dashboard-selling-online-overseas' performance_dashboard_trade_profile = 'performance-dashboard-trade-profiles' contact_form_slug = 'contact' form_success_slug = 'success' fas_international_home_page = 'trade' invest_international_home_page = 'invest' invest_international_region_landing_page = 'uk-regions' invest_international_high_potential_opportunities = 'high-potential-opportunities'
class APIException(Exception): """General exception thrown by an API view, contains a message for the JSON response.""" def __init__(self, message, status_code=400) -> None: super().__init__(self) self.message: str = message self.status_code: int = status_code def __repr__(self) -> str: return f'<APIException (Code: {self.status_code}) [Message: {self.message}]>' class _500Exception(APIException): def __init__(self) -> None: super().__init__( message='Something went wrong with your request.', status_code=500 ) class _405Exception(APIException): def __init__(self) -> None: super().__init__( message='Method not allowed for this resource.', status_code=405 ) class _404Exception(APIException): def __init__(self, resource: str = 'Resource') -> None: super().__init__( message=f'{resource} does not exist.', status_code=404 ) class _403Exception(APIException): """ Occurrences of this exception are (to be) logged. This exception is also capable of throwing a 404 to masquerade hidden endpoints. To do so, set the masquerade param to True. """ def __init__(self, message: str = None, masquerade: bool = False) -> None: super().__init__( message=( message or 'You do not have permission to access this resource.' ), status_code=403, ) if masquerade: self.status_code = 404 self.message = 'Resource does not exist.' class _401Exception(APIException): def __init__(self, message: str = None) -> None: super().__init__( message=(message or 'Invalid authorization.'), status_code=401 ) class _312Exception(APIException): "Alastor please stay away from this codebase, thanks!" def __init__(self, lock: bool = False) -> None: super().__init__( message=f'Your account has been {"locked" if lock else "disabled"}.', status_code=403, )
class Apiexception(Exception): """General exception thrown by an API view, contains a message for the JSON response.""" def __init__(self, message, status_code=400) -> None: super().__init__(self) self.message: str = message self.status_code: int = status_code def __repr__(self) -> str: return f'<APIException (Code: {self.status_code}) [Message: {self.message}]>' class _500Exception(APIException): def __init__(self) -> None: super().__init__(message='Something went wrong with your request.', status_code=500) class _405Exception(APIException): def __init__(self) -> None: super().__init__(message='Method not allowed for this resource.', status_code=405) class _404Exception(APIException): def __init__(self, resource: str='Resource') -> None: super().__init__(message=f'{resource} does not exist.', status_code=404) class _403Exception(APIException): """ Occurrences of this exception are (to be) logged. This exception is also capable of throwing a 404 to masquerade hidden endpoints. To do so, set the masquerade param to True. """ def __init__(self, message: str=None, masquerade: bool=False) -> None: super().__init__(message=message or 'You do not have permission to access this resource.', status_code=403) if masquerade: self.status_code = 404 self.message = 'Resource does not exist.' class _401Exception(APIException): def __init__(self, message: str=None) -> None: super().__init__(message=message or 'Invalid authorization.', status_code=401) class _312Exception(APIException): """Alastor please stay away from this codebase, thanks!""" def __init__(self, lock: bool=False) -> None: super().__init__(message=f"Your account has been {('locked' if lock else 'disabled')}.", status_code=403)
def extractFujitranslationWordpressCom(item): ''' Parser for 'fujitranslation.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('My Wife is a Martial Alliance Head', 'My Wife is a Martial Alliance Head', 'translated'), ('My CEO Wife', 'My CEO Wife', 'translated'), ('Mai Kitsune Waifu', 'Mai Kitsune Waifu', 'translated'), ('Rebirth of the Super Thief', 'Rebirth of the Super Thief', 'translated'), ('Matchless Supernatural of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated'), ('Matchless Supernaturals of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated'), ] for tagname, name, tl_type in tagmap: if tagname in item['tags']: return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
def extract_fujitranslation_wordpress_com(item): """ Parser for 'fujitranslation.wordpress.com' """ (vol, chp, frag, postfix) = extract_vol_chapter_fragment_postfix(item['title']) if not (chp or vol) or 'preview' in item['title'].lower(): return None tagmap = [('My Wife is a Martial Alliance Head', 'My Wife is a Martial Alliance Head', 'translated'), ('My CEO Wife', 'My CEO Wife', 'translated'), ('Mai Kitsune Waifu', 'Mai Kitsune Waifu', 'translated'), ('Rebirth of the Super Thief', 'Rebirth of the Super Thief', 'translated'), ('Matchless Supernatural of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated'), ('Matchless Supernaturals of the Three Kingdom', 'Matchless Supernaturals of the Three Kingdom', 'translated')] for (tagname, name, tl_type) in tagmap: if tagname in item['tags']: return build_release_message_with_type(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
class Solution: def subarraySum(self, nums: List[int], k: int) -> int: # We will construct an additional dictionary to keep the sum of # all the elements before the index, for example # given nums = [1, 4, 0, 3, 2] # the element sum list: sum_list = [0, 1, 5, 5, 8, 10] # Then we turn the sum_list into a dictionary # sum_dict = { # 0: 1 # 1: 1 # 5: 2 # 8: 1 # 10: 1 # } # The key of the sum_dict stands for the sum # The value of the key would be the number of substrings to # get to this value # Time complexity: O(n) # Space complexity: O(2n) = O(n) sum_dict = {0: 1} count = s = 0 # Iterate nums for n in nums: s += n # Check if "k" can be formed by "n" and previous sums: "s-k" count += sum_dict.get(s - k, 0) # Add new sum into the dictionary if s in sum_dict: sum_dict[s] += 1 else: sum_dict[s] = 1 return count
class Solution: def subarray_sum(self, nums: List[int], k: int) -> int: sum_dict = {0: 1} count = s = 0 for n in nums: s += n count += sum_dict.get(s - k, 0) if s in sum_dict: sum_dict[s] += 1 else: sum_dict[s] = 1 return count
# -*- coding: utf-8 -*- """SF-TOOLS PACKAGE INFO This module provides some basic information about the sf_tools package. :Author: Samuel Farrens <samuel.farrens@cea.fr> :Version: 2.0.4 """ # Package Version version_info = (2, 0, 4) __version__ = '.'.join(str(c) for c in version_info) __about__ = ('sf_tools \n\n ' 'Author: Samuel Farrens \n ' 'Year: 2018 \n ' 'Email: samuel.farrens@cea.fr \n ' 'Website: https://sfarrens.github.io \n\n ' 'sf_tools is a series of Python modules with applications to ' 'image analysis signal processing and statistics. \n\n ' 'Full documentation available here: ' 'https://sfarrens.github.io/sf_tools/')
"""SF-TOOLS PACKAGE INFO This module provides some basic information about the sf_tools package. :Author: Samuel Farrens <samuel.farrens@cea.fr> :Version: 2.0.4 """ version_info = (2, 0, 4) __version__ = '.'.join((str(c) for c in version_info)) __about__ = 'sf_tools \n\n Author: Samuel Farrens \n Year: 2018 \n Email: samuel.farrens@cea.fr \n Website: https://sfarrens.github.io \n\n sf_tools is a series of Python modules with applications to image analysis signal processing and statistics. \n\n Full documentation available here: https://sfarrens.github.io/sf_tools/'
"""Hershey Vector Font. See http://paulbourke.net/dataformats/hershey/ """ # print(hershey.simplex[0]) simplex = [ [0,16, # Ascii 32 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,10, # Ascii 33 5,21, 5, 7,-1,-1, 5, 2, 4, 1, 5, 0, 6, 1, 5, 2,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,16, # Ascii 34 4,21, 4,14,-1,-1,12,21,12,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,21, # Ascii 35 11,25, 4,-7,-1,-1,17,25,10,-7,-1,-1, 4,12,18,12,-1,-1, 3, 6,17, 6,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [26,20, # Ascii 36 8,25, 8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21, 8,21, 5,20, 3, 18, 3,16, 4,14, 5,13, 7,12,13,10,15, 9,16, 8,17, 6,17, 3,15, 1,12, 0, 8, 0, 5, 1, 3, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [31,24, # Ascii 37 21,21, 3, 0,-1,-1, 8,21,10,19,10,17, 9,15, 7,14, 5,14, 3,16, 3,18, 4, 20, 6,21, 8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17, 7,15, 6,14, 4, 14, 2,16, 0,18, 0,20, 1,21, 3,21, 5,19, 7,17, 7,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [34,26, # Ascii 38 23,12,23,13,22,14,21,14,20,13,19,11,17, 6,15, 3,13, 1,11, 0, 7, 0, 5, 1, 4, 2, 3, 4, 3, 6, 4, 8, 5, 9,12,13,13,14,14,16,14,18,13,20,11,21, 9,20, 8,18, 8,16, 9,13,11,10,16, 3,18, 1,20, 0,22, 0,23, 1,23, 2,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [7,10, # Ascii 39 5,19, 4,20, 5,21, 6,20, 6,18, 5,16, 4,15,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,14, # Ascii 40 11,25, 9,23, 7,20, 5,16, 4,11, 4, 7, 5, 2, 7,-2, 9,-5,11,-7,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,14, # Ascii 41 3,25, 5,23, 7,20, 9,16,10,11,10, 7, 9, 2, 7,-2, 5,-5, 3,-7,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,16, # Ascii 42 8,21, 8, 9,-1,-1, 3,18,13,12,-1,-1,13,18, 3,12,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,26, # Ascii 43 13,18,13, 0,-1,-1, 4, 9,22, 9,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,10, # Ascii 44 6, 1, 5, 0, 4, 1, 5, 2, 6, 1, 6,-1, 5,-3, 4,-4,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2,26, # Ascii 45 4, 9,22, 9,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,10, # Ascii 46 5, 2, 4, 1, 5, 0, 6, 1, 5, 2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2,22, # Ascii 47 20,25, 2,-7,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,20, # Ascii 48 9,21, 6,20, 4,17, 3,12, 3, 9, 4, 4, 6, 1, 9, 0,11, 0,14, 1,16, 4,17, 9,17,12,16,17,14,20,11,21, 9,21,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [4,20, # Ascii 49 6,17, 8,18,11,21,11, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [14,20, # Ascii 50 4,16, 4,17, 5,19, 6,20, 8,21,12,21,14,20,15,19,16,17,16,15,15,13,13, 10, 3, 0,17, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [15,20, # Ascii 51 5,21,16,21,10,13,13,13,15,12,16,11,17, 8,17, 6,16, 3,14, 1,11, 0, 8, 0, 5, 1, 4, 2, 3, 4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [6,20, # Ascii 52 13,21, 3, 7,18, 7,-1,-1,13,21,13, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,20, # Ascii 53 15,21, 5,21, 4,12, 5,13, 8,14,11,14,14,13,16,11,17, 8,17, 6,16, 3,14, 1,11, 0, 8, 0, 5, 1, 4, 2, 3, 4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [23,20, # Ascii 54 16,18,15,20,12,21,10,21, 7,20, 5,17, 4,12, 4, 7, 5, 3, 7, 1,10, 0,11, 0,14, 1,16, 3,17, 6,17, 7,16,10,14,12,11,13,10,13, 7,12, 5,10, 4, 7, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,20, # Ascii 55 17,21, 7, 0,-1,-1, 3,21,17,21,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [29,20, # Ascii 56 8,21, 5,20, 4,18, 4,16, 5,14, 7,13,11,12,14,11,16, 9,17, 7,17, 4,16, 2,15, 1,12, 0, 8, 0, 5, 1, 4, 2, 3, 4, 3, 7, 4, 9, 6,11, 9,12,13,13, 15,14,16,16,16,18,15,20,12,21, 8,21,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [23,20, # Ascii 57 16,14,15,11,13, 9,10, 8, 9, 8, 6, 9, 4,11, 3,14, 3,15, 4,18, 6,20, 9, 21,10,21,13,20,15,18,16,14,16, 9,15, 4,13, 1,10, 0, 8, 0, 5, 1, 4, 3, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,10, # Ascii 58 5,14, 4,13, 5,12, 6,13, 5,14,-1,-1, 5, 2, 4, 1, 5, 0, 6, 1, 5, 2,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [14,10, # Ascii 59 5,14, 4,13, 5,12, 6,13, 5,14,-1,-1, 6, 1, 5, 0, 4, 1, 5, 2, 6, 1, 6, -1, 5,-3, 4,-4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [3,24, # Ascii 60 20,18, 4, 9,20, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,26, # Ascii 61 4,12,22,12,-1,-1, 4, 6,22, 6,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [3,24, # Ascii 62 4,18,20, 9, 4, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [20,18, # Ascii 63 3,16, 3,17, 4,19, 5,20, 7,21,11,21,13,20,14,19,15,17,15,15,14,13,13, 12, 9,10, 9, 7,-1,-1, 9, 2, 8, 1, 9, 0,10, 1, 9, 2,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [55,27, # Ascii 64 18,13,17,15,15,16,12,16,10,15, 9,14, 8,11, 8, 8, 9, 6,11, 5,14, 5,16, 6,17, 8,-1,-1,12,16,10,14, 9,11, 9, 8,10, 6,11, 5,-1,-1,18,16,17, 8, 17, 6,19, 5,21, 5,23, 7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12, 21, 9,20, 7,19, 5,17, 4,15, 3,12, 3, 9, 4, 6, 5, 4, 7, 2, 9, 1,12, 0, 15, 0,18, 1,20, 2,21, 3,-1,-1,19,16,18, 8,18, 6,19, 5], [8,18, # Ascii 65 9,21, 1, 0,-1,-1, 9,21,17, 0,-1,-1, 4, 7,14, 7,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [23,21, # Ascii 66 4,21, 4, 0,-1,-1, 4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13, 11,-1,-1, 4,11,13,11,16,10,17, 9,18, 7,18, 4,17, 2,16, 1,13, 0, 4, 0, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [18,21, # Ascii 67 18,16,17,18,15,20,13,21, 9,21, 7,20, 5,18, 4,16, 3,13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0,13, 0,15, 1,17, 3,18, 5,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [15,21, # Ascii 68 4,21, 4, 0,-1,-1, 4,21,11,21,14,20,16,18,17,16,18,13,18, 8,17, 5,16, 3,14, 1,11, 0, 4, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,19, # Ascii 69 4,21, 4, 0,-1,-1, 4,21,17,21,-1,-1, 4,11,12,11,-1,-1, 4, 0,17, 0,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,18, # Ascii 70 4,21, 4, 0,-1,-1, 4,21,17,21,-1,-1, 4,11,12,11,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [22,21, # Ascii 71 18,16,17,18,15,20,13,21, 9,21, 7,20, 5,18, 4,16, 3,13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0,13, 0,15, 1,17, 3,18, 5,18, 8,-1,-1,13, 8,18, 8,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,22, # Ascii 72 4,21, 4, 0,-1,-1,18,21,18, 0,-1,-1, 4,11,18,11,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2, 8, # Ascii 73 4,21, 4, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,16, # Ascii 74 12,21,12, 5,11, 2,10, 1, 8, 0, 6, 0, 4, 1, 3, 2, 2, 5, 2, 7,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,21, # Ascii 75 4,21, 4, 0,-1,-1,18,21, 4, 7,-1,-1, 9,12,18, 0,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,17, # Ascii 76 4,21, 4, 0,-1,-1, 4, 0,16, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,24, # Ascii 77 4,21, 4, 0,-1,-1, 4,21,12, 0,-1,-1,20,21,12, 0,-1,-1,20,21,20, 0,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,22, # Ascii 78 4,21, 4, 0,-1,-1, 4,21,18, 0,-1,-1,18,21,18, 0,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [21,22, # Ascii 79 9,21, 7,20, 5,18, 4,16, 3,13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0,13, 0,15, 1,17, 3,18, 5,19, 8,19,13,18,16,17,18,15,20,13,21, 9,21,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [13,21, # Ascii 80 4,21, 4, 0,-1,-1, 4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13, 10, 4,10,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [24,22, # Ascii 81 9,21, 7,20, 5,18, 4,16, 3,13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0,13, 0,15, 1,17, 3,18, 5,19, 8,19,13,18,16,17,18,15,20,13,21, 9,21,-1,-1,12, 4, 18,-2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [16,21, # Ascii 82 4,21, 4, 0,-1,-1, 4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13, 11, 4,11,-1,-1,11,11,18, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [20,20, # Ascii 83 17,18,15,20,12,21, 8,21, 5,20, 3,18, 3,16, 4,14, 5,13, 7,12,13,10,15, 9,16, 8,17, 6,17, 3,15, 1,12, 0, 8, 0, 5, 1, 3, 3,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,16, # Ascii 84 8,21, 8, 0,-1,-1, 1,21,15,21,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,22, # Ascii 85 4,21, 4, 6, 5, 3, 7, 1,10, 0,12, 0,15, 1,17, 3,18, 6,18,21,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,18, # Ascii 86 1,21, 9, 0,-1,-1,17,21, 9, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,24, # Ascii 87 2,21, 7, 0,-1,-1,12,21, 7, 0,-1,-1,12,21,17, 0,-1,-1,22,21,17, 0,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,20, # Ascii 88 3,21,17, 0,-1,-1,17,21, 3, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [6,18, # Ascii 89 1,21, 9,11, 9, 0,-1,-1,17,21, 9,11,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,20, # Ascii 90 17,21, 3, 0,-1,-1, 3,21,17,21,-1,-1, 3, 0,17, 0,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,14, # Ascii 91 4,25, 4,-7,-1,-1, 5,25, 5,-7,-1,-1, 4,25,11,25,-1,-1, 4,-7,11,-7,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2,14, # Ascii 92 0,21,14,-3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,14, # Ascii 93 9,25, 9,-7,-1,-1,10,25,10,-7,-1,-1, 3,25,10,25,-1,-1, 3,-7,10,-7,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,16, # Ascii 94 6,15, 8,18,10,15,-1,-1, 3,12, 8,17,13,12,-1,-1, 8,17, 8, 0,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2,16, # Ascii 95 0,-2,16,-2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [7,10, # Ascii 96 6,21, 5,20, 4,18, 4,16, 5,15, 6,16, 5,17,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,19, # Ascii 97 15,14,15, 0,-1,-1,15,11,13,13,11,14, 8,14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,19, # Ascii 98 4,21, 4, 0,-1,-1, 4,11, 6,13, 8,14,11,14,13,13,15,11,16, 8,16, 6,15, 3,13, 1,11, 0, 8, 0, 6, 1, 4, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [14,18, # Ascii 99 15,11,13,13,11,14, 8,14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,19, # Ascii 100 15,21,15, 0,-1,-1,15,11,13,13,11,14, 8,14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,18, # Ascii 101 3, 8,15, 8,15,10,14,12,13,13,11,14, 8,14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,12, # Ascii 102 10,21, 8,21, 6,20, 5,17, 5, 0,-1,-1, 2,14, 9,14,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [22,19, # Ascii 103 15,14,15,-2,14,-5,13,-6,11,-7, 8,-7, 6,-6,-1,-1,15,11,13,13,11,14, 8, 14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,19, # Ascii 104 4,21, 4, 0,-1,-1, 4,10, 7,13, 9,14,12,14,14,13,15,10,15, 0,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8, 8, # Ascii 105 3,21, 4,20, 5,21, 4,22, 3,21,-1,-1, 4,14, 4, 0,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,10, # Ascii 106 5,21, 6,20, 7,21, 6,22, 5,21,-1,-1, 6,14, 6,-3, 5,-6, 3,-7, 1,-7,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,17, # Ascii 107 4,21, 4, 0,-1,-1,14,14, 4, 4,-1,-1, 8, 8,15, 0,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2, 8, # Ascii 108 4,21, 4, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [18,30, # Ascii 109 4,14, 4, 0,-1,-1, 4,10, 7,13, 9,14,12,14,14,13,15,10,15, 0,-1,-1,15, 10,18,13,20,14,23,14,25,13,26,10,26, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,19, # Ascii 110 4,14, 4, 0,-1,-1, 4,10, 7,13, 9,14,12,14,14,13,15,10,15, 0,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,19, # Ascii 111 8,14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,16, 6,16, 8,15,11,13,13,11,14, 8,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,19, # Ascii 112 4,14, 4,-7,-1,-1, 4,11, 6,13, 8,14,11,14,13,13,15,11,16, 8,16, 6,15, 3,13, 1,11, 0, 8, 0, 6, 1, 4, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,19, # Ascii 113 15,14,15,-7,-1,-1,15,11,13,13,11,14, 8,14, 6,13, 4,11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0,11, 0,13, 1,15, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,13, # Ascii 114 4,14, 4, 0,-1,-1, 4, 8, 5,11, 7,13, 9,14,12,14,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [17,17, # Ascii 115 14,11,13,13,10,14, 7,14, 4,13, 3,11, 4, 9, 6, 8,11, 7,13, 6,14, 4,14, 3,13, 1,10, 0, 7, 0, 4, 1, 3, 3,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,12, # Ascii 116 5,21, 5, 4, 6, 1, 8, 0,10, 0,-1,-1, 2,14, 9,14,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [10,19, # Ascii 117 4,14, 4, 4, 5, 1, 7, 0,10, 0,12, 1,15, 4,-1,-1,15,14,15, 0,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,16, # Ascii 118 2,14, 8, 0,-1,-1,14,14, 8, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [11,22, # Ascii 119 3,14, 7, 0,-1,-1,11,14, 7, 0,-1,-1,11,14,15, 0,-1,-1,19,14,15, 0,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [5,17, # Ascii 120 3,14,14, 0,-1,-1,14,14, 3, 0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [9,16, # Ascii 121 2,14, 8, 0,-1,-1,14,14, 8, 0, 6,-4, 4,-6, 2,-7, 1,-7,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [8,17, # Ascii 122 14,14, 3, 0,-1,-1, 3,14,14,14,-1,-1, 3, 0,14, 0,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [39,14, # Ascii 123 9,25, 7,24, 6,23, 5,21, 5,19, 6,17, 7,16, 8,14, 8,12, 6,10,-1,-1, 7, 24, 6,22, 6,20, 7,18, 8,17, 9,15, 9,13, 8,11, 4, 9, 8, 7, 9, 5, 9, 3, 8, 1, 7, 0, 6,-2, 6,-4, 7,-6,-1,-1, 6, 8, 8, 6, 8, 4, 7, 2, 6, 1, 5, -1, 5,-3, 6,-5, 7,-6, 9,-7,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [2, 8, # Ascii 124 4,25, 4,-7,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [39,14, # Ascii 125 5,25, 7,24, 8,23, 9,21, 9,19, 8,17, 7,16, 6,14, 6,12, 8,10,-1,-1, 7, 24, 8,22, 8,20, 7,18, 6,17, 5,15, 5,13, 6,11,10, 9, 6, 7, 5, 5, 5, 3, 6, 1, 7, 0, 8,-2, 8,-4, 7,-6,-1,-1, 8, 8, 6, 6, 6, 4, 7, 2, 8, 1, 9, -1, 9,-3, 8,-5, 7,-6, 5,-7,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1], [23,24, # Ascii 126 3, 6, 3, 8, 4,11, 6,12, 8,12,10,11,14, 8,16, 7,18, 7,20, 8,21,10,-1, -1, 3, 8, 4,10, 6,11, 8,11,10,10,14, 7,16, 6,18, 6,20, 7,21,10,21,12, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1] ]
"""Hershey Vector Font. See http://paulbourke.net/dataformats/hershey/ """ simplex = [[0, 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 10, 5, 21, 5, 7, -1, -1, 5, 2, 4, 1, 5, 0, 6, 1, 5, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 16, 4, 21, 4, 14, -1, -1, 12, 21, 12, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 21, 11, 25, 4, -7, -1, -1, 17, 25, 10, -7, -1, -1, 4, 12, 18, 12, -1, -1, 3, 6, 17, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [26, 20, 8, 25, 8, -4, -1, -1, 12, 25, 12, -4, -1, -1, 17, 18, 15, 20, 12, 21, 8, 21, 5, 20, 3, 18, 3, 16, 4, 14, 5, 13, 7, 12, 13, 10, 15, 9, 16, 8, 17, 6, 17, 3, 15, 1, 12, 0, 8, 0, 5, 1, 3, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [31, 24, 21, 21, 3, 0, -1, -1, 8, 21, 10, 19, 10, 17, 9, 15, 7, 14, 5, 14, 3, 16, 3, 18, 4, 20, 6, 21, 8, 21, 10, 20, 13, 19, 16, 19, 19, 20, 21, 21, -1, -1, 17, 7, 15, 6, 14, 4, 14, 2, 16, 0, 18, 0, 20, 1, 21, 3, 21, 5, 19, 7, 17, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [34, 26, 23, 12, 23, 13, 22, 14, 21, 14, 20, 13, 19, 11, 17, 6, 15, 3, 13, 1, 11, 0, 7, 0, 5, 1, 4, 2, 3, 4, 3, 6, 4, 8, 5, 9, 12, 13, 13, 14, 14, 16, 14, 18, 13, 20, 11, 21, 9, 20, 8, 18, 8, 16, 9, 13, 11, 10, 16, 3, 18, 1, 20, 0, 22, 0, 23, 1, 23, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [7, 10, 5, 19, 4, 20, 5, 21, 6, 20, 6, 18, 5, 16, 4, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 14, 11, 25, 9, 23, 7, 20, 5, 16, 4, 11, 4, 7, 5, 2, 7, -2, 9, -5, 11, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 14, 3, 25, 5, 23, 7, 20, 9, 16, 10, 11, 10, 7, 9, 2, 7, -2, 5, -5, 3, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 16, 8, 21, 8, 9, -1, -1, 3, 18, 13, 12, -1, -1, 13, 18, 3, 12, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 26, 13, 18, 13, 0, -1, -1, 4, 9, 22, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 10, 6, 1, 5, 0, 4, 1, 5, 2, 6, 1, 6, -1, 5, -3, 4, -4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 26, 4, 9, 22, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 10, 5, 2, 4, 1, 5, 0, 6, 1, 5, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 22, 20, 25, 2, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 20, 9, 21, 6, 20, 4, 17, 3, 12, 3, 9, 4, 4, 6, 1, 9, 0, 11, 0, 14, 1, 16, 4, 17, 9, 17, 12, 16, 17, 14, 20, 11, 21, 9, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [4, 20, 6, 17, 8, 18, 11, 21, 11, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [14, 20, 4, 16, 4, 17, 5, 19, 6, 20, 8, 21, 12, 21, 14, 20, 15, 19, 16, 17, 16, 15, 15, 13, 13, 10, 3, 0, 17, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [15, 20, 5, 21, 16, 21, 10, 13, 13, 13, 15, 12, 16, 11, 17, 8, 17, 6, 16, 3, 14, 1, 11, 0, 8, 0, 5, 1, 4, 2, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [6, 20, 13, 21, 3, 7, 18, 7, -1, -1, 13, 21, 13, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 20, 15, 21, 5, 21, 4, 12, 5, 13, 8, 14, 11, 14, 14, 13, 16, 11, 17, 8, 17, 6, 16, 3, 14, 1, 11, 0, 8, 0, 5, 1, 4, 2, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [23, 20, 16, 18, 15, 20, 12, 21, 10, 21, 7, 20, 5, 17, 4, 12, 4, 7, 5, 3, 7, 1, 10, 0, 11, 0, 14, 1, 16, 3, 17, 6, 17, 7, 16, 10, 14, 12, 11, 13, 10, 13, 7, 12, 5, 10, 4, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 20, 17, 21, 7, 0, -1, -1, 3, 21, 17, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [29, 20, 8, 21, 5, 20, 4, 18, 4, 16, 5, 14, 7, 13, 11, 12, 14, 11, 16, 9, 17, 7, 17, 4, 16, 2, 15, 1, 12, 0, 8, 0, 5, 1, 4, 2, 3, 4, 3, 7, 4, 9, 6, 11, 9, 12, 13, 13, 15, 14, 16, 16, 16, 18, 15, 20, 12, 21, 8, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [23, 20, 16, 14, 15, 11, 13, 9, 10, 8, 9, 8, 6, 9, 4, 11, 3, 14, 3, 15, 4, 18, 6, 20, 9, 21, 10, 21, 13, 20, 15, 18, 16, 14, 16, 9, 15, 4, 13, 1, 10, 0, 8, 0, 5, 1, 4, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 10, 5, 14, 4, 13, 5, 12, 6, 13, 5, 14, -1, -1, 5, 2, 4, 1, 5, 0, 6, 1, 5, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [14, 10, 5, 14, 4, 13, 5, 12, 6, 13, 5, 14, -1, -1, 6, 1, 5, 0, 4, 1, 5, 2, 6, 1, 6, -1, 5, -3, 4, -4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [3, 24, 20, 18, 4, 9, 20, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 26, 4, 12, 22, 12, -1, -1, 4, 6, 22, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [3, 24, 4, 18, 20, 9, 4, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [20, 18, 3, 16, 3, 17, 4, 19, 5, 20, 7, 21, 11, 21, 13, 20, 14, 19, 15, 17, 15, 15, 14, 13, 13, 12, 9, 10, 9, 7, -1, -1, 9, 2, 8, 1, 9, 0, 10, 1, 9, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [55, 27, 18, 13, 17, 15, 15, 16, 12, 16, 10, 15, 9, 14, 8, 11, 8, 8, 9, 6, 11, 5, 14, 5, 16, 6, 17, 8, -1, -1, 12, 16, 10, 14, 9, 11, 9, 8, 10, 6, 11, 5, -1, -1, 18, 16, 17, 8, 17, 6, 19, 5, 21, 5, 23, 7, 24, 10, 24, 12, 23, 15, 22, 17, 20, 19, 18, 20, 15, 21, 12, 21, 9, 20, 7, 19, 5, 17, 4, 15, 3, 12, 3, 9, 4, 6, 5, 4, 7, 2, 9, 1, 12, 0, 15, 0, 18, 1, 20, 2, 21, 3, -1, -1, 19, 16, 18, 8, 18, 6, 19, 5], [8, 18, 9, 21, 1, 0, -1, -1, 9, 21, 17, 0, -1, -1, 4, 7, 14, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [23, 21, 4, 21, 4, 0, -1, -1, 4, 21, 13, 21, 16, 20, 17, 19, 18, 17, 18, 15, 17, 13, 16, 12, 13, 11, -1, -1, 4, 11, 13, 11, 16, 10, 17, 9, 18, 7, 18, 4, 17, 2, 16, 1, 13, 0, 4, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [18, 21, 18, 16, 17, 18, 15, 20, 13, 21, 9, 21, 7, 20, 5, 18, 4, 16, 3, 13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0, 13, 0, 15, 1, 17, 3, 18, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [15, 21, 4, 21, 4, 0, -1, -1, 4, 21, 11, 21, 14, 20, 16, 18, 17, 16, 18, 13, 18, 8, 17, 5, 16, 3, 14, 1, 11, 0, 4, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 19, 4, 21, 4, 0, -1, -1, 4, 21, 17, 21, -1, -1, 4, 11, 12, 11, -1, -1, 4, 0, 17, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 18, 4, 21, 4, 0, -1, -1, 4, 21, 17, 21, -1, -1, 4, 11, 12, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [22, 21, 18, 16, 17, 18, 15, 20, 13, 21, 9, 21, 7, 20, 5, 18, 4, 16, 3, 13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0, 13, 0, 15, 1, 17, 3, 18, 5, 18, 8, -1, -1, 13, 8, 18, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 22, 4, 21, 4, 0, -1, -1, 18, 21, 18, 0, -1, -1, 4, 11, 18, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 8, 4, 21, 4, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 16, 12, 21, 12, 5, 11, 2, 10, 1, 8, 0, 6, 0, 4, 1, 3, 2, 2, 5, 2, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 21, 4, 21, 4, 0, -1, -1, 18, 21, 4, 7, -1, -1, 9, 12, 18, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 17, 4, 21, 4, 0, -1, -1, 4, 0, 16, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 24, 4, 21, 4, 0, -1, -1, 4, 21, 12, 0, -1, -1, 20, 21, 12, 0, -1, -1, 20, 21, 20, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 22, 4, 21, 4, 0, -1, -1, 4, 21, 18, 0, -1, -1, 18, 21, 18, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [21, 22, 9, 21, 7, 20, 5, 18, 4, 16, 3, 13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0, 13, 0, 15, 1, 17, 3, 18, 5, 19, 8, 19, 13, 18, 16, 17, 18, 15, 20, 13, 21, 9, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [13, 21, 4, 21, 4, 0, -1, -1, 4, 21, 13, 21, 16, 20, 17, 19, 18, 17, 18, 14, 17, 12, 16, 11, 13, 10, 4, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [24, 22, 9, 21, 7, 20, 5, 18, 4, 16, 3, 13, 3, 8, 4, 5, 5, 3, 7, 1, 9, 0, 13, 0, 15, 1, 17, 3, 18, 5, 19, 8, 19, 13, 18, 16, 17, 18, 15, 20, 13, 21, 9, 21, -1, -1, 12, 4, 18, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [16, 21, 4, 21, 4, 0, -1, -1, 4, 21, 13, 21, 16, 20, 17, 19, 18, 17, 18, 15, 17, 13, 16, 12, 13, 11, 4, 11, -1, -1, 11, 11, 18, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [20, 20, 17, 18, 15, 20, 12, 21, 8, 21, 5, 20, 3, 18, 3, 16, 4, 14, 5, 13, 7, 12, 13, 10, 15, 9, 16, 8, 17, 6, 17, 3, 15, 1, 12, 0, 8, 0, 5, 1, 3, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 16, 8, 21, 8, 0, -1, -1, 1, 21, 15, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 22, 4, 21, 4, 6, 5, 3, 7, 1, 10, 0, 12, 0, 15, 1, 17, 3, 18, 6, 18, 21, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 18, 1, 21, 9, 0, -1, -1, 17, 21, 9, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 24, 2, 21, 7, 0, -1, -1, 12, 21, 7, 0, -1, -1, 12, 21, 17, 0, -1, -1, 22, 21, 17, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 20, 3, 21, 17, 0, -1, -1, 17, 21, 3, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [6, 18, 1, 21, 9, 11, 9, 0, -1, -1, 17, 21, 9, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 20, 17, 21, 3, 0, -1, -1, 3, 21, 17, 21, -1, -1, 3, 0, 17, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 14, 4, 25, 4, -7, -1, -1, 5, 25, 5, -7, -1, -1, 4, 25, 11, 25, -1, -1, 4, -7, 11, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 14, 0, 21, 14, -3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 14, 9, 25, 9, -7, -1, -1, 10, 25, 10, -7, -1, -1, 3, 25, 10, 25, -1, -1, 3, -7, 10, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 16, 6, 15, 8, 18, 10, 15, -1, -1, 3, 12, 8, 17, 13, 12, -1, -1, 8, 17, 8, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 16, 0, -2, 16, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [7, 10, 6, 21, 5, 20, 4, 18, 4, 16, 5, 15, 6, 16, 5, 17, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 19, 15, 14, 15, 0, -1, -1, 15, 11, 13, 13, 11, 14, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 19, 4, 21, 4, 0, -1, -1, 4, 11, 6, 13, 8, 14, 11, 14, 13, 13, 15, 11, 16, 8, 16, 6, 15, 3, 13, 1, 11, 0, 8, 0, 6, 1, 4, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [14, 18, 15, 11, 13, 13, 11, 14, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 19, 15, 21, 15, 0, -1, -1, 15, 11, 13, 13, 11, 14, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 18, 3, 8, 15, 8, 15, 10, 14, 12, 13, 13, 11, 14, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 12, 10, 21, 8, 21, 6, 20, 5, 17, 5, 0, -1, -1, 2, 14, 9, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [22, 19, 15, 14, 15, -2, 14, -5, 13, -6, 11, -7, 8, -7, 6, -6, -1, -1, 15, 11, 13, 13, 11, 14, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 19, 4, 21, 4, 0, -1, -1, 4, 10, 7, 13, 9, 14, 12, 14, 14, 13, 15, 10, 15, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 8, 3, 21, 4, 20, 5, 21, 4, 22, 3, 21, -1, -1, 4, 14, 4, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 10, 5, 21, 6, 20, 7, 21, 6, 22, 5, 21, -1, -1, 6, 14, 6, -3, 5, -6, 3, -7, 1, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 17, 4, 21, 4, 0, -1, -1, 14, 14, 4, 4, -1, -1, 8, 8, 15, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 8, 4, 21, 4, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [18, 30, 4, 14, 4, 0, -1, -1, 4, 10, 7, 13, 9, 14, 12, 14, 14, 13, 15, 10, 15, 0, -1, -1, 15, 10, 18, 13, 20, 14, 23, 14, 25, 13, 26, 10, 26, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 19, 4, 14, 4, 0, -1, -1, 4, 10, 7, 13, 9, 14, 12, 14, 14, 13, 15, 10, 15, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 19, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, 16, 6, 16, 8, 15, 11, 13, 13, 11, 14, 8, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 19, 4, 14, 4, -7, -1, -1, 4, 11, 6, 13, 8, 14, 11, 14, 13, 13, 15, 11, 16, 8, 16, 6, 15, 3, 13, 1, 11, 0, 8, 0, 6, 1, 4, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 19, 15, 14, 15, -7, -1, -1, 15, 11, 13, 13, 11, 14, 8, 14, 6, 13, 4, 11, 3, 8, 3, 6, 4, 3, 6, 1, 8, 0, 11, 0, 13, 1, 15, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 13, 4, 14, 4, 0, -1, -1, 4, 8, 5, 11, 7, 13, 9, 14, 12, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [17, 17, 14, 11, 13, 13, 10, 14, 7, 14, 4, 13, 3, 11, 4, 9, 6, 8, 11, 7, 13, 6, 14, 4, 14, 3, 13, 1, 10, 0, 7, 0, 4, 1, 3, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 12, 5, 21, 5, 4, 6, 1, 8, 0, 10, 0, -1, -1, 2, 14, 9, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [10, 19, 4, 14, 4, 4, 5, 1, 7, 0, 10, 0, 12, 1, 15, 4, -1, -1, 15, 14, 15, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 16, 2, 14, 8, 0, -1, -1, 14, 14, 8, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [11, 22, 3, 14, 7, 0, -1, -1, 11, 14, 7, 0, -1, -1, 11, 14, 15, 0, -1, -1, 19, 14, 15, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [5, 17, 3, 14, 14, 0, -1, -1, 14, 14, 3, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [9, 16, 2, 14, 8, 0, -1, -1, 14, 14, 8, 0, 6, -4, 4, -6, 2, -7, 1, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [8, 17, 14, 14, 3, 0, -1, -1, 3, 14, 14, 14, -1, -1, 3, 0, 14, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [39, 14, 9, 25, 7, 24, 6, 23, 5, 21, 5, 19, 6, 17, 7, 16, 8, 14, 8, 12, 6, 10, -1, -1, 7, 24, 6, 22, 6, 20, 7, 18, 8, 17, 9, 15, 9, 13, 8, 11, 4, 9, 8, 7, 9, 5, 9, 3, 8, 1, 7, 0, 6, -2, 6, -4, 7, -6, -1, -1, 6, 8, 8, 6, 8, 4, 7, 2, 6, 1, 5, -1, 5, -3, 6, -5, 7, -6, 9, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [2, 8, 4, 25, 4, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [39, 14, 5, 25, 7, 24, 8, 23, 9, 21, 9, 19, 8, 17, 7, 16, 6, 14, 6, 12, 8, 10, -1, -1, 7, 24, 8, 22, 8, 20, 7, 18, 6, 17, 5, 15, 5, 13, 6, 11, 10, 9, 6, 7, 5, 5, 5, 3, 6, 1, 7, 0, 8, -2, 8, -4, 7, -6, -1, -1, 8, 8, 6, 6, 6, 4, 7, 2, 8, 1, 9, -1, 9, -3, 8, -5, 7, -6, 5, -7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [23, 24, 3, 6, 3, 8, 4, 11, 6, 12, 8, 12, 10, 11, 14, 8, 16, 7, 18, 7, 20, 8, 21, 10, -1, -1, 3, 8, 4, 10, 6, 11, 8, 11, 10, 10, 14, 7, 16, 6, 18, 6, 20, 7, 21, 10, 21, 12, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]]
chars_to_remove = [',', '.', '!', ':', ';', '-', ' ', '?'] def get_longest_palendromes(text): if not text: return [] if len(text) <= 2: return [text] palendromes = [] for window_size in range(len(text), 1, -1): num_shifts = len(text) - window_size for start_index in range(0, num_shifts + 1): end_index = start_index + window_size substring = text[start_index:end_index] if is_palendrome(substring): palendromes.append(substring) if len(palendromes) > 0: break return palendromes def is_palendrome(text): text = _clean(text) return _is_palendrome(text) def _clean(text): return ''.join([char for char in text.lower() if char not in chars_to_remove]) def _is_palendrome(text): return text and text == text[::-1] if __name__ == '__main__': tests = [ "", # false "lotion", # false "racecar", # true "Racecar", # true "Step on no p ets", # true "No lemon no melons", # false "Eva - can I see bees in a cave?", # true "A man, a plan, a canal: Panama!", # true "Aaaaa", # ["Aaaaa"] "Babcaaba", # ["aa"] --------> correction, should be ["bab", "aba"] "A racecar", # ["racecar"] "No lemon no melons", # ["No lemon no melon"] ] for test in tests: print(f'\nCase: {test}') print(f'Cleaned: {_clean(test)}') print(f'Is Palendrome: {is_palendrome(test)}') print(f'Longest Palendromes: {get_longest_palendromes(test)}')
chars_to_remove = [',', '.', '!', ':', ';', '-', ' ', '?'] def get_longest_palendromes(text): if not text: return [] if len(text) <= 2: return [text] palendromes = [] for window_size in range(len(text), 1, -1): num_shifts = len(text) - window_size for start_index in range(0, num_shifts + 1): end_index = start_index + window_size substring = text[start_index:end_index] if is_palendrome(substring): palendromes.append(substring) if len(palendromes) > 0: break return palendromes def is_palendrome(text): text = _clean(text) return _is_palendrome(text) def _clean(text): return ''.join([char for char in text.lower() if char not in chars_to_remove]) def _is_palendrome(text): return text and text == text[::-1] if __name__ == '__main__': tests = ['', 'lotion', 'racecar', 'Racecar', 'Step on no p ets', 'No lemon no melons', 'Eva - can I see bees in a cave?', 'A man, a plan, a canal: Panama!', 'Aaaaa', 'Babcaaba', 'A racecar', 'No lemon no melons'] for test in tests: print(f'\nCase: {test}') print(f'Cleaned: {_clean(test)}') print(f'Is Palendrome: {is_palendrome(test)}') print(f'Longest Palendromes: {get_longest_palendromes(test)}')
"""Problem 30 of https://projecteuler.net""" def problem_30(): """Solution to problem 30.""" count = 0 # No solution can exist above 9^5 * 6. for number in range(2, (9 ** 5) * 6): digit_sum = sum([int(x) ** 5 for x in str(number)]) if number == digit_sum: count += number answer = count return answer
"""Problem 30 of https://projecteuler.net""" def problem_30(): """Solution to problem 30.""" count = 0 for number in range(2, 9 ** 5 * 6): digit_sum = sum([int(x) ** 5 for x in str(number)]) if number == digit_sum: count += number answer = count return answer
# %% ####################################### # THIS IS NOT THE SAME AS: my_pcap.getlayer(TCP) def scapyget_tcp(packet_list: scapy.plist.PacketList): result_list = [ pckt for pckt in packet_list if pckt.haslayer('TCP')] return PacketList(result_list)
def scapyget_tcp(packet_list: scapy.plist.PacketList): result_list = [pckt for pckt in packet_list if pckt.haslayer('TCP')] return packet_list(result_list)
# SPDX-License-Identifier: MIT # Copyright (C) 2020-2021 Mobica Limited """Provide error handling helpers""" NO_ERROR = 0 CONFIGURATION_ERROR = 1 REQUEST_ERROR = 2 FILESYSTEM_ERROR = 3 INTEGRATION_ERROR = 4 # Indicates that some assumption about how the Jira works seems to be false INVALID_ARGUMENT_ERROR = 5 INPUT_DATA_ERROR = 6 # There is some problem with input data JIRA_DATA_ERROR = 7 # There is some problem with the jira stored data class CjmError(Exception): """Exception to be raised by cjm library functions and by cjm-* and sm-* scripts""" def __init__(self, code): super().__init__(code) self.code = code
"""Provide error handling helpers""" no_error = 0 configuration_error = 1 request_error = 2 filesystem_error = 3 integration_error = 4 invalid_argument_error = 5 input_data_error = 6 jira_data_error = 7 class Cjmerror(Exception): """Exception to be raised by cjm library functions and by cjm-* and sm-* scripts""" def __init__(self, code): super().__init__(code) self.code = code
def change_variation(change: float) -> float: """Helper to convert change variation Parameters ---------- change: float percentage change Returns ------- float: converted value """ return (100 + change) / 100 def calculate_hold_value(changeA: float, changeB: float, proportion: float) -> float: """Calculates hold value of two different coins Parameters ---------- changeA: float price change of crypto A in percentage changeB: float price change of crypto B in percentage proportion: float percentage of first token in pool Returns ------- float: hold value """ return (change_variation(changeA) * proportion) / 100 + ( (change_variation(changeB) * (100 - proportion)) / 100 ) def calculate_pool_value(changeA, changeB, proportion): """Calculates pool value of two different coins Parameters ---------- changeA: float price change of crypto A in percentage changeB: float price change of crypto B in percentage proportion: float percentage of first token in pool Returns ------- float: pool value """ return pow(change_variation(changeA), proportion / 100) * pow( change_variation(changeB), (100 - proportion) / 100 )
def change_variation(change: float) -> float: """Helper to convert change variation Parameters ---------- change: float percentage change Returns ------- float: converted value """ return (100 + change) / 100 def calculate_hold_value(changeA: float, changeB: float, proportion: float) -> float: """Calculates hold value of two different coins Parameters ---------- changeA: float price change of crypto A in percentage changeB: float price change of crypto B in percentage proportion: float percentage of first token in pool Returns ------- float: hold value """ return change_variation(changeA) * proportion / 100 + change_variation(changeB) * (100 - proportion) / 100 def calculate_pool_value(changeA, changeB, proportion): """Calculates pool value of two different coins Parameters ---------- changeA: float price change of crypto A in percentage changeB: float price change of crypto B in percentage proportion: float percentage of first token in pool Returns ------- float: pool value """ return pow(change_variation(changeA), proportion / 100) * pow(change_variation(changeB), (100 - proportion) / 100)
# -*- coding: utf-8 -*- def formatter(name=None): def decorate(func): func._formatter = name return func return decorate
def formatter(name=None): def decorate(func): func._formatter = name return func return decorate
_UNSET = object() class PyErr: def __init__(self, type=_UNSET, value=_UNSET, traceback=_UNSET): if not(type is _UNSET): self.type = type if not(value is _UNSET): self.value = value if not(traceback is _UNSET): self.traceback = traceback
_unset = object() class Pyerr: def __init__(self, type=_UNSET, value=_UNSET, traceback=_UNSET): if not type is _UNSET: self.type = type if not value is _UNSET: self.value = value if not traceback is _UNSET: self.traceback = traceback
def repeat_string(string, times): return string * times text = input() number = int(input()) result = repeat_string(text, number) print(result)
def repeat_string(string, times): return string * times text = input() number = int(input()) result = repeat_string(text, number) print(result)
#Ask the user for a string and print out whether this string is a palindrome or not. # (A palindrome is a string that reads the same forwards and backwards.) str = input("Let's have a string, shall we?") palindrome = str[::-1]==str if palindrome: print(str,"is a palindrome") else: print(str, "is not a palindrome")
str = input("Let's have a string, shall we?") palindrome = str[::-1] == str if palindrome: print(str, 'is a palindrome') else: print(str, 'is not a palindrome')
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 12 14:43:23 2017 @author: Nadiar """ def deep_reverse(L): """ assumes L is a list of lists whose elements are ints Mutates L such that it reverses its elements and also reverses the order of the int elements in every element of L. It does not return anything. """ for l in L: l.reverse() return L.reverse() L = [[0, 1, 2], [1, 2, 3], [3, 2, 1], [10, -10, 100]] deep_reverse(L) print(L)
""" Created on Sun Feb 12 14:43:23 2017 @author: Nadiar """ def deep_reverse(L): """ assumes L is a list of lists whose elements are ints Mutates L such that it reverses its elements and also reverses the order of the int elements in every element of L. It does not return anything. """ for l in L: l.reverse() return L.reverse() l = [[0, 1, 2], [1, 2, 3], [3, 2, 1], [10, -10, 100]] deep_reverse(L) print(L)
# Problem URL: https://leetcode.com/problems/reverse-integer/ class Solution: def reverse(self, x: int) -> int: # Handling Negative Input neg_flag = 0 if x<0: neg_flag = 1 string = [i for i in str(x)] if neg_flag == 1: string = string[1:] reversed_string = string[::-1] final_string = '' for i in reversed_string: final_string += i final_int = int(final_string) # Handling Negative Input if neg_flag == 1: final_int = -final_int # Limit Checking if (final_int < -2**31 or final_int > 2**31 - 1): return 0 return final_int
class Solution: def reverse(self, x: int) -> int: neg_flag = 0 if x < 0: neg_flag = 1 string = [i for i in str(x)] if neg_flag == 1: string = string[1:] reversed_string = string[::-1] final_string = '' for i in reversed_string: final_string += i final_int = int(final_string) if neg_flag == 1: final_int = -final_int if final_int < -2 ** 31 or final_int > 2 ** 31 - 1: return 0 return final_int
def binaryToDecimal(arr): arr = str(arr) arr = arr[::-1] length = len(arr)-1 if int(arr[length]) != 1: length -= 1 count = 0 for i in range(length,-1,-1): count += int(arr[i])*(2**i) return count def binaryToDecimal2(value): return int(str(value),2) def binaryToDecimal3(value): count, i = 0, 0 while value>0: digit = value%10 count += (digit << i) value //= 10 i += 1 return count print(binaryToDecimal3(1011001))
def binary_to_decimal(arr): arr = str(arr) arr = arr[::-1] length = len(arr) - 1 if int(arr[length]) != 1: length -= 1 count = 0 for i in range(length, -1, -1): count += int(arr[i]) * 2 ** i return count def binary_to_decimal2(value): return int(str(value), 2) def binary_to_decimal3(value): (count, i) = (0, 0) while value > 0: digit = value % 10 count += digit << i value //= 10 i += 1 return count print(binary_to_decimal3(1011001))
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ n,k=map(int,input().split()) a=[] for _ in[0]*n: x,y=map(int,input().split()) a+=[51*(100-x)+y] a=sorted(a) r=i=l=0 while i<n and (a[i]==l or i<k): if a[i]!=l:r=0 r+=1 l=a[i] i+=1 print(r)
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ (n, k) = map(int, input().split()) a = [] for _ in [0] * n: (x, y) = map(int, input().split()) a += [51 * (100 - x) + y] a = sorted(a) r = i = l = 0 while i < n and (a[i] == l or i < k): if a[i] != l: r = 0 r += 1 l = a[i] i += 1 print(r)
#/ <reference path="./testBlocks/mb.ts" /> item = images.createBigImage(""" . . . . . . . . . . . . . . . . # # # . . # # # . . # # # . . # . # . . # . # . . # . # . . # # # . . # # # . . # # # . . . . . . . . . . . . . . . . """) z = images.createBigImage(""" . . . # . # . # . . """)
item = images.createBigImage('\n . . . . . . . . . . . . . . .\n . # # # . . # # # . . # # # .\n . # . # . . # . # . . # . # .\n . # # # . . # # # . . # # # .\n . . . . . . . . . . . . . . .\n ') z = images.createBigImage('\n . .\n . #\n . #\n . #\n . .\n ')
""" Sort method works only for lists Sorted functions works for any iterable you can specify the params reverse in both of then and you can also specify a key IMPORTANT functions never modify args """ list = ["abacate", "kiwi", "caju", "damasco", "coco"] s = sorted(list, reverse=True) print(s)
""" Sort method works only for lists Sorted functions works for any iterable you can specify the params reverse in both of then and you can also specify a key IMPORTANT functions never modify args """ list = ['abacate', 'kiwi', 'caju', 'damasco', 'coco'] s = sorted(list, reverse=True) print(s)
# coding=utf-8 class DijkstraAlgorithm: def find_min_cost_vertice(self, costs: dict, processed: set): """ Find the minimum cost and not processed vertice in costs.""" not_processed_vertice_costs = { vertice: cost for vertice, cost in costs.items() if vertice not in processed } return min( not_processed_vertice_costs, default=None, key=lambda x: not_processed_vertice_costs[x], ) def get_path(self, parents: dict, start_vertice, end_vertice): """ Calculate path from start vertice to end vertice by parents. """ result = [end_vertice] while result[0] != start_vertice: prev_vertice = parents.get(result[0]) if prev_vertice: result.insert(0, prev_vertice) else: break return result def run(self, graph: dict, start_vertice, end_vertice): # process the start vertice costs = { vertice: cost for vertice, cost in graph[start_vertice].items() } parents = {vertice: start_vertice for vertice in graph[start_vertice]} processed = {start_vertice} # find the minimum cost vertice in costs, update neighbors # until all vertice in costs have been processed vertice = self.find_min_cost_vertice(costs, processed) while vertice is not None: cost = costs[vertice] neighbors_cost = graph[vertice] for neighbor in neighbors_cost: new_cost = cost + neighbors_cost[neighbor] if neighbor in costs and costs[neighbor] <= new_cost: pass else: costs[neighbor] = new_cost parents[neighbor] = vertice processed.add(vertice) vertice = self.find_min_cost_vertice(costs, processed) return ( costs[end_vertice], # costs self.get_path(parents, start_vertice, end_vertice), # path )
class Dijkstraalgorithm: def find_min_cost_vertice(self, costs: dict, processed: set): """ Find the minimum cost and not processed vertice in costs.""" not_processed_vertice_costs = {vertice: cost for (vertice, cost) in costs.items() if vertice not in processed} return min(not_processed_vertice_costs, default=None, key=lambda x: not_processed_vertice_costs[x]) def get_path(self, parents: dict, start_vertice, end_vertice): """ Calculate path from start vertice to end vertice by parents. """ result = [end_vertice] while result[0] != start_vertice: prev_vertice = parents.get(result[0]) if prev_vertice: result.insert(0, prev_vertice) else: break return result def run(self, graph: dict, start_vertice, end_vertice): costs = {vertice: cost for (vertice, cost) in graph[start_vertice].items()} parents = {vertice: start_vertice for vertice in graph[start_vertice]} processed = {start_vertice} vertice = self.find_min_cost_vertice(costs, processed) while vertice is not None: cost = costs[vertice] neighbors_cost = graph[vertice] for neighbor in neighbors_cost: new_cost = cost + neighbors_cost[neighbor] if neighbor in costs and costs[neighbor] <= new_cost: pass else: costs[neighbor] = new_cost parents[neighbor] = vertice processed.add(vertice) vertice = self.find_min_cost_vertice(costs, processed) return (costs[end_vertice], self.get_path(parents, start_vertice, end_vertice))
print("********** BIENVENIDO AL MENU INTERACTIVO ********** ") print("Que opcion desea Seleccionar? ") print("1)Saludar") print("2)Sumar dos numeros") print("3)Salir del sistema") Opcion = int( input() ) while Opcion<=3: if (Opcion==1): nombre = input("Enter your name : ") print("Hola, mucho gusto ",nombre) break elif (Opcion==2): print("Ingrese primer numero: ") num1 = int( input() ) print("Ingrese segundo numero: ") num2 = int( input() ) print("La suma de sus numeros es :",num1+num2) break else: print("Saliendo del sistema....Gracias") break
print('********** BIENVENIDO AL MENU INTERACTIVO ********** ') print('Que opcion desea Seleccionar? ') print('1)Saludar') print('2)Sumar dos numeros') print('3)Salir del sistema') opcion = int(input()) while Opcion <= 3: if Opcion == 1: nombre = input('Enter your name : ') print('Hola, mucho gusto ', nombre) break elif Opcion == 2: print('Ingrese primer numero: ') num1 = int(input()) print('Ingrese segundo numero: ') num2 = int(input()) print('La suma de sus numeros es :', num1 + num2) break else: print('Saliendo del sistema....Gracias') break
def bicepup(): i01.setArmSpeed("right", 1.0, 1.0, 1.0, 1.0) i01.rightArm.bicep.attach() i01.rightArm.bicep.moveTo(180) sleep(1) i01.rightArm.bicep.detach()
def bicepup(): i01.setArmSpeed('right', 1.0, 1.0, 1.0, 1.0) i01.rightArm.bicep.attach() i01.rightArm.bicep.moveTo(180) sleep(1) i01.rightArm.bicep.detach()
class Car: def __init__(self, maker, model): carManufacturer = maker carModel = model carModel = "" carManufacturer = "" carYear = 0 def setModel(self, model): self.carModel = model def setManufacturer(self, manufacturer): self.carManufacturer = manufacturer def setYear(self, year): self.carYear = year print("something")
class Car: def __init__(self, maker, model): car_manufacturer = maker car_model = model car_model = '' car_manufacturer = '' car_year = 0 def set_model(self, model): self.carModel = model def set_manufacturer(self, manufacturer): self.carManufacturer = manufacturer def set_year(self, year): self.carYear = year print('something')
""" Character Picture Grid. Makes a heart. """ grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']] for y in range(6): for x in range(9): # Loop within loop to switch x and y. print(grid[x][y], end='') # Print the # or space. print() # Print a newline at the end of the row.
""" Character Picture Grid. Makes a heart. """ grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']] for y in range(6): for x in range(9): print(grid[x][y], end='') print()
def hash_key(string): multiplication = 1 for i in string: multiplication *= ord(i) return (multiplication % 97) for i in range(int(input())): str1, str2 = input().split() str1_key = hash_key(str1) str2_key = hash_key(str2) if str1_key == str2_key: print("YES") else: print("NO")
def hash_key(string): multiplication = 1 for i in string: multiplication *= ord(i) return multiplication % 97 for i in range(int(input())): (str1, str2) = input().split() str1_key = hash_key(str1) str2_key = hash_key(str2) if str1_key == str2_key: print('YES') else: print('NO')
#!/usr/bin/env python """Tests for `oops_fhir` package.""" def test_test(): """Sample pytest test function with the pytest fixture as an argument.""" assert True
"""Tests for `oops_fhir` package.""" def test_test(): """Sample pytest test function with the pytest fixture as an argument.""" assert True
def sim_shift(ref, ref_center, ref_length, shift=0, rec=None, padding=False): """ :param ref: Reference signal. :param ref_center: Where to center the simulated signal set. :param ref_length: The length of the signal equidistant around center. :param shift: How much shift should be added to the simulated received signal. :param rec: A received signal can be provided for the correlation simulation. :param padding: Use padding to add zeros on the reference signal; ex. for generating a plot. :return: ref, rec :rtype: tuple """ sim_center = ref_center + shift fill_length = int(ref_length / 2) index_error = not ((ref_center - ref_length) > 0) index_error |= not ((ref_center + ref_length) < len(ref)) if index_error: raise IndexError("Center and length result in an out of bounds error in ref") if rec: index_error |= not ((ref_center + ref_length) < len(rec)) if index_error: raise IndexError("Center and length result in an out of bounds error in rec") ref_ret = ref[ref_center - fill_length: ref_center + fill_length] if padding: fill_zeros = [0 for zz in range(0, fill_length)] ref_ret = fill_zeros + list(ref_ret) ref_ret += fill_zeros if rec: rec_ret = rec[sim_center - ref_length:sim_center + ref_length] else: rec_ret = ref[sim_center - ref_length: sim_center + ref_length] return ref_ret, rec_ret
def sim_shift(ref, ref_center, ref_length, shift=0, rec=None, padding=False): """ :param ref: Reference signal. :param ref_center: Where to center the simulated signal set. :param ref_length: The length of the signal equidistant around center. :param shift: How much shift should be added to the simulated received signal. :param rec: A received signal can be provided for the correlation simulation. :param padding: Use padding to add zeros on the reference signal; ex. for generating a plot. :return: ref, rec :rtype: tuple """ sim_center = ref_center + shift fill_length = int(ref_length / 2) index_error = not ref_center - ref_length > 0 index_error |= not ref_center + ref_length < len(ref) if index_error: raise index_error('Center and length result in an out of bounds error in ref') if rec: index_error |= not ref_center + ref_length < len(rec) if index_error: raise index_error('Center and length result in an out of bounds error in rec') ref_ret = ref[ref_center - fill_length:ref_center + fill_length] if padding: fill_zeros = [0 for zz in range(0, fill_length)] ref_ret = fill_zeros + list(ref_ret) ref_ret += fill_zeros if rec: rec_ret = rec[sim_center - ref_length:sim_center + ref_length] else: rec_ret = ref[sim_center - ref_length:sim_center + ref_length] return (ref_ret, rec_ret)
{ "targets": [{ "target_name": "opendkim", "sources": [ "src/opendkim_body_async.cc", "src/opendkim_chunk_async.cc", "src/opendkim_chunk_end_async.cc", "src/opendkim_eoh_async.cc", "src/opendkim_eom_async.cc", "src/opendkim_flush_cache_async.cc", "src/opendkim_header_async.cc", "src/opendkim_sign_async.cc", "src/opendkim_verify_async.cc", "src/opendkim.cc", ], "include_dirs": [ "<!(node -e \"require('nan')\")" ], "libraries": [ "-lopendkim" ] }] }
{'targets': [{'target_name': 'opendkim', 'sources': ['src/opendkim_body_async.cc', 'src/opendkim_chunk_async.cc', 'src/opendkim_chunk_end_async.cc', 'src/opendkim_eoh_async.cc', 'src/opendkim_eom_async.cc', 'src/opendkim_flush_cache_async.cc', 'src/opendkim_header_async.cc', 'src/opendkim_sign_async.cc', 'src/opendkim_verify_async.cc', 'src/opendkim.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")'], 'libraries': ['-lopendkim']}]}
# Objective # Today, we're delving into Inheritance. Check out the attached tutorial for learning materials and an instructional video. # Task # You are given two classes, Person and Student, where Person is the base class and Student is the derived class. Completed code for Person and a declaration for Student are provided for you in the editor. Observe that Student inherits all the properties of Person. # Complete the Student class by writing the following: # A Student class constructor, which has # parameters: # A string, # . # A string, # . # An integer, # . # An integer array (or vector) of test scores, # . # A char calculate() method that calculates a Student object's average and returns the grade character representative of their calculated average: # [Grading.png] # Input Format # The locked stub code in the editor reads the input and calls the Student class constructor with the necessary arguments. It also calls the calculate method which takes no arguments. # The first line contains # , , and , separated by a space. The second line contains the number of test scores. The third line of space-separated integers describes # . # Constraints # Output Format # Output is handled by the locked stub code. Your output will be correct if your Student class constructor and calculate() method are properly implemented. # Sample Input # Heraldo Memelli 8135627 # 2 # 100 80 # Sample Output # Name: Memelli, Heraldo # ID: 8135627 # Grade: O # Explanation # This student had # scores to average: and . The student's average grade is . An average grade of corresponds to the letter grade , so the calculate() method should return the character'O'. class Person: def __init__(self, firstName, lastName, idNumber): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber def printPerson(self): print("Name:", self.lastName + ",", self.firstName) print("ID:", self.idNumber) class Student(Person): # Class Constructor # # Parameters: # firstName - A string denoting the Person's first name. # lastName - A string denoting the Person's last name. # id - An integer denoting the Person's ID number. # scores - An array of integers denoting the Person's test scores. # # Write your constructor here def __init__(self,firstName,lastName,idNumber,scores): # super(Person,self).__init__(firstName,lastName,idNumber)when the super class inherits from object self.firstName=firstName self.lastName=lastName self.idNumber=idNumber self.scores=scores def calculate(self): score=self.scores total=0 for sc in score: total+=sc grade=total/len(score) if (grade>=90 and grade<=100): grades='O' elif(grade>=80 and grade<90): grades='E' elif(grade>=70 and grade<80): grades='A' elif(grade>=55 and grade<70): grades='P' elif (grade>=40 and grade<55): grades='D' else: grades='T' return grades # Function Name: calculate # Return: A character denoting the grade. # # Write your function here line = input().split()
class Person: def __init__(self, firstName, lastName, idNumber): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber def print_person(self): print('Name:', self.lastName + ',', self.firstName) print('ID:', self.idNumber) class Student(Person): def __init__(self, firstName, lastName, idNumber, scores): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber self.scores = scores def calculate(self): score = self.scores total = 0 for sc in score: total += sc grade = total / len(score) if grade >= 90 and grade <= 100: grades = 'O' elif grade >= 80 and grade < 90: grades = 'E' elif grade >= 70 and grade < 80: grades = 'A' elif grade >= 55 and grade < 70: grades = 'P' elif grade >= 40 and grade < 55: grades = 'D' else: grades = 'T' return grades line = input().split()
class ChannelDoesNotExist(Exception): pass class LevelDoesNotExist(Exception): pass class HandlerError(Exception): pass
class Channeldoesnotexist(Exception): pass class Leveldoesnotexist(Exception): pass class Handlererror(Exception): pass
# -*- coding: utf-8 -*- ################################################ # # URL: # ===== # https://leetcode.com/problems/PROBLEM_TITLE/ # # DESC: # ===== # PROBLEM DESCRIPTION ################################################ class Solution: def method(self) -> int: return 0
class Solution: def method(self) -> int: return 0
"""Checks view access for Permissions""" METHODS = ( 'GET', 'POST', ) # pylint: disable=too-few-public-methods class CheckAcess: """ Checks the permissions for Request. """ def __init__(self, request, permissions): self.request = request self.permissions = permissions def have_view_access(self): """ Checks if any of the permission is true for request. """ method_based = tuple( filter( lambda x: bool(x[1](self.request)), tuple( filter( lambda x: x[0] == 'method', self.permissions ) ) ) ) class_based = tuple( filter( lambda x: bool(x[1](self.request)()), tuple( filter( lambda x: x[0] == 'class', self.permissions ) ) ) ) attr_based = tuple( filter( lambda x: x[2] == getattr(self.request.user, x[1]), tuple( filter( lambda x: x[0] == 'attr', self.permissions ) ) ) ) allowed_permissions = tuple( filter( lambda x: self.request.method in (x[3] if len(x) == 4 else METHODS), attr_based ) ) + tuple( filter( lambda x: self.request.method in (x[2] if len(x) == 3 else METHODS), method_based + class_based ) ) if any(allowed_permissions): return True return False
"""Checks view access for Permissions""" methods = ('GET', 'POST') class Checkacess: """ Checks the permissions for Request. """ def __init__(self, request, permissions): self.request = request self.permissions = permissions def have_view_access(self): """ Checks if any of the permission is true for request. """ method_based = tuple(filter(lambda x: bool(x[1](self.request)), tuple(filter(lambda x: x[0] == 'method', self.permissions)))) class_based = tuple(filter(lambda x: bool(x[1](self.request)()), tuple(filter(lambda x: x[0] == 'class', self.permissions)))) attr_based = tuple(filter(lambda x: x[2] == getattr(self.request.user, x[1]), tuple(filter(lambda x: x[0] == 'attr', self.permissions)))) allowed_permissions = tuple(filter(lambda x: self.request.method in (x[3] if len(x) == 4 else METHODS), attr_based)) + tuple(filter(lambda x: self.request.method in (x[2] if len(x) == 3 else METHODS), method_based + class_based)) if any(allowed_permissions): return True return False
# -*- coding: utf-8 -*- class _CommitOnSuccess(object): def __init__(self, session): self.session = session def __enter__(self): self.transaction = self.session.begin_nested() def __exit__(self, exc_type, exc_value, traceback): try: if exc_value is not None: self.transaction.rollback() else: self.transaction.commit() except: self.transaction.rollback() raise commit_on_success = _CommitOnSuccess
class _Commitonsuccess(object): def __init__(self, session): self.session = session def __enter__(self): self.transaction = self.session.begin_nested() def __exit__(self, exc_type, exc_value, traceback): try: if exc_value is not None: self.transaction.rollback() else: self.transaction.commit() except: self.transaction.rollback() raise commit_on_success = _CommitOnSuccess
# # PySNMP MIB module IEEE8021-EVB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IEEE8021-EVB-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:52:20 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint") ieee8021BridgePhyPort, = mibBuilder.importSymbols("IEEE8021-BRIDGE-MIB", "ieee8021BridgePhyPort") ieee802dot1mibs, IEEE8021BridgePortNumber, IEEE8021PbbComponentIdentifier = mibBuilder.importSymbols("IEEE8021-TC-MIB", "ieee802dot1mibs", "IEEE8021BridgePortNumber", "IEEE8021PbbComponentIdentifier") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") VlanIndex, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanIndex") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") TimeTicks, ModuleIdentity, Integer32, IpAddress, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Counter64, NotificationType, Gauge32, ObjectIdentity, Unsigned32, MibIdentifier, iso = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ModuleIdentity", "Integer32", "IpAddress", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Counter64", "NotificationType", "Gauge32", "ObjectIdentity", "Unsigned32", "MibIdentifier", "iso") DisplayString, StorageType, MacAddress, TruthValue, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "StorageType", "MacAddress", "TruthValue", "RowStatus", "TextualConvention") ieee8021BridgeEvbMib = ModuleIdentity((1, 3, 111, 2, 802, 1, 1, 24)) ieee8021BridgeEvbMib.setRevisions(('2014-12-15 00:00', '2012-02-15 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setRevisionsDescriptions(('Published as part of IEEE Std 802.1Q 2014 revision. Cross references updated and corrected. ieee8021BridgeEvbVSIMvFormat added. ieee8021BridgeEvbVsiMgrID16 added and ieee8021BridgeEvbVsiMgrID deprecated. ieee8021BridgeEvbVDPCounterDiscontinuity description clarified. Conformance and groups fixed. Fixed maintenance item to IEEE Std 802.1Qbg-2012.', 'Initial version published in IEEE Std 802.1Qbg.',)) if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setLastUpdated('201412150000Z') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setOrganization('IEEE 802.1 Working Group') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setContactInfo(' WG-URL: http://www.ieee802.org/1 WG-EMail: stds-802-1@ieee.org Contact: IEEE 802.1 Working Group Chair Postal: C/O IEEE 802.1 Working Group IEEE Standards Association 445 Hoes Lane Piscataway NJ 08854 USA E-mail: STDS-802-1-L@LISTSERV.IEEE.ORG') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setDescription('The EVB MIB module for managing devices that support Ethernet Virtual Bridging. Unless otherwise indicated, the references in this MIB module are to IEEE Std 802.1Q-2014. Copyright (C) IEEE (2014). This version of this MIB module is part of IEEE802.1Q; see the draft itself for full legal notices.') ieee8021BridgeEvbNotifications = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 0)) ieee8021BridgeEvbObjects = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1)) ieee8021BridgeEvbConformance = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 2)) ieee8021BridgeEvbSys = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 1)) ieee8021BridgeEvbSysType = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("evbBridge", 1), ("evbStation", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setReference('5.23,5.24') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setDescription('The evbSysType determines if this is an EVB Bridge or EVB station.') ieee8021BridgeEvbSysNumExternalPorts = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4095))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setReference('12.4.2, 12.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setDescription('The evbSysNumExternalPorts parameter indicates how many externally accessible port are available.') ieee8021BridgeEvbSysEvbLldpTxEnable = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 3), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'true' a new SBP or URP will place the local EVB objects in the LLDP nearest Customer database; when set to 'false' a new SBP or URP will not place the local EVB objects in the LLDP database.") ieee8021BridgeEvbSysEvbLldpManual = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 4), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'false' the operating configuration will be determined by the comparison between the local and remote LLDP EVB objects (automatic), regardless of the setting of ieee8021BridgeEvbSysLldpTxEnable. When ieee8021BridgeEvbSysLldpManual is 'true' the configuration will be determined by the setting of the local EVB objects only (manual).") ieee8021BridgeEvbSysEvbLldpGidCapable = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 5), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setDescription('The value of this object is used as the default value of the BGID or SGID bit of the EVB LLDP TLV string.') ieee8021BridgeEvbSysEcpAckTimer = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setDescription('A value indicating the Bridge Proposed ECP ackTimer.') ieee8021BridgeEvbSysEcpDfltAckTimerExp = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setDescription('The exponent of 2 indicating the Bridge Proposed ECP ackTimer in tens of microseconds.') ieee8021BridgeEvbSysEcpMaxRetries = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(3)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setReference('D.2.13.5, 43.3.7.4') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setDescription('A value indicating the Bridge ECP maxRetries.') ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 8), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setDescription('A value indicating the Bridge Resource VDP Timeout.') ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setDescription('The exponent of 2 indicating the Bridge Resource VDP Timeout in tens of microseconds.') ieee8021BridgeEvbSysVdpDfltReinitKeepAlive = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 9), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setDescription('A value indicating the Bridge Proposed VDP Keep Alive Timeout.') ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp = MibScalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setDescription('The exponent of 2 indicating the Bridge Proposed VDP Keep Alive Timeout in tens of microseconds.') ieee8021BridgeEvbSbpTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10), ) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setReference('12.26.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setDescription('A table that contains Station-facing Bridge Port (SBP) details.') ieee8021BridgeEvbSbpEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpComponentID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpPortNumber")) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setDescription('A list of objects describing SBP.') ieee8021BridgeEvbSbpComponentID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setDescription('The SBP component ID') ieee8021BridgeEvbSbpPortNumber = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setDescription('The SBP port number.') ieee8021BridgeEvbSbpLldpManual = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 3), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setDescription('The evbSbpLldpManual parameter switches EVB TLVs to manual mode. In manual mode the running parameters are determined solely from the local LLDP database values.') ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 4), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setDescription('The value used to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021BridgeEvbSbpVdpOperReinitKeepAlive = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 5), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021BridgeEvbSbpVdpOperToutKeepAlive = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 6), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setReference('D.2.13, 41.5.5.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.13) by the EVBCB VDP state machine in order to determine when to transmit a keep alive message.') ieee8021BridgeEvbVSIDBObjects = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 2)) ieee8021BridgeEvbVSIDBTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1), ) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021BridgeEvbVSIDBEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIComponentID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIPortNumber"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIIDType"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIID")) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setDescription('A list of objects containing database of the active Virtual Station Interfaces.') ieee8021BridgeEvbVSIComponentID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setDescription('The evbVSIComponentID is the ComponentID for the C-VLAN component of the EVB Bridge or for the edge relay of the EVB station.') ieee8021BridgeEvbVSIPortNumber = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setDescription('The evbVSIPortNumber is the Port Number for the SBP or URP where the VSI is accessed.') ieee8021BridgeEvbVSIIDType = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("vsiidIpv4", 1), ("vsiidIpv6", 2), ("vsiidMAC", 3), ("vsiidLocal", 4), ("vsiidUUID", 5)))) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setReference('41.2.6') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setDescription('This object specifies the VSIID Type for the VSIID in the DCN ') ieee8021BridgeEvbVSIID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setReference('41.2.7') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setDescription('This object specifies the VSIID that uniquely identifies the VSI in the DCN ') ieee8021BridgeEvbVSITimeSinceCreate = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 5), Unsigned32()).setUnits('centi-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setReference('41') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setDescription('This object specifies the time since creation ') ieee8021BridgeEvbVsiVdpOperCmd = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("preAssociate", 1), ("preAssociateWithRsrcReservation", 2), ("associate", 3), ("deAssociate", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setReference('41.2.1') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setDescription('This object identifies the type of TLV.') ieee8021BridgeEvbVsiOperRevert = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 7), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setDescription('The evbOperRevert status indicator shows the most recent value of the KEEP indicator from the VDP protocol exchange.') ieee8021BridgeEvbVsiOperHard = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 8), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setDescription('The evbVsiHard status indicator shows the most recent value of the HARD indicator from the VDP protocol exchange.') ieee8021BridgeEvbVsiOperReason = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 9), Bits().clone(namedValues=NamedValues(("success", 0), ("invalidFormat", 1), ("insufficientResources", 2), ("otherfailure", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setDescription('This object indicates the outcome of a request.') ieee8021BridgeEvbVSIMgrID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021BridgeEvbVSIType = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setReference('41.2.4') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setDescription(' The VTID is an integer value used to identify a pre-configured set of controls and attributes that are associated with a set of VSIs.') ieee8021BridgeEvbVSITypeVersion = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setReference('41.2.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setDescription('The VSI Type Version is an integer identifier designating the expected/desired VTID version. The VTID version allows a VSI Manager Database to contain multiple versions of a given VSI Type, allowing smooth migration to newer VSI types.') ieee8021BridgeEvbVSIMvFormat = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("basic", 1), ("partial", 2), ("vlanOnly", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setReference('41.2.8') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setDescription('This object specifies the MAC/VLAN format. basic - Basic MAC/VLAN format partial - Partial MAC/VLAN format vlanOnly - Vlan-only MAC/VLAN format ') ieee8021BridgeEvbVSINumMACs = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setDescription('This object specifies the the number of MAC address/VLAN ID pairs contained in the repeated portion of the MAC/VLANs field in the VDP TLV.') ieee8021BridgeEvbVDPMachineState = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("preAssociate", 1), ("preAssociateWithRsrcReservation", 2), ("associate", 3), ("deAssociate", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setReference('41.5.5.14') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setDescription('This object specifies the VDP state machine. ') ieee8021BridgeEvbVDPCommandsSucceeded = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setDescription('This object specifies the VDP number of successful commands since creation.') ieee8021BridgeEvbVDPCommandsFailed = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setDescription('This object specifies the VDP number of failed commands since creation ') ieee8021BridgeEvbVDPCommandReverts = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setDescription('This object specifies the VDP command reverts since creation ') ieee8021BridgeEvbVDPCounterDiscontinuity = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 19), TimeTicks()).setUnits('hundredths of a second').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setDescription('The time (in hundredths of a second) since the last counter discontinuity for any of the counters in the row.') ieee8021BridgeEvbVSIMgrID16 = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 20), OctetString().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021BridgeEvbVSIFilterFormat = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("vid", 1), ("macVid", 2), ("groupidVid", 3), ("groupidMacVid", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setReference('41.2.8, 41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setDescription('This object specifies the MAC/VLAN format: vid (see 41.2.9.1) macVid (see 41.2.9.2) groupidVid (see 41.2.9.3) groupidMacVid (see 41.2.9.4) ') ieee8021BridgeEvbVSIDBMacTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2), ) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021BridgeEvbVSIDBMacEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIComponentID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIPortNumber"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIIDType"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbGroupID"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMac"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIVlanId")) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setDescription('A list of objects containing database of the MAC/VLANs associated with Virtual Station Interfaces.') ieee8021BridgeEvbGroupID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setDescription('Group ID') ieee8021BridgeEvbVSIMac = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 2), MacAddress()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setDescription('The mac-address part of the MAC/VLANs for a VSI.') ieee8021BridgeEvbVSIVlanId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 3), VlanIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setDescription('The Vlan ID part of the MAC/VLANs for a VSI.') ieee8021BridgeEvbSChannelObjects = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 3)) ieee8021BridgeEvbUAPConfigTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1), ) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setReference('12.26.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setDescription('A table that contains configuration parameters for UAP.') ieee8021BridgeEvbUAPConfigEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1), ).setIndexNames((0, "IEEE8021-BRIDGE-MIB", "ieee8021BridgePhyPort")) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setDescription('A list of objects containing information to configure the attributes for UAP.') ieee8021BridgeEvbUAPComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 1), IEEE8021PbbComponentIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setDescription('The ComponentID of the port for the UAP.') ieee8021BridgeEvbUAPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 2), IEEE8021BridgePortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setDescription('The port number of the port for the UAP.') ieee8021BridgeEvbUapConfigIfIndex = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink.') ieee8021BridgeEvbUAPSchCdcpAdminEnable = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setDescription('Administrative staus of CDCP.') ieee8021BridgeEvbUAPSchAdminCDCPRole = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cdcpRoleB", 1), ("cdcpRoleS", 2))).clone(1)).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setDescription("The administratively configured value for the local port's role parameter. The value of AdminRole is not reflected in the S-channel TLV. The AdminRole may take the value S or B. S indicates the sender is unwilling to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing to accept SVID assignments from the neighbor. Stations usually take the S role. B indicates the sender is willing to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing do the best it can to fill the SVID assignments from the neighbor. Bridges usually take the B role.") ieee8021BridgeEvbUAPSchAdminCDCPChanCap = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 167))).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setReference('42.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setDescription('The administratively configured value for the Number of Channels supported parameter. This value is included as the ChanCap parameter in the S-channel TLV.') ieee8021BridgeEvbUAPSchOperCDCPChanCap = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 167))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setReference('42.4.8') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setDescription('The operational value for the Number of Channels supported parameter. This value is included as the ChnCap parameter in the S-channel TLV.') ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 8), VlanIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setDescription('Determines the lowest S-VIDs available for assignment by CDCP.') ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 9), VlanIndex()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setDescription('Determines the highest S-VIDs available for assignment by CDCP.') ieee8021BridgeEvbUAPSchOperState = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("running", 1), ("notRunning", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setDescription('The current runnning state of CDCP.') ieee8021BridgeEvbSchCdcpRemoteEnabled = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setDescription('CDCP state for the remote S-channel.') ieee8021BridgeEvbSchCdcpRemoteRole = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cdcpRoleB", 1), ("cdcpRoleS", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setReference('42.4.12') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setDescription("The value for the remote port's role parameter.") ieee8021BridgeEvbUAPConfigStorageType = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 13), StorageType().clone('nonVolatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setDescription('The storage type for this row. Rows in this table that were created through an external process may have a storage type of readOnly or permanent. For a storage type of permanent, none of the columns have to be writable.') ieee8021BridgeEvbUAPConfigRowStatus = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 14), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setDescription('RowStatus for creating a UAP table entry.') ieee8021BridgeEvbCAPConfigTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2), ) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setDescription('A table that contains configuration information for the S-Channel Access Ports (CAP).') ieee8021BridgeEvbCAPConfigEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1), ).setIndexNames((0, "IEEE8021-BRIDGE-MIB", "ieee8021BridgePhyPort"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbSchID")) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setDescription('A list of objects containing information for the S-Channel Access Ports (CAP)') ieee8021BridgeEvbSchID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))) if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setReference('42.4.3') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setDescription('This object represents the SVID for a ieee8021BridgeEvbSysType of evbBridge and a SCID(S-Channel ID) for a ieee8021BridgeEvbSysType of evbStation.') ieee8021BridgeEvbCAPComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 2), IEEE8021PbbComponentIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setDescription('Component ID for S-channel Access Port.') ieee8021BridgeEvbCapConfigIfIndex = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system.') ieee8021BridgeEvbCAPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 4), IEEE8021BridgePortNumber()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setDescription('Port number for the S-Channel Access Port.') ieee8021BridgeEvbCAPSChannelID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setDescription('S-Channel ID (SCID) for this CAP.') ieee8021BridgeEvbCAPAssociateSBPOrURPCompID = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 6), IEEE8021PbbComponentIdentifier()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setDescription('Component ID of the Server Edge Port to be associated with the CAP.') ieee8021BridgeEvbCAPAssociateSBPOrURPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 7), IEEE8021BridgePortNumber()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setDescription('Port number of the Server Edge Port to be associated with the CAP.') ieee8021BridgeEvbCAPRowStatus = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 8), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setDescription('RowStatus to create/destroy this table.') ieee8021BridgeEvbURPTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3), ) if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setReference('12.26.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setDescription('A table that contains configuration information for the Uplink Relay Ports(URP).') ieee8021BridgeEvbURPEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPComponentId"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPPort")) if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setDescription('A list of objects containing information for the Uplink Relay Ports(URP).') ieee8021BridgeEvbURPComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setDescription('Component ID that the URP belongs to.') ieee8021BridgeEvbURPPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setDescription('port number of the urp.') ieee8021BridgeEvbURPIfIndex = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. It is an implementation specific decision as to whether this object may be modified if it has been created or if 0 is a legal value. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system. ') ieee8021BridgeEvbURPBindToISSPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 4), IEEE8021BridgePortNumber()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setDescription('The evbURPBindToISSPort is the ISS Port Number where the URP is attached. This binding is optional and only required in some systems.') ieee8021BridgeEvbURPLldpManual = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 6), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setDescription('The evbUrpLldpManual parameter control how the EVB TLV determines the operating values for parameters. When set TRUE only the local EVB TLV will be used to determine the parameters.') ieee8021BridgeEvbURPVdpOperRsrcWaitDelay = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 9), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 12), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021BridgeEvbURPVdpOperRespWaitDelay = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 10), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setDescription('The evbUrpVdpOperRespWaitDelay is how long a EVb station VDP will wait for a response from the EVB Bridge VDP.') ieee8021BridgeEvbURPVdpOperReinitKeepAlive = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 11), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 13), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021BridgeEvbEcpTable = MibTable((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4), ) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setDescription('A table that contains configuration information for the Edge Control Protocol (ECP).') ieee8021BridgeEvbEcpEntry = MibTableRow((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1), ).setIndexNames((0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpComponentId"), (0, "IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpPort")) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setDescription('A list of objects containing information for theEdge Control Protocol (ECP).') ieee8021BridgeEvbEcpComponentId = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 1), IEEE8021PbbComponentIdentifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setDescription('Component ID .') ieee8021BridgeEvbEcpPort = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 2), IEEE8021BridgePortNumber()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setDescription('Port number.') ieee8021BridgeEvbEcpOperAckTimerInit = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 3), Unsigned32()).setUnits('micro-seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setDescription('The initial value used to initialize ackTimer (43.3.6.1).') ieee8021BridgeEvbEcpOperAckTimerInitExp = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setDescription('The initial value used to initialize ackTimer. Expressed as exp where 10*2exp microseconds is the duration of the ack timer(43.3.6.1).') ieee8021BridgeEvbEcpOperMaxRetries = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setDescription('This integer variable defines the maximum number of times that the ECP transmit state machine will retry a transmission if no ACK is received.') ieee8021BridgeEvbEcpTxFrameCount = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setDescription('The evbECPTxFrameCount is the number of ECP frame transmitted since ECP was instanciated.') ieee8021BridgeEvbEcpTxRetryCount = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setDescription('The evbECPTxRetryCount is the number of times ECP re-tried transmission since ECP was instanciated.') ieee8021BridgeEvbEcpTxFailures = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setDescription('The evbECPTxFailures is the number of times ECP failed to successfully deliver a frame since ECP was instanciated.') ieee8021BridgeEvbEcpRxFrameCount = MibTableColumn((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setDescription('The evbECPRxFrameCount is the number of frames received since ECP was instanciated.') ieee8021BridgeEvbGroups = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 1)) ieee8021BridgeEvbCompliances = MibIdentifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 2)) ieee8021BridgeEvbSysGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 1)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysNumExternalPorts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpTxEnable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpGidCapable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpAckTimer"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltReinitKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSysGroup = ieee8021BridgeEvbSysGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysGroup.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021BridgeEvbSbpGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 3)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperReinitKeepAlive"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperToutKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSbpGroup = ieee8021BridgeEvbSbpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpGroup.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021BridgeEvbVSIDBGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 4)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITimeSinceCreate"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiVdpOperCmd"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperRevert"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperHard"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperReason"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMgrID"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITypeVersion"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMvFormat"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSINumMACs"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPMachineState"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsSucceeded"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsFailed"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandReverts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCounterDiscontinuity"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIVlanId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbVSIDBGroup = ieee8021BridgeEvbVSIDBGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBGroup.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021BridgeEvbUAPGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 5)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPComponentId"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUapConfigIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchCdcpAdminEnable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPRole"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPChanCap"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchOperCDCPChanCap"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPSchOperState"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSchCdcpRemoteEnabled"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSchCdcpRemoteRole"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPConfigStorageType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPConfigRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbUAPGroup = ieee8021BridgeEvbUAPGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPGroup.setDescription('The collection of objects used to represent a EVB UAP table.') ieee8021BridgeEvbCAPConfigGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 6)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPComponentId"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCapConfigIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPSChannelID"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPAssociateSBPOrURPCompID"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPAssociateSBPOrURPPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbCAPConfigGroup = ieee8021BridgeEvbCAPConfigGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021BridgeEvbsURPGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 7)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPBindToISSPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRsrcWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRespWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperReinitKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsURPGroup = ieee8021BridgeEvbsURPGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPGroup.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021BridgeEvbEcpGroup = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 8)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperAckTimerInit"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFrameCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxRetryCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFailures"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpRxFrameCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbEcpGroup = ieee8021BridgeEvbEcpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021BridgeEvbSysV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 9)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysNumExternalPorts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpTxEnable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpGidCapable"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEvbLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpDfltAckTimerExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysEcpMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSysV2Group = ieee8021BridgeEvbSysV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysV2Group.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021BridgeEvbSbpV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 10)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpVdpOperToutKeepAlive")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbSbpV2Group = ieee8021BridgeEvbSbpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpV2Group.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021BridgeEvbVSIDBV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 11)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITimeSinceCreate"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiVdpOperCmd"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperRevert"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperHard"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVsiOperReason"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIMgrID16"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIType"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSITypeVersion"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIFilterFormat"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSINumMACs"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPMachineState"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsSucceeded"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandsFailed"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCommandReverts"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVDPCounterDiscontinuity"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIVlanId")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbVSIDBV2Group = ieee8021BridgeEvbVSIDBV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBV2Group.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021BridgeEvbsURPV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 12)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPIfIndex"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPBindToISSPort"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPLldpManual"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperRespWaitDelay"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsURPV2Group = ieee8021BridgeEvbsURPV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPV2Group.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021BridgeEvbEcpV2Group = ObjectGroup((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 13)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperAckTimerInitExp"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpOperMaxRetries"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFrameCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxRetryCount"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpTxFailures"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpRxFrameCount")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbEcpV2Group = ieee8021BridgeEvbEcpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpV2Group.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021BridgeEvbbCompliance = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 1)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbbCompliance = ieee8021BridgeEvbbCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbbCompliance.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021BridgeEvbsCompliance = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 2)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbsURPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsCompliance = ieee8021BridgeEvbsCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsCompliance.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') ieee8021BridgeEvbbComplianceV2 = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 3)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSbpV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbbComplianceV2 = ieee8021BridgeEvbbComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbbComplianceV2.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021BridgeEvbsComplianceV2 = ModuleCompliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 4)).setObjects(("IEEE8021-EVB-MIB", "ieee8021BridgeEvbSysV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbVSIDBV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbsURPV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbEcpV2Group"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbUAPGroup"), ("IEEE8021-EVB-MIB", "ieee8021BridgeEvbCAPConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021BridgeEvbsComplianceV2 = ieee8021BridgeEvbsComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsComplianceV2.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') mibBuilder.exportSymbols("IEEE8021-EVB-MIB", ieee8021BridgeEvbGroups=ieee8021BridgeEvbGroups, ieee8021BridgeEvbSysEvbLldpGidCapable=ieee8021BridgeEvbSysEvbLldpGidCapable, ieee8021BridgeEvbVsiOperHard=ieee8021BridgeEvbVsiOperHard, ieee8021BridgeEvbEcpGroup=ieee8021BridgeEvbEcpGroup, ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp=ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh, ieee8021BridgeEvbVSIType=ieee8021BridgeEvbVSIType, ieee8021BridgeEvbVSIPortNumber=ieee8021BridgeEvbVSIPortNumber, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbCAPConfigTable=ieee8021BridgeEvbCAPConfigTable, ieee8021BridgeEvbVsiVdpOperCmd=ieee8021BridgeEvbVsiVdpOperCmd, ieee8021BridgeEvbURPEntry=ieee8021BridgeEvbURPEntry, ieee8021BridgeEvbCapConfigIfIndex=ieee8021BridgeEvbCapConfigIfIndex, ieee8021BridgeEvbVDPCommandsSucceeded=ieee8021BridgeEvbVDPCommandsSucceeded, ieee8021BridgeEvbUAPSchOperCDCPChanCap=ieee8021BridgeEvbUAPSchOperCDCPChanCap, ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp=ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp, ieee8021BridgeEvbVSIDBEntry=ieee8021BridgeEvbVSIDBEntry, ieee8021BridgeEvbEcpComponentId=ieee8021BridgeEvbEcpComponentId, ieee8021BridgeEvbVDPCommandReverts=ieee8021BridgeEvbVDPCommandReverts, ieee8021BridgeEvbVSIMgrID16=ieee8021BridgeEvbVSIMgrID16, ieee8021BridgeEvbVSITimeSinceCreate=ieee8021BridgeEvbVSITimeSinceCreate, ieee8021BridgeEvbSysV2Group=ieee8021BridgeEvbSysV2Group, ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp=ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp, ieee8021BridgeEvbEcpOperMaxRetries=ieee8021BridgeEvbEcpOperMaxRetries, ieee8021BridgeEvbSysGroup=ieee8021BridgeEvbSysGroup, ieee8021BridgeEvbEcpV2Group=ieee8021BridgeEvbEcpV2Group, PYSNMP_MODULE_ID=ieee8021BridgeEvbMib, ieee8021BridgeEvbSbpVdpOperToutKeepAlive=ieee8021BridgeEvbSbpVdpOperToutKeepAlive, ieee8021BridgeEvbVSIMac=ieee8021BridgeEvbVSIMac, ieee8021BridgeEvbEcpTxFailures=ieee8021BridgeEvbEcpTxFailures, ieee8021BridgeEvbSchID=ieee8021BridgeEvbSchID, ieee8021BridgeEvbEcpOperAckTimerInitExp=ieee8021BridgeEvbEcpOperAckTimerInitExp, ieee8021BridgeEvbObjects=ieee8021BridgeEvbObjects, ieee8021BridgeEvbCAPComponentId=ieee8021BridgeEvbCAPComponentId, ieee8021BridgeEvbSchCdcpRemoteRole=ieee8021BridgeEvbSchCdcpRemoteRole, ieee8021BridgeEvbURPComponentId=ieee8021BridgeEvbURPComponentId, ieee8021BridgeEvbURPLldpManual=ieee8021BridgeEvbURPLldpManual, ieee8021BridgeEvbVDPMachineState=ieee8021BridgeEvbVDPMachineState, ieee8021BridgeEvbVSINumMACs=ieee8021BridgeEvbVSINumMACs, ieee8021BridgeEvbVSIID=ieee8021BridgeEvbVSIID, ieee8021BridgeEvbUAPSchAdminCDCPRole=ieee8021BridgeEvbUAPSchAdminCDCPRole, ieee8021BridgeEvbbComplianceV2=ieee8021BridgeEvbbComplianceV2, ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbsComplianceV2=ieee8021BridgeEvbsComplianceV2, ieee8021BridgeEvbURPVdpOperRespWaitDelay=ieee8021BridgeEvbURPVdpOperRespWaitDelay, ieee8021BridgeEvbSysEcpDfltAckTimerExp=ieee8021BridgeEvbSysEcpDfltAckTimerExp, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPAssociateSBPOrURPPort=ieee8021BridgeEvbCAPAssociateSBPOrURPPort, ieee8021BridgeEvbCAPSChannelID=ieee8021BridgeEvbCAPSChannelID, ieee8021BridgeEvbVSIDBMacTable=ieee8021BridgeEvbVSIDBMacTable, ieee8021BridgeEvbUAPConfigTable=ieee8021BridgeEvbUAPConfigTable, ieee8021BridgeEvbUAPConfigEntry=ieee8021BridgeEvbUAPConfigEntry, ieee8021BridgeEvbUAPComponentId=ieee8021BridgeEvbUAPComponentId, ieee8021BridgeEvbUAPGroup=ieee8021BridgeEvbUAPGroup, ieee8021BridgeEvbCAPRowStatus=ieee8021BridgeEvbCAPRowStatus, ieee8021BridgeEvbsURPV2Group=ieee8021BridgeEvbsURPV2Group, ieee8021BridgeEvbUAPSchOperState=ieee8021BridgeEvbUAPSchOperState, ieee8021BridgeEvbCompliances=ieee8021BridgeEvbCompliances, ieee8021BridgeEvbCAPPort=ieee8021BridgeEvbCAPPort, ieee8021BridgeEvbEcpRxFrameCount=ieee8021BridgeEvbEcpRxFrameCount, ieee8021BridgeEvbSbpComponentID=ieee8021BridgeEvbSbpComponentID, ieee8021BridgeEvbURPIfIndex=ieee8021BridgeEvbURPIfIndex, ieee8021BridgeEvbUAPPort=ieee8021BridgeEvbUAPPort, ieee8021BridgeEvbSysNumExternalPorts=ieee8021BridgeEvbSysNumExternalPorts, ieee8021BridgeEvbSbpVdpOperReinitKeepAlive=ieee8021BridgeEvbSbpVdpOperReinitKeepAlive, ieee8021BridgeEvbVSIMgrID=ieee8021BridgeEvbVSIMgrID, ieee8021BridgeEvbURPVdpOperRsrcWaitDelay=ieee8021BridgeEvbURPVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPConfigGroup=ieee8021BridgeEvbCAPConfigGroup, ieee8021BridgeEvbSbpV2Group=ieee8021BridgeEvbSbpV2Group, ieee8021BridgeEvbSys=ieee8021BridgeEvbSys, ieee8021BridgeEvbConformance=ieee8021BridgeEvbConformance, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay, ieee8021BridgeEvbSChannelObjects=ieee8021BridgeEvbSChannelObjects, ieee8021BridgeEvbVSITypeVersion=ieee8021BridgeEvbVSITypeVersion, ieee8021BridgeEvbEcpTxFrameCount=ieee8021BridgeEvbEcpTxFrameCount, ieee8021BridgeEvbSbpEntry=ieee8021BridgeEvbSbpEntry, ieee8021BridgeEvbSysEvbLldpTxEnable=ieee8021BridgeEvbSysEvbLldpTxEnable, ieee8021BridgeEvbVDPCommandsFailed=ieee8021BridgeEvbVDPCommandsFailed, ieee8021BridgeEvbUAPSchCdcpAdminEnable=ieee8021BridgeEvbUAPSchCdcpAdminEnable, ieee8021BridgeEvbUAPConfigRowStatus=ieee8021BridgeEvbUAPConfigRowStatus, ieee8021BridgeEvbNotifications=ieee8021BridgeEvbNotifications, ieee8021BridgeEvbVSIDBMacEntry=ieee8021BridgeEvbVSIDBMacEntry, ieee8021BridgeEvbSbpGroup=ieee8021BridgeEvbSbpGroup, ieee8021BridgeEvbVSIDBV2Group=ieee8021BridgeEvbVSIDBV2Group, ieee8021BridgeEvbURPVdpOperReinitKeepAlive=ieee8021BridgeEvbURPVdpOperReinitKeepAlive, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp, ieee8021BridgeEvbVsiOperRevert=ieee8021BridgeEvbVsiOperRevert, ieee8021BridgeEvbVSIComponentID=ieee8021BridgeEvbVSIComponentID, ieee8021BridgeEvbSysEcpMaxRetries=ieee8021BridgeEvbSysEcpMaxRetries, ieee8021BridgeEvbsCompliance=ieee8021BridgeEvbsCompliance, ieee8021BridgeEvbCAPAssociateSBPOrURPCompID=ieee8021BridgeEvbCAPAssociateSBPOrURPCompID, ieee8021BridgeEvbEcpTxRetryCount=ieee8021BridgeEvbEcpTxRetryCount, ieee8021BridgeEvbVSIDBGroup=ieee8021BridgeEvbVSIDBGroup, ieee8021BridgeEvbVSIDBTable=ieee8021BridgeEvbVSIDBTable, ieee8021BridgeEvbVSIDBObjects=ieee8021BridgeEvbVSIDBObjects, ieee8021BridgeEvbVSIVlanId=ieee8021BridgeEvbVSIVlanId, ieee8021BridgeEvbSysType=ieee8021BridgeEvbSysType, ieee8021BridgeEvbGroupID=ieee8021BridgeEvbGroupID, ieee8021BridgeEvbSbpTable=ieee8021BridgeEvbSbpTable, ieee8021BridgeEvbUAPConfigStorageType=ieee8021BridgeEvbUAPConfigStorageType, ieee8021BridgeEvbSysEvbLldpManual=ieee8021BridgeEvbSysEvbLldpManual, ieee8021BridgeEvbSysEcpAckTimer=ieee8021BridgeEvbSysEcpAckTimer, ieee8021BridgeEvbVSIFilterFormat=ieee8021BridgeEvbVSIFilterFormat, ieee8021BridgeEvbEcpPort=ieee8021BridgeEvbEcpPort, ieee8021BridgeEvbbCompliance=ieee8021BridgeEvbbCompliance, ieee8021BridgeEvbUapConfigIfIndex=ieee8021BridgeEvbUapConfigIfIndex, ieee8021BridgeEvbsURPGroup=ieee8021BridgeEvbsURPGroup, ieee8021BridgeEvbSchCdcpRemoteEnabled=ieee8021BridgeEvbSchCdcpRemoteEnabled, ieee8021BridgeEvbURPBindToISSPort=ieee8021BridgeEvbURPBindToISSPort, ieee8021BridgeEvbVSIMvFormat=ieee8021BridgeEvbVSIMvFormat, ieee8021BridgeEvbVSIIDType=ieee8021BridgeEvbVSIIDType, ieee8021BridgeEvbSbpLldpManual=ieee8021BridgeEvbSbpLldpManual, ieee8021BridgeEvbUAPSchAdminCDCPChanCap=ieee8021BridgeEvbUAPSchAdminCDCPChanCap, ieee8021BridgeEvbVDPCounterDiscontinuity=ieee8021BridgeEvbVDPCounterDiscontinuity, ieee8021BridgeEvbSbpPortNumber=ieee8021BridgeEvbSbpPortNumber, ieee8021BridgeEvbEcpEntry=ieee8021BridgeEvbEcpEntry, ieee8021BridgeEvbURPTable=ieee8021BridgeEvbURPTable, ieee8021BridgeEvbVsiOperReason=ieee8021BridgeEvbVsiOperReason, ieee8021BridgeEvbCAPConfigEntry=ieee8021BridgeEvbCAPConfigEntry, ieee8021BridgeEvbMib=ieee8021BridgeEvbMib, ieee8021BridgeEvbEcpTable=ieee8021BridgeEvbEcpTable, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow, ieee8021BridgeEvbURPPort=ieee8021BridgeEvbURPPort, ieee8021BridgeEvbEcpOperAckTimerInit=ieee8021BridgeEvbEcpOperAckTimerInit, ieee8021BridgeEvbSysVdpDfltReinitKeepAlive=ieee8021BridgeEvbSysVdpDfltReinitKeepAlive)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint') (ieee8021_bridge_phy_port,) = mibBuilder.importSymbols('IEEE8021-BRIDGE-MIB', 'ieee8021BridgePhyPort') (ieee802dot1mibs, ieee8021_bridge_port_number, ieee8021_pbb_component_identifier) = mibBuilder.importSymbols('IEEE8021-TC-MIB', 'ieee802dot1mibs', 'IEEE8021BridgePortNumber', 'IEEE8021PbbComponentIdentifier') (interface_index_or_zero,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndexOrZero') (vlan_index,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanIndex') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (time_ticks, module_identity, integer32, ip_address, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, counter64, notification_type, gauge32, object_identity, unsigned32, mib_identifier, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ModuleIdentity', 'Integer32', 'IpAddress', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Counter64', 'NotificationType', 'Gauge32', 'ObjectIdentity', 'Unsigned32', 'MibIdentifier', 'iso') (display_string, storage_type, mac_address, truth_value, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'StorageType', 'MacAddress', 'TruthValue', 'RowStatus', 'TextualConvention') ieee8021_bridge_evb_mib = module_identity((1, 3, 111, 2, 802, 1, 1, 24)) ieee8021BridgeEvbMib.setRevisions(('2014-12-15 00:00', '2012-02-15 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setRevisionsDescriptions(('Published as part of IEEE Std 802.1Q 2014 revision. Cross references updated and corrected. ieee8021BridgeEvbVSIMvFormat added. ieee8021BridgeEvbVsiMgrID16 added and ieee8021BridgeEvbVsiMgrID deprecated. ieee8021BridgeEvbVDPCounterDiscontinuity description clarified. Conformance and groups fixed. Fixed maintenance item to IEEE Std 802.1Qbg-2012.', 'Initial version published in IEEE Std 802.1Qbg.')) if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setLastUpdated('201412150000Z') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setOrganization('IEEE 802.1 Working Group') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setContactInfo(' WG-URL: http://www.ieee802.org/1 WG-EMail: stds-802-1@ieee.org Contact: IEEE 802.1 Working Group Chair Postal: C/O IEEE 802.1 Working Group IEEE Standards Association 445 Hoes Lane Piscataway NJ 08854 USA E-mail: STDS-802-1-L@LISTSERV.IEEE.ORG') if mibBuilder.loadTexts: ieee8021BridgeEvbMib.setDescription('The EVB MIB module for managing devices that support Ethernet Virtual Bridging. Unless otherwise indicated, the references in this MIB module are to IEEE Std 802.1Q-2014. Copyright (C) IEEE (2014). This version of this MIB module is part of IEEE802.1Q; see the draft itself for full legal notices.') ieee8021_bridge_evb_notifications = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 0)) ieee8021_bridge_evb_objects = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1)) ieee8021_bridge_evb_conformance = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 2)) ieee8021_bridge_evb_sys = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 1)) ieee8021_bridge_evb_sys_type = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('evbBridge', 1), ('evbStation', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setReference('5.23,5.24') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysType.setDescription('The evbSysType determines if this is an EVB Bridge or EVB station.') ieee8021_bridge_evb_sys_num_external_ports = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4095))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setReference('12.4.2, 12.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysNumExternalPorts.setDescription('The evbSysNumExternalPorts parameter indicates how many externally accessible port are available.') ieee8021_bridge_evb_sys_evb_lldp_tx_enable = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 3), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpTxEnable.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'true' a new SBP or URP will place the local EVB objects in the LLDP nearest Customer database; when set to 'false' a new SBP or URP will not place the local EVB objects in the LLDP database.") ieee8021_bridge_evb_sys_evb_lldp_manual = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 4), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpManual.setDescription("This object is used to initialize the LLDP EVB objects for new SBPs and URPS. When set to 'false' the operating configuration will be determined by the comparison between the local and remote LLDP EVB objects (automatic), regardless of the setting of ieee8021BridgeEvbSysLldpTxEnable. When ieee8021BridgeEvbSysLldpManual is 'true' the configuration will be determined by the setting of the local EVB objects only (manual).") ieee8021_bridge_evb_sys_evb_lldp_gid_capable = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 5), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setReference('D.2.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEvbLldpGidCapable.setDescription('The value of this object is used as the default value of the BGID or SGID bit of the EVB LLDP TLV string.') ieee8021_bridge_evb_sys_ecp_ack_timer = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpAckTimer.setDescription('A value indicating the Bridge Proposed ECP ackTimer.') ieee8021_bridge_evb_sys_ecp_dflt_ack_timer_exp = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setReference('D.2.13.6, 43.3.6.1') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpDfltAckTimerExp.setDescription('The exponent of 2 indicating the Bridge Proposed ECP ackTimer in tens of microseconds.') ieee8021_bridge_evb_sys_ecp_max_retries = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 7)).clone(3)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setReference('D.2.13.5, 43.3.7.4') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysEcpMaxRetries.setDescription('A value indicating the Bridge ECP maxRetries.') ieee8021_bridge_evb_sys_vdp_dflt_rsrc_wait_delay = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 8), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay.setDescription('A value indicating the Bridge Resource VDP Timeout.') ieee8021_bridge_evb_sys_vdp_dflt_rsrc_wait_delay_exp = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp.setDescription('The exponent of 2 indicating the Bridge Resource VDP Timeout in tens of microseconds.') ieee8021_bridge_evb_sys_vdp_dflt_reinit_keep_alive = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 9), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAlive.setDescription('A value indicating the Bridge Proposed VDP Keep Alive Timeout.') ieee8021_bridge_evb_sys_vdp_dflt_reinit_keep_alive_exp = mib_scalar((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp.setDescription('The exponent of 2 indicating the Bridge Proposed VDP Keep Alive Timeout in tens of microseconds.') ieee8021_bridge_evb_sbp_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10)) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setReference('12.26.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpTable.setDescription('A table that contains Station-facing Bridge Port (SBP) details.') ieee8021_bridge_evb_sbp_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpComponentID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpPortNumber')) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpEntry.setDescription('A list of objects describing SBP.') ieee8021_bridge_evb_sbp_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpComponentID.setDescription('The SBP component ID') ieee8021_bridge_evb_sbp_port_number = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpPortNumber.setDescription('The SBP port number.') ieee8021_bridge_evb_sbp_lldp_manual = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 3), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpLldpManual.setDescription('The evbSbpLldpManual parameter switches EVB TLVs to manual mode. In manual mode the running parameters are determined solely from the local LLDP database values.') ieee8021_bridge_evb_sbp_vdp_oper_rsrc_wait_delay = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 4), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay.setDescription('The value used to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021_bridge_evb_sbp_vdp_oper_rsrc_wait_delay_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setReference('D.2.13, 41.5.5.7') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.7) by the station VDP state machine when the state machine is waiting for a response.') ieee8021_bridge_evb_sbp_vdp_oper_reinit_keep_alive = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 5), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021_bridge_evb_sbp_vdp_oper_reinit_keep_alive_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setReference('D.2.13, 41.5.5.5') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp.setDescription('The exponent of 2 used to calculate the value to initialize the waitWhile timer (41.5.5.5) by the station VDP state machine in order to determine when to transmit a keep alive message.') ieee8021_bridge_evb_sbp_vdp_oper_tout_keep_alive = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 1, 10, 1, 6), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setReference('D.2.13, 41.5.5.13') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpVdpOperToutKeepAlive.setDescription('The value used to initialize the waitWhile timer (41.5.5.13) by the EVBCB VDP state machine in order to determine when to transmit a keep alive message.') ieee8021_bridge_evb_vsidb_objects = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 2)) ieee8021_bridge_evb_vsidb_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021_bridge_evb_vsidb_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIComponentID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIPortNumber'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIIDType'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIID')) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBEntry.setDescription('A list of objects containing database of the active Virtual Station Interfaces.') ieee8021_bridge_evb_vsi_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIComponentID.setDescription('The evbVSIComponentID is the ComponentID for the C-VLAN component of the EVB Bridge or for the edge relay of the EVB station.') ieee8021_bridge_evb_vsi_port_number = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIPortNumber.setDescription('The evbVSIPortNumber is the Port Number for the SBP or URP where the VSI is accessed.') ieee8021_bridge_evb_vsiid_type = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('vsiidIpv4', 1), ('vsiidIpv6', 2), ('vsiidMAC', 3), ('vsiidLocal', 4), ('vsiidUUID', 5)))) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setReference('41.2.6') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIIDType.setDescription('This object specifies the VSIID Type for the VSIID in the DCN ') ieee8021_bridge_evb_vsiid = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setReference('41.2.7') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIID.setDescription('This object specifies the VSIID that uniquely identifies the VSI in the DCN ') ieee8021_bridge_evb_vsi_time_since_create = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 5), unsigned32()).setUnits('centi-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setReference('41') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITimeSinceCreate.setDescription('This object specifies the time since creation ') ieee8021_bridge_evb_vsi_vdp_oper_cmd = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('preAssociate', 1), ('preAssociateWithRsrcReservation', 2), ('associate', 3), ('deAssociate', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setReference('41.2.1') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiVdpOperCmd.setDescription('This object identifies the type of TLV.') ieee8021_bridge_evb_vsi_oper_revert = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 7), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperRevert.setDescription('The evbOperRevert status indicator shows the most recent value of the KEEP indicator from the VDP protocol exchange.') ieee8021_bridge_evb_vsi_oper_hard = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 8), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperHard.setDescription('The evbVsiHard status indicator shows the most recent value of the HARD indicator from the VDP protocol exchange.') ieee8021_bridge_evb_vsi_oper_reason = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 9), bits().clone(namedValues=named_values(('success', 0), ('invalidFormat', 1), ('insufficientResources', 2), ('otherfailure', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setReference('41.2.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVsiOperReason.setDescription('This object indicates the outcome of a request.') ieee8021_bridge_evb_vsi_mgr_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021_bridge_evb_vsi_type = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setReference('41.2.4') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIType.setDescription(' The VTID is an integer value used to identify a pre-configured set of controls and attributes that are associated with a set of VSIs.') ieee8021_bridge_evb_vsi_type_version = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setReference('41.2.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSITypeVersion.setDescription('The VSI Type Version is an integer identifier designating the expected/desired VTID version. The VTID version allows a VSI Manager Database to contain multiple versions of a given VSI Type, allowing smooth migration to newer VSI types.') ieee8021_bridge_evb_vsi_mv_format = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('basic', 1), ('partial', 2), ('vlanOnly', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setReference('41.2.8') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMvFormat.setDescription('This object specifies the MAC/VLAN format. basic - Basic MAC/VLAN format partial - Partial MAC/VLAN format vlanOnly - Vlan-only MAC/VLAN format ') ieee8021_bridge_evb_vsi_num_ma_cs = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSINumMACs.setDescription('This object specifies the the number of MAC address/VLAN ID pairs contained in the repeated portion of the MAC/VLANs field in the VDP TLV.') ieee8021_bridge_evb_vdp_machine_state = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('preAssociate', 1), ('preAssociateWithRsrcReservation', 2), ('associate', 3), ('deAssociate', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setReference('41.5.5.14') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPMachineState.setDescription('This object specifies the VDP state machine. ') ieee8021_bridge_evb_vdp_commands_succeeded = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsSucceeded.setDescription('This object specifies the VDP number of successful commands since creation.') ieee8021_bridge_evb_vdp_commands_failed = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandsFailed.setDescription('This object specifies the VDP number of failed commands since creation ') ieee8021_bridge_evb_vdp_command_reverts = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setReference('41.5') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCommandReverts.setDescription('This object specifies the VDP command reverts since creation ') ieee8021_bridge_evb_vdp_counter_discontinuity = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 19), time_ticks()).setUnits('hundredths of a second').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVDPCounterDiscontinuity.setDescription('The time (in hundredths of a second) since the last counter discontinuity for any of the counters in the row.') ieee8021_bridge_evb_vsi_mgr_id16 = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 20), octet_string().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setReference('41.1.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMgrID16.setDescription('This object identifies the VSI Manager with a database that holds the detailed VSI type and or instance definitions.') ieee8021_bridge_evb_vsi_filter_format = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('vid', 1), ('macVid', 2), ('groupidVid', 3), ('groupidMacVid', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setReference('41.2.8, 41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIFilterFormat.setDescription('This object specifies the MAC/VLAN format: vid (see 41.2.9.1) macVid (see 41.2.9.2) groupidVid (see 41.2.9.3) groupidMacVid (see 41.2.9.4) ') ieee8021_bridge_evb_vsidb_mac_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2)) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setReference('12.26.3') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacTable.setDescription('A table that contains database of the active Virtual Station Interfaces.') ieee8021_bridge_evb_vsidb_mac_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIComponentID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIPortNumber'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIIDType'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbGroupID'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMac'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIVlanId')) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBMacEntry.setDescription('A list of objects containing database of the MAC/VLANs associated with Virtual Station Interfaces.') ieee8021_bridge_evb_group_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbGroupID.setDescription('Group ID') ieee8021_bridge_evb_vsi_mac = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 2), mac_address()) if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIMac.setDescription('The mac-address part of the MAC/VLANs for a VSI.') ieee8021_bridge_evb_vsi_vlan_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 2, 2, 1, 3), vlan_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setReference('41.2.9') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIVlanId.setDescription('The Vlan ID part of the MAC/VLANs for a VSI.') ieee8021_bridge_evb_s_channel_objects = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 1, 3)) ieee8021_bridge_evb_uap_config_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1)) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setReference('12.26.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigTable.setDescription('A table that contains configuration parameters for UAP.') ieee8021_bridge_evb_uap_config_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1)).setIndexNames((0, 'IEEE8021-BRIDGE-MIB', 'ieee8021BridgePhyPort')) if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigEntry.setDescription('A list of objects containing information to configure the attributes for UAP.') ieee8021_bridge_evb_uap_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 1), ieee8021_pbb_component_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPComponentId.setDescription('The ComponentID of the port for the UAP.') ieee8021_bridge_evb_uap_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 2), ieee8021_bridge_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPPort.setDescription('The port number of the port for the UAP.') ieee8021_bridge_evb_uap_config_if_index = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink.') ieee8021_bridge_evb_uap_sch_cdcp_admin_enable = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchCdcpAdminEnable.setDescription('Administrative staus of CDCP.') ieee8021_bridge_evb_uap_sch_admin_cdcp_role = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cdcpRoleB', 1), ('cdcpRoleS', 2))).clone(1)).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPRole.setDescription("The administratively configured value for the local port's role parameter. The value of AdminRole is not reflected in the S-channel TLV. The AdminRole may take the value S or B. S indicates the sender is unwilling to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing to accept SVID assignments from the neighbor. Stations usually take the S role. B indicates the sender is willing to accept S-channels configuration (mode, # channels supported, channel index) from its neighbor and that the sender is willing do the best it can to fill the SVID assignments from the neighbor. Bridges usually take the B role.") ieee8021_bridge_evb_uap_sch_admin_cdcp_chan_cap = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 167))).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setReference('42.4.1') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPChanCap.setDescription('The administratively configured value for the Number of Channels supported parameter. This value is included as the ChanCap parameter in the S-channel TLV.') ieee8021_bridge_evb_uap_sch_oper_cdcp_chan_cap = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 167))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setReference('42.4.8') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperCDCPChanCap.setDescription('The operational value for the Number of Channels supported parameter. This value is included as the ChnCap parameter in the S-channel TLV.') ieee8021_bridge_evb_uap_sch_admin_cdcpsvid_pool_low = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 8), vlan_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow.setDescription('Determines the lowest S-VIDs available for assignment by CDCP.') ieee8021_bridge_evb_uap_sch_admin_cdcpsvid_pool_high = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 9), vlan_index()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setReference('42.4.7') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh.setDescription('Determines the highest S-VIDs available for assignment by CDCP.') ieee8021_bridge_evb_uap_sch_oper_state = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('running', 1), ('notRunning', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPSchOperState.setDescription('The current runnning state of CDCP.') ieee8021_bridge_evb_sch_cdcp_remote_enabled = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setReference('42.4.14') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteEnabled.setDescription('CDCP state for the remote S-channel.') ieee8021_bridge_evb_sch_cdcp_remote_role = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cdcpRoleB', 1), ('cdcpRoleS', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setReference('42.4.12') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchCdcpRemoteRole.setDescription("The value for the remote port's role parameter.") ieee8021_bridge_evb_uap_config_storage_type = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 13), storage_type().clone('nonVolatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigStorageType.setDescription('The storage type for this row. Rows in this table that were created through an external process may have a storage type of readOnly or permanent. For a storage type of permanent, none of the columns have to be writable.') ieee8021_bridge_evb_uap_config_row_status = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 1, 1, 14), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPConfigRowStatus.setDescription('RowStatus for creating a UAP table entry.') ieee8021_bridge_evb_cap_config_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2)) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigTable.setDescription('A table that contains configuration information for the S-Channel Access Ports (CAP).') ieee8021_bridge_evb_cap_config_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1)).setIndexNames((0, 'IEEE8021-BRIDGE-MIB', 'ieee8021BridgePhyPort'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSchID')) if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigEntry.setDescription('A list of objects containing information for the S-Channel Access Ports (CAP)') ieee8021_bridge_evb_sch_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4094))) if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setReference('42.4.3') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSchID.setDescription('This object represents the SVID for a ieee8021BridgeEvbSysType of evbBridge and a SCID(S-Channel ID) for a ieee8021BridgeEvbSysType of evbStation.') ieee8021_bridge_evb_cap_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 2), ieee8021_pbb_component_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPComponentId.setDescription('Component ID for S-channel Access Port.') ieee8021_bridge_evb_cap_config_if_index = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 3), interface_index_or_zero()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCapConfigIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system.') ieee8021_bridge_evb_cap_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 4), ieee8021_bridge_port_number()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPPort.setDescription('Port number for the S-Channel Access Port.') ieee8021_bridge_evb_caps_channel_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setReference('42.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPSChannelID.setDescription('S-Channel ID (SCID) for this CAP.') ieee8021_bridge_evb_cap_associate_sbp_or_urp_comp_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 6), ieee8021_pbb_component_identifier()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setReference('12.4.1.5') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPCompID.setDescription('Component ID of the Server Edge Port to be associated with the CAP.') ieee8021_bridge_evb_cap_associate_sbp_or_urp_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 7), ieee8021_bridge_port_number()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setReference('12.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPAssociateSBPOrURPPort.setDescription('Port number of the Server Edge Port to be associated with the CAP.') ieee8021_bridge_evb_cap_row_status = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 2, 1, 8), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPRowStatus.setDescription('RowStatus to create/destroy this table.') ieee8021_bridge_evb_urp_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3)) if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setReference('12.26.5.1') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPTable.setDescription('A table that contains configuration information for the Uplink Relay Ports(URP).') ieee8021_bridge_evb_urp_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPComponentId'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPPort')) if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPEntry.setDescription('A list of objects containing information for the Uplink Relay Ports(URP).') ieee8021_bridge_evb_urp_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPComponentId.setDescription('Component ID that the URP belongs to.') ieee8021_bridge_evb_urp_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPPort.setDescription('port number of the urp.') ieee8021_bridge_evb_urp_if_index = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 3), interface_index_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPIfIndex.setDescription('The value of the instance of the IfIndex object, defined in the IF-MIB, for the interface corresponding to this port, or the value 0 if the port has not been bound to an underlying frame source and sink. It is an implementation specific decision as to whether this object may be modified if it has been created or if 0 is a legal value. The underlying IfEntry indexed by this column MUST be persistent across reinitializations of the management system. ') ieee8021_bridge_evb_urp_bind_to_iss_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 4), ieee8021_bridge_port_number()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPBindToISSPort.setDescription('The evbURPBindToISSPort is the ISS Port Number where the URP is attached. This binding is optional and only required in some systems.') ieee8021_bridge_evb_urp_lldp_manual = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 6), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPLldpManual.setDescription('The evbUrpLldpManual parameter control how the EVB TLV determines the operating values for parameters. When set TRUE only the local EVB TLV will be used to determine the parameters.') ieee8021_bridge_evb_urp_vdp_oper_rsrc_wait_delay = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 9), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelay.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021_bridge_evb_urp_vdp_oper_rsrc_wait_delay_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 12), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp.setDescription('The parameter evbURPVdpOperRsrcWaitDelay is the exponent of 2 used to set the VDP resourceWaitDelay timer at the EVB Bridge.') ieee8021_bridge_evb_urp_vdp_oper_resp_wait_delay = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 10), unsigned32()).setUnits('micro-seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperRespWaitDelay.setDescription('The evbUrpVdpOperRespWaitDelay is how long a EVb station VDP will wait for a response from the EVB Bridge VDP.') ieee8021_bridge_evb_urp_vdp_oper_reinit_keep_alive = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 11), unsigned32()).setUnits('micro-seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAlive.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021_bridge_evb_urp_vdp_oper_reinit_keep_alive_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 3, 1, 13), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp.setDescription('The evbURPVdpOperReinitKeepAlive is the exponent of 2 used to determine the time interval of Keep Alives transmitted by the EVB station.') ieee8021_bridge_evb_ecp_table = mib_table((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4)) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setReference('12.26.4.2') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTable.setDescription('A table that contains configuration information for the Edge Control Protocol (ECP).') ieee8021_bridge_evb_ecp_entry = mib_table_row((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1)).setIndexNames((0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpComponentId'), (0, 'IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpPort')) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpEntry.setDescription('A list of objects containing information for theEdge Control Protocol (ECP).') ieee8021_bridge_evb_ecp_component_id = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 1), ieee8021_pbb_component_identifier()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpComponentId.setDescription('Component ID .') ieee8021_bridge_evb_ecp_port = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 2), ieee8021_bridge_port_number()) if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpPort.setDescription('Port number.') ieee8021_bridge_evb_ecp_oper_ack_timer_init = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 3), unsigned32()).setUnits('micro-seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInit.setDescription('The initial value used to initialize ackTimer (43.3.6.1).') ieee8021_bridge_evb_ecp_oper_ack_timer_init_exp = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperAckTimerInitExp.setDescription('The initial value used to initialize ackTimer. Expressed as exp where 10*2exp microseconds is the duration of the ack timer(43.3.6.1).') ieee8021_bridge_evb_ecp_oper_max_retries = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpOperMaxRetries.setDescription('This integer variable defines the maximum number of times that the ECP transmit state machine will retry a transmission if no ACK is received.') ieee8021_bridge_evb_ecp_tx_frame_count = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFrameCount.setDescription('The evbECPTxFrameCount is the number of ECP frame transmitted since ECP was instanciated.') ieee8021_bridge_evb_ecp_tx_retry_count = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxRetryCount.setDescription('The evbECPTxRetryCount is the number of times ECP re-tried transmission since ECP was instanciated.') ieee8021_bridge_evb_ecp_tx_failures = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpTxFailures.setDescription('The evbECPTxFailures is the number of times ECP failed to successfully deliver a frame since ECP was instanciated.') ieee8021_bridge_evb_ecp_rx_frame_count = mib_table_column((1, 3, 111, 2, 802, 1, 1, 24, 1, 3, 4, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpRxFrameCount.setDescription('The evbECPRxFrameCount is the number of frames received since ECP was instanciated.') ieee8021_bridge_evb_groups = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 1)) ieee8021_bridge_evb_compliances = mib_identifier((1, 3, 111, 2, 802, 1, 1, 24, 2, 2)) ieee8021_bridge_evb_sys_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 1)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysNumExternalPorts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpTxEnable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpGidCapable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpAckTimer'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltReinitKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sys_group = ieee8021BridgeEvbSysGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSysGroup.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021_bridge_evb_sbp_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 3)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperReinitKeepAlive'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperToutKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sbp_group = ieee8021BridgeEvbSbpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpGroup.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021_bridge_evb_vsidb_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 4)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITimeSinceCreate'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiVdpOperCmd'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperRevert'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperHard'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperReason'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMgrID'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITypeVersion'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMvFormat'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSINumMACs'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPMachineState'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsSucceeded'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsFailed'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandReverts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCounterDiscontinuity'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIVlanId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_vsidb_group = ieee8021BridgeEvbVSIDBGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBGroup.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021_bridge_evb_uap_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 5)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPComponentId'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUapConfigIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchCdcpAdminEnable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPRole'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPChanCap'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchOperCDCPChanCap'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPSchOperState'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSchCdcpRemoteEnabled'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSchCdcpRemoteRole'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPConfigStorageType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPConfigRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_uap_group = ieee8021BridgeEvbUAPGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbUAPGroup.setDescription('The collection of objects used to represent a EVB UAP table.') ieee8021_bridge_evb_cap_config_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 6)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPComponentId'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCapConfigIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPSChannelID'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPAssociateSBPOrURPCompID'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPAssociateSBPOrURPPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_cap_config_group = ieee8021BridgeEvbCAPConfigGroup.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbCAPConfigGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021_bridge_evbs_urp_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 7)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPBindToISSPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRsrcWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRespWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperReinitKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_urp_group = ieee8021BridgeEvbsURPGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPGroup.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021_bridge_evb_ecp_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 8)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperAckTimerInit'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFrameCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxRetryCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFailures'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpRxFrameCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_ecp_group = ieee8021BridgeEvbEcpGroup.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpGroup.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021_bridge_evb_sys_v2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 9)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysNumExternalPorts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpTxEnable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpGidCapable'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEvbLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpDfltAckTimerExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysEcpMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sys_v2_group = ieee8021BridgeEvbSysV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSysV2Group.setDescription('The collection of objects used to represent a EVB management objects.') ieee8021_bridge_evb_sbp_v2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 10)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpVdpOperToutKeepAlive')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_sbp_v2_group = ieee8021BridgeEvbSbpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbSbpV2Group.setDescription('The collection of objects used to represent a SBP management objects.') ieee8021_bridge_evb_vsidbv2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 11)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITimeSinceCreate'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiVdpOperCmd'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperRevert'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperHard'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVsiOperReason'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIMgrID16'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIType'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSITypeVersion'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIFilterFormat'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSINumMACs'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPMachineState'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsSucceeded'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandsFailed'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCommandReverts'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVDPCounterDiscontinuity'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIVlanId')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_vsidbv2_group = ieee8021BridgeEvbVSIDBV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbVSIDBV2Group.setDescription('The collection of objects used to represent a EVB VSI DB table.') ieee8021_bridge_evbs_urpv2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 12)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPIfIndex'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPBindToISSPort'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPLldpManual'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperRespWaitDelay'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_urpv2_group = ieee8021BridgeEvbsURPV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsURPV2Group.setDescription('The collection of objects used to represent a EVBS URP management objects.') ieee8021_bridge_evb_ecp_v2_group = object_group((1, 3, 111, 2, 802, 1, 1, 24, 2, 1, 13)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperAckTimerInitExp'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpOperMaxRetries'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFrameCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxRetryCount'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpTxFailures'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpRxFrameCount')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evb_ecp_v2_group = ieee8021BridgeEvbEcpV2Group.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbEcpV2Group.setDescription('The collection of objects used to represent a EVB CAP management objects.') ieee8021_bridge_evbb_compliance = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 1)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbb_compliance = ieee8021BridgeEvbbCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbbCompliance.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021_bridge_evbs_compliance = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 2)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbsURPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_compliance = ieee8021BridgeEvbsCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ieee8021BridgeEvbsCompliance.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') ieee8021_bridge_evbb_compliance_v2 = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 3)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSbpV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbb_compliance_v2 = ieee8021BridgeEvbbComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbbComplianceV2.setDescription('The compliance statement for devices supporting EVB as defined in IEEE 802.1Q.') ieee8021_bridge_evbs_compliance_v2 = module_compliance((1, 3, 111, 2, 802, 1, 1, 24, 2, 2, 4)).setObjects(('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbSysV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbVSIDBV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbsURPV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbEcpV2Group'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbUAPGroup'), ('IEEE8021-EVB-MIB', 'ieee8021BridgeEvbCAPConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ieee8021_bridge_evbs_compliance_v2 = ieee8021BridgeEvbsComplianceV2.setStatus('current') if mibBuilder.loadTexts: ieee8021BridgeEvbsComplianceV2.setDescription('The compliance statement for devices supporting EVBS as defined in IEEE 802.1Q.') mibBuilder.exportSymbols('IEEE8021-EVB-MIB', ieee8021BridgeEvbGroups=ieee8021BridgeEvbGroups, ieee8021BridgeEvbSysEvbLldpGidCapable=ieee8021BridgeEvbSysEvbLldpGidCapable, ieee8021BridgeEvbVsiOperHard=ieee8021BridgeEvbVsiOperHard, ieee8021BridgeEvbEcpGroup=ieee8021BridgeEvbEcpGroup, ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp=ieee8021BridgeEvbSbpVdpOperReinitKeepAliveExp, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolHigh, ieee8021BridgeEvbVSIType=ieee8021BridgeEvbVSIType, ieee8021BridgeEvbVSIPortNumber=ieee8021BridgeEvbVSIPortNumber, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbCAPConfigTable=ieee8021BridgeEvbCAPConfigTable, ieee8021BridgeEvbVsiVdpOperCmd=ieee8021BridgeEvbVsiVdpOperCmd, ieee8021BridgeEvbURPEntry=ieee8021BridgeEvbURPEntry, ieee8021BridgeEvbCapConfigIfIndex=ieee8021BridgeEvbCapConfigIfIndex, ieee8021BridgeEvbVDPCommandsSucceeded=ieee8021BridgeEvbVDPCommandsSucceeded, ieee8021BridgeEvbUAPSchOperCDCPChanCap=ieee8021BridgeEvbUAPSchOperCDCPChanCap, ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp=ieee8021BridgeEvbURPVdpOperReinitKeepAliveExp, ieee8021BridgeEvbVSIDBEntry=ieee8021BridgeEvbVSIDBEntry, ieee8021BridgeEvbEcpComponentId=ieee8021BridgeEvbEcpComponentId, ieee8021BridgeEvbVDPCommandReverts=ieee8021BridgeEvbVDPCommandReverts, ieee8021BridgeEvbVSIMgrID16=ieee8021BridgeEvbVSIMgrID16, ieee8021BridgeEvbVSITimeSinceCreate=ieee8021BridgeEvbVSITimeSinceCreate, ieee8021BridgeEvbSysV2Group=ieee8021BridgeEvbSysV2Group, ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp=ieee8021BridgeEvbSysVdpDfltReinitKeepAliveExp, ieee8021BridgeEvbEcpOperMaxRetries=ieee8021BridgeEvbEcpOperMaxRetries, ieee8021BridgeEvbSysGroup=ieee8021BridgeEvbSysGroup, ieee8021BridgeEvbEcpV2Group=ieee8021BridgeEvbEcpV2Group, PYSNMP_MODULE_ID=ieee8021BridgeEvbMib, ieee8021BridgeEvbSbpVdpOperToutKeepAlive=ieee8021BridgeEvbSbpVdpOperToutKeepAlive, ieee8021BridgeEvbVSIMac=ieee8021BridgeEvbVSIMac, ieee8021BridgeEvbEcpTxFailures=ieee8021BridgeEvbEcpTxFailures, ieee8021BridgeEvbSchID=ieee8021BridgeEvbSchID, ieee8021BridgeEvbEcpOperAckTimerInitExp=ieee8021BridgeEvbEcpOperAckTimerInitExp, ieee8021BridgeEvbObjects=ieee8021BridgeEvbObjects, ieee8021BridgeEvbCAPComponentId=ieee8021BridgeEvbCAPComponentId, ieee8021BridgeEvbSchCdcpRemoteRole=ieee8021BridgeEvbSchCdcpRemoteRole, ieee8021BridgeEvbURPComponentId=ieee8021BridgeEvbURPComponentId, ieee8021BridgeEvbURPLldpManual=ieee8021BridgeEvbURPLldpManual, ieee8021BridgeEvbVDPMachineState=ieee8021BridgeEvbVDPMachineState, ieee8021BridgeEvbVSINumMACs=ieee8021BridgeEvbVSINumMACs, ieee8021BridgeEvbVSIID=ieee8021BridgeEvbVSIID, ieee8021BridgeEvbUAPSchAdminCDCPRole=ieee8021BridgeEvbUAPSchAdminCDCPRole, ieee8021BridgeEvbbComplianceV2=ieee8021BridgeEvbbComplianceV2, ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp=ieee8021BridgeEvbURPVdpOperRsrcWaitDelayExp, ieee8021BridgeEvbsComplianceV2=ieee8021BridgeEvbsComplianceV2, ieee8021BridgeEvbURPVdpOperRespWaitDelay=ieee8021BridgeEvbURPVdpOperRespWaitDelay, ieee8021BridgeEvbSysEcpDfltAckTimerExp=ieee8021BridgeEvbSysEcpDfltAckTimerExp, ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay=ieee8021BridgeEvbSbpVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPAssociateSBPOrURPPort=ieee8021BridgeEvbCAPAssociateSBPOrURPPort, ieee8021BridgeEvbCAPSChannelID=ieee8021BridgeEvbCAPSChannelID, ieee8021BridgeEvbVSIDBMacTable=ieee8021BridgeEvbVSIDBMacTable, ieee8021BridgeEvbUAPConfigTable=ieee8021BridgeEvbUAPConfigTable, ieee8021BridgeEvbUAPConfigEntry=ieee8021BridgeEvbUAPConfigEntry, ieee8021BridgeEvbUAPComponentId=ieee8021BridgeEvbUAPComponentId, ieee8021BridgeEvbUAPGroup=ieee8021BridgeEvbUAPGroup, ieee8021BridgeEvbCAPRowStatus=ieee8021BridgeEvbCAPRowStatus, ieee8021BridgeEvbsURPV2Group=ieee8021BridgeEvbsURPV2Group, ieee8021BridgeEvbUAPSchOperState=ieee8021BridgeEvbUAPSchOperState, ieee8021BridgeEvbCompliances=ieee8021BridgeEvbCompliances, ieee8021BridgeEvbCAPPort=ieee8021BridgeEvbCAPPort, ieee8021BridgeEvbEcpRxFrameCount=ieee8021BridgeEvbEcpRxFrameCount, ieee8021BridgeEvbSbpComponentID=ieee8021BridgeEvbSbpComponentID, ieee8021BridgeEvbURPIfIndex=ieee8021BridgeEvbURPIfIndex, ieee8021BridgeEvbUAPPort=ieee8021BridgeEvbUAPPort, ieee8021BridgeEvbSysNumExternalPorts=ieee8021BridgeEvbSysNumExternalPorts, ieee8021BridgeEvbSbpVdpOperReinitKeepAlive=ieee8021BridgeEvbSbpVdpOperReinitKeepAlive, ieee8021BridgeEvbVSIMgrID=ieee8021BridgeEvbVSIMgrID, ieee8021BridgeEvbURPVdpOperRsrcWaitDelay=ieee8021BridgeEvbURPVdpOperRsrcWaitDelay, ieee8021BridgeEvbCAPConfigGroup=ieee8021BridgeEvbCAPConfigGroup, ieee8021BridgeEvbSbpV2Group=ieee8021BridgeEvbSbpV2Group, ieee8021BridgeEvbSys=ieee8021BridgeEvbSys, ieee8021BridgeEvbConformance=ieee8021BridgeEvbConformance, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelay, ieee8021BridgeEvbSChannelObjects=ieee8021BridgeEvbSChannelObjects, ieee8021BridgeEvbVSITypeVersion=ieee8021BridgeEvbVSITypeVersion, ieee8021BridgeEvbEcpTxFrameCount=ieee8021BridgeEvbEcpTxFrameCount, ieee8021BridgeEvbSbpEntry=ieee8021BridgeEvbSbpEntry, ieee8021BridgeEvbSysEvbLldpTxEnable=ieee8021BridgeEvbSysEvbLldpTxEnable, ieee8021BridgeEvbVDPCommandsFailed=ieee8021BridgeEvbVDPCommandsFailed, ieee8021BridgeEvbUAPSchCdcpAdminEnable=ieee8021BridgeEvbUAPSchCdcpAdminEnable, ieee8021BridgeEvbUAPConfigRowStatus=ieee8021BridgeEvbUAPConfigRowStatus, ieee8021BridgeEvbNotifications=ieee8021BridgeEvbNotifications, ieee8021BridgeEvbVSIDBMacEntry=ieee8021BridgeEvbVSIDBMacEntry, ieee8021BridgeEvbSbpGroup=ieee8021BridgeEvbSbpGroup, ieee8021BridgeEvbVSIDBV2Group=ieee8021BridgeEvbVSIDBV2Group, ieee8021BridgeEvbURPVdpOperReinitKeepAlive=ieee8021BridgeEvbURPVdpOperReinitKeepAlive, ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp=ieee8021BridgeEvbSysVdpDfltRsrcWaitDelayExp, ieee8021BridgeEvbVsiOperRevert=ieee8021BridgeEvbVsiOperRevert, ieee8021BridgeEvbVSIComponentID=ieee8021BridgeEvbVSIComponentID, ieee8021BridgeEvbSysEcpMaxRetries=ieee8021BridgeEvbSysEcpMaxRetries, ieee8021BridgeEvbsCompliance=ieee8021BridgeEvbsCompliance, ieee8021BridgeEvbCAPAssociateSBPOrURPCompID=ieee8021BridgeEvbCAPAssociateSBPOrURPCompID, ieee8021BridgeEvbEcpTxRetryCount=ieee8021BridgeEvbEcpTxRetryCount, ieee8021BridgeEvbVSIDBGroup=ieee8021BridgeEvbVSIDBGroup, ieee8021BridgeEvbVSIDBTable=ieee8021BridgeEvbVSIDBTable, ieee8021BridgeEvbVSIDBObjects=ieee8021BridgeEvbVSIDBObjects, ieee8021BridgeEvbVSIVlanId=ieee8021BridgeEvbVSIVlanId, ieee8021BridgeEvbSysType=ieee8021BridgeEvbSysType, ieee8021BridgeEvbGroupID=ieee8021BridgeEvbGroupID, ieee8021BridgeEvbSbpTable=ieee8021BridgeEvbSbpTable, ieee8021BridgeEvbUAPConfigStorageType=ieee8021BridgeEvbUAPConfigStorageType, ieee8021BridgeEvbSysEvbLldpManual=ieee8021BridgeEvbSysEvbLldpManual, ieee8021BridgeEvbSysEcpAckTimer=ieee8021BridgeEvbSysEcpAckTimer, ieee8021BridgeEvbVSIFilterFormat=ieee8021BridgeEvbVSIFilterFormat, ieee8021BridgeEvbEcpPort=ieee8021BridgeEvbEcpPort, ieee8021BridgeEvbbCompliance=ieee8021BridgeEvbbCompliance, ieee8021BridgeEvbUapConfigIfIndex=ieee8021BridgeEvbUapConfigIfIndex, ieee8021BridgeEvbsURPGroup=ieee8021BridgeEvbsURPGroup, ieee8021BridgeEvbSchCdcpRemoteEnabled=ieee8021BridgeEvbSchCdcpRemoteEnabled, ieee8021BridgeEvbURPBindToISSPort=ieee8021BridgeEvbURPBindToISSPort, ieee8021BridgeEvbVSIMvFormat=ieee8021BridgeEvbVSIMvFormat, ieee8021BridgeEvbVSIIDType=ieee8021BridgeEvbVSIIDType, ieee8021BridgeEvbSbpLldpManual=ieee8021BridgeEvbSbpLldpManual, ieee8021BridgeEvbUAPSchAdminCDCPChanCap=ieee8021BridgeEvbUAPSchAdminCDCPChanCap, ieee8021BridgeEvbVDPCounterDiscontinuity=ieee8021BridgeEvbVDPCounterDiscontinuity, ieee8021BridgeEvbSbpPortNumber=ieee8021BridgeEvbSbpPortNumber, ieee8021BridgeEvbEcpEntry=ieee8021BridgeEvbEcpEntry, ieee8021BridgeEvbURPTable=ieee8021BridgeEvbURPTable, ieee8021BridgeEvbVsiOperReason=ieee8021BridgeEvbVsiOperReason, ieee8021BridgeEvbCAPConfigEntry=ieee8021BridgeEvbCAPConfigEntry, ieee8021BridgeEvbMib=ieee8021BridgeEvbMib, ieee8021BridgeEvbEcpTable=ieee8021BridgeEvbEcpTable, ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow=ieee8021BridgeEvbUAPSchAdminCDCPSVIDPoolLow, ieee8021BridgeEvbURPPort=ieee8021BridgeEvbURPPort, ieee8021BridgeEvbEcpOperAckTimerInit=ieee8021BridgeEvbEcpOperAckTimerInit, ieee8021BridgeEvbSysVdpDfltReinitKeepAlive=ieee8021BridgeEvbSysVdpDfltReinitKeepAlive)
c,b=map(int,input().split()) x=[*map(int,input().split())] oioi=set() ans=0 oioi.add(0) for i in x: tmp=[] for j in oioi: tmp.append(i+j) if i+j<=c: ans=max(ans,i+j) for j in tmp: oioi.add(j) print(ans)
(c, b) = map(int, input().split()) x = [*map(int, input().split())] oioi = set() ans = 0 oioi.add(0) for i in x: tmp = [] for j in oioi: tmp.append(i + j) if i + j <= c: ans = max(ans, i + j) for j in tmp: oioi.add(j) print(ans)
#!/usr/bin/env python NAME = 'Naxsi' def is_waf(self): # Sometimes naxsi waf returns 'x-data-origin: naxsi/waf' if self.matchheader(('X-Data-Origin', '^naxsi(.*)?')): return True # Found samples returning 'server: naxsi/2.0' if self.matchheader(('server', 'naxsi(.*)?')): return True for attack in self.attacks: r = attack(self) if r is None: return _, responsebody = r if any(i in responsebody for i in (b'Blocked By NAXSI', b'Naxsi Blocked Information')): return True return False
name = 'Naxsi' def is_waf(self): if self.matchheader(('X-Data-Origin', '^naxsi(.*)?')): return True if self.matchheader(('server', 'naxsi(.*)?')): return True for attack in self.attacks: r = attack(self) if r is None: return (_, responsebody) = r if any((i in responsebody for i in (b'Blocked By NAXSI', b'Naxsi Blocked Information'))): return True return False
consumer_key = 'v5bb7HD9PmYTvXuCBgCwa44qZ' consumer_secret = 'tlONgznY4y9S0E4D9JkDVABGGT8ACVgOySt3CPpsKUxU9IE2RS' twitter_token = '2888299528-05kwbmRfd82mneeJg2EMGhcMXXlFci6yaBWjxCA' twitter_token_secret = 'h0WLEeq7PNkC1Rd56eyM1oxi1KL4S9sXP8kigYxEB527B'
consumer_key = 'v5bb7HD9PmYTvXuCBgCwa44qZ' consumer_secret = 'tlONgznY4y9S0E4D9JkDVABGGT8ACVgOySt3CPpsKUxU9IE2RS' twitter_token = '2888299528-05kwbmRfd82mneeJg2EMGhcMXXlFci6yaBWjxCA' twitter_token_secret = 'h0WLEeq7PNkC1Rd56eyM1oxi1KL4S9sXP8kigYxEB527B'
def ip_to_int32(ip): temp="" ip=ip.split(".") for i in ip: temp+="{0:08b}".format(int(i)) return int(temp,2)
def ip_to_int32(ip): temp = '' ip = ip.split('.') for i in ip: temp += '{0:08b}'.format(int(i)) return int(temp, 2)
array = [] with open('input-p22.txt') as f: array = f.readlines() array = array[0].split(',') array.sort() print(array) asciA = ord('A') print("ascii A:", asciA) answer = 0 for i in range(0, len(array)): sum = 0 for letter in array[i]: if letter == '"': continue print(letter, ord(letter)) sum += ord(letter) - asciA +1 answer += (sum)*(i+1) print(answer)
array = [] with open('input-p22.txt') as f: array = f.readlines() array = array[0].split(',') array.sort() print(array) asci_a = ord('A') print('ascii A:', asciA) answer = 0 for i in range(0, len(array)): sum = 0 for letter in array[i]: if letter == '"': continue print(letter, ord(letter)) sum += ord(letter) - asciA + 1 answer += sum * (i + 1) print(answer)
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def bigIntegerCpp(): http_archive( name="big_integer_cpp" , build_file="//bazel/deps/big_integer_cpp:build.BUILD" , sha256="1c9505406accb1216947ca60299ed70726eade7c9458c7c7f94ca2aea68d288e" , strip_prefix="BigIntegerCPP-79e7b023bf5157c0f8d308d3791cf3b081d1e156" , urls = [ "https://github.com/Unilang/BigIntegerCPP/archive/79e7b023bf5157c0f8d308d3791cf3b081d1e156.tar.gz", ], )
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') def big_integer_cpp(): http_archive(name='big_integer_cpp', build_file='//bazel/deps/big_integer_cpp:build.BUILD', sha256='1c9505406accb1216947ca60299ed70726eade7c9458c7c7f94ca2aea68d288e', strip_prefix='BigIntegerCPP-79e7b023bf5157c0f8d308d3791cf3b081d1e156', urls=['https://github.com/Unilang/BigIntegerCPP/archive/79e7b023bf5157c0f8d308d3791cf3b081d1e156.tar.gz'])
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'file', 'isolated', 'json', 'path', 'runtime', 'step', ] def RunSteps(api): # Inspect the associated isolated server. api.isolated.isolate_server # Prepare files. temp = api.path.mkdtemp('isolated-example') api.step('touch a', ['touch', temp.join('a')]) api.step('touch b', ['touch', temp.join('b')]) api.step('touch c', ['touch', temp.join('c')]) api.file.ensure_directory('mkdirs', temp.join('sub', 'dir')) api.step('touch d', ['touch', temp.join('sub', 'dir', 'd')]) # Create an isolated. isolated = api.isolated.isolated(temp) isolated.add_file(temp.join('a')) isolated.add_files([temp.join('b'), temp.join('c')]) isolated.add_dir(temp.join('sub', 'dir')) # Archive with the default isolate server. first_hash = isolated.archive('archiving') # Or try isolating the whole root directory - and doing so to another server. isolated = api.isolated.isolated(temp) isolated.add_dir(temp) second_hash = isolated.archive( 'archiving root directory elsewhere', isolate_server='other-isolateserver.appspot.com', ) # Download your isolated tree. first_output_dir = api.path['cleanup'].join('first') api.isolated.download( 'download with first hash', isolated_hash=first_hash, output_dir=first_output_dir, ) second_output_dir = api.path['cleanup'].join('second') api.isolated.download( 'download with second hash', isolated_hash=second_hash, output_dir=second_output_dir, isolate_server='other-isolateserver.appspot.com', ) with api.isolated.on_path(): api.step('some step with isolated in path', []) def GenTests(api): yield api.test('basic') yield api.test('experimental') + api.runtime(is_experimental=True) yield (api.test('override isolated') + api.isolated.properties(server='bananas.example.com', version='release') )
deps = ['file', 'isolated', 'json', 'path', 'runtime', 'step'] def run_steps(api): api.isolated.isolate_server temp = api.path.mkdtemp('isolated-example') api.step('touch a', ['touch', temp.join('a')]) api.step('touch b', ['touch', temp.join('b')]) api.step('touch c', ['touch', temp.join('c')]) api.file.ensure_directory('mkdirs', temp.join('sub', 'dir')) api.step('touch d', ['touch', temp.join('sub', 'dir', 'd')]) isolated = api.isolated.isolated(temp) isolated.add_file(temp.join('a')) isolated.add_files([temp.join('b'), temp.join('c')]) isolated.add_dir(temp.join('sub', 'dir')) first_hash = isolated.archive('archiving') isolated = api.isolated.isolated(temp) isolated.add_dir(temp) second_hash = isolated.archive('archiving root directory elsewhere', isolate_server='other-isolateserver.appspot.com') first_output_dir = api.path['cleanup'].join('first') api.isolated.download('download with first hash', isolated_hash=first_hash, output_dir=first_output_dir) second_output_dir = api.path['cleanup'].join('second') api.isolated.download('download with second hash', isolated_hash=second_hash, output_dir=second_output_dir, isolate_server='other-isolateserver.appspot.com') with api.isolated.on_path(): api.step('some step with isolated in path', []) def gen_tests(api): yield api.test('basic') yield (api.test('experimental') + api.runtime(is_experimental=True)) yield (api.test('override isolated') + api.isolated.properties(server='bananas.example.com', version='release'))
#!-*- encoding=utf-8 class MegNoriBaseException(Exception): pass class NoAvaliableVolumeError(MegNoriBaseException): pass class PutFileException(MegNoriBaseException): pass class GetFileException(MegNoriBaseException): pass
class Megnoribaseexception(Exception): pass class Noavaliablevolumeerror(MegNoriBaseException): pass class Putfileexception(MegNoriBaseException): pass class Getfileexception(MegNoriBaseException): pass
{ 'target_defaults': { 'conditions': [ ['OS != "win"', { 'defines': [ '_GNU_SOURCE', ], 'conditions': [ ['OS=="solaris"', { 'cflags': ['-pthreads'], 'ldlags': ['-pthreads'], }, { 'cflags': ['-pthread'], 'ldlags': ['-pthread'], }], ], }], ], }, "targets": [ { "target_name": "lring", "type": "<(library)", "include_dirs": [ "include/", "src/" ], "sources": [ "src/lring.c" ] }, { "target_name": "tests", "type": "executable", "dependencies": [ "lring" ], "include_dirs": [ "include/", "test/" ], "sources": [ "test/ring-test.c" ] } ] }
{'target_defaults': {'conditions': [['OS != "win"', {'defines': ['_GNU_SOURCE'], 'conditions': [['OS=="solaris"', {'cflags': ['-pthreads'], 'ldlags': ['-pthreads']}, {'cflags': ['-pthread'], 'ldlags': ['-pthread']}]]}]]}, 'targets': [{'target_name': 'lring', 'type': '<(library)', 'include_dirs': ['include/', 'src/'], 'sources': ['src/lring.c']}, {'target_name': 'tests', 'type': 'executable', 'dependencies': ['lring'], 'include_dirs': ['include/', 'test/'], 'sources': ['test/ring-test.c']}]}
# # PySNMP MIB module CHEETAH-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHEETAH-TRAP-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:48:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # slbCurCfgRealServerIndex, fltCurCfgIndx, slbCurCfgVirtServiceRealPort, fltCurCfgPortIndx, slbCurCfgRealServerName, slbCurCfgRealServerIpAddr, fltCurCfgSrcIp = mibBuilder.importSymbols("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex", "fltCurCfgIndx", "slbCurCfgVirtServiceRealPort", "fltCurCfgPortIndx", "slbCurCfgRealServerName", "slbCurCfgRealServerIpAddr", "fltCurCfgSrcIp") ipCurCfgGwAddr, vrrpCurCfgVirtRtrAddr, vrrpCurCfgVirtRtrIndx, vrrpCurCfgIfPasswd, ipCurCfgGwIndex, vrrpCurCfgIfIndx = mibBuilder.importSymbols("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr", "vrrpCurCfgVirtRtrAddr", "vrrpCurCfgVirtRtrIndx", "vrrpCurCfgIfPasswd", "ipCurCfgGwIndex", "vrrpCurCfgIfIndx") aws_switch, = mibBuilder.importSymbols("ALTEON-ROOT-MIB", "aws-switch") OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") sysContact, sysName, sysLocation = mibBuilder.importSymbols("SNMPv2-MIB", "sysContact", "sysName", "sysLocation") ObjectIdentity, Counter32, TimeTicks, MibIdentifier, ModuleIdentity, Gauge32, Integer32, IpAddress, NotificationType, iso, NotificationType, Unsigned32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter32", "TimeTicks", "MibIdentifier", "ModuleIdentity", "Gauge32", "Integer32", "IpAddress", "NotificationType", "iso", "NotificationType", "Unsigned32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") altTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7)) altSwTrapDisplayString = MibScalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1000), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: altSwTrapDisplayString.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapDisplayString.setDescription('Temporary string object used to store information being sent in an Alteon Switch trap.') altSwTrapRate = MibScalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1001), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: altSwTrapRate.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapRate.setDescription('Temporary integer object used to store information being sent in an Alteon Switch trap.') altSwPrimaryPowerSupplyFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,1)) if mibBuilder.loadTexts: altSwPrimaryPowerSupplyFailure.setDescription('A altSwPrimaryPowerSupplyFailure trap signifies that the primary power supply failed.') altSwDefGwUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,2)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwUp.setDescription('A altSwDefGwUp trap signifies that the default gateway is alive. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwDefGwDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,3)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwDown.setDescription('A altSwDefGwDown trap signifies that the default gateway is down. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwDefGwInService = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,4)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwInService.setDescription('A altSwDefGwEnabled trap signifies that the default gateway is up and in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwDefGwNotInService = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,5)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwIndex"), ("ALTEON-CHEETAH-NETWORK-MIB", "ipCurCfgGwAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwDefGwNotInService.setDescription('A altSwDefGwDisabled trap signifies that the default gateway is alive but not in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') altSwSlbRealServerUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,6)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerUp.setDescription('A altSwSlbRealServerUp trap signifies that the real server (which had gone down )is back up and operational now. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbRealServerDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,7)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerDown.setDescription('A altSwSlbRealServerDown trap signifies that the real server has gone down and is out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbRealServerMaxConnReached = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,8)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerMaxConnReached.setDescription('A altSwSlbRealServerMaxConnReached trap signifies that the real server has reached maximum connections. The Real server will not be sent any more traffic from the switch until the number of connections drops below the maximum. If a backup server has been specified, it will be used to service additional requests, which is referred to as an Overflow server. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerAct = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,9)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerAct.setDescription('A altSwSlbBkupRealServerAct trap signifies that this backup real server has been activated because the Real server that it backs up went down.One might expect that a altSwSlbRealServerDown trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerDeact = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,10)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeact.setDescription('A altSwSlbBkupRealServerDeact trap signifies that the backup real server is deactivated because the primary real server has become available.One might expect that a altSwSlbRealServerUp trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerActOverflow = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,11)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerActOverflow.setDescription('A altSwSlbBkupRealServerActOverflow trap signifies that the backup real server is activated because the primary real server has reached the maximum allowed connections and is considered to be is in the Overflow state.One would expect an altSwSlbRealServerMaxConnReached trap from the Real server that just entered Overflow would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwSlbBkupRealServerDeactOverflow = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,12)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeactOverflow.setDescription('A altSwSlbBkupRealServerDeactOverflow trap signifies that the backup real server is deactivated because the primary real server is no longer in Overflow. The number of connections to the real server has fallen below the maximum allowed. The backup/overflow server is no longer needed. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') altSwfltFilterFired = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,13)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "fltCurCfgIndx"), ("ALTEON-CHEETAH-LAYER4-MIB", "fltCurCfgPortIndx"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwfltFilterFired.setDescription('A altSwfltFilterFired trap signifies that the packet received on a switch port matches the filter rule. on a switch port matches the filter rule. fltCurCfgIndx is the affected filter index, referenced in fltCurCfgTable. The range is from 1 to fltCfgTableMaxSize. fltCurCfgPortIndx is the affected port index, referenced in fltCurCfgPortTable. The range is from 1 to agPortTableMaxEnt.') altSwSlbRealServerServiceUp = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,14)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgVirtServiceRealPort"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerServiceUp.setDescription('A altSwSlbRealServerServiceUp trap signifies that the service port of the real server is up and operational. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') altSwSlbRealServerServiceDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,15)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIndex"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerIpAddr"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgRealServerName"), ("ALTEON-CHEETAH-LAYER4-MIB", "slbCurCfgVirtServiceRealPort"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbRealServerServiceDown.setDescription('A altSwSlbRealServerServiceDown trap signifies that the service port of the real server is down and out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') altSwVrrpNewMaster = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,16)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrIndx"), ("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwVrrpNewMaster.setDescription("The altSwVrrpNewMaster trap indicates that the sending agent has transitioned to 'Master' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") altSwVrrpNewBackup = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,17)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrIndx"), ("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgVirtRtrAddr"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwVrrpNewBackup.setDescription("The altSwVrrpNewBackup trap indicates that the sending agent has transitioned to 'Backup' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") altSwVrrpAuthFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,18)).setObjects(("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgIfIndx"), ("ALTEON-CHEETAH-NETWORK-MIB", "vrrpCurCfgIfPasswd"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwVrrpAuthFailure.setDescription("A altSwVrrpAuthFailure trap signifies that a packet has been received from a router whose authentication key or authentication type conflicts with this router's authentication key or authentication type. Implementation of this trap is optional. vrrpCurCfgIfIndx is the VRRP interface index. This is equivalent to IfIndex in RFC 1213 mib. The range is from 1 to vrrpIfTableMaxSize. vrrpCurCfgIfPasswd is the password for authentication. It is a DisplayString of 0 to 7 characters.") altSwLoginFailure = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,19)).setObjects(("CHEETAH-TRAP-MIB", "altSwTrapDisplayString"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwLoginFailure.setDescription('A altSwLoginFailure trap signifies that someone failed to enter a valid username/password combination. altSwTrapDisplayString specifies whether the login attempt was from CONSOLE or TELNET. In case of TELNET login it also specifies the IP address of the host from which the attempt was made.') altSwSlbSynAttack = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,20)).setObjects(("CHEETAH-TRAP-MIB", "altSwTrapRate"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwSlbSynAttack.setDescription('A altSwSlbSynAttack trap signifies that a SYN attack has been detected. altSwTrapRate specifies the number of new half-open sessions per second.') altSwTcpHoldDown = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,21)).setObjects(("ALTEON-CHEETAH-LAYER4-MIB", "fltCurCfgSrcIp"), ("CHEETAH-TRAP-MIB", "altSwTrapRate"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwTcpHoldDown.setDescription('A altSwTcpHoldDown trap signifies that new TCP connection requests from a particular client will be blocked for a pre-determined amount of time since the rate of new TCP connections from that client has reached a pre-determined threshold. The fltCurCfgSrcIp is the client source IP address for which new TCP connection requests will be blocked. The altSwTrapRate specifies the amount of time in minutes that the particular client will be blocked.') altSwTempExceedThreshold = NotificationType((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0,22)).setObjects(("CHEETAH-TRAP-MIB", "altSwTrapDisplayString"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysContact")) if mibBuilder.loadTexts: altSwTempExceedThreshold.setDescription('A altSwTempExceedThreshold trap signifies that the switch temperature has exceeded maximum safety limits. altSwTrapDisplayString specifies the sensor, the current sensor temperature and the threshold for the particular sensor.') mibBuilder.exportSymbols("CHEETAH-TRAP-MIB", altSwTrapDisplayString=altSwTrapDisplayString, altSwSlbRealServerMaxConnReached=altSwSlbRealServerMaxConnReached, altSwVrrpNewBackup=altSwVrrpNewBackup, altTraps=altTraps, altSwSlbRealServerServiceUp=altSwSlbRealServerServiceUp, altSwPrimaryPowerSupplyFailure=altSwPrimaryPowerSupplyFailure, altSwTrapRate=altSwTrapRate, altSwVrrpNewMaster=altSwVrrpNewMaster, altSwSlbBkupRealServerActOverflow=altSwSlbBkupRealServerActOverflow, altSwDefGwDown=altSwDefGwDown, altSwSlbRealServerUp=altSwSlbRealServerUp, altSwfltFilterFired=altSwfltFilterFired, altSwLoginFailure=altSwLoginFailure, altSwSlbRealServerServiceDown=altSwSlbRealServerServiceDown, altSwSlbBkupRealServerDeact=altSwSlbBkupRealServerDeact, altSwSlbBkupRealServerAct=altSwSlbBkupRealServerAct, altSwTcpHoldDown=altSwTcpHoldDown, altSwSlbSynAttack=altSwSlbSynAttack, altSwTempExceedThreshold=altSwTempExceedThreshold, altSwVrrpAuthFailure=altSwVrrpAuthFailure, altSwDefGwNotInService=altSwDefGwNotInService, altSwSlbBkupRealServerDeactOverflow=altSwSlbBkupRealServerDeactOverflow, altSwDefGwUp=altSwDefGwUp, altSwSlbRealServerDown=altSwSlbRealServerDown, altSwDefGwInService=altSwDefGwInService)
(slb_cur_cfg_real_server_index, flt_cur_cfg_indx, slb_cur_cfg_virt_service_real_port, flt_cur_cfg_port_indx, slb_cur_cfg_real_server_name, slb_cur_cfg_real_server_ip_addr, flt_cur_cfg_src_ip) = mibBuilder.importSymbols('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex', 'fltCurCfgIndx', 'slbCurCfgVirtServiceRealPort', 'fltCurCfgPortIndx', 'slbCurCfgRealServerName', 'slbCurCfgRealServerIpAddr', 'fltCurCfgSrcIp') (ip_cur_cfg_gw_addr, vrrp_cur_cfg_virt_rtr_addr, vrrp_cur_cfg_virt_rtr_indx, vrrp_cur_cfg_if_passwd, ip_cur_cfg_gw_index, vrrp_cur_cfg_if_indx) = mibBuilder.importSymbols('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr', 'vrrpCurCfgVirtRtrAddr', 'vrrpCurCfgVirtRtrIndx', 'vrrpCurCfgIfPasswd', 'ipCurCfgGwIndex', 'vrrpCurCfgIfIndx') (aws_switch,) = mibBuilder.importSymbols('ALTEON-ROOT-MIB', 'aws-switch') (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_range_constraint, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (sys_contact, sys_name, sys_location) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysContact', 'sysName', 'sysLocation') (object_identity, counter32, time_ticks, mib_identifier, module_identity, gauge32, integer32, ip_address, notification_type, iso, notification_type, unsigned32, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter32', 'TimeTicks', 'MibIdentifier', 'ModuleIdentity', 'Gauge32', 'Integer32', 'IpAddress', 'NotificationType', 'iso', 'NotificationType', 'Unsigned32', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') alt_traps = mib_identifier((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7)) alt_sw_trap_display_string = mib_scalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1000), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: altSwTrapDisplayString.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapDisplayString.setDescription('Temporary string object used to store information being sent in an Alteon Switch trap.') alt_sw_trap_rate = mib_scalar((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7, 1001), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: altSwTrapRate.setStatus('mandatory') if mibBuilder.loadTexts: altSwTrapRate.setDescription('Temporary integer object used to store information being sent in an Alteon Switch trap.') alt_sw_primary_power_supply_failure = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 1)) if mibBuilder.loadTexts: altSwPrimaryPowerSupplyFailure.setDescription('A altSwPrimaryPowerSupplyFailure trap signifies that the primary power supply failed.') alt_sw_def_gw_up = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 2)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwUp.setDescription('A altSwDefGwUp trap signifies that the default gateway is alive. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_def_gw_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 3)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwDown.setDescription('A altSwDefGwDown trap signifies that the default gateway is down. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_def_gw_in_service = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 4)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwInService.setDescription('A altSwDefGwEnabled trap signifies that the default gateway is up and in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_def_gw_not_in_service = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 5)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwIndex'), ('ALTEON-CHEETAH-NETWORK-MIB', 'ipCurCfgGwAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwDefGwNotInService.setDescription('A altSwDefGwDisabled trap signifies that the default gateway is alive but not in service. ipCurCfgGwIndex is the index of the Gateway in ipCurCfgGwTable. The range for ipCurCfgGwIndex is from 1 to ipGatewayTableMax. ipCurCfgGwAddr is the IP address of the default gateway.') alt_sw_slb_real_server_up = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 6)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerUp.setDescription('A altSwSlbRealServerUp trap signifies that the real server (which had gone down )is back up and operational now. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_real_server_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 7)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerDown.setDescription('A altSwSlbRealServerDown trap signifies that the real server has gone down and is out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_real_server_max_conn_reached = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 8)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerMaxConnReached.setDescription('A altSwSlbRealServerMaxConnReached trap signifies that the real server has reached maximum connections. The Real server will not be sent any more traffic from the switch until the number of connections drops below the maximum. If a backup server has been specified, it will be used to service additional requests, which is referred to as an Overflow server. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_act = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 9)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerAct.setDescription('A altSwSlbBkupRealServerAct trap signifies that this backup real server has been activated because the Real server that it backs up went down.One might expect that a altSwSlbRealServerDown trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_deact = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 10)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeact.setDescription('A altSwSlbBkupRealServerDeact trap signifies that the backup real server is deactivated because the primary real server has become available.One might expect that a altSwSlbRealServerUp trap with the primary real server specified would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_act_overflow = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 11)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerActOverflow.setDescription('A altSwSlbBkupRealServerActOverflow trap signifies that the backup real server is activated because the primary real server has reached the maximum allowed connections and is considered to be is in the Overflow state.One would expect an altSwSlbRealServerMaxConnReached trap from the Real server that just entered Overflow would preceded this one. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_sw_slb_bkup_real_server_deact_overflow = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 12)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbBkupRealServerDeactOverflow.setDescription('A altSwSlbBkupRealServerDeactOverflow trap signifies that the backup real server is deactivated because the primary real server is no longer in Overflow. The number of connections to the real server has fallen below the maximum allowed. The backup/overflow server is no longer needed. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server.') alt_swflt_filter_fired = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 13)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'fltCurCfgIndx'), ('ALTEON-CHEETAH-LAYER4-MIB', 'fltCurCfgPortIndx'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwfltFilterFired.setDescription('A altSwfltFilterFired trap signifies that the packet received on a switch port matches the filter rule. on a switch port matches the filter rule. fltCurCfgIndx is the affected filter index, referenced in fltCurCfgTable. The range is from 1 to fltCfgTableMaxSize. fltCurCfgPortIndx is the affected port index, referenced in fltCurCfgPortTable. The range is from 1 to agPortTableMaxEnt.') alt_sw_slb_real_server_service_up = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 14)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgVirtServiceRealPort'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerServiceUp.setDescription('A altSwSlbRealServerServiceUp trap signifies that the service port of the real server is up and operational. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') alt_sw_slb_real_server_service_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 15)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIndex'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerIpAddr'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgRealServerName'), ('ALTEON-CHEETAH-LAYER4-MIB', 'slbCurCfgVirtServiceRealPort'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbRealServerServiceDown.setDescription('A altSwSlbRealServerServiceDown trap signifies that the service port of the real server is down and out of service. slbCurCfgRealServerIndex is the affected Real Server Number. The range is from 1 to the value return from slbRealServerMaxSize. slbCurCfgRealServerIpAddr is the IP address of the affected Real Server. slbCurCfgRealServerName is the optional Name given to the affected Real Server. slbCurCfgVirtualServiceRealPort referenced in slbCurCfgVirtServicesTable. This is the layer 4 real port number of the service.') alt_sw_vrrp_new_master = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 16)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrIndx'), ('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwVrrpNewMaster.setDescription("The altSwVrrpNewMaster trap indicates that the sending agent has transitioned to 'Master' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") alt_sw_vrrp_new_backup = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 17)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrIndx'), ('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgVirtRtrAddr'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwVrrpNewBackup.setDescription("The altSwVrrpNewBackup trap indicates that the sending agent has transitioned to 'Backup' state. vrrpCurCfgVirtRtrIndx is the VRRP virtual router table index referenced in vrrpCurCfgVirtRtrTable. The range is from 1 to vrrpVirtRtrTableMaxSize. vrrpCurCfgVirtRtrAddr is the VRRP virtual router IP address.") alt_sw_vrrp_auth_failure = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 18)).setObjects(('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgIfIndx'), ('ALTEON-CHEETAH-NETWORK-MIB', 'vrrpCurCfgIfPasswd'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwVrrpAuthFailure.setDescription("A altSwVrrpAuthFailure trap signifies that a packet has been received from a router whose authentication key or authentication type conflicts with this router's authentication key or authentication type. Implementation of this trap is optional. vrrpCurCfgIfIndx is the VRRP interface index. This is equivalent to IfIndex in RFC 1213 mib. The range is from 1 to vrrpIfTableMaxSize. vrrpCurCfgIfPasswd is the password for authentication. It is a DisplayString of 0 to 7 characters.") alt_sw_login_failure = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 19)).setObjects(('CHEETAH-TRAP-MIB', 'altSwTrapDisplayString'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwLoginFailure.setDescription('A altSwLoginFailure trap signifies that someone failed to enter a valid username/password combination. altSwTrapDisplayString specifies whether the login attempt was from CONSOLE or TELNET. In case of TELNET login it also specifies the IP address of the host from which the attempt was made.') alt_sw_slb_syn_attack = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 20)).setObjects(('CHEETAH-TRAP-MIB', 'altSwTrapRate'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwSlbSynAttack.setDescription('A altSwSlbSynAttack trap signifies that a SYN attack has been detected. altSwTrapRate specifies the number of new half-open sessions per second.') alt_sw_tcp_hold_down = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 21)).setObjects(('ALTEON-CHEETAH-LAYER4-MIB', 'fltCurCfgSrcIp'), ('CHEETAH-TRAP-MIB', 'altSwTrapRate'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwTcpHoldDown.setDescription('A altSwTcpHoldDown trap signifies that new TCP connection requests from a particular client will be blocked for a pre-determined amount of time since the rate of new TCP connections from that client has reached a pre-determined threshold. The fltCurCfgSrcIp is the client source IP address for which new TCP connection requests will be blocked. The altSwTrapRate specifies the amount of time in minutes that the particular client will be blocked.') alt_sw_temp_exceed_threshold = notification_type((1, 3, 6, 1, 4, 1, 1872, 2, 5, 7) + (0, 22)).setObjects(('CHEETAH-TRAP-MIB', 'altSwTrapDisplayString'), ('SNMPv2-MIB', 'sysName'), ('SNMPv2-MIB', 'sysLocation'), ('SNMPv2-MIB', 'sysContact')) if mibBuilder.loadTexts: altSwTempExceedThreshold.setDescription('A altSwTempExceedThreshold trap signifies that the switch temperature has exceeded maximum safety limits. altSwTrapDisplayString specifies the sensor, the current sensor temperature and the threshold for the particular sensor.') mibBuilder.exportSymbols('CHEETAH-TRAP-MIB', altSwTrapDisplayString=altSwTrapDisplayString, altSwSlbRealServerMaxConnReached=altSwSlbRealServerMaxConnReached, altSwVrrpNewBackup=altSwVrrpNewBackup, altTraps=altTraps, altSwSlbRealServerServiceUp=altSwSlbRealServerServiceUp, altSwPrimaryPowerSupplyFailure=altSwPrimaryPowerSupplyFailure, altSwTrapRate=altSwTrapRate, altSwVrrpNewMaster=altSwVrrpNewMaster, altSwSlbBkupRealServerActOverflow=altSwSlbBkupRealServerActOverflow, altSwDefGwDown=altSwDefGwDown, altSwSlbRealServerUp=altSwSlbRealServerUp, altSwfltFilterFired=altSwfltFilterFired, altSwLoginFailure=altSwLoginFailure, altSwSlbRealServerServiceDown=altSwSlbRealServerServiceDown, altSwSlbBkupRealServerDeact=altSwSlbBkupRealServerDeact, altSwSlbBkupRealServerAct=altSwSlbBkupRealServerAct, altSwTcpHoldDown=altSwTcpHoldDown, altSwSlbSynAttack=altSwSlbSynAttack, altSwTempExceedThreshold=altSwTempExceedThreshold, altSwVrrpAuthFailure=altSwVrrpAuthFailure, altSwDefGwNotInService=altSwDefGwNotInService, altSwSlbBkupRealServerDeactOverflow=altSwSlbBkupRealServerDeactOverflow, altSwDefGwUp=altSwDefGwUp, altSwSlbRealServerDown=altSwSlbRealServerDown, altSwDefGwInService=altSwDefGwInService)
def imagecreate(): image = open("theimage.ppm", "w") image.write("P3\n") image.write("500 500\n") image.write("255\n\n") for i in range(500): curline = "" for j in range(500): if i > 250: i = 250 - (i % 250) if j > 250: j = 250 - (j % 250) if i == 0 or j == 0: r = 0 g = 0 else: r = 255 % (i + j) g = 255 % (i + j) b = (i + j) % 255 curline += "%d %d %d "%(r,g,b) image.write(curline+"\n") image.close() imagecreate()
def imagecreate(): image = open('theimage.ppm', 'w') image.write('P3\n') image.write('500 500\n') image.write('255\n\n') for i in range(500): curline = '' for j in range(500): if i > 250: i = 250 - i % 250 if j > 250: j = 250 - j % 250 if i == 0 or j == 0: r = 0 g = 0 else: r = 255 % (i + j) g = 255 % (i + j) b = (i + j) % 255 curline += '%d %d %d ' % (r, g, b) image.write(curline + '\n') image.close() imagecreate()
def calculate_pi(n_terms: int) -> float: numerator: float = 4.0 denominator: float = 1.0 operation: float = 1.0 pi: float = 0.0 for _ in range(n_terms): pi += operation *(numerator/denominator) denominator += 2.0 operation *= -1.0 return pi if __name__ == "__main__": print(calculate_pi(100000))
def calculate_pi(n_terms: int) -> float: numerator: float = 4.0 denominator: float = 1.0 operation: float = 1.0 pi: float = 0.0 for _ in range(n_terms): pi += operation * (numerator / denominator) denominator += 2.0 operation *= -1.0 return pi if __name__ == '__main__': print(calculate_pi(100000))
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Author: Anne Philipp (University of Vienna) @Date: March 2018 @License: (C) Copyright 2014 UIO. This software is licensed under the terms of the Apache Licence Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. """
""" @Author: Anne Philipp (University of Vienna) @Date: March 2018 @License: (C) Copyright 2014 UIO. This software is licensed under the terms of the Apache Licence Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. """
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def addTwoNumbers(self, l1, l2): # create a Answer node and mark it's start node StartAns = Answer = ListNode(0) carry = 0 # keep counting until one of nodes is end while l1 and l2: carry, sumval = divmod( l1.val+l2.val+carry, 10 ) Answer.next = ListNode( sumval ) # to next node l1 = l1.next l2 = l2.next Answer = Answer.next # if l1 or l2 still have next node tmplist = l1 or l2 while tmplist: carry, sumval = divmod( tmplist.val+carry, 10 ) Answer.next = ListNode( sumval ) # to next node tmplist = tmplist.next Answer = Answer.next if carry != 0: Answer.next = ListNode(carry) #return without the first one node return StartAns.next
class Solution: def add_two_numbers(self, l1, l2): start_ans = answer = list_node(0) carry = 0 while l1 and l2: (carry, sumval) = divmod(l1.val + l2.val + carry, 10) Answer.next = list_node(sumval) l1 = l1.next l2 = l2.next answer = Answer.next tmplist = l1 or l2 while tmplist: (carry, sumval) = divmod(tmplist.val + carry, 10) Answer.next = list_node(sumval) tmplist = tmplist.next answer = Answer.next if carry != 0: Answer.next = list_node(carry) return StartAns.next
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None def deleteNode(head_ref, del_): if (head_ref == None or del_ == None): return if (head_ref == del_): head_ref = del_.next if (del_.next != None): del_.next.prev = del_.prev if (del_.prev != None): del_.prev.next = del_.next return head_ref def deleteNodeAtGivenPos(head_ref,n): if (head_ref == None or n <= 0): return current = head_ref i = 1 while ( current != None and i < n ): current = current.next i = i + 1 if (current == None): return deleteNode(head_ref, current) return head_ref def push(head_ref, new_data): new_node = Node(0) new_node.data = new_data new_node.prev = None new_node.next = (head_ref) if ((head_ref) != None): (head_ref).prev = new_node (head_ref) = new_node return head_ref def printList(head): while (head != None) : print( head.data ,end= " ") head = head.next head = None head = push(head, 6) head = push(head, 12) head = push(head, 4) head = push(head, 3) head = push(head, 8) print("Doubly linked list before deletion:") printList(head) n = 2 head = deleteNodeAtGivenPos(head, n) print("\nDoubly linked list after deletion:") printList(head)
class Node: def __init__(self, data): self.data = data self.next = None self.prev = None def delete_node(head_ref, del_): if head_ref == None or del_ == None: return if head_ref == del_: head_ref = del_.next if del_.next != None: del_.next.prev = del_.prev if del_.prev != None: del_.prev.next = del_.next return head_ref def delete_node_at_given_pos(head_ref, n): if head_ref == None or n <= 0: return current = head_ref i = 1 while current != None and i < n: current = current.next i = i + 1 if current == None: return delete_node(head_ref, current) return head_ref def push(head_ref, new_data): new_node = node(0) new_node.data = new_data new_node.prev = None new_node.next = head_ref if head_ref != None: head_ref.prev = new_node head_ref = new_node return head_ref def print_list(head): while head != None: print(head.data, end=' ') head = head.next head = None head = push(head, 6) head = push(head, 12) head = push(head, 4) head = push(head, 3) head = push(head, 8) print('Doubly linked list before deletion:') print_list(head) n = 2 head = delete_node_at_given_pos(head, n) print('\nDoubly linked list after deletion:') print_list(head)
# Windows functions with NLP data # A. Load the data # 1. Load the dataframe df = spark.read.load('sherlock_sentences.parquet') # Filter and show the first 5 rows df.where('id > 70').show(5, truncate=False) # 2. Split and explode text # Split the clause column into a column called words split_df = clauses_df.select(split('clause', ' ').alias('words')) split_df.show(5, truncate=False) # Explode the words column into a column called word exploded_df = split_df.select(explode('words').alias('word')) exploded_df.show(10) # Count the resulting number of rows in exploded_df print("\nNumber of rows: ", exploded_df.count()) # B. Moving window analysis # 1. Creating context window features # Word for each row, previous two and subsequent two words query = """ SELECT part, LAG(word, 2) OVER(PARTITION BY part ORDER BY id) AS w1, LAG(word, 1) OVER(PARTITION BY part ORDER BY id) AS w2, word AS w3, LEAD(word, 1) OVER(PARTITION BY part ORDER BY id) AS w4, LEAD(word, 2) OVER(PARTITION BY part ORDER BY id) AS w5 FROM text """ spark.sql(query).where("part = 12").show(10) # 2. Repartition the data. Ensures that the data for each chapter is contained on the same node (machine) # Repartition text_df into 12 partitions on 'chapter' column repart_df = text_df.repartition(12, 'chapter') # Prove that repart_df has 12 partitions repart_df.rdd.getNumPartitions() # C. Finding common word sequences # 1. Find the top 10 sequences of five words query = """ SELECT w1, w2, w3, w4, w5, COUNT(*) AS count FROM ( SELECT word AS w1, LEAD(word, 1) OVER(PARTITION BY part ORDER BY id) AS w2, LEAD(word, 2) OVER(PARTITION BY part ORDER BY id) AS w3, LEAD(word, 3) OVER(PARTITION BY part ORDER BY id) AS w4, LEAD(word, 4) OVER(PARTITION BY part ORDER BY id) AS w5 FROM text ) GROUP BY w1, w2, w3, w4, w5 ORDER BY count DESC LIMIT 10 """ df = spark.sql(query) df.show() # 2. Unique 5-tuples sorted in descending order query = """ SELECT DISTINCT w1, w2, w3, w4, w5 FROM ( SELECT word AS w1, LEAD(word,1) OVER(PARTITION BY part ORDER BY id ) AS w2, LEAD(word,2) OVER(PARTITION BY part ORDER BY id ) AS w3, LEAD(word,3) OVER(PARTITION BY part ORDER BY id ) AS w4, LEAD(word,4) OVER(PARTITION BY part ORDER BY id ) AS w5 FROM text ) ORDER BY w1 DESC, w2 DESC, w3 DESC, w4 DESC, w5 DESC LIMIT 10 """ df = spark.sql(query) df.show() # 3. Most frequent 3-tuples per chapter subquery = """ SELECT chapter, w1, w2, w3, COUNT(*) as count FROM ( SELECT chapter, word AS w1, LEAD(word, 1) OVER(PARTITION BY chapter ORDER BY id ) AS w2, LEAD(word, 2) OVER(PARTITION BY chapter ORDER BY id ) AS w3 FROM text ) GROUP BY chapter, w1, w2, w3 ORDER BY chapter, count DESC """ # Take the output from the subquery and produce a follow up query query = """ SELECT chapter, w1, w2, w3, count FROM ( SELECT chapter, ROW_NUMBER() OVER (PARTITION BY chapter ORDER BY count DESC) AS row, w1, w2, w3, count FROM ( %s ) ) WHERE row = 1 ORDER BY chapter ASC """ % subquery spark.sql(query).show()
df = spark.read.load('sherlock_sentences.parquet') df.where('id > 70').show(5, truncate=False) split_df = clauses_df.select(split('clause', ' ').alias('words')) split_df.show(5, truncate=False) exploded_df = split_df.select(explode('words').alias('word')) exploded_df.show(10) print('\nNumber of rows: ', exploded_df.count()) query = '\nSELECT\npart,\nLAG(word, 2) OVER(PARTITION BY part ORDER BY id) AS w1,\nLAG(word, 1) OVER(PARTITION BY part ORDER BY id) AS w2,\nword AS w3,\nLEAD(word, 1) OVER(PARTITION BY part ORDER BY id) AS w4,\nLEAD(word, 2) OVER(PARTITION BY part ORDER BY id) AS w5\nFROM text\n' spark.sql(query).where('part = 12').show(10) repart_df = text_df.repartition(12, 'chapter') repart_df.rdd.getNumPartitions() query = '\nSELECT w1, w2, w3, w4, w5, COUNT(*) AS count FROM (\n SELECT word AS w1,\n LEAD(word, 1) OVER(PARTITION BY part ORDER BY id) AS w2,\n LEAD(word, 2) OVER(PARTITION BY part ORDER BY id) AS w3,\n LEAD(word, 3) OVER(PARTITION BY part ORDER BY id) AS w4,\n LEAD(word, 4) OVER(PARTITION BY part ORDER BY id) AS w5\n FROM text\n)\nGROUP BY w1, w2, w3, w4, w5\nORDER BY count DESC\nLIMIT 10 ' df = spark.sql(query) df.show() query = '\nSELECT DISTINCT w1, w2, w3, w4, w5 FROM (\n SELECT word AS w1,\n LEAD(word,1) OVER(PARTITION BY part ORDER BY id ) AS w2,\n LEAD(word,2) OVER(PARTITION BY part ORDER BY id ) AS w3,\n LEAD(word,3) OVER(PARTITION BY part ORDER BY id ) AS w4,\n LEAD(word,4) OVER(PARTITION BY part ORDER BY id ) AS w5\n FROM text\n)\nORDER BY w1 DESC, w2 DESC, w3 DESC, w4 DESC, w5 DESC \nLIMIT 10\n' df = spark.sql(query) df.show() subquery = '\nSELECT chapter, w1, w2, w3, COUNT(*) as count\nFROM\n(\n SELECT\n chapter,\n word AS w1,\n LEAD(word, 1) OVER(PARTITION BY chapter ORDER BY id ) AS w2,\n LEAD(word, 2) OVER(PARTITION BY chapter ORDER BY id ) AS w3\n FROM text\n)\nGROUP BY chapter, w1, w2, w3\nORDER BY chapter, count DESC\n' query = '\nSELECT chapter, w1, w2, w3, count FROM\n(\n SELECT\n chapter,\n ROW_NUMBER() OVER (PARTITION BY chapter ORDER BY count DESC) AS row,\n w1, w2, w3, count\n FROM ( %s )\n)\nWHERE row = 1\nORDER BY chapter ASC\n' % subquery spark.sql(query).show()
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' def add_tags(ResourceArns=None, Tags=None): """ Adds the specified tags to the specified resource. You can tag your Application Load Balancers and your target groups. Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value. To list the current tags for your resources, use DescribeTags . To remove tags from your resources, use RemoveTags . See also: AWS API Documentation Examples This example adds the specified tags to the specified load balancer. Expected Output: :example: response = client.add_tags( ResourceArns=[ 'string', ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type ResourceArns: list :param ResourceArns: [REQUIRED] The Amazon Resource Name (ARN) of the resource. (string) -- :type Tags: list :param Tags: [REQUIRED] The tags. Each resource can have a maximum of 10 tags. (dict) --Information about a tag. Key (string) -- [REQUIRED]The key of the tag. Value (string) --The value of the tag. :rtype: dict :return: {} :returns: (dict) -- """ pass def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). """ pass def create_listener(LoadBalancerArn=None, Protocol=None, Port=None, SslPolicy=None, Certificates=None, DefaultActions=None): """ Creates a listener for the specified Application Load Balancer. You can create up to 10 listeners per load balancer. To update a listener, use ModifyListener . When you are finished with a listener, you can delete it using DeleteListener . If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer . For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example creates an HTTP listener for the specified load balancer that forwards requests to the specified target group. Expected Output: This example creates an HTTPS listener for the specified load balancer that forwards requests to the specified target group. Note that you must specify an SSL certificate for an HTTPS listener. You can create and manage certificates using AWS Certificate Manager (ACM). Alternatively, you can create a certificate using SSL/TLS tools, get the certificate signed by a certificate authority (CA), and upload the certificate to AWS Identity and Access Management (IAM). Expected Output: :example: response = client.create_listener( LoadBalancerArn='string', Protocol='HTTP'|'HTTPS', Port=123, SslPolicy='string', Certificates=[ { 'CertificateArn': 'string' }, ], DefaultActions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type Protocol: string :param Protocol: [REQUIRED] The protocol for connections from clients to the load balancer. :type Port: integer :param Port: [REQUIRED] The port on which the load balancer is listening. :type SslPolicy: string :param SslPolicy: The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy. :type Certificates: list :param Certificates: The SSL server certificate. You must provide exactly one certificate if the protocol is HTTPS. (dict) --Information about an SSL server certificate deployed on a load balancer. CertificateArn (string) --The Amazon Resource Name (ARN) of the certificate. :type DefaultActions: list :param DefaultActions: [REQUIRED] The default action for the listener. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Listeners': [ { 'ListenerArn': 'string', 'LoadBalancerArn': 'string', 'Port': 123, 'Protocol': 'HTTP'|'HTTPS', 'Certificates': [ { 'CertificateArn': 'string' }, ], 'SslPolicy': 'string', 'DefaultActions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] }, ] } """ pass def create_load_balancer(Name=None, Subnets=None, SecurityGroups=None, Scheme=None, Tags=None, IpAddressType=None): """ Creates an Application Load Balancer. When you create a load balancer, you can specify security groups, subnets, IP address type, and tags. Otherwise, you could do so later using SetSecurityGroups , SetSubnets , SetIpAddressType , and AddTags . To create listeners for your load balancer, use CreateListener . To describe your current load balancers, see DescribeLoadBalancers . When you are finished with a load balancer, you can delete it using DeleteLoadBalancer . You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide . For more information, see Application Load Balancers in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example creates an Internet-facing load balancer and enables the Availability Zones for the specified subnets. Expected Output: This example creates an internal load balancer and enables the Availability Zones for the specified subnets. Expected Output: :example: response = client.create_load_balancer( Name='string', Subnets=[ 'string', ], SecurityGroups=[ 'string', ], Scheme='internet-facing'|'internal', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], IpAddressType='ipv4'|'dualstack' ) :type Name: string :param Name: [REQUIRED] The name of the load balancer. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. :type Subnets: list :param Subnets: [REQUIRED] The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones. (string) -- :type SecurityGroups: list :param SecurityGroups: The IDs of the security groups to assign to the load balancer. (string) -- :type Scheme: string :param Scheme: The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer. The default is an Internet-facing load balancer. :type Tags: list :param Tags: One or more tags to assign to the load balancer. (dict) --Information about a tag. Key (string) -- [REQUIRED]The key of the tag. Value (string) --The value of the tag. :type IpAddressType: string :param IpAddressType: The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use ipv4 . :rtype: dict :return: { 'LoadBalancers': [ { 'LoadBalancerArn': 'string', 'DNSName': 'string', 'CanonicalHostedZoneId': 'string', 'CreatedTime': datetime(2015, 1, 1), 'LoadBalancerName': 'string', 'Scheme': 'internet-facing'|'internal', 'VpcId': 'string', 'State': { 'Code': 'active'|'provisioning'|'failed', 'Reason': 'string' }, 'Type': 'application', 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string' }, ], 'SecurityGroups': [ 'string', ], 'IpAddressType': 'ipv4'|'dualstack' }, ] } :returns: (string) -- """ pass def create_rule(ListenerArn=None, Conditions=None, Priority=None, Actions=None): """ Creates a rule for the specified listener. Each rule can have one action and one condition. Rules are evaluated in priority order, from the lowest value to the highest value. When the condition for a rule is met, the specified action is taken. If no conditions are met, the default action for the default rule is taken. For more information, see Listener Rules in the Application Load Balancers Guide . To view your current rules, use DescribeRules . To update a rule, use ModifyRule . To set the priorities of your rules, use SetRulePriorities . To delete a rule, use DeleteRule . See also: AWS API Documentation Examples This example creates a rule that forwards requests to the specified target group if the URL contains the specified pattern (for example, /img/*). Expected Output: :example: response = client.create_rule( ListenerArn='string', Conditions=[ { 'Field': 'string', 'Values': [ 'string', ] }, ], Priority=123, Actions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type ListenerArn: string :param ListenerArn: [REQUIRED] The Amazon Resource Name (ARN) of the listener. :type Conditions: list :param Conditions: [REQUIRED] A condition. Each condition specifies a field name and a single value. If the field name is host-header , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) If the field name is path-pattern , you can specify a single path pattern. A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 _ - . $ / ~ ' ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) (dict) --Information about a condition for a rule. Field (string) --The name of the field. The possible values are host-header and path-pattern . Values (list) --The condition value. If the field name is host-header , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) If the field name is path-pattern , you can specify a single path pattern (for example, /img/*). A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 _ - . $ / ~ ' ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) (string) -- :type Priority: integer :param Priority: [REQUIRED] The priority for the rule. A listener can't have multiple rules with the same priority. :type Actions: list :param Actions: [REQUIRED] An action. Each action has the type forward and specifies a target group. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ] } :returns: A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) """ pass def create_target_group(Name=None, Protocol=None, Port=None, VpcId=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None): """ Creates a target group. To register targets with the target group, use RegisterTargets . To update the health check settings for the target group, use ModifyTargetGroup . To monitor the health of targets in the target group, use DescribeTargetHealth . To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule . To delete a target group, use DeleteTargetGroup . For more information, see Target Groups for Your Application Load Balancers in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example creates a target group that you can use to route traffic to targets using HTTP on port 80. This target group uses the default health check configuration. Expected Output: :example: response = client.create_target_group( Name='string', Protocol='HTTP'|'HTTPS', Port=123, VpcId='string', HealthCheckProtocol='HTTP'|'HTTPS', HealthCheckPort='string', HealthCheckPath='string', HealthCheckIntervalSeconds=123, HealthCheckTimeoutSeconds=123, HealthyThresholdCount=123, UnhealthyThresholdCount=123, Matcher={ 'HttpCode': 'string' } ) :type Name: string :param Name: [REQUIRED] The name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. :type Protocol: string :param Protocol: [REQUIRED] The protocol to use for routing traffic to the targets. :type Port: integer :param Port: [REQUIRED] The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. :type VpcId: string :param VpcId: [REQUIRED] The identifier of the virtual private cloud (VPC). :type HealthCheckProtocol: string :param HealthCheckProtocol: The protocol the load balancer uses when performing health checks on targets. The default is the HTTP protocol. :type HealthCheckPort: string :param HealthCheckPort: The port the load balancer uses when performing health checks on targets. The default is traffic-port , which indicates the port on which each target receives traffic from the load balancer. :type HealthCheckPath: string :param HealthCheckPath: The ping path that is the destination on the targets for health checks. The default is /. :type HealthCheckIntervalSeconds: integer :param HealthCheckIntervalSeconds: The approximate amount of time, in seconds, between health checks of an individual target. The default is 30 seconds. :type HealthCheckTimeoutSeconds: integer :param HealthCheckTimeoutSeconds: The amount of time, in seconds, during which no response from a target means a failed health check. The default is 5 seconds. :type HealthyThresholdCount: integer :param HealthyThresholdCount: The number of consecutive health checks successes required before considering an unhealthy target healthy. The default is 5. :type UnhealthyThresholdCount: integer :param UnhealthyThresholdCount: The number of consecutive health check failures required before considering a target unhealthy. The default is 2. :type Matcher: dict :param Matcher: The HTTP codes to use when checking for a successful response from a target. The default is 200. HttpCode (string) -- [REQUIRED]The HTTP codes. You can specify values between 200 and 499. The default value is 200. You can specify multiple values (for example, '200,202') or a range of values (for example, '200-299'). :rtype: dict :return: { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'TargetGroupName': 'string', 'Protocol': 'HTTP'|'HTTPS', 'Port': 123, 'VpcId': 'string', 'HealthCheckProtocol': 'HTTP'|'HTTPS', 'HealthCheckPort': 'string', 'HealthCheckIntervalSeconds': 123, 'HealthCheckTimeoutSeconds': 123, 'HealthyThresholdCount': 123, 'UnhealthyThresholdCount': 123, 'HealthCheckPath': 'string', 'Matcher': { 'HttpCode': 'string' }, 'LoadBalancerArns': [ 'string', ] }, ] } :returns: (string) -- """ pass def delete_listener(ListenerArn=None): """ Deletes the specified listener. Alternatively, your listener is deleted when you delete the load balancer it is attached to using DeleteLoadBalancer . See also: AWS API Documentation Examples This example deletes the specified listener. Expected Output: :example: response = client.delete_listener( ListenerArn='string' ) :type ListenerArn: string :param ListenerArn: [REQUIRED] The Amazon Resource Name (ARN) of the listener. :rtype: dict :return: {} """ pass def delete_load_balancer(LoadBalancerArn=None): """ Deletes the specified Application Load Balancer and its attached listeners. You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds. Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them. See also: AWS API Documentation Examples This example deletes the specified load balancer. Expected Output: :example: response = client.delete_load_balancer( LoadBalancerArn='string' ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :rtype: dict :return: {} """ pass def delete_rule(RuleArn=None): """ Deletes the specified rule. See also: AWS API Documentation Examples This example deletes the specified rule. Expected Output: :example: response = client.delete_rule( RuleArn='string' ) :type RuleArn: string :param RuleArn: [REQUIRED] The Amazon Resource Name (ARN) of the rule. :rtype: dict :return: {} """ pass def delete_target_group(TargetGroupArn=None): """ Deletes the specified target group. You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks. See also: AWS API Documentation Examples This example deletes the specified target group. Expected Output: :example: response = client.delete_target_group( TargetGroupArn='string' ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: {} """ pass def deregister_targets(TargetGroupArn=None, Targets=None): """ Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer. See also: AWS API Documentation Examples This example deregisters the specified instance from the specified target group. Expected Output: :example: response = client.deregister_targets( TargetGroupArn='string', Targets=[ { 'Id': 'string', 'Port': 123 }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Targets: list :param Targets: [REQUIRED] The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it. (dict) --Information about a target. Id (string) -- [REQUIRED]The ID of the target. Port (integer) --The port on which the target is listening. :rtype: dict :return: {} :returns: (dict) -- """ pass def describe_account_limits(Marker=None, PageSize=None): """ Describes the current Elastic Load Balancing resource limits for your AWS account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancer Guide . See also: AWS API Documentation :example: response = client.describe_account_limits( Marker='string', PageSize=123 ) :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'Limits': [ { 'Name': 'string', 'Max': 'string' }, ], 'NextMarker': 'string' } :returns: application-load-balancers listeners-per-application-load-balancer rules-per-application-load-balancer target-groups targets-per-application-load-balancer """ pass def describe_listeners(LoadBalancerArn=None, ListenerArns=None, Marker=None, PageSize=None): """ Describes the specified listeners or the listeners for the specified Application Load Balancer. You must specify either a load balancer or one or more listeners. See also: AWS API Documentation Examples This example describes the specified listener. Expected Output: :example: response = client.describe_listeners( LoadBalancerArn='string', ListenerArns=[ 'string', ], Marker='string', PageSize=123 ) :type LoadBalancerArn: string :param LoadBalancerArn: The Amazon Resource Name (ARN) of the load balancer. :type ListenerArns: list :param ListenerArns: The Amazon Resource Names (ARN) of the listeners. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'Listeners': [ { 'ListenerArn': 'string', 'LoadBalancerArn': 'string', 'Port': 123, 'Protocol': 'HTTP'|'HTTPS', 'Certificates': [ { 'CertificateArn': 'string' }, ], 'SslPolicy': 'string', 'DefaultActions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] }, ], 'NextMarker': 'string' } """ pass def describe_load_balancer_attributes(LoadBalancerArn=None): """ Describes the attributes for the specified Application Load Balancer. See also: AWS API Documentation Examples This example describes the attributes of the specified load balancer. Expected Output: :example: response = client.describe_load_balancer_attributes( LoadBalancerArn='string' ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } """ pass def describe_load_balancers(LoadBalancerArns=None, Names=None, Marker=None, PageSize=None): """ Describes the specified Application Load Balancers or all of your Application Load Balancers. To describe the listeners for a load balancer, use DescribeListeners . To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes . See also: AWS API Documentation Examples This example describes the specified load balancer. Expected Output: :example: response = client.describe_load_balancers( LoadBalancerArns=[ 'string', ], Names=[ 'string', ], Marker='string', PageSize=123 ) :type LoadBalancerArns: list :param LoadBalancerArns: The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call. (string) -- :type Names: list :param Names: The names of the load balancers. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'LoadBalancers': [ { 'LoadBalancerArn': 'string', 'DNSName': 'string', 'CanonicalHostedZoneId': 'string', 'CreatedTime': datetime(2015, 1, 1), 'LoadBalancerName': 'string', 'Scheme': 'internet-facing'|'internal', 'VpcId': 'string', 'State': { 'Code': 'active'|'provisioning'|'failed', 'Reason': 'string' }, 'Type': 'application', 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string' }, ], 'SecurityGroups': [ 'string', ], 'IpAddressType': 'ipv4'|'dualstack' }, ], 'NextMarker': 'string' } :returns: (string) -- """ pass def describe_rules(ListenerArn=None, RuleArns=None, Marker=None, PageSize=None): """ Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules. See also: AWS API Documentation Examples This example describes the specified rule. Expected Output: :example: response = client.describe_rules( ListenerArn='string', RuleArns=[ 'string', ], Marker='string', PageSize=123 ) :type ListenerArn: string :param ListenerArn: The Amazon Resource Name (ARN) of the listener. :type RuleArns: list :param RuleArns: The Amazon Resource Names (ARN) of the rules. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ], 'NextMarker': 'string' } :returns: A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) """ pass def describe_ssl_policies(Names=None, Marker=None, PageSize=None): """ Describes the specified policies or all policies used for SSL negotiation. For more information, see Security Policies in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example describes the specified policy used for SSL negotiation. Expected Output: :example: response = client.describe_ssl_policies( Names=[ 'string', ], Marker='string', PageSize=123 ) :type Names: list :param Names: The names of the policies. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'SslPolicies': [ { 'SslProtocols': [ 'string', ], 'Ciphers': [ { 'Name': 'string', 'Priority': 123 }, ], 'Name': 'string' }, ], 'NextMarker': 'string' } :returns: (string) -- """ pass def describe_tags(ResourceArns=None): """ Describes the tags for the specified resources. You can describe the tags for one or more Application Load Balancers and target groups. See also: AWS API Documentation Examples This example describes the tags assigned to the specified load balancer. Expected Output: :example: response = client.describe_tags( ResourceArns=[ 'string', ] ) :type ResourceArns: list :param ResourceArns: [REQUIRED] The Amazon Resource Names (ARN) of the resources. (string) -- :rtype: dict :return: { 'TagDescriptions': [ { 'ResourceArn': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ] } """ pass def describe_target_group_attributes(TargetGroupArn=None): """ Describes the attributes for the specified target group. See also: AWS API Documentation Examples This example describes the attributes of the specified target group. Expected Output: :example: response = client.describe_target_group_attributes( TargetGroupArn='string' ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } """ pass def describe_target_groups(LoadBalancerArn=None, TargetGroupArns=None, Names=None, Marker=None, PageSize=None): """ Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups. To describe the targets for a target group, use DescribeTargetHealth . To describe the attributes of a target group, use DescribeTargetGroupAttributes . See also: AWS API Documentation Examples This example describes the specified target group. Expected Output: :example: response = client.describe_target_groups( LoadBalancerArn='string', TargetGroupArns=[ 'string', ], Names=[ 'string', ], Marker='string', PageSize=123 ) :type LoadBalancerArn: string :param LoadBalancerArn: The Amazon Resource Name (ARN) of the load balancer. :type TargetGroupArns: list :param TargetGroupArns: The Amazon Resource Names (ARN) of the target groups. (string) -- :type Names: list :param Names: The names of the target groups. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'TargetGroupName': 'string', 'Protocol': 'HTTP'|'HTTPS', 'Port': 123, 'VpcId': 'string', 'HealthCheckProtocol': 'HTTP'|'HTTPS', 'HealthCheckPort': 'string', 'HealthCheckIntervalSeconds': 123, 'HealthCheckTimeoutSeconds': 123, 'HealthyThresholdCount': 123, 'UnhealthyThresholdCount': 123, 'HealthCheckPath': 'string', 'Matcher': { 'HttpCode': 'string' }, 'LoadBalancerArns': [ 'string', ] }, ], 'NextMarker': 'string' } :returns: (string) -- """ pass def describe_target_health(TargetGroupArn=None, Targets=None): """ Describes the health of the specified targets or all of your targets. See also: AWS API Documentation Examples This example describes the health of the targets for the specified target group. One target is healthy but the other is not specified in an action, so it can't receive traffic from the load balancer. Expected Output: This example describes the health of the specified target. This target is healthy. Expected Output: :example: response = client.describe_target_health( TargetGroupArn='string', Targets=[ { 'Id': 'string', 'Port': 123 }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Targets: list :param Targets: The targets. (dict) --Information about a target. Id (string) -- [REQUIRED]The ID of the target. Port (integer) --The port on which the target is listening. :rtype: dict :return: { 'TargetHealthDescriptions': [ { 'Target': { 'Id': 'string', 'Port': 123 }, 'HealthCheckPort': 'string', 'TargetHealth': { 'State': 'initial'|'healthy'|'unhealthy'|'unused'|'draining', 'Reason': 'Elb.RegistrationInProgress'|'Elb.InitialHealthChecking'|'Target.ResponseCodeMismatch'|'Target.Timeout'|'Target.FailedHealthChecks'|'Target.NotRegistered'|'Target.NotInUse'|'Target.DeregistrationInProgress'|'Target.InvalidState'|'Elb.InternalError', 'Description': 'string' } }, ] } :returns: Elb.RegistrationInProgress - The target is in the process of being registered with the load balancer. Elb.InitialHealthChecking - The load balancer is still sending the target the minimum number of health checks required to determine its health status. """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to ClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By default, the http method is whatever is used in the method's model. """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} """ pass def get_waiter(): """ """ pass def modify_listener(ListenerArn=None, Port=None, Protocol=None, SslPolicy=None, Certificates=None, DefaultActions=None): """ Modifies the specified properties of the specified listener. Any properties that you do not specify retain their current values. However, changing the protocol from HTTPS to HTTP removes the security policy and SSL certificate properties. If you change the protocol from HTTP to HTTPS, you must add the security policy and server certificate. See also: AWS API Documentation Examples This example changes the default action for the specified listener. Expected Output: This example changes the server certificate for the specified HTTPS listener. Expected Output: :example: response = client.modify_listener( ListenerArn='string', Port=123, Protocol='HTTP'|'HTTPS', SslPolicy='string', Certificates=[ { 'CertificateArn': 'string' }, ], DefaultActions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type ListenerArn: string :param ListenerArn: [REQUIRED] The Amazon Resource Name (ARN) of the listener. :type Port: integer :param Port: The port for connections from clients to the load balancer. :type Protocol: string :param Protocol: The protocol for connections from clients to the load balancer. :type SslPolicy: string :param SslPolicy: The security policy that defines which protocols and ciphers are supported. For more information, see Security Policies in the Application Load Balancers Guide . :type Certificates: list :param Certificates: The SSL server certificate. (dict) --Information about an SSL server certificate deployed on a load balancer. CertificateArn (string) --The Amazon Resource Name (ARN) of the certificate. :type DefaultActions: list :param DefaultActions: The default actions. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Listeners': [ { 'ListenerArn': 'string', 'LoadBalancerArn': 'string', 'Port': 123, 'Protocol': 'HTTP'|'HTTPS', 'Certificates': [ { 'CertificateArn': 'string' }, ], 'SslPolicy': 'string', 'DefaultActions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] }, ] } """ pass def modify_load_balancer_attributes(LoadBalancerArn=None, Attributes=None): """ Modifies the specified attributes of the specified Application Load Balancer. If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values. See also: AWS API Documentation Examples This example enables deletion protection for the specified load balancer. Expected Output: This example changes the idle timeout value for the specified load balancer. Expected Output: This example enables access logs for the specified load balancer. Note that the S3 bucket must exist in the same region as the load balancer and must have a policy attached that grants access to the Elastic Load Balancing service. Expected Output: :example: response = client.modify_load_balancer_attributes( LoadBalancerArn='string', Attributes=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type Attributes: list :param Attributes: [REQUIRED] The load balancer attributes. (dict) --Information about a load balancer attribute. Key (string) --The name of the attribute. access_logs.s3.enabled - Indicates whether access logs stored in Amazon S3 are enabled. The value is true or false . access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket. access_logs.s3.prefix - The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket. deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false . idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-3600. The default is 60 seconds. Value (string) --The value of the attribute. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } :returns: access_logs.s3.enabled - Indicates whether access logs stored in Amazon S3 are enabled. The value is true or false . access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket. access_logs.s3.prefix - The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket. deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false . idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-3600. The default is 60 seconds. """ pass def modify_rule(RuleArn=None, Conditions=None, Actions=None): """ Modifies the specified rule. Any existing properties that you do not modify retain their current values. To modify the default action, use ModifyListener . See also: AWS API Documentation Examples This example modifies the condition for the specified rule. Expected Output: :example: response = client.modify_rule( RuleArn='string', Conditions=[ { 'Field': 'string', 'Values': [ 'string', ] }, ], Actions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type RuleArn: string :param RuleArn: [REQUIRED] The Amazon Resource Name (ARN) of the rule. :type Conditions: list :param Conditions: The conditions. (dict) --Information about a condition for a rule. Field (string) --The name of the field. The possible values are host-header and path-pattern . Values (list) --The condition value. If the field name is host-header , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) If the field name is path-pattern , you can specify a single path pattern (for example, /img/*). A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 _ - . $ / ~ ' ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) (string) -- :type Actions: list :param Actions: The actions. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ] } :returns: A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) """ pass def modify_target_group(TargetGroupArn=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None): """ Modifies the health checks used when evaluating the health state of the targets in the specified target group. To monitor the health of the targets, use DescribeTargetHealth . See also: AWS API Documentation Examples This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group. Expected Output: :example: response = client.modify_target_group( TargetGroupArn='string', HealthCheckProtocol='HTTP'|'HTTPS', HealthCheckPort='string', HealthCheckPath='string', HealthCheckIntervalSeconds=123, HealthCheckTimeoutSeconds=123, HealthyThresholdCount=123, UnhealthyThresholdCount=123, Matcher={ 'HttpCode': 'string' } ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type HealthCheckProtocol: string :param HealthCheckProtocol: The protocol to use to connect with the target. :type HealthCheckPort: string :param HealthCheckPort: The port to use to connect with the target. :type HealthCheckPath: string :param HealthCheckPath: The ping path that is the destination for the health check request. :type HealthCheckIntervalSeconds: integer :param HealthCheckIntervalSeconds: The approximate amount of time, in seconds, between health checks of an individual target. :type HealthCheckTimeoutSeconds: integer :param HealthCheckTimeoutSeconds: The amount of time, in seconds, during which no response means a failed health check. :type HealthyThresholdCount: integer :param HealthyThresholdCount: The number of consecutive health checks successes required before considering an unhealthy target healthy. :type UnhealthyThresholdCount: integer :param UnhealthyThresholdCount: The number of consecutive health check failures required before considering the target unhealthy. :type Matcher: dict :param Matcher: The HTTP codes to use when checking for a successful response from a target. HttpCode (string) -- [REQUIRED]The HTTP codes. You can specify values between 200 and 499. The default value is 200. You can specify multiple values (for example, '200,202') or a range of values (for example, '200-299'). :rtype: dict :return: { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'TargetGroupName': 'string', 'Protocol': 'HTTP'|'HTTPS', 'Port': 123, 'VpcId': 'string', 'HealthCheckProtocol': 'HTTP'|'HTTPS', 'HealthCheckPort': 'string', 'HealthCheckIntervalSeconds': 123, 'HealthCheckTimeoutSeconds': 123, 'HealthyThresholdCount': 123, 'UnhealthyThresholdCount': 123, 'HealthCheckPath': 'string', 'Matcher': { 'HttpCode': 'string' }, 'LoadBalancerArns': [ 'string', ] }, ] } :returns: (string) -- """ pass def modify_target_group_attributes(TargetGroupArn=None, Attributes=None): """ Modifies the specified attributes of the specified target group. See also: AWS API Documentation Examples This example sets the deregistration delay timeout to the specified value for the specified target group. Expected Output: :example: response = client.modify_target_group_attributes( TargetGroupArn='string', Attributes=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Attributes: list :param Attributes: [REQUIRED] The attributes. (dict) --Information about a target group attribute. Key (string) --The name of the attribute. deregistration_delay.timeout_seconds - The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused . The range is 0-3600 seconds. The default value is 300 seconds. stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false . stickiness.type - The type of sticky sessions. The possible value is lb_cookie . stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). Value (string) --The value of the attribute. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } :returns: deregistration_delay.timeout_seconds - The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused . The range is 0-3600 seconds. The default value is 300 seconds. stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false . stickiness.type - The type of sticky sessions. The possible value is lb_cookie . stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). """ pass def register_targets(TargetGroupArn=None, Targets=None): """ Registers the specified targets with the specified target group. By default, the load balancer routes requests to registered targets using the protocol and port number for the target group. Alternatively, you can override the port for a target when you register it. The target must be in the virtual private cloud (VPC) that you specified for the target group. If the target is an EC2 instance, it must be in the running state when you register it. To remove a target from a target group, use DeregisterTargets . See also: AWS API Documentation Examples This example registers the specified instances with the specified target group. Expected Output: This example registers the specified instance with the specified target group using multiple ports. This enables you to register ECS containers on the same instance as targets in the target group. Expected Output: :example: response = client.register_targets( TargetGroupArn='string', Targets=[ { 'Id': 'string', 'Port': 123 }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Targets: list :param Targets: [REQUIRED] The targets. The default port for a target is the port for the target group. You can specify a port override. If a target is already registered, you can register it again using a different port. (dict) --Information about a target. Id (string) -- [REQUIRED]The ID of the target. Port (integer) --The port on which the target is listening. :rtype: dict :return: {} :returns: (dict) -- """ pass def remove_tags(ResourceArns=None, TagKeys=None): """ Removes the specified tags from the specified resource. To list the current tags for your resources, use DescribeTags . See also: AWS API Documentation Examples This example removes the specified tags from the specified load balancer. Expected Output: :example: response = client.remove_tags( ResourceArns=[ 'string', ], TagKeys=[ 'string', ] ) :type ResourceArns: list :param ResourceArns: [REQUIRED] The Amazon Resource Name (ARN) of the resource. (string) -- :type TagKeys: list :param TagKeys: [REQUIRED] The tag keys for the tags to remove. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass def set_ip_address_type(LoadBalancerArn=None, IpAddressType=None): """ Sets the type of IP addresses used by the subnets of the specified Application Load Balancer. See also: AWS API Documentation :example: response = client.set_ip_address_type( LoadBalancerArn='string', IpAddressType='ipv4'|'dualstack' ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type IpAddressType: string :param IpAddressType: [REQUIRED] The IP address type. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use ipv4 . :rtype: dict :return: { 'IpAddressType': 'ipv4'|'dualstack' } """ pass def set_rule_priorities(RulePriorities=None): """ Sets the priorities of the specified rules. You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority. See also: AWS API Documentation Examples This example sets the priority of the specified rule. Expected Output: :example: response = client.set_rule_priorities( RulePriorities=[ { 'RuleArn': 'string', 'Priority': 123 }, ] ) :type RulePriorities: list :param RulePriorities: [REQUIRED] The rule priorities. (dict) --Information about the priorities for the rules for a listener. RuleArn (string) --The Amazon Resource Name (ARN) of the rule. Priority (integer) --The rule priority. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ] } :returns: A-Z, a-z, 0-9 _ - . $ / ~ " ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) """ pass def set_security_groups(LoadBalancerArn=None, SecurityGroups=None): """ Associates the specified security groups with the specified load balancer. The specified security groups override the previously associated security groups. See also: AWS API Documentation Examples This example associates the specified security group with the specified load balancer. Expected Output: :example: response = client.set_security_groups( LoadBalancerArn='string', SecurityGroups=[ 'string', ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type SecurityGroups: list :param SecurityGroups: [REQUIRED] The IDs of the security groups. (string) -- :rtype: dict :return: { 'SecurityGroupIds': [ 'string', ] } :returns: (string) -- """ pass def set_subnets(LoadBalancerArn=None, Subnets=None): """ Enables the Availability Zone for the specified subnets for the specified load balancer. The specified subnets replace the previously enabled subnets. See also: AWS API Documentation Examples This example enables the Availability Zones for the specified subnets for the specified load balancer. Expected Output: :example: response = client.set_subnets( LoadBalancerArn='string', Subnets=[ 'string', ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type Subnets: list :param Subnets: [REQUIRED] The IDs of the subnets. You must specify at least two subnets. You can add only one subnet per Availability Zone. (string) -- :rtype: dict :return: { 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string' }, ] } """ pass
""" The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ def add_tags(ResourceArns=None, Tags=None): """ Adds the specified tags to the specified resource. You can tag your Application Load Balancers and your target groups. Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value. To list the current tags for your resources, use DescribeTags . To remove tags from your resources, use RemoveTags . See also: AWS API Documentation Examples This example adds the specified tags to the specified load balancer. Expected Output: :example: response = client.add_tags( ResourceArns=[ 'string', ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type ResourceArns: list :param ResourceArns: [REQUIRED] The Amazon Resource Name (ARN) of the resource. (string) -- :type Tags: list :param Tags: [REQUIRED] The tags. Each resource can have a maximum of 10 tags. (dict) --Information about a tag. Key (string) -- [REQUIRED]The key of the tag. Value (string) --The value of the tag. :rtype: dict :return: {} :returns: (dict) -- """ pass def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). """ pass def create_listener(LoadBalancerArn=None, Protocol=None, Port=None, SslPolicy=None, Certificates=None, DefaultActions=None): """ Creates a listener for the specified Application Load Balancer. You can create up to 10 listeners per load balancer. To update a listener, use ModifyListener . When you are finished with a listener, you can delete it using DeleteListener . If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer . For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example creates an HTTP listener for the specified load balancer that forwards requests to the specified target group. Expected Output: This example creates an HTTPS listener for the specified load balancer that forwards requests to the specified target group. Note that you must specify an SSL certificate for an HTTPS listener. You can create and manage certificates using AWS Certificate Manager (ACM). Alternatively, you can create a certificate using SSL/TLS tools, get the certificate signed by a certificate authority (CA), and upload the certificate to AWS Identity and Access Management (IAM). Expected Output: :example: response = client.create_listener( LoadBalancerArn='string', Protocol='HTTP'|'HTTPS', Port=123, SslPolicy='string', Certificates=[ { 'CertificateArn': 'string' }, ], DefaultActions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type Protocol: string :param Protocol: [REQUIRED] The protocol for connections from clients to the load balancer. :type Port: integer :param Port: [REQUIRED] The port on which the load balancer is listening. :type SslPolicy: string :param SslPolicy: The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy. :type Certificates: list :param Certificates: The SSL server certificate. You must provide exactly one certificate if the protocol is HTTPS. (dict) --Information about an SSL server certificate deployed on a load balancer. CertificateArn (string) --The Amazon Resource Name (ARN) of the certificate. :type DefaultActions: list :param DefaultActions: [REQUIRED] The default action for the listener. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Listeners': [ { 'ListenerArn': 'string', 'LoadBalancerArn': 'string', 'Port': 123, 'Protocol': 'HTTP'|'HTTPS', 'Certificates': [ { 'CertificateArn': 'string' }, ], 'SslPolicy': 'string', 'DefaultActions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] }, ] } """ pass def create_load_balancer(Name=None, Subnets=None, SecurityGroups=None, Scheme=None, Tags=None, IpAddressType=None): """ Creates an Application Load Balancer. When you create a load balancer, you can specify security groups, subnets, IP address type, and tags. Otherwise, you could do so later using SetSecurityGroups , SetSubnets , SetIpAddressType , and AddTags . To create listeners for your load balancer, use CreateListener . To describe your current load balancers, see DescribeLoadBalancers . When you are finished with a load balancer, you can delete it using DeleteLoadBalancer . You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide . For more information, see Application Load Balancers in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example creates an Internet-facing load balancer and enables the Availability Zones for the specified subnets. Expected Output: This example creates an internal load balancer and enables the Availability Zones for the specified subnets. Expected Output: :example: response = client.create_load_balancer( Name='string', Subnets=[ 'string', ], SecurityGroups=[ 'string', ], Scheme='internet-facing'|'internal', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], IpAddressType='ipv4'|'dualstack' ) :type Name: string :param Name: [REQUIRED] The name of the load balancer. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. :type Subnets: list :param Subnets: [REQUIRED] The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify subnets from at least two Availability Zones. (string) -- :type SecurityGroups: list :param SecurityGroups: The IDs of the security groups to assign to the load balancer. (string) -- :type Scheme: string :param Scheme: The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the Internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer. The default is an Internet-facing load balancer. :type Tags: list :param Tags: One or more tags to assign to the load balancer. (dict) --Information about a tag. Key (string) -- [REQUIRED]The key of the tag. Value (string) --The value of the tag. :type IpAddressType: string :param IpAddressType: The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use ipv4 . :rtype: dict :return: { 'LoadBalancers': [ { 'LoadBalancerArn': 'string', 'DNSName': 'string', 'CanonicalHostedZoneId': 'string', 'CreatedTime': datetime(2015, 1, 1), 'LoadBalancerName': 'string', 'Scheme': 'internet-facing'|'internal', 'VpcId': 'string', 'State': { 'Code': 'active'|'provisioning'|'failed', 'Reason': 'string' }, 'Type': 'application', 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string' }, ], 'SecurityGroups': [ 'string', ], 'IpAddressType': 'ipv4'|'dualstack' }, ] } :returns: (string) -- """ pass def create_rule(ListenerArn=None, Conditions=None, Priority=None, Actions=None): """ Creates a rule for the specified listener. Each rule can have one action and one condition. Rules are evaluated in priority order, from the lowest value to the highest value. When the condition for a rule is met, the specified action is taken. If no conditions are met, the default action for the default rule is taken. For more information, see Listener Rules in the Application Load Balancers Guide . To view your current rules, use DescribeRules . To update a rule, use ModifyRule . To set the priorities of your rules, use SetRulePriorities . To delete a rule, use DeleteRule . See also: AWS API Documentation Examples This example creates a rule that forwards requests to the specified target group if the URL contains the specified pattern (for example, /img/*). Expected Output: :example: response = client.create_rule( ListenerArn='string', Conditions=[ { 'Field': 'string', 'Values': [ 'string', ] }, ], Priority=123, Actions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type ListenerArn: string :param ListenerArn: [REQUIRED] The Amazon Resource Name (ARN) of the listener. :type Conditions: list :param Conditions: [REQUIRED] A condition. Each condition specifies a field name and a single value. If the field name is host-header , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) If the field name is path-pattern , you can specify a single path pattern. A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 _ - . $ / ~ ' ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) (dict) --Information about a condition for a rule. Field (string) --The name of the field. The possible values are host-header and path-pattern . Values (list) --The condition value. If the field name is host-header , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) If the field name is path-pattern , you can specify a single path pattern (for example, /img/*). A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 _ - . $ / ~ ' ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) (string) -- :type Priority: integer :param Priority: [REQUIRED] The priority for the rule. A listener can't have multiple rules with the same priority. :type Actions: list :param Actions: [REQUIRED] An action. Each action has the type forward and specifies a target group. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ] } :returns: A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) """ pass def create_target_group(Name=None, Protocol=None, Port=None, VpcId=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None): """ Creates a target group. To register targets with the target group, use RegisterTargets . To update the health check settings for the target group, use ModifyTargetGroup . To monitor the health of targets in the target group, use DescribeTargetHealth . To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule . To delete a target group, use DeleteTargetGroup . For more information, see Target Groups for Your Application Load Balancers in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example creates a target group that you can use to route traffic to targets using HTTP on port 80. This target group uses the default health check configuration. Expected Output: :example: response = client.create_target_group( Name='string', Protocol='HTTP'|'HTTPS', Port=123, VpcId='string', HealthCheckProtocol='HTTP'|'HTTPS', HealthCheckPort='string', HealthCheckPath='string', HealthCheckIntervalSeconds=123, HealthCheckTimeoutSeconds=123, HealthyThresholdCount=123, UnhealthyThresholdCount=123, Matcher={ 'HttpCode': 'string' } ) :type Name: string :param Name: [REQUIRED] The name of the target group. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen. :type Protocol: string :param Protocol: [REQUIRED] The protocol to use for routing traffic to the targets. :type Port: integer :param Port: [REQUIRED] The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. :type VpcId: string :param VpcId: [REQUIRED] The identifier of the virtual private cloud (VPC). :type HealthCheckProtocol: string :param HealthCheckProtocol: The protocol the load balancer uses when performing health checks on targets. The default is the HTTP protocol. :type HealthCheckPort: string :param HealthCheckPort: The port the load balancer uses when performing health checks on targets. The default is traffic-port , which indicates the port on which each target receives traffic from the load balancer. :type HealthCheckPath: string :param HealthCheckPath: The ping path that is the destination on the targets for health checks. The default is /. :type HealthCheckIntervalSeconds: integer :param HealthCheckIntervalSeconds: The approximate amount of time, in seconds, between health checks of an individual target. The default is 30 seconds. :type HealthCheckTimeoutSeconds: integer :param HealthCheckTimeoutSeconds: The amount of time, in seconds, during which no response from a target means a failed health check. The default is 5 seconds. :type HealthyThresholdCount: integer :param HealthyThresholdCount: The number of consecutive health checks successes required before considering an unhealthy target healthy. The default is 5. :type UnhealthyThresholdCount: integer :param UnhealthyThresholdCount: The number of consecutive health check failures required before considering a target unhealthy. The default is 2. :type Matcher: dict :param Matcher: The HTTP codes to use when checking for a successful response from a target. The default is 200. HttpCode (string) -- [REQUIRED]The HTTP codes. You can specify values between 200 and 499. The default value is 200. You can specify multiple values (for example, '200,202') or a range of values (for example, '200-299'). :rtype: dict :return: { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'TargetGroupName': 'string', 'Protocol': 'HTTP'|'HTTPS', 'Port': 123, 'VpcId': 'string', 'HealthCheckProtocol': 'HTTP'|'HTTPS', 'HealthCheckPort': 'string', 'HealthCheckIntervalSeconds': 123, 'HealthCheckTimeoutSeconds': 123, 'HealthyThresholdCount': 123, 'UnhealthyThresholdCount': 123, 'HealthCheckPath': 'string', 'Matcher': { 'HttpCode': 'string' }, 'LoadBalancerArns': [ 'string', ] }, ] } :returns: (string) -- """ pass def delete_listener(ListenerArn=None): """ Deletes the specified listener. Alternatively, your listener is deleted when you delete the load balancer it is attached to using DeleteLoadBalancer . See also: AWS API Documentation Examples This example deletes the specified listener. Expected Output: :example: response = client.delete_listener( ListenerArn='string' ) :type ListenerArn: string :param ListenerArn: [REQUIRED] The Amazon Resource Name (ARN) of the listener. :rtype: dict :return: {} """ pass def delete_load_balancer(LoadBalancerArn=None): """ Deletes the specified Application Load Balancer and its attached listeners. You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds. Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them. See also: AWS API Documentation Examples This example deletes the specified load balancer. Expected Output: :example: response = client.delete_load_balancer( LoadBalancerArn='string' ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :rtype: dict :return: {} """ pass def delete_rule(RuleArn=None): """ Deletes the specified rule. See also: AWS API Documentation Examples This example deletes the specified rule. Expected Output: :example: response = client.delete_rule( RuleArn='string' ) :type RuleArn: string :param RuleArn: [REQUIRED] The Amazon Resource Name (ARN) of the rule. :rtype: dict :return: {} """ pass def delete_target_group(TargetGroupArn=None): """ Deletes the specified target group. You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks. See also: AWS API Documentation Examples This example deletes the specified target group. Expected Output: :example: response = client.delete_target_group( TargetGroupArn='string' ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: {} """ pass def deregister_targets(TargetGroupArn=None, Targets=None): """ Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer. See also: AWS API Documentation Examples This example deregisters the specified instance from the specified target group. Expected Output: :example: response = client.deregister_targets( TargetGroupArn='string', Targets=[ { 'Id': 'string', 'Port': 123 }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Targets: list :param Targets: [REQUIRED] The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it. (dict) --Information about a target. Id (string) -- [REQUIRED]The ID of the target. Port (integer) --The port on which the target is listening. :rtype: dict :return: {} :returns: (dict) -- """ pass def describe_account_limits(Marker=None, PageSize=None): """ Describes the current Elastic Load Balancing resource limits for your AWS account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancer Guide . See also: AWS API Documentation :example: response = client.describe_account_limits( Marker='string', PageSize=123 ) :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'Limits': [ { 'Name': 'string', 'Max': 'string' }, ], 'NextMarker': 'string' } :returns: application-load-balancers listeners-per-application-load-balancer rules-per-application-load-balancer target-groups targets-per-application-load-balancer """ pass def describe_listeners(LoadBalancerArn=None, ListenerArns=None, Marker=None, PageSize=None): """ Describes the specified listeners or the listeners for the specified Application Load Balancer. You must specify either a load balancer or one or more listeners. See also: AWS API Documentation Examples This example describes the specified listener. Expected Output: :example: response = client.describe_listeners( LoadBalancerArn='string', ListenerArns=[ 'string', ], Marker='string', PageSize=123 ) :type LoadBalancerArn: string :param LoadBalancerArn: The Amazon Resource Name (ARN) of the load balancer. :type ListenerArns: list :param ListenerArns: The Amazon Resource Names (ARN) of the listeners. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'Listeners': [ { 'ListenerArn': 'string', 'LoadBalancerArn': 'string', 'Port': 123, 'Protocol': 'HTTP'|'HTTPS', 'Certificates': [ { 'CertificateArn': 'string' }, ], 'SslPolicy': 'string', 'DefaultActions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] }, ], 'NextMarker': 'string' } """ pass def describe_load_balancer_attributes(LoadBalancerArn=None): """ Describes the attributes for the specified Application Load Balancer. See also: AWS API Documentation Examples This example describes the attributes of the specified load balancer. Expected Output: :example: response = client.describe_load_balancer_attributes( LoadBalancerArn='string' ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } """ pass def describe_load_balancers(LoadBalancerArns=None, Names=None, Marker=None, PageSize=None): """ Describes the specified Application Load Balancers or all of your Application Load Balancers. To describe the listeners for a load balancer, use DescribeListeners . To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes . See also: AWS API Documentation Examples This example describes the specified load balancer. Expected Output: :example: response = client.describe_load_balancers( LoadBalancerArns=[ 'string', ], Names=[ 'string', ], Marker='string', PageSize=123 ) :type LoadBalancerArns: list :param LoadBalancerArns: The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call. (string) -- :type Names: list :param Names: The names of the load balancers. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'LoadBalancers': [ { 'LoadBalancerArn': 'string', 'DNSName': 'string', 'CanonicalHostedZoneId': 'string', 'CreatedTime': datetime(2015, 1, 1), 'LoadBalancerName': 'string', 'Scheme': 'internet-facing'|'internal', 'VpcId': 'string', 'State': { 'Code': 'active'|'provisioning'|'failed', 'Reason': 'string' }, 'Type': 'application', 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string' }, ], 'SecurityGroups': [ 'string', ], 'IpAddressType': 'ipv4'|'dualstack' }, ], 'NextMarker': 'string' } :returns: (string) -- """ pass def describe_rules(ListenerArn=None, RuleArns=None, Marker=None, PageSize=None): """ Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules. See also: AWS API Documentation Examples This example describes the specified rule. Expected Output: :example: response = client.describe_rules( ListenerArn='string', RuleArns=[ 'string', ], Marker='string', PageSize=123 ) :type ListenerArn: string :param ListenerArn: The Amazon Resource Name (ARN) of the listener. :type RuleArns: list :param RuleArns: The Amazon Resource Names (ARN) of the rules. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ], 'NextMarker': 'string' } :returns: A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) """ pass def describe_ssl_policies(Names=None, Marker=None, PageSize=None): """ Describes the specified policies or all policies used for SSL negotiation. For more information, see Security Policies in the Application Load Balancers Guide . See also: AWS API Documentation Examples This example describes the specified policy used for SSL negotiation. Expected Output: :example: response = client.describe_ssl_policies( Names=[ 'string', ], Marker='string', PageSize=123 ) :type Names: list :param Names: The names of the policies. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'SslPolicies': [ { 'SslProtocols': [ 'string', ], 'Ciphers': [ { 'Name': 'string', 'Priority': 123 }, ], 'Name': 'string' }, ], 'NextMarker': 'string' } :returns: (string) -- """ pass def describe_tags(ResourceArns=None): """ Describes the tags for the specified resources. You can describe the tags for one or more Application Load Balancers and target groups. See also: AWS API Documentation Examples This example describes the tags assigned to the specified load balancer. Expected Output: :example: response = client.describe_tags( ResourceArns=[ 'string', ] ) :type ResourceArns: list :param ResourceArns: [REQUIRED] The Amazon Resource Names (ARN) of the resources. (string) -- :rtype: dict :return: { 'TagDescriptions': [ { 'ResourceArn': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ] } """ pass def describe_target_group_attributes(TargetGroupArn=None): """ Describes the attributes for the specified target group. See also: AWS API Documentation Examples This example describes the attributes of the specified target group. Expected Output: :example: response = client.describe_target_group_attributes( TargetGroupArn='string' ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } """ pass def describe_target_groups(LoadBalancerArn=None, TargetGroupArns=None, Names=None, Marker=None, PageSize=None): """ Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups. To describe the targets for a target group, use DescribeTargetHealth . To describe the attributes of a target group, use DescribeTargetGroupAttributes . See also: AWS API Documentation Examples This example describes the specified target group. Expected Output: :example: response = client.describe_target_groups( LoadBalancerArn='string', TargetGroupArns=[ 'string', ], Names=[ 'string', ], Marker='string', PageSize=123 ) :type LoadBalancerArn: string :param LoadBalancerArn: The Amazon Resource Name (ARN) of the load balancer. :type TargetGroupArns: list :param TargetGroupArns: The Amazon Resource Names (ARN) of the target groups. (string) -- :type Names: list :param Names: The names of the target groups. (string) -- :type Marker: string :param Marker: The marker for the next set of results. (You received this marker from a previous call.) :type PageSize: integer :param PageSize: The maximum number of results to return with this call. :rtype: dict :return: { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'TargetGroupName': 'string', 'Protocol': 'HTTP'|'HTTPS', 'Port': 123, 'VpcId': 'string', 'HealthCheckProtocol': 'HTTP'|'HTTPS', 'HealthCheckPort': 'string', 'HealthCheckIntervalSeconds': 123, 'HealthCheckTimeoutSeconds': 123, 'HealthyThresholdCount': 123, 'UnhealthyThresholdCount': 123, 'HealthCheckPath': 'string', 'Matcher': { 'HttpCode': 'string' }, 'LoadBalancerArns': [ 'string', ] }, ], 'NextMarker': 'string' } :returns: (string) -- """ pass def describe_target_health(TargetGroupArn=None, Targets=None): """ Describes the health of the specified targets or all of your targets. See also: AWS API Documentation Examples This example describes the health of the targets for the specified target group. One target is healthy but the other is not specified in an action, so it can't receive traffic from the load balancer. Expected Output: This example describes the health of the specified target. This target is healthy. Expected Output: :example: response = client.describe_target_health( TargetGroupArn='string', Targets=[ { 'Id': 'string', 'Port': 123 }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Targets: list :param Targets: The targets. (dict) --Information about a target. Id (string) -- [REQUIRED]The ID of the target. Port (integer) --The port on which the target is listening. :rtype: dict :return: { 'TargetHealthDescriptions': [ { 'Target': { 'Id': 'string', 'Port': 123 }, 'HealthCheckPort': 'string', 'TargetHealth': { 'State': 'initial'|'healthy'|'unhealthy'|'unused'|'draining', 'Reason': 'Elb.RegistrationInProgress'|'Elb.InitialHealthChecking'|'Target.ResponseCodeMismatch'|'Target.Timeout'|'Target.FailedHealthChecks'|'Target.NotRegistered'|'Target.NotInUse'|'Target.DeregistrationInProgress'|'Target.InvalidState'|'Elb.InternalError', 'Description': 'string' } }, ] } :returns: Elb.RegistrationInProgress - The target is in the process of being registered with the load balancer. Elb.InitialHealthChecking - The load balancer is still sending the target the minimum number of health checks required to determine its health status. """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to ClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By default, the http method is whatever is used in the method's model. """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} """ pass def get_waiter(): """ """ pass def modify_listener(ListenerArn=None, Port=None, Protocol=None, SslPolicy=None, Certificates=None, DefaultActions=None): """ Modifies the specified properties of the specified listener. Any properties that you do not specify retain their current values. However, changing the protocol from HTTPS to HTTP removes the security policy and SSL certificate properties. If you change the protocol from HTTP to HTTPS, you must add the security policy and server certificate. See also: AWS API Documentation Examples This example changes the default action for the specified listener. Expected Output: This example changes the server certificate for the specified HTTPS listener. Expected Output: :example: response = client.modify_listener( ListenerArn='string', Port=123, Protocol='HTTP'|'HTTPS', SslPolicy='string', Certificates=[ { 'CertificateArn': 'string' }, ], DefaultActions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type ListenerArn: string :param ListenerArn: [REQUIRED] The Amazon Resource Name (ARN) of the listener. :type Port: integer :param Port: The port for connections from clients to the load balancer. :type Protocol: string :param Protocol: The protocol for connections from clients to the load balancer. :type SslPolicy: string :param SslPolicy: The security policy that defines which protocols and ciphers are supported. For more information, see Security Policies in the Application Load Balancers Guide . :type Certificates: list :param Certificates: The SSL server certificate. (dict) --Information about an SSL server certificate deployed on a load balancer. CertificateArn (string) --The Amazon Resource Name (ARN) of the certificate. :type DefaultActions: list :param DefaultActions: The default actions. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Listeners': [ { 'ListenerArn': 'string', 'LoadBalancerArn': 'string', 'Port': 123, 'Protocol': 'HTTP'|'HTTPS', 'Certificates': [ { 'CertificateArn': 'string' }, ], 'SslPolicy': 'string', 'DefaultActions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] }, ] } """ pass def modify_load_balancer_attributes(LoadBalancerArn=None, Attributes=None): """ Modifies the specified attributes of the specified Application Load Balancer. If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values. See also: AWS API Documentation Examples This example enables deletion protection for the specified load balancer. Expected Output: This example changes the idle timeout value for the specified load balancer. Expected Output: This example enables access logs for the specified load balancer. Note that the S3 bucket must exist in the same region as the load balancer and must have a policy attached that grants access to the Elastic Load Balancing service. Expected Output: :example: response = client.modify_load_balancer_attributes( LoadBalancerArn='string', Attributes=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type Attributes: list :param Attributes: [REQUIRED] The load balancer attributes. (dict) --Information about a load balancer attribute. Key (string) --The name of the attribute. access_logs.s3.enabled - Indicates whether access logs stored in Amazon S3 are enabled. The value is true or false . access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket. access_logs.s3.prefix - The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket. deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false . idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-3600. The default is 60 seconds. Value (string) --The value of the attribute. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } :returns: access_logs.s3.enabled - Indicates whether access logs stored in Amazon S3 are enabled. The value is true or false . access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs in Amazon S3 are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permission to write to the bucket. access_logs.s3.prefix - The prefix for the location in the S3 bucket. If you don't specify a prefix, the access logs are stored in the root of the bucket. deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false . idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-3600. The default is 60 seconds. """ pass def modify_rule(RuleArn=None, Conditions=None, Actions=None): """ Modifies the specified rule. Any existing properties that you do not modify retain their current values. To modify the default action, use ModifyListener . See also: AWS API Documentation Examples This example modifies the condition for the specified rule. Expected Output: :example: response = client.modify_rule( RuleArn='string', Conditions=[ { 'Field': 'string', 'Values': [ 'string', ] }, ], Actions=[ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ] ) :type RuleArn: string :param RuleArn: [REQUIRED] The Amazon Resource Name (ARN) of the rule. :type Conditions: list :param Conditions: The conditions. (dict) --Information about a condition for a rule. Field (string) --The name of the field. The possible values are host-header and path-pattern . Values (list) --The condition value. If the field name is host-header , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) If the field name is path-pattern , you can specify a single path pattern (for example, /img/*). A path pattern is case sensitive, can be up to 128 characters in length, and can contain any of the following characters. Note that you can include up to three wildcard characters. A-Z, a-z, 0-9 _ - . $ / ~ ' ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) (string) -- :type Actions: list :param Actions: The actions. (dict) --Information about an action. Type (string) -- [REQUIRED]The type of action. TargetGroupArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the target group. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ] } :returns: A-Z, a-z, 0-9 . (matches 0 or more characters) ? (matches exactly 1 character) """ pass def modify_target_group(TargetGroupArn=None, HealthCheckProtocol=None, HealthCheckPort=None, HealthCheckPath=None, HealthCheckIntervalSeconds=None, HealthCheckTimeoutSeconds=None, HealthyThresholdCount=None, UnhealthyThresholdCount=None, Matcher=None): """ Modifies the health checks used when evaluating the health state of the targets in the specified target group. To monitor the health of the targets, use DescribeTargetHealth . See also: AWS API Documentation Examples This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group. Expected Output: :example: response = client.modify_target_group( TargetGroupArn='string', HealthCheckProtocol='HTTP'|'HTTPS', HealthCheckPort='string', HealthCheckPath='string', HealthCheckIntervalSeconds=123, HealthCheckTimeoutSeconds=123, HealthyThresholdCount=123, UnhealthyThresholdCount=123, Matcher={ 'HttpCode': 'string' } ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type HealthCheckProtocol: string :param HealthCheckProtocol: The protocol to use to connect with the target. :type HealthCheckPort: string :param HealthCheckPort: The port to use to connect with the target. :type HealthCheckPath: string :param HealthCheckPath: The ping path that is the destination for the health check request. :type HealthCheckIntervalSeconds: integer :param HealthCheckIntervalSeconds: The approximate amount of time, in seconds, between health checks of an individual target. :type HealthCheckTimeoutSeconds: integer :param HealthCheckTimeoutSeconds: The amount of time, in seconds, during which no response means a failed health check. :type HealthyThresholdCount: integer :param HealthyThresholdCount: The number of consecutive health checks successes required before considering an unhealthy target healthy. :type UnhealthyThresholdCount: integer :param UnhealthyThresholdCount: The number of consecutive health check failures required before considering the target unhealthy. :type Matcher: dict :param Matcher: The HTTP codes to use when checking for a successful response from a target. HttpCode (string) -- [REQUIRED]The HTTP codes. You can specify values between 200 and 499. The default value is 200. You can specify multiple values (for example, '200,202') or a range of values (for example, '200-299'). :rtype: dict :return: { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'TargetGroupName': 'string', 'Protocol': 'HTTP'|'HTTPS', 'Port': 123, 'VpcId': 'string', 'HealthCheckProtocol': 'HTTP'|'HTTPS', 'HealthCheckPort': 'string', 'HealthCheckIntervalSeconds': 123, 'HealthCheckTimeoutSeconds': 123, 'HealthyThresholdCount': 123, 'UnhealthyThresholdCount': 123, 'HealthCheckPath': 'string', 'Matcher': { 'HttpCode': 'string' }, 'LoadBalancerArns': [ 'string', ] }, ] } :returns: (string) -- """ pass def modify_target_group_attributes(TargetGroupArn=None, Attributes=None): """ Modifies the specified attributes of the specified target group. See also: AWS API Documentation Examples This example sets the deregistration delay timeout to the specified value for the specified target group. Expected Output: :example: response = client.modify_target_group_attributes( TargetGroupArn='string', Attributes=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Attributes: list :param Attributes: [REQUIRED] The attributes. (dict) --Information about a target group attribute. Key (string) --The name of the attribute. deregistration_delay.timeout_seconds - The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused . The range is 0-3600 seconds. The default value is 300 seconds. stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false . stickiness.type - The type of sticky sessions. The possible value is lb_cookie . stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). Value (string) --The value of the attribute. :rtype: dict :return: { 'Attributes': [ { 'Key': 'string', 'Value': 'string' }, ] } :returns: deregistration_delay.timeout_seconds - The amount time for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused . The range is 0-3600 seconds. The default value is 300 seconds. stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false . stickiness.type - The type of sticky sessions. The possible value is lb_cookie . stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds). """ pass def register_targets(TargetGroupArn=None, Targets=None): """ Registers the specified targets with the specified target group. By default, the load balancer routes requests to registered targets using the protocol and port number for the target group. Alternatively, you can override the port for a target when you register it. The target must be in the virtual private cloud (VPC) that you specified for the target group. If the target is an EC2 instance, it must be in the running state when you register it. To remove a target from a target group, use DeregisterTargets . See also: AWS API Documentation Examples This example registers the specified instances with the specified target group. Expected Output: This example registers the specified instance with the specified target group using multiple ports. This enables you to register ECS containers on the same instance as targets in the target group. Expected Output: :example: response = client.register_targets( TargetGroupArn='string', Targets=[ { 'Id': 'string', 'Port': 123 }, ] ) :type TargetGroupArn: string :param TargetGroupArn: [REQUIRED] The Amazon Resource Name (ARN) of the target group. :type Targets: list :param Targets: [REQUIRED] The targets. The default port for a target is the port for the target group. You can specify a port override. If a target is already registered, you can register it again using a different port. (dict) --Information about a target. Id (string) -- [REQUIRED]The ID of the target. Port (integer) --The port on which the target is listening. :rtype: dict :return: {} :returns: (dict) -- """ pass def remove_tags(ResourceArns=None, TagKeys=None): """ Removes the specified tags from the specified resource. To list the current tags for your resources, use DescribeTags . See also: AWS API Documentation Examples This example removes the specified tags from the specified load balancer. Expected Output: :example: response = client.remove_tags( ResourceArns=[ 'string', ], TagKeys=[ 'string', ] ) :type ResourceArns: list :param ResourceArns: [REQUIRED] The Amazon Resource Name (ARN) of the resource. (string) -- :type TagKeys: list :param TagKeys: [REQUIRED] The tag keys for the tags to remove. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass def set_ip_address_type(LoadBalancerArn=None, IpAddressType=None): """ Sets the type of IP addresses used by the subnets of the specified Application Load Balancer. See also: AWS API Documentation :example: response = client.set_ip_address_type( LoadBalancerArn='string', IpAddressType='ipv4'|'dualstack' ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type IpAddressType: string :param IpAddressType: [REQUIRED] The IP address type. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use ipv4 . :rtype: dict :return: { 'IpAddressType': 'ipv4'|'dualstack' } """ pass def set_rule_priorities(RulePriorities=None): """ Sets the priorities of the specified rules. You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority. See also: AWS API Documentation Examples This example sets the priority of the specified rule. Expected Output: :example: response = client.set_rule_priorities( RulePriorities=[ { 'RuleArn': 'string', 'Priority': 123 }, ] ) :type RulePriorities: list :param RulePriorities: [REQUIRED] The rule priorities. (dict) --Information about the priorities for the rules for a listener. RuleArn (string) --The Amazon Resource Name (ARN) of the rule. Priority (integer) --The rule priority. :rtype: dict :return: { 'Rules': [ { 'RuleArn': 'string', 'Priority': 'string', 'Conditions': [ { 'Field': 'string', 'Values': [ 'string', ] }, ], 'Actions': [ { 'Type': 'forward', 'TargetGroupArn': 'string' }, ], 'IsDefault': True|False }, ] } :returns: A-Z, a-z, 0-9 _ - . $ / ~ " ' @ : + (using amp;) (matches 0 or more characters) ? (matches exactly 1 character) """ pass def set_security_groups(LoadBalancerArn=None, SecurityGroups=None): """ Associates the specified security groups with the specified load balancer. The specified security groups override the previously associated security groups. See also: AWS API Documentation Examples This example associates the specified security group with the specified load balancer. Expected Output: :example: response = client.set_security_groups( LoadBalancerArn='string', SecurityGroups=[ 'string', ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type SecurityGroups: list :param SecurityGroups: [REQUIRED] The IDs of the security groups. (string) -- :rtype: dict :return: { 'SecurityGroupIds': [ 'string', ] } :returns: (string) -- """ pass def set_subnets(LoadBalancerArn=None, Subnets=None): """ Enables the Availability Zone for the specified subnets for the specified load balancer. The specified subnets replace the previously enabled subnets. See also: AWS API Documentation Examples This example enables the Availability Zones for the specified subnets for the specified load balancer. Expected Output: :example: response = client.set_subnets( LoadBalancerArn='string', Subnets=[ 'string', ] ) :type LoadBalancerArn: string :param LoadBalancerArn: [REQUIRED] The Amazon Resource Name (ARN) of the load balancer. :type Subnets: list :param Subnets: [REQUIRED] The IDs of the subnets. You must specify at least two subnets. You can add only one subnet per Availability Zone. (string) -- :rtype: dict :return: { 'AvailabilityZones': [ { 'ZoneName': 'string', 'SubnetId': 'string' }, ] } """ pass
"""This problem was asked by Apple. Gray code is a binary code where each successive value differ in only one bit, as well as when wrapping around. Gray code is common in hardware so that we don't see temporary spurious values during transitions. Given a number of bits n, generate a possible gray code for it. For example, for n = 2, one gray code would be [00, 01, 11, 10]. """
"""This problem was asked by Apple. Gray code is a binary code where each successive value differ in only one bit, as well as when wrapping around. Gray code is common in hardware so that we don't see temporary spurious values during transitions. Given a number of bits n, generate a possible gray code for it. For example, for n = 2, one gray code would be [00, 01, 11, 10]. """
""" Contains code no longer used but kept for review/further reuse --- imports need to be re-added --- """ def determine_disjuct_modules_alternative(src_rep): """ Potentially get rid of determine_added_modules and get_modules_lst() """ findimports_output = subprocess.check_output(['findimports', src_rep]) findimports_output = findimports_output.decode('utf-8').splitlines() custom_modules_lst = [] for i, elem in enumerate(findimports_output): if ':' in elem: continue elem = elem.rstrip('\n').split('.',1)[0].strip() #print(f" element : {elem}") custom_modules_lst.append(elem) custom_modules_lst = set(custom_modules_lst) #beautify this disjunct_modules = [] for i, elem in enumerate(custom_modules_lst): if elem in sys.modules: continue else: disjunct_modules.append(elem) return disjunct_modules def determine_added_modules(src_rep, python_version): """ Determine overlapping and disjunct modules between the ones shipped by the specified python version and the ones found in the source repository specified. For now we rely on findimports providing the needed dependency tree within the source repository. Links to tool : https://github.com/mgedmin/findimports, https://pypi.org/project/findimports/ """ python_modules_lst = get_modules_list(python_version) findimports_output = subprocess.check_output(['findimports', src_rep]) findimports_output = findimports_output.decode('utf-8').splitlines() custom_modules_lst = [] for i, elem in enumerate(findimports_output): if ':' in elem: continue elem = elem.rstrip('\n').split('.',1)[0].strip() #print(f" element : {elem}") custom_modules_lst.append(elem) custom_modules_lst = set(custom_modules_lst) not_common = [val for val in custom_modules_lst if val not in python_modules_lst] common = [val for val in custom_modules_lst if val in python_modules_lst] return not_common, common
""" Contains code no longer used but kept for review/further reuse --- imports need to be re-added --- """ def determine_disjuct_modules_alternative(src_rep): """ Potentially get rid of determine_added_modules and get_modules_lst() """ findimports_output = subprocess.check_output(['findimports', src_rep]) findimports_output = findimports_output.decode('utf-8').splitlines() custom_modules_lst = [] for (i, elem) in enumerate(findimports_output): if ':' in elem: continue elem = elem.rstrip('\n').split('.', 1)[0].strip() custom_modules_lst.append(elem) custom_modules_lst = set(custom_modules_lst) disjunct_modules = [] for (i, elem) in enumerate(custom_modules_lst): if elem in sys.modules: continue else: disjunct_modules.append(elem) return disjunct_modules def determine_added_modules(src_rep, python_version): """ Determine overlapping and disjunct modules between the ones shipped by the specified python version and the ones found in the source repository specified. For now we rely on findimports providing the needed dependency tree within the source repository. Links to tool : https://github.com/mgedmin/findimports, https://pypi.org/project/findimports/ """ python_modules_lst = get_modules_list(python_version) findimports_output = subprocess.check_output(['findimports', src_rep]) findimports_output = findimports_output.decode('utf-8').splitlines() custom_modules_lst = [] for (i, elem) in enumerate(findimports_output): if ':' in elem: continue elem = elem.rstrip('\n').split('.', 1)[0].strip() custom_modules_lst.append(elem) custom_modules_lst = set(custom_modules_lst) not_common = [val for val in custom_modules_lst if val not in python_modules_lst] common = [val for val in custom_modules_lst if val in python_modules_lst] return (not_common, common)
class Endereco: def __init__(self, rua="", bairro="", numero="", cidade="", estado="", cep=""): self.rua = rua self.bairro = bairro self.numero = numero self.cidade = cidade self.estado = estado self.cep = cep
class Endereco: def __init__(self, rua='', bairro='', numero='', cidade='', estado='', cep=''): self.rua = rua self.bairro = bairro self.numero = numero self.cidade = cidade self.estado = estado self.cep = cep
""" --- Day 6: Memory Reallocation --- A debugger program here is having an issue: it is trying to repair a memory reallocation routine, but it keeps getting stuck in an infinite loop. In this area, there are sixteen memory banks; each memory bank can hold any number of blocks. The goal of the reallocation routine is to balance the blocks between the memory banks. The reallocation routine operates in cycles. In each cycle, it finds the memory bank with the most blocks (ties won by the lowest-numbered memory bank) and redistributes those blocks among the banks. To do this, it removes all of the blocks from the selected bank, then moves to the next (by index) memory bank and inserts one of the blocks. It continues doing this until it runs out of blocks; if it reaches the last memory bank, it wraps around to the first one. The debugger would like to know how many redistributions can be done before a blocks-in-banks configuration is produced that has been seen before. For example, imagine a scenario with only four memory banks: The banks start with 0, 2, 7, and 0 blocks. The third bank has the most blocks, so it is chosen for redistribution. Starting with the next bank (the fourth bank) and then continuing to the first bank, the second bank, and so on, the 7 blocks are spread out over the memory banks. The fourth, first, and second banks get two blocks each, and the third bank gets one back. The final result looks like this: 2 4 1 2. Next, the second bank is chosen because it contains the most blocks (four). Because there are four memory banks, each gets one block. The result is: 3 1 2 3. Now, there is a tie between the first and fourth memory banks, both of which have three blocks. The first bank wins the tie, and its three blocks are distributed evenly over the other three banks, leaving it with none: 0 2 3 4. The fourth bank is chosen, and its four blocks are distributed such that each of the four banks receives one: 1 3 4 1. The third bank is chosen, and the same thing happens: 2 4 1 2. At this point, we've reached a state we've seen before: 2 4 1 2 was already seen. The infinite loop is detected after the fifth block redistribution cycle, and so the answer in this example is 5. Given the initial block counts in your puzzle input, how many redistribution cycles must be completed before a configuration is produced that has been seen before? Your puzzle answer was 11137. --- Part Two --- Out of curiosity, the debugger would also like to know the size of the loop: starting from a state that has already been seen, how many block redistribution cycles must be performed before that same state is seen again? In the example above, 2 4 1 2 is seen again after four cycles, and so the answer in that example would be 4. How many cycles are in the infinite loop that arises from the configuration in your puzzle input? Your puzzle answer was 1037. Both parts of this puzzle are complete! They provide two gold stars: ** """ def part1(puzzle_input): seen = set() state = puzzle_input num_it = 0 while True: num_it += 1 state = part1_redist_cycle(state) frozen_state = tuple(state) if frozen_state in seen: break else: seen.add(frozen_state) return num_it def part1_redist_cycle(state): value = max(state) index = state.index(value) state[index] = 0 # removes all the blocks size = len(state) while value: index = index + 1 if index < size - 1 else 0 value -= 1 state[index] += 1 return state def part2(puzzle_input): seen = {} state = puzzle_input num_it = 0 while True: num_it += 1 state = part1_redist_cycle(state) frozen_state = tuple(state) if frozen_state in seen: break else: seen[frozen_state] = num_it return num_it - seen[frozen_state] def test_part1_redist_cycle(): state = [0, 2, 7, 0] assert [2, 4, 1, 2] == part1_redist_cycle(state) def test_part1(): puzzle_input = [0, 2, 7, 0] assert 5 == part1(puzzle_input) def test_part2(): puzzle_input = [0, 2, 7, 0] assert 4 == part2(puzzle_input) def main(): with open('input.txt') as f: puzzle_input = [int(n.strip()) for n in f.read().strip().split()] print('part1: %s' % part1(puzzle_input)) print('part2: %s' % part2(puzzle_input)) if __name__ == '__main__': main()
""" --- Day 6: Memory Reallocation --- A debugger program here is having an issue: it is trying to repair a memory reallocation routine, but it keeps getting stuck in an infinite loop. In this area, there are sixteen memory banks; each memory bank can hold any number of blocks. The goal of the reallocation routine is to balance the blocks between the memory banks. The reallocation routine operates in cycles. In each cycle, it finds the memory bank with the most blocks (ties won by the lowest-numbered memory bank) and redistributes those blocks among the banks. To do this, it removes all of the blocks from the selected bank, then moves to the next (by index) memory bank and inserts one of the blocks. It continues doing this until it runs out of blocks; if it reaches the last memory bank, it wraps around to the first one. The debugger would like to know how many redistributions can be done before a blocks-in-banks configuration is produced that has been seen before. For example, imagine a scenario with only four memory banks: The banks start with 0, 2, 7, and 0 blocks. The third bank has the most blocks, so it is chosen for redistribution. Starting with the next bank (the fourth bank) and then continuing to the first bank, the second bank, and so on, the 7 blocks are spread out over the memory banks. The fourth, first, and second banks get two blocks each, and the third bank gets one back. The final result looks like this: 2 4 1 2. Next, the second bank is chosen because it contains the most blocks (four). Because there are four memory banks, each gets one block. The result is: 3 1 2 3. Now, there is a tie between the first and fourth memory banks, both of which have three blocks. The first bank wins the tie, and its three blocks are distributed evenly over the other three banks, leaving it with none: 0 2 3 4. The fourth bank is chosen, and its four blocks are distributed such that each of the four banks receives one: 1 3 4 1. The third bank is chosen, and the same thing happens: 2 4 1 2. At this point, we've reached a state we've seen before: 2 4 1 2 was already seen. The infinite loop is detected after the fifth block redistribution cycle, and so the answer in this example is 5. Given the initial block counts in your puzzle input, how many redistribution cycles must be completed before a configuration is produced that has been seen before? Your puzzle answer was 11137. --- Part Two --- Out of curiosity, the debugger would also like to know the size of the loop: starting from a state that has already been seen, how many block redistribution cycles must be performed before that same state is seen again? In the example above, 2 4 1 2 is seen again after four cycles, and so the answer in that example would be 4. How many cycles are in the infinite loop that arises from the configuration in your puzzle input? Your puzzle answer was 1037. Both parts of this puzzle are complete! They provide two gold stars: ** """ def part1(puzzle_input): seen = set() state = puzzle_input num_it = 0 while True: num_it += 1 state = part1_redist_cycle(state) frozen_state = tuple(state) if frozen_state in seen: break else: seen.add(frozen_state) return num_it def part1_redist_cycle(state): value = max(state) index = state.index(value) state[index] = 0 size = len(state) while value: index = index + 1 if index < size - 1 else 0 value -= 1 state[index] += 1 return state def part2(puzzle_input): seen = {} state = puzzle_input num_it = 0 while True: num_it += 1 state = part1_redist_cycle(state) frozen_state = tuple(state) if frozen_state in seen: break else: seen[frozen_state] = num_it return num_it - seen[frozen_state] def test_part1_redist_cycle(): state = [0, 2, 7, 0] assert [2, 4, 1, 2] == part1_redist_cycle(state) def test_part1(): puzzle_input = [0, 2, 7, 0] assert 5 == part1(puzzle_input) def test_part2(): puzzle_input = [0, 2, 7, 0] assert 4 == part2(puzzle_input) def main(): with open('input.txt') as f: puzzle_input = [int(n.strip()) for n in f.read().strip().split()] print('part1: %s' % part1(puzzle_input)) print('part2: %s' % part2(puzzle_input)) if __name__ == '__main__': main()