content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Kevin Subileau (@ksubileau) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r''' --- module: win_rds_rap short_description: Manage Resource Authorization Policies (RAP) on a Remote Desktop Gateway server description: - Creates, removes and configures a Remote Desktop resource authorization policy (RD RAP). - A RD RAP allows you to specify the network resources (computers) that users can connect to remotely through a Remote Desktop Gateway server. author: - Kevin Subileau (@ksubileau) options: name: description: - Name of the resource authorization policy. required: yes state: description: - The state of resource authorization policy. - If C(absent) will ensure the policy is removed. - If C(present) will ensure the policy is configured and exists. - If C(enabled) will ensure the policy is configured, exists and enabled. - If C(disabled) will ensure the policy is configured, exists, but disabled. type: str choices: [ absent, disabled, enabled, present ] default: present description: description: - Optional description of the resource authorization policy. type: str user_groups: description: - List of user groups that are associated with this resource authorization policy (RAP). A user must belong to one of these groups to access the RD Gateway server. - Required when a new RAP is created. type: list allowed_ports: description: - List of port numbers through which connections are allowed for this policy. - To allow connections through any port, specify 'any'. type: list computer_group_type: description: - 'The computer group type:' - 'C(rdg_group): RD Gateway-managed group' - 'C(ad_network_resource_group): Active Directory Domain Services network resource group' - 'C(allow_any): Allow users to connect to any network resource.' type: str choices: [ rdg_group, ad_network_resource_group, allow_any ] computer_group: description: - The computer group name that is associated with this resource authorization policy (RAP). - This is required when I(computer_group_type) is C(rdg_group) or C(ad_network_resource_group). type: str requirements: - Windows Server 2008R2 (6.1) or higher. - The Windows Feature "RDS-Gateway" must be enabled. seealso: - module: community.windows.win_rds_cap - module: community.windows.win_rds_rap - module: community.windows.win_rds_settings ''' EXAMPLES = r''' - name: Create a new RDS RAP community.windows.win_rds_rap: name: My RAP description: Allow all users to connect to any resource through ports 3389 and 3390 user_groups: - BUILTIN\users computer_group_type: allow_any allowed_ports: - 3389 - 3390 state: enabled ''' RETURN = r''' '''
documentation = '\n---\nmodule: win_rds_rap\nshort_description: Manage Resource Authorization Policies (RAP) on a Remote Desktop Gateway server\ndescription:\n - Creates, removes and configures a Remote Desktop resource authorization policy (RD RAP).\n - A RD RAP allows you to specify the network resources (computers) that users can connect\n to remotely through a Remote Desktop Gateway server.\nauthor:\n - Kevin Subileau (@ksubileau)\noptions:\n name:\n description:\n - Name of the resource authorization policy.\n required: yes\n state:\n description:\n - The state of resource authorization policy.\n - If C(absent) will ensure the policy is removed.\n - If C(present) will ensure the policy is configured and exists.\n - If C(enabled) will ensure the policy is configured, exists and enabled.\n - If C(disabled) will ensure the policy is configured, exists, but disabled.\n type: str\n choices: [ absent, disabled, enabled, present ]\n default: present\n description:\n description:\n - Optional description of the resource authorization policy.\n type: str\n user_groups:\n description:\n - List of user groups that are associated with this resource authorization policy (RAP).\n A user must belong to one of these groups to access the RD Gateway server.\n - Required when a new RAP is created.\n type: list\n allowed_ports:\n description:\n - List of port numbers through which connections are allowed for this policy.\n - To allow connections through any port, specify \'any\'.\n type: list\n computer_group_type:\n description:\n - \'The computer group type:\'\n - \'C(rdg_group): RD Gateway-managed group\'\n - \'C(ad_network_resource_group): Active Directory Domain Services network resource group\'\n - \'C(allow_any): Allow users to connect to any network resource.\'\n type: str\n choices: [ rdg_group, ad_network_resource_group, allow_any ]\n computer_group:\n description:\n - The computer group name that is associated with this resource authorization policy (RAP).\n - This is required when I(computer_group_type) is C(rdg_group) or C(ad_network_resource_group).\n type: str\nrequirements:\n - Windows Server 2008R2 (6.1) or higher.\n - The Windows Feature "RDS-Gateway" must be enabled.\nseealso:\n- module: community.windows.win_rds_cap\n- module: community.windows.win_rds_rap\n- module: community.windows.win_rds_settings\n' examples = '\n- name: Create a new RDS RAP\n community.windows.win_rds_rap:\n name: My RAP\n description: Allow all users to connect to any resource through ports 3389 and 3390\n user_groups:\n - BUILTIN\\users\n computer_group_type: allow_any\n allowed_ports:\n - 3389\n - 3390\n state: enabled\n' return = '\n'
name = 'causalml' __version__ = '0.11.1' __all__ = ['dataset', 'features', 'feature_selection', 'inference', 'match', 'metrics', 'optimize', 'propensity']
name = 'causalml' __version__ = '0.11.1' __all__ = ['dataset', 'features', 'feature_selection', 'inference', 'match', 'metrics', 'optimize', 'propensity']
# ************************************************************************* # # Author: Pawel Rosikiewicz # # Copyrith: IT IS NOT ALLOWED TO COPY OR TO DISTRIBUTE # # these file without written # # persmission of the Author # # Contact: [email protected] # # # # ************************************************************************* # #!/usr/bin/env python # -*- coding: utf-8 -*- "THIS FILE CONTAINS ONLY ONE VARIABLE, A BASEDIRECTORY, THAT ALLOWS MANAGING FILE DIRECTORIESS TO ALL FILES USED BY PROJECT SOFTWARE AND SCRIPTS" BASEDIR = '/Users/pawel/Desktop/Activities/005__COURSES/000__EPFLext_ADSML/Module 5 __ CAPSTONE PROJECT/skin_cancer_detection'
"""THIS FILE CONTAINS ONLY ONE VARIABLE, A BASEDIRECTORY, THAT ALLOWS MANAGING FILE DIRECTORIESS TO ALL FILES USED BY PROJECT SOFTWARE AND SCRIPTS""" basedir = '/Users/pawel/Desktop/Activities/005__COURSES/000__EPFLext_ADSML/Module 5 __ CAPSTONE PROJECT/skin_cancer_detection'
"""Encoding PDUs for use in testing.""" ############################# A-ASSOCIATE-RQ PDU ############################# # Called AET: ANY-SCP # Calling AET: ECHOSCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # User Information # Max Length Received: 16382 # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0 # Implementation Version Name: PYNETDICOM_090 a_associate_rq = ( b"\x01\x00\x00\x00\x00\xd1\x00\x01\x00\x00\x41\x4e\x59\x2d" b"\x53\x43\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43" b"\x48\x4f\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20" b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" b"\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34" b"\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e" b"\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31" b"\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31" b"\x2e\x31\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e" b"\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x3e\x51" b"\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31\x2e\x32" b"\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30" b"\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e" b"\x30\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f" b"\x4d\x5f\x30\x39\x30" ) # Called AET: ANY-SCP # Calling AET: ECHOSCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # User Information # Max Length Received: 16382 # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0 # Implementation Version Name: PYNETDICOM_090 # User Identity # Type: 1 # Response requested: 1 # Primary field: pynetdicom # Secondary field: (none) # AsynchronousOperationsWindow # Max operations invoked: 5 # Max operations performed: 5 a_associate_rq_user_async = ( b'\x01\x00\x00\x00\x00\xed\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43' b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31' b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30' b'\x38\x2e\x31\x2e\x32\x50\x00\x00\x5a\x51\x00\x00\x04\x00\x00\x3f' b'\xfe\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31' b'\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e' b'\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49' b'\x43\x4f\x4d\x5f\x30\x39\x30\x58\x00\x00\x10\x01\x01\x00\x0a\x70' b'\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x00\x53\x00\x00\x04\x00' b'\x05\x00\x05' ) # Called AET: ANY-SCP # Calling AET: GETSCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian # User Information # Max Length Received: 16382 # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0 # Implementation Version Name: PYNETDICOM_090 # SCP/SCU Role Selection # SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # SCU Role: 0 # SCP Role: 1 a_associate_rq_role = ( b'\x01\x00\x00\x00\x00\xfc\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x47\x45\x54\x53\x43\x55' b'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x20\x00\x00\x38\x01\x00\x00\x00\x30\x00\x00\x19\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31' b'\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x13\x31\x2e\x32\x2e' b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x2e\x31\x50' b'\x00\x00\x5f\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31' b'\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30' b'\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55' b'\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39' b'\x30\x54\x00\x00\x1d\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31' b'\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32' b'\x00\x01' ) # Called AET: ANY-SCP # Calling AET: STORESCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian # Transfer Syntax: 1.2.840.10008.1.2.2 Explicit VR Big Endian # User Information # Max Length Received: 16384 # Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0 # Implementation Version Name: OFFIS_DCMTK_360 # User Identity # Type: w # Response requested: 0 # Primary field: pynetdicom # Secondary field: p4ssw0rd a_associate_rq_user_id_user_pass = ( b'\x01\x00\x00\x00\x01\x1f\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x53\x54\x4f\x52\x45\x53' b'\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x20\x00\x00\x64\x01\x00\xff\x00\x30\x00\x00\x19\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31' b'\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x13\x31\x2e\x32\x2e' b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x2e\x31\x40' b'\x00\x00\x13\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38' b'\x2e\x31\x2e\x32\x2e\x32\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34' b'\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x56\x51' b'\x00\x00\x04\x00\x00\x40\x00\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32' b'\x37\x36\x2e\x30\x2e\x37\x32\x33\x30\x30\x31\x30\x2e\x33\x2e\x30' b'\x2e\x33\x2e\x36\x2e\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53\x5f' b'\x44\x43\x4d\x54\x4b\x5f\x33\x36\x30\x58\x00\x00\x18\x02\x00\x00' b'\x0a\x70\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x08\x70\x34\x73' b'\x73\x77\x30\x72\x64' ) # Called AET: ANY-SCP # Calling AET: ECHOSCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Item: # Presentation Context ID: 1 # Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # Presentation Context Item: # Presentation Context ID: 3 # Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # Presentation Context Item: # Presentation Context ID: 5 # Abstract Syntax: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # User Information # Max Length Received: 16384 # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0 # Implementation Version Name: PYNETDICOM_090 # User Identity # Type: 1 # Response requested: 1 # Primary field: pynetdicom # Secondary field: (none) # AsynchronousOperationsWindow # Max operations invoked: 5 # Max operations performed: 5 # SOP Class Extended Negotiation Item # SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # Service Class App Info: b'\x02\x00\x03\x00\x01\x00' # SOP Class Extended Negotiation Item # SOP Class: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage # Service Class App Info: b'\x02\x00\x03\x00\x01\x00' a_associate_rq_user_id_ext_neg = ( b'\x01\x00\x00\x00\x01\xab\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43' b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31' b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30' b'\x38\x2e\x31\x2e\x32\x20\x00\x00\x36\x03\x00\x00\x00\x30\x00\x00' b'\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35' b'\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x11\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x20' b'\x00\x00\x36\x05\x00\x00\x00\x30\x00\x00\x19\x31\x2e\x32\x2e\x38' b'\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31' b'\x2e\x31\x2e\x34\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e' b'\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\xa4\x51\x00\x00' b'\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36' b'\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33' b'\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59\x4e' b'\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39\x30\x58\x00\x00\x10\x01' b'\x01\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x00\x53' b'\x00\x00\x04\x00\x05\x00\x05\x56\x00\x00\x21\x00\x19\x31\x2e\x32' b'\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34' b'\x2e\x31\x2e\x31\x2e\x32\x02\x00\x03\x00\x01\x00\x56\x00\x00\x21' b'\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e' b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x02\x00\x03\x00\x01' b'\x00' ) # Needs to be updated - no presentation context items? a_associate_rq_com_ext_neg = ( b'\x02\x00\x00\x00\x01\x49\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43' b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32' b'\x21\x00\x00\x19\x03\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e' b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x21\x00\x00' b'\x19\x05\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30' b'\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x91\x51\x00' b'\x00\x04\x00\x00\x40\x00\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32' b'\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e' b'\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59' b'\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39\x30\x57\x00\x00\x4f' b'\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e' b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x00\x11\x31\x2e\x32' b'\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x34\x2e\x32\x00\x1f' b'\x00\x1d\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e' b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x38\x38\x2e\x32\x32' ) ############################# A-ASSOCIATE-AC PDU ############################# # Called AET: ANY-SCP # Calling AET: ECHOSCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Result: Accepted # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # User Information # Max Length Received: 16384 # Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0 # Implementation Version Name: OFFIS_DCMTK_360 a_associate_ac = ( b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00\x41\x4e\x59\x2d' b'\x53\x43\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43' b'\x48\x4f\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34' b'\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e' b'\x31\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31' b'\x2e\x32\x50\x00\x00\x3a\x51\x00\x00\x04\x00\x00\x40\x00' b'\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32\x37\x36\x2e\x30\x2e' b'\x37\x32\x33\x30\x30\x31\x30\x2e\x33\x2e\x30\x2e\x33\x2e' b'\x36\x2e\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53\x5f\x44' b'\x43\x4d\x54\x4b\x5f\x33\x36\x30' ) # Called AET: ANY-SCP # Calling AET: ECHOSCU # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Result: Accepted # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian # User Information # Max Length Received: 16384 # Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0 # Implementation Version Name: OFFIS_DCMTK_360 # User Identity AC # Server response: b'Accepted' a_associate_ac_user = ( b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00' b'\x41\x4e\x59\x2d\x53\x43\x50\x20\x20\x20' b'\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f' b'\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20' b'\x20\x20\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30' b'\x38\x2e\x33\x2e\x31\x2e\x31\x2e\x31\x21' b'\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00' b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31' b'\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00' b'\x00\x48\x51\x00\x00\x04\x00\x00\x40\x00' b'\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32\x37' b'\x36\x2e\x30\x2e\x37\x32\x33\x30\x30\x31' b'\x30\x2e\x33\x2e\x30\x2e\x33\x2e\x36\x2e' b'\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53' b'\x5f\x44\x43\x4d\x54\x4b\x5f\x33\x36\x30' b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65' b'\x70\x74\x65\x64' ) # Issue 342 # Called AET: ANY-SCP # Calling AET: PYNETDICOM # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Abstract Syntax: Verification SOP Class # SCP/SCU Role: Default # Result: Accepted # Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian # Presentation Context ID: 3 # Abstract Syntax: Basic Grayscale Print Management Meta SOP Class # SCP/SCU Role: Default # Result: Abstract Syntax Not Supported # Transfer Syntax: None # User Information # Max Length Received: 28672 # Implementation Class UID: 2.16.840.1 # Implementation Version Name: MergeCOM3_390IB2 # Extended Negotiation # SOP Extended: None # Async Ops: None # User ID: None a_associate_ac_zero_ts = ( b'\x02\x00\x00\x00\x00\xb6\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44' b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x21\x00\x00\x1b\x01\x00\x00\x00\x40\x00\x00\x13\x31' b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32' b'\x2e\x31\x21\x00\x00\x08\x03\x00\x03\x00\x40\x00\x00\x00\x50\x00' b'\x00\x2a\x51\x00\x00\x04\x00\x00\x70\x00\x52\x00\x00\x0a\x32\x2e' b'\x31\x36\x2e\x38\x34\x30\x2e\x31\x55\x00\x00\x10\x4d\x65\x72\x67' b'\x65\x43\x4f\x4d\x33\x5f\x33\x39\x30\x49\x42\x32' ) # Issue 361 # Called AET: ANY-SCP # Calling AET: PYNETDICOM # Application Context Name: 1.2.840.10008.3.1.1.1 # Presentation Context Items: # Presentation Context ID: 1 # Abstract Syntax: Verification SOP Class # SCP/SCU Role: Default # Result: Reject # Transfer Syntax: (no Transfer Syntax Sub-Item) # User Information # Max Length Received: 16382 # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.1.4.0 # Implementation Version Name: PYNETDICOM_140 # Extended Negotiation # SOP Extended: None # Async Ops: None # User ID: None a_associate_ac_no_ts = ( b'\x02\x00\x00\x00\x00\xa7\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43' b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44' b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e' b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e' b'\x31\x2e\x31\x21\x00\x00\x04\x01\x00\x03\x00' b'\x50\x00\x00\x3e\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20' b'\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30' b'\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x31\x2e\x34\x2e\x30' b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x31' b'\x34\x30' ) ############################# A-ASSOCIATE-RJ PDU ############################# # Result: Rejected (Permanent) # Source: DUL service-user # Reason: No reason given a_associate_rj = b"\x03\x00\x00\x00\x00\x04\x00\x01\x01\x01" ############################## A-RELEASE-RJ PDU ############################## a_release_rq = b"\x05\x00\x00\x00\x00\x04\x00\x00\x00\x00" ############################## A-RELEASE-RP PDU ############################## a_release_rp = b"\x06\x00\x00\x00\x00\x04\x00\x00\x00\x00" ############################### A-ABORT-RQ PDU ############################### # Source: DUL service-user # Reason: No reason given a_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x00\x00" ############################## A-P-ABORT-RQ PDU ############################## # Source: DUL service-provider` # Reason: Unrecognised PDU parameter a_p_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x02\x04" ################################ P-DATA-TF PDU ############################### # Contains a C-ECHO message # Context ID: 1 # Data: \x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00 # \x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38 # \x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80\x00\x00 # \x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01 # \x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00 # P-DATA # PDU type: 04 # Reserved: 00 # PDU Length: 00 00 00 54 (84) # PDU Items: # Item length: 00 00 00 50 (80) # Context ID: 01 # PDV: # 03 - Command information, last fragment # 00 00 00 00 | 04 00 00 00 | 42 00 - Command Group Length (66) # 00 00 02 00 | 12 00 00 00 | 31 2e ... 31 00- Affected SOP Class UID # 00 00 00 01 | 02 00 00 00 | 30 80 - Command Field (32816) # 00 00 20 01 | 02 00 00 00 | - MessageIDBeingRespondedTo (1) # 00 00 00 08 | | - Command Data Set Type (257) # 00 00 00 09 | - Status (0) p_data_tf = ( b"\x04\x00\x00\x00\x00\x54\x00\x00\x00\x50\x01\x03\x00\x00\x00" b"\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00\x12\x00" b"\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38" b"\x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80" b"\x00\x00\x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02" b"\x00\x00\x00\x01\x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00" ) # C-ECHO RQ p_data_tf_rq = ( b"\x04\x00\x00\x00\x00\x4a" # P-DATA b"\x00\x00\x00\x46\x01" # PDV Item b"\x03" b"\x00\x00\x00\x00\x04\x00\x00\x00\x3a\x00" # Command Group Length b"\x00\x00\x00\x00\x02\x00\x12\x00\x00\x00" # Affected SOP Class UID b"\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31\x00" b"\x00\x00\x00\x01\x02\x00\x00\x00\x30\x00" # Command Field b"\x00\x00\x10\x01\x02\x00\x00\x00\x01\x00" # Message ID b"\x00\x00\x00\x08\x02\x00\x00\x00\x01\x01" # Command Data Set Type ) # AsynchronousOperationsWindow # Max operations invoked: 5 # Max operations performed: 5 asynchronous_window_ops = b'\x53\x00\x00\x04\x00\x05\x00\x05' ############################## User Identity Sub Item ######################## # -RQ # Type: 1 # Response requested: 0 # Primary field: pynetdicom # Secondary field: (none) user_identity_rq_user_nopw = ( b'\x58\x00\x00\x10\x01\x01\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63' b'\x6f\x6d\x00\x00' ) # -RQ # Type: 1 # Response requested: 0 # Primary field: pynetdicom # Secondary field: p4ssw0rd user_identity_rq_user_pass = ( b'\x58\x00\x00\x18\x02\x00\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63' b'\x6f\x6d\x00\x08\x70\x34\x73\x73\x77\x30\x72\x64' ) # -AC # Server response: b'Accepted' user_identity_ac = ( b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65\x70\x74\x65\x64' ) ########################### Application Context Item ######################### # Application Context Name: 1.2.840.10008.3.1.1.1 application_context = ( b"\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31" b"\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e\x31" ) ########################## Presentation Context Items ####################### # -RQ # Presentation Context ID: 1 # Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian presentation_context_rq = ( b'\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31\x2e\x32\x2e' b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31\x40\x00\x00' b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31' b'\x2e\x32' ) # -AC # Presentation Context ID: 1 # Result: Accepted # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian presentation_context_ac = ( b'\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e' b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32' ) ############################ Abstract Syntax Sub Item ######################## # Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class abstract_syntax = ( b'\x30\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30' b'\x38\x2e\x31\x2e\x31' ) ############################ Transfer Syntax Sub Item ######################## # Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian transfer_syntax = ( b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30' b'\x38\x2e\x31\x2e\x32' ) ######################## Presentation Data Value Sub Item #################### presentation_data = ( b'\x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02' b'\x00\x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30' b'\x30\x38\x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30' b'\x80\x00\x00\x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02' b'\x00\x00\x00\x01\x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00' ) # Context ID: 1 # Data: \x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00 # \x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38 # \x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80\x00\x00 # \x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01 # \x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00 presentation_data_value = b'\x00\x00\x00\x50\x01' + presentation_data ######################## Maximum Length Received Sub Item #################### # Max Length Received: 16382 maximum_length_received = b'\x51\x00\x00\x04\x00\x00\x3f\xfe' ######################## Implementaion Class UID Sub Item #################### # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0 implementation_class_uid = ( b'\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e' b'\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30' b'\x2e\x39\x2e\x30' ) ##################### Implementation Version Name Sub Item ################### # Implementation Version Name: PYNETDICOM_090 implementation_version_name = ( b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f' b'\x30\x39\x30' ) ########################### Role Selection Sub Item ########################## # SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # SCU Role: 0 # SCP Role: 1 role_selection = ( b'\x54\x00\x00\x1e' b'\x00\x1a' b'\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e' b'\x34\x2e\x31\x2e\x31\x2e\x32\x31' b'\x00\x01' ) role_selection_odd = ( b'\x54\x00\x00\x1d' b'\x00\x19' b'\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e' b'\x34\x2e\x31\x2e\x31\x2e\x32' b'\x00\x01' ) ############################ User Information Item ########################### # Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0 # Implementation Version Name: PYNETDICOM_090 user_information = ( b'\x50\x00\x00\x3e\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20' b'\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30' b'\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30' b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30' b'\x39\x30' ) ######################## Extended Negotiation Sub Item ####################### # SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage # Service Class App Info: b'\x02\x00\x03\x00\x01\x00' extended_negotiation = ( b'\x56\x00\x00\x21\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30' b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x02' b'\x00\x03\x00\x01\x00' ) #################### Common Extended Negotiation Sub Item #################### # SOP Class: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage # Service Class: 1.2.840.10008.4.2 Storage Service Class # Related general SOP Class ID(s): # 1.2.840.10008.5.1.4.1.1.88.22 Enhanced SR Storage common_extended_negotiation = ( b'\x57\x00\x00\x4f\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30' b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x00' b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x34' b'\x2e\x32\x00\x1f\x00\x1d\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30' b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x38\x38' b'\x2e\x32\x32' )
"""Encoding PDUs for use in testing.""" a_associate_rq = b'\x01\x00\x00\x00\x00\xd1\x00\x01\x00\x00ANY-SCP ECHOSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1 \x00\x00.\x01\x00\x00\x000\x00\x00\x111.2.840.10008.1.1@\x00\x00\x111.2.840.10008.1.2P\x00\x00>Q\x00\x00\x04\x00\x00?\xfeR\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0U\x00\x00\x0ePYNETDICOM_090' a_associate_rq_user_async = b'\x01\x00\x00\x00\x00\xed\x00\x01\x00\x00ANY-SCP ECHOSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1 \x00\x00.\x01\x00\x00\x000\x00\x00\x111.2.840.10008.1.1@\x00\x00\x111.2.840.10008.1.2P\x00\x00ZQ\x00\x00\x04\x00\x00?\xfeR\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0U\x00\x00\x0ePYNETDICOM_090X\x00\x00\x10\x01\x01\x00\npynetdicom\x00\x00S\x00\x00\x04\x00\x05\x00\x05' a_associate_rq_role = b'\x01\x00\x00\x00\x00\xfc\x00\x01\x00\x00ANY-SCP GETSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1 \x00\x008\x01\x00\x00\x000\x00\x00\x191.2.840.10008.5.1.4.1.1.2@\x00\x00\x131.2.840.10008.1.2.1P\x00\x00_Q\x00\x00\x04\x00\x00?\xfeR\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0U\x00\x00\x0ePYNETDICOM_090T\x00\x00\x1d\x00\x191.2.840.10008.5.1.4.1.1.2\x00\x01' a_associate_rq_user_id_user_pass = b'\x01\x00\x00\x00\x01\x1f\x00\x01\x00\x00ANY-SCP STORESCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1 \x00\x00d\x01\x00\xff\x000\x00\x00\x191.2.840.10008.5.1.4.1.1.2@\x00\x00\x131.2.840.10008.1.2.1@\x00\x00\x131.2.840.10008.1.2.2@\x00\x00\x111.2.840.10008.1.2P\x00\x00VQ\x00\x00\x04\x00\x00@\x00R\x00\x00\x1b1.2.276.0.7230010.3.0.3.6.0U\x00\x00\x0fOFFIS_DCMTK_360X\x00\x00\x18\x02\x00\x00\npynetdicom\x00\x08p4ssw0rd' a_associate_rq_user_id_ext_neg = b'\x01\x00\x00\x00\x01\xab\x00\x01\x00\x00ANY-SCP ECHOSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1 \x00\x00.\x01\x00\x00\x000\x00\x00\x111.2.840.10008.1.1@\x00\x00\x111.2.840.10008.1.2 \x00\x006\x03\x00\x00\x000\x00\x00\x191.2.840.10008.5.1.4.1.1.2@\x00\x00\x111.2.840.10008.1.2 \x00\x006\x05\x00\x00\x000\x00\x00\x191.2.840.10008.5.1.4.1.1.4@\x00\x00\x111.2.840.10008.1.2P\x00\x00\xa4Q\x00\x00\x04\x00\x00?\xfeR\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0U\x00\x00\x0ePYNETDICOM_090X\x00\x00\x10\x01\x01\x00\npynetdicom\x00\x00S\x00\x00\x04\x00\x05\x00\x05V\x00\x00!\x00\x191.2.840.10008.5.1.4.1.1.2\x02\x00\x03\x00\x01\x00V\x00\x00!\x00\x191.2.840.10008.5.1.4.1.1.4\x02\x00\x03\x00\x01\x00' a_associate_rq_com_ext_neg = b'\x02\x00\x00\x00\x01I\x00\x01\x00\x00ANY-SCP ECHOSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1!\x00\x00\x19\x01\x00\x00\x00@\x00\x00\x111.2.840.10008.1.2!\x00\x00\x19\x03\x00\x00\x00@\x00\x00\x111.2.840.10008.1.2!\x00\x00\x19\x05\x00\x00\x00@\x00\x00\x111.2.840.10008.1.2P\x00\x00\x91Q\x00\x00\x04\x00\x00@\x00R\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0U\x00\x00\x0ePYNETDICOM_090W\x00\x00O\x00\x191.2.840.10008.5.1.4.1.1.4\x00\x111.2.840.10008.4.2\x00\x1f\x00\x1d1.2.840.10008.5.1.4.1.1.88.22' a_associate_ac = b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00ANY-SCP ECHOSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1!\x00\x00\x19\x01\x00\x00\x00@\x00\x00\x111.2.840.10008.1.2P\x00\x00:Q\x00\x00\x04\x00\x00@\x00R\x00\x00\x1b1.2.276.0.7230010.3.0.3.6.0U\x00\x00\x0fOFFIS_DCMTK_360' a_associate_ac_user = b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00ANY-SCP ECHOSCU \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1!\x00\x00\x19\x01\x00\x00\x00@\x00\x00\x111.2.840.10008.1.2P\x00\x00HQ\x00\x00\x04\x00\x00@\x00R\x00\x00\x1b1.2.276.0.7230010.3.0.3.6.0U\x00\x00\x0fOFFIS_DCMTK_360Y\x00\x00\n\x00\x08Accepted' a_associate_ac_zero_ts = b'\x02\x00\x00\x00\x00\xb6\x00\x01\x00\x00ANY-SCP PYNETDICOM \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1!\x00\x00\x1b\x01\x00\x00\x00@\x00\x00\x131.2.840.10008.1.2.1!\x00\x00\x08\x03\x00\x03\x00@\x00\x00\x00P\x00\x00*Q\x00\x00\x04\x00\x00p\x00R\x00\x00\n2.16.840.1U\x00\x00\x10MergeCOM3_390IB2' a_associate_ac_no_ts = b'\x02\x00\x00\x00\x00\xa7\x00\x01\x00\x00ANY-SCP PYNETDICOM \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x151.2.840.10008.3.1.1.1!\x00\x00\x04\x01\x00\x03\x00P\x00\x00>Q\x00\x00\x04\x00\x00?\xfeR\x00\x00 1.2.826.0.1.3680043.9.3811.1.4.0U\x00\x00\x0ePYNETDICOM_140' a_associate_rj = b'\x03\x00\x00\x00\x00\x04\x00\x01\x01\x01' a_release_rq = b'\x05\x00\x00\x00\x00\x04\x00\x00\x00\x00' a_release_rp = b'\x06\x00\x00\x00\x00\x04\x00\x00\x00\x00' a_abort = b'\x07\x00\x00\x00\x00\x04\x00\x00\x00\x00' a_p_abort = b'\x07\x00\x00\x00\x00\x04\x00\x00\x02\x04' p_data_tf = b'\x04\x00\x00\x00\x00T\x00\x00\x00P\x01\x03\x00\x00\x00\x00\x04\x00\x00\x00B\x00\x00\x00\x00\x00\x02\x00\x12\x00\x00\x001.2.840.10008.1.1\x00\x00\x00\x00\x01\x02\x00\x00\x000\x80\x00\x00 \x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01\x01\x00\x00\x00\t\x02\x00\x00\x00\x00\x00' p_data_tf_rq = b'\x04\x00\x00\x00\x00J\x00\x00\x00F\x01\x03\x00\x00\x00\x00\x04\x00\x00\x00:\x00\x00\x00\x00\x00\x02\x00\x12\x00\x00\x001.2.840.10008.1.1\x00\x00\x00\x00\x01\x02\x00\x00\x000\x00\x00\x00\x10\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01\x01' asynchronous_window_ops = b'S\x00\x00\x04\x00\x05\x00\x05' user_identity_rq_user_nopw = b'X\x00\x00\x10\x01\x01\x00\npynetdicom\x00\x00' user_identity_rq_user_pass = b'X\x00\x00\x18\x02\x00\x00\npynetdicom\x00\x08p4ssw0rd' user_identity_ac = b'Y\x00\x00\n\x00\x08Accepted' application_context = b'\x10\x00\x00\x151.2.840.10008.3.1.1.1' presentation_context_rq = b' \x00\x00.\x01\x00\x00\x000\x00\x00\x111.2.840.10008.1.1@\x00\x00\x111.2.840.10008.1.2' presentation_context_ac = b'!\x00\x00\x19\x01\x00\x00\x00@\x00\x00\x111.2.840.10008.1.2' abstract_syntax = b'0\x00\x00\x111.2.840.10008.1.1' transfer_syntax = b'@\x00\x00\x111.2.840.10008.1.2' presentation_data = b'\x03\x00\x00\x00\x00\x04\x00\x00\x00B\x00\x00\x00\x00\x00\x02\x00\x12\x00\x00\x001.2.840.10008.1.1\x00\x00\x00\x00\x01\x02\x00\x00\x000\x80\x00\x00 \x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01\x01\x00\x00\x00\t\x02\x00\x00\x00\x00\x00' presentation_data_value = b'\x00\x00\x00P\x01' + presentation_data maximum_length_received = b'Q\x00\x00\x04\x00\x00?\xfe' implementation_class_uid = b'R\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0' implementation_version_name = b'U\x00\x00\x0ePYNETDICOM_090' role_selection = b'T\x00\x00\x1e\x00\x1a1.2.840.10008.5.1.4.1.1.21\x00\x01' role_selection_odd = b'T\x00\x00\x1d\x00\x191.2.840.10008.5.1.4.1.1.2\x00\x01' user_information = b'P\x00\x00>Q\x00\x00\x04\x00\x00?\xfeR\x00\x00 1.2.826.0.1.3680043.9.3811.0.9.0U\x00\x00\x0ePYNETDICOM_090' extended_negotiation = b'V\x00\x00!\x00\x191.2.840.10008.5.1.4.1.1.2\x02\x00\x03\x00\x01\x00' common_extended_negotiation = b'W\x00\x00O\x00\x191.2.840.10008.5.1.4.1.1.4\x00\x111.2.840.10008.4.2\x00\x1f\x00\x1d1.2.840.10008.5.1.4.1.1.88.22'
def reverse_list(ll): """Reverses a linked list Args: ll: linked list Returns: linked list in reversed form """ # put your function implementation here return ll
def reverse_list(ll): """Reverses a linked list Args: ll: linked list Returns: linked list in reversed form """ return ll
# # PySNMP MIB module ASANTE-SWITCH-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASANTE-SWITCH-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:09:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ModuleIdentity, NotificationType, Unsigned32, ObjectIdentity, MibIdentifier, iso, Integer32, Counter64, Bits, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, TimeTicks, Gauge32, Counter32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "NotificationType", "Unsigned32", "ObjectIdentity", "MibIdentifier", "iso", "Integer32", "Counter64", "Bits", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "TimeTicks", "Gauge32", "Counter32", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class MacAddress(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6) fixedLength = 6 asante = MibIdentifier((1, 3, 6, 1, 4, 1, 298)) products = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1)) snmpAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1)) agentSw = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 1)) agentFw = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 2)) agentHw = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 3)) agentNetProtocol = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 5)) ipagentProtocol = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1)) switch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5)) eAsntSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1)) eSWAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1)) eSWAgentSW = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1)) eSWAgentHW = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2)) eSWAgentFW = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 3)) eSWBasic = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2)) eSWCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3)) eSWMonitor = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4)) productId = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2)) concProductId = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2)) intraswitch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 11)) intrastack = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 12)) friendlyswitch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 13)) intraSwitch6216M = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 16)) intraSwitch6224 = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 17)) intraCore8000 = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 22)) intraCore9000 = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 23)) agentRunTimeImageMajorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentRunTimeImageMajorVer.setStatus('mandatory') agentRunTimeImageMinorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentRunTimeImageMinorVer.setStatus('mandatory') agentImageLoadMode = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("localBoot", 2), ("netBoot", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentImageLoadMode.setStatus('mandatory') agentRemoteBootInfo = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("eepromBootInfo", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: agentRemoteBootInfo.setStatus('mandatory') agentRemoteBootProtocol = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bootp-tftp", 2), ("tftp-only", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentRemoteBootProtocol.setStatus('mandatory') agentRemoteBootFile = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentRemoteBootFile.setStatus('mandatory') agentOutBandDialString = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentOutBandDialString.setStatus('mandatory') agentOutBandBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("b1200", 2), ("b2400", 3), ("b4800", 4), ("b9600", 5), ("b19200", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentOutBandBaudRate.setStatus('mandatory') agentReset = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("reset", 2), ("not-reset", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: agentReset.setStatus('mandatory') agentHwReVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentHwReVer.setStatus('mandatory') agentHwVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentHwVer.setStatus('mandatory') agentFwMajorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentFwMajorVer.setStatus('mandatory') agentFwMinorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: agentFwMinorVer.setStatus('mandatory') agentNetProtoStkCapMap = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: agentNetProtoStkCapMap.setStatus('mandatory') ipagentIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipagentIpAddr.setStatus('mandatory') ipagentIpNetMask = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipagentIpNetMask.setStatus('mandatory') ipagentDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipagentDefaultGateway.setStatus('mandatory') ipagentBootServerAddr = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipagentBootServerAddr.setStatus('mandatory') ipagentUnAuthIP = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipagentUnAuthIP.setStatus('mandatory') ipagentUnAuthComm = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipagentUnAuthComm.setStatus('mandatory') ipagentTrapRcvrTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2), ) if mibBuilder.loadTexts: ipagentTrapRcvrTable.setStatus('mandatory') ipagentTrapRcvrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "ipagentTrapRcvrIpAddr")) if mibBuilder.loadTexts: ipagentTrapRcvrEntry.setStatus('mandatory') ipagentTrapRcvrIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipagentTrapRcvrIpAddr.setStatus('mandatory') ipagentTrapRcvrStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("valid", 2), ("invalid", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipagentTrapRcvrStatus.setStatus('mandatory') ipagentTrapRcvrComm = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipagentTrapRcvrComm.setStatus('mandatory') eSWUpDownloadAction = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("download", 3), ("upload", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWUpDownloadAction.setStatus('mandatory') eSWUpDownloadStatus = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("action-Success", 2), ("action-Failure", 3), ("in-Progress", 4), ("no-Action", 5), ("configError", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWUpDownloadStatus.setStatus('mandatory') eSWRemoteDownloadFile = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("config-File", 2), ("image-File", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWRemoteDownloadFile.setStatus('mandatory') eSWRemoteConfigServer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWRemoteConfigServer.setStatus('mandatory') eSWRemoteConfigFileName = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWRemoteConfigFileName.setStatus('mandatory') eSWConfigRetryCounter = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWConfigRetryCounter.setStatus('mandatory') eSWRemoteImageServer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 7), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWRemoteImageServer.setStatus('mandatory') eSWRemoteImageFileName = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWRemoteImageFileName.setStatus('mandatory') eSWImageRetryCounter = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWImageRetryCounter.setStatus('mandatory') eSWActiveImageBank = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bank1", 2), ("bank2", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWActiveImageBank.setStatus('mandatory') eSWRemoteDownloadImageBank = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bank1", 2), ("bank2", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWRemoteDownloadImageBank.setStatus('mandatory') eSWResetWaitTime = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 86400))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWResetWaitTime.setStatus('mandatory') eSWResetLeftTime = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWResetLeftTime.setStatus('mandatory') eSWBankImageInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14), ) if mibBuilder.loadTexts: eSWBankImageInfoTable.setStatus('mandatory') eSWBankImageInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWBankIndex")) if mibBuilder.loadTexts: eSWBankImageInfoEntry.setStatus('mandatory') eSWBankIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWBankIndex.setStatus('mandatory') eSWMajorVer = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMajorVer.setStatus('mandatory') eSWMinorVer = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMinorVer.setStatus('mandatory') eSWDateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWDateTime.setStatus('mandatory') eSWTelnetSessions = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWTelnetSessions.setStatus('mandatory') eSWTelnetSessionActive = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWTelnetSessionActive.setStatus('mandatory') eSWTelnetTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 60))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWTelnetTimeOut.setStatus('mandatory') eSWSTP = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWSTP.setStatus('mandatory') eSWUserInterfaceTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 60))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWUserInterfaceTimeOut.setStatus('mandatory') eSWBCastMcastThreshold = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 20), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWBCastMcastThreshold.setStatus('mandatory') eSWBCastMcastDuration = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 21), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWBCastMcastDuration.setStatus('mandatory') eSWCfgFileErrStatus = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 22), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWCfgFileErrStatus.setStatus('mandatory') eSWDRAMSize = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWDRAMSize.setStatus('mandatory') eSWFlashRAMSize = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWFlashRAMSize.setStatus('mandatory') eSWEEPROMSize = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWEEPROMSize.setStatus('mandatory') eSWType = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("thunderBird", 2), ("intraStack", 3), ("intraSwitch", 4), ("intraCore8000", 5), ("intraCore9000", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWType.setStatus('mandatory') eSWBkpType = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("no-Bkp", 2), ("intraStack", 3), ("intraSwitch6216M", 4), ("intraSwitch6224", 5), ("intraSwitch6224M", 6), ("intraCore8000", 7), ("intraCore9000", 8)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWBkpType.setStatus('mandatory') eSWGroupCapacity = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGroupCapacity.setStatus('mandatory') eSWStackLastChange = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 4), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWStackLastChange.setStatus('mandatory') eSWGroupInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5), ) if mibBuilder.loadTexts: eSWGroupInfoTable.setStatus('mandatory') eSWGroupInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGrpIndex")) if mibBuilder.loadTexts: eSWGroupInfoEntry.setStatus('mandatory') eSWGrpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpIndex.setStatus('mandatory') eSWGrpID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpID.setStatus('mandatory') eSWGrpState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWGrpState.setStatus('mandatory') eSWGrpNumofPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpNumofPorts.setStatus('mandatory') eSWGrpType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("other", 1), ("empty", 2), ("intraSwitch", 3), ("intraStack-Base", 4), ("intraStack-FX8", 5), ("intraStack-TX16", 6), ("enterprise6216M-TX16", 7), ("enterprise6224M-TX24", 8), ("intraCore8000", 9), ("intraCore-RJ45", 10), ("intraCore-RJ21", 11), ("intraCore-GIGA", 12)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpType.setStatus('mandatory') eSWGrpDescrption = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpDescrption.setStatus('mandatory') eSWGrpLED = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(128, 128)).setFixedLength(128)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpLED.setStatus('mandatory') eSWGrpFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("no-fan", 2), ("normal", 3), ("fail", 4), ("fan-1-bad", 5), ("fan-2-bad", 6), ("fan-1-2-bad", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpFanStatus.setStatus('mandatory') eSWGrpNumofExpPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpNumofExpPorts.setStatus('mandatory') eSWGrpLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 10), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpLastChange.setStatus('mandatory') eSWGrpReset = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noReset", 2), ("reset", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpReset.setStatus('mandatory') eSWPortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6), ) if mibBuilder.loadTexts: eSWPortInfoTable.setStatus('mandatory') eSWPortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWPortGrpIndex"), (0, "ASANTE-SWITCH-MIB", "eSWPortIndex")) if mibBuilder.loadTexts: eSWPortInfoEntry.setStatus('mandatory') eSWPortGrpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortGrpIndex.setStatus('mandatory') eSWPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortIndex.setStatus('mandatory') eSWPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("mii-Empty", 2), ("mii-FL", 3), ("mii-RJ45", 4), ("mii-FX", 5), ("rj45", 6), ("foil", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortType.setStatus('mandatory') eSWPortAutoNegAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("with", 2), ("without", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortAutoNegAbility.setStatus('mandatory') eSWPortLink = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("up", 2), ("down", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortLink.setStatus('mandatory') eSWPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("m10-Mbps", 2), ("m100-Mbps", 3), ("g1-Gbps", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortSpeed.setStatus('mandatory') eSWPortDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("half-Duplex", 2), ("full-Duplex", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortDuplex.setStatus('mandatory') eSWGpPtInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7), ) if mibBuilder.loadTexts: eSWGpPtInfoTable.setStatus('mandatory') eSWGpPtInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGpPtInfoIndex")) if mibBuilder.loadTexts: eSWGpPtInfoEntry.setStatus('mandatory') eSWGpPtInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtInfoIndex.setStatus('mandatory') eSWGpPtInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtInfoType.setStatus('mandatory') eSWGpPtInfoAutoNegAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtInfoAutoNegAbility.setStatus('mandatory') eSWGpPtInfoLink = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtInfoLink.setStatus('mandatory') eSWGpPtInfoSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtInfoSpeed.setStatus('mandatory') eSWGpPtInfoDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtInfoDuplex.setStatus('mandatory') eSWPtMacInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8), ) if mibBuilder.loadTexts: eSWPtMacInfoTable.setStatus('mandatory') eSWPtMacInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWPtMacPort"), (0, "ASANTE-SWITCH-MIB", "eSWPtMacMACADDR")) if mibBuilder.loadTexts: eSWPtMacInfoEntry.setStatus('mandatory') eSWPtMacPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPtMacPort.setStatus('mandatory') eSWPtMacMACADDR = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPtMacMACADDR.setStatus('mandatory') eSWVlanInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9)) eSWVlanVersion = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWVlanVersion.setStatus('mandatory') eSWVlanMaxCapacity = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWVlanMaxCapacity.setStatus('mandatory') eSWVlanTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWVlanTypesSupported.setStatus('mandatory') eSWVlanTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4), ) if mibBuilder.loadTexts: eSWVlanTable.setStatus('mandatory') eSWVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWVLANIndex")) if mibBuilder.loadTexts: eSWVlanEntry.setStatus('mandatory') eSWVLANIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWVLANIndex.setStatus('mandatory') eSWVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWVlanName.setStatus('mandatory') eSWVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWVlanID.setStatus('mandatory') eSWVlanMemberSet = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWVlanMemberSet.setStatus('mandatory') eSWVlanMgmAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWVlanMgmAccess.setStatus('mandatory') eSWTrunkBundleCapacity = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWTrunkBundleCapacity.setStatus('mandatory') eSWTrunkBundleTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11), ) if mibBuilder.loadTexts: eSWTrunkBundleTable.setStatus('mandatory') eSWTrunkBundleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWTrunkBundleIndex")) if mibBuilder.loadTexts: eSWTrunkBundleEntry.setStatus('mandatory') eSWTrunkBundleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWTrunkBundleIndex.setStatus('mandatory') eSWTrunkBundlePortA = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWTrunkBundlePortA.setStatus('mandatory') eSWTrunkBundlePortB = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWTrunkBundlePortB.setStatus('mandatory') eSWTrunkBundleState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWTrunkBundleState.setStatus('mandatory') eSWNetSecurityInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13)) eSWNetworkSecurityVersion = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWNetworkSecurityVersion.setStatus('mandatory') eSWNetworkSecurityMAXLevels = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWNetworkSecurityMAXLevels.setStatus('mandatory') eSWSecurityTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWSecurityTypesSupported.setStatus('mandatory') eSWSecConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4), ) if mibBuilder.loadTexts: eSWSecConfigTable.setStatus('mandatory') eSWSecConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWSecPortIndex")) if mibBuilder.loadTexts: eSWSecConfigEntry.setStatus('mandatory') eSWSecPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWSecPortIndex.setStatus('mandatory') eSWSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("newNodeDetection", 1), ("knownMACAddressForwarding", 2), ("restrictedKnownMACAddressForwarding", 3), ("knownMACAddressForwardingWithIntruderLock", 4), ("normalPort", 5), ("other", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWSecurityLevel.setStatus('mandatory') eSWSecMonitorPort = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWSecMonitorPort.setStatus('mandatory') eSWSecurityTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("other", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWSecurityTrapEnable.setStatus('mandatory') eSWSecIncSetConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7), ) if mibBuilder.loadTexts: eSWSecIncSetConfigTable.setStatus('mandatory') eSWSecIncSetConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWIncSetPort"), (0, "ASANTE-SWITCH-MIB", "eSWIncSetMACAddr")) if mibBuilder.loadTexts: eSWSecIncSetConfigEntry.setStatus('mandatory') eSWIncSetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWIncSetPort.setStatus('mandatory') eSWIncSetMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWIncSetMACAddr.setStatus('mandatory') eSWIncSetMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWIncSetMACStatus.setStatus('mandatory') eSWSecIntMACAddrTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8), ) if mibBuilder.loadTexts: eSWSecIntMACAddrTable.setStatus('mandatory') eSWSecIntMACAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWIntMACAddrPort"), (0, "ASANTE-SWITCH-MIB", "eSWIntMACAddr")) if mibBuilder.loadTexts: eSWSecIntMACAddrEntry.setStatus('mandatory') eSWIntMACAddrPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWIntMACAddrPort.setStatus('mandatory') eSWIntMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWIntMACAddr.setStatus('mandatory') eSWFilteringInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14)) eSWFilteringTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWFilteringTypesSupported.setStatus('mandatory') eSWFiltMACVLANBasedConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2), ) if mibBuilder.loadTexts: eSWFiltMACVLANBasedConfigTable.setStatus('mandatory') eSWFiltMACVLANBasedConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWVLANIndex"), (0, "ASANTE-SWITCH-MIB", "eSWFiltMACAddr")) if mibBuilder.loadTexts: eSWFiltMACVLANBasedConfigEntry.setStatus('mandatory') eSWVIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWVIDIndex.setStatus('mandatory') eSWFiltMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWFiltMACAddr.setStatus('mandatory') eSWFiltMACSts = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltMACSts.setStatus('mandatory') eSWFiltMACPortBasedConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3), ) if mibBuilder.loadTexts: eSWFiltMACPortBasedConfigTable.setStatus('mandatory') eSWFiltMACPortBasedConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWFiltPortIndex"), (0, "ASANTE-SWITCH-MIB", "eSWFiltPMACAddr")) if mibBuilder.loadTexts: eSWFiltMACPortBasedConfigEntry.setStatus('mandatory') eSWFiltPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltPortIndex.setStatus('mandatory') eSWFiltPMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 2), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltPMACAddr.setStatus('mandatory') eSWFiltPMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltPMACStatus.setStatus('mandatory') eSWFiltProtVLANBasedCFGTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4), ) if mibBuilder.loadTexts: eSWFiltProtVLANBasedCFGTable.setStatus('mandatory') eSWFiltProtVLANBasedCFGEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWVLANIndex")) if mibBuilder.loadTexts: eSWFiltProtVLANBasedCFGEntry.setStatus('mandatory') eSWFiltProtocolVID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltProtocolVID.setStatus('mandatory') eSWFiltVLANProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltVLANProtocolType.setStatus('mandatory') eSWFiltProtPortBasedCFGTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5), ) if mibBuilder.loadTexts: eSWFiltProtPortBasedCFGTable.setStatus('mandatory') eSWFiltProtPortBasedCFGEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWPortIndex")) if mibBuilder.loadTexts: eSWFiltProtPortBasedCFGEntry.setStatus('mandatory') eSWFiltProtPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltProtPort.setStatus('mandatory') eSWFiltProtcolType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWFiltProtcolType.setStatus('mandatory') eSWPortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1), ) if mibBuilder.loadTexts: eSWPortCtrlTable.setStatus('mandatory') eSWPortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGrpPtCtrlIndex"), (0, "ASANTE-SWITCH-MIB", "eSWPortCtrlIndex")) if mibBuilder.loadTexts: eSWPortCtrlEntry.setStatus('mandatory') eSWGrpPtCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGrpPtCtrlIndex.setStatus('mandatory') eSWPortCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortCtrlIndex.setStatus('mandatory') eSWPortCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlState.setStatus('mandatory') eSWPortCtrlBcastFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlBcastFilter.setStatus('mandatory') eSWPortCtrlStNFw = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlStNFw.setStatus('mandatory') eSWPortCtrlSTP = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortCtrlSTP.setStatus('mandatory') eSWPortCtrlVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlVlanID.setStatus('mandatory') eSWPortCtrlVlanTagging = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("enable8021Q", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlVlanTagging.setStatus('mandatory') eSWPortCtrlVlanGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlVlanGroups.setStatus('mandatory') eSWPortCtrlTrunkBundleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWPortCtrlTrunkBundleIndex.setStatus('mandatory') eSWPortCtrlGVRPEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlGVRPEnable.setStatus('mandatory') eSWPortCtrlSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("newNodeDetection", 1), ("knownMACAddressForwarding", 2), ("restrictedKnownMACAddressForwarding", 3), ("knownMACAddressForwardingWithIntruderLock", 4), ("normalPort", 5), ("other", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortCtrlSecurityLevel.setStatus('mandatory') eSWPortProtocolFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 13), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWPortProtocolFilter.setStatus('mandatory') eSWGpPtCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2), ) if mibBuilder.loadTexts: eSWGpPtCtrlTable.setStatus('mandatory') eSWGpPtCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGpPtCtrlIndex")) if mibBuilder.loadTexts: eSWGpPtCtrlEntry.setStatus('mandatory') eSWGpPtCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtCtrlIndex.setStatus('mandatory') eSWGpPtCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWGpPtCtrlState.setStatus('mandatory') eSWGpPtCtrlBcastFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWGpPtCtrlBcastFilter.setStatus('mandatory') eSWGpPtCtrlStNFw = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtCtrlStNFw.setStatus('mandatory') eSWGpPtCtrlSTP = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWGpPtCtrlSTP.setStatus('mandatory') eSWGpPtCtrlSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWGpPtCtrlSecurityLevel.setStatus('mandatory') eSWGpPtProtocolFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWGpPtProtocolFilter.setStatus('mandatory') eSWAutoPortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3), ) if mibBuilder.loadTexts: eSWAutoPortCtrlTable.setStatus('mandatory') eSWAutoPortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWAutoNegGrpIndex"), (0, "ASANTE-SWITCH-MIB", "eSWAutoNegPortIndex")) if mibBuilder.loadTexts: eSWAutoPortCtrlEntry.setStatus('mandatory') eSWAutoNegGrpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWAutoNegGrpIndex.setStatus('mandatory') eSWAutoNegPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWAutoNegPortIndex.setStatus('mandatory') eSWAutoNegAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWAutoNegAdminState.setStatus('mandatory') eSWAutoNegRemoteAble = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("able", 2), ("not-able", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWAutoNegRemoteAble.setStatus('mandatory') eSWAutoNegAutoConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("configuring", 2), ("complete", 3), ("disable", 4), ("parallel-detect-fail", 5), ("remote-fault", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWAutoNegAutoConfig.setStatus('mandatory') eSWAutoNegLocalAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWAutoNegLocalAbility.setStatus('mandatory') eSWAutoNegAdvertisedAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWAutoNegAdvertisedAbility.setStatus('mandatory') eSWAutoNegReceivedAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWAutoNegReceivedAbility.setStatus('mandatory') eSWAutoNegRestartAutoConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("reStart", 2), ("noRestart", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eSWAutoNegRestartAutoConfig.setStatus('mandatory') eSWMonIPTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1), ) if mibBuilder.loadTexts: eSWMonIPTable.setStatus('mandatory') eSWMonIPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWMonIP")) if mibBuilder.loadTexts: eSWMonIPEntry.setStatus('mandatory') eSWMonIP = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMonIP.setStatus('mandatory') eSWMonMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 2), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMonMAC.setStatus('mandatory') eSWMonVLANID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMonVLANID.setStatus('mandatory') eSWMonGrp = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMonGrp.setStatus('mandatory') eSWMonPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eSWMonPort.setStatus('mandatory') eSWFanFail = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,3)).setObjects(("ASANTE-SWITCH-MIB", "eSWGrpIndex")) eSWExpPortConnectStateChange = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,4)).setObjects(("ASANTE-SWITCH-MIB", "eSWGrpIndex"), ("ASANTE-SWITCH-MIB", "eSWPortIndex")) eSWIPSpoofing = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,5)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonPort")) eSWStationMove = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,6)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonPort")) eSWNewNodeDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,7)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonIP")) eSWIntruderDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,8)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWSecurityLevel")) eSWIntruderPortDisable = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,9)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonIP")) eSWEnhIPSpoofing = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,10)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort")) eSWEnhStationMove = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,11)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort")) eSWEnhNewNodeDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,12)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonIP")) eSWEnhIntruderDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,13)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonIP")) eSWEnhIntruderPortDisable = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,14)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonIP")) mibBuilder.exportSymbols("ASANTE-SWITCH-MIB", eSWUpDownloadStatus=eSWUpDownloadStatus, eSWGroupInfoTable=eSWGroupInfoTable, eSWCtrl=eSWCtrl, agentFwMinorVer=agentFwMinorVer, intraswitch=intraswitch, eSWResetWaitTime=eSWResetWaitTime, eSWFiltProtcolType=eSWFiltProtcolType, snmpAgent=snmpAgent, eSWFiltMACAddr=eSWFiltMACAddr, eSWRemoteConfigServer=eSWRemoteConfigServer, eSWPortInfoTable=eSWPortInfoTable, eSWTrunkBundleEntry=eSWTrunkBundleEntry, eSWMonMAC=eSWMonMAC, eSWGpPtInfoEntry=eSWGpPtInfoEntry, eSWNetSecurityInfo=eSWNetSecurityInfo, eSWGpPtInfoType=eSWGpPtInfoType, eSWTrunkBundleIndex=eSWTrunkBundleIndex, eSWAutoNegLocalAbility=eSWAutoNegLocalAbility, eSWBankImageInfoTable=eSWBankImageInfoTable, eSWSecurityTrapEnable=eSWSecurityTrapEnable, eSWMonIP=eSWMonIP, eSWTelnetSessionActive=eSWTelnetSessionActive, eSWStackLastChange=eSWStackLastChange, eSWFanFail=eSWFanFail, eSWPortCtrlState=eSWPortCtrlState, eSWResetLeftTime=eSWResetLeftTime, eAsntSwitch=eAsntSwitch, ipagentTrapRcvrEntry=ipagentTrapRcvrEntry, friendlyswitch=friendlyswitch, eSWAgentFW=eSWAgentFW, agentFwMajorVer=agentFwMajorVer, eSWBankIndex=eSWBankIndex, eSWTrunkBundlePortB=eSWTrunkBundlePortB, agentRemoteBootInfo=agentRemoteBootInfo, eSWSecurityTypesSupported=eSWSecurityTypesSupported, eSWPtMacMACADDR=eSWPtMacMACADDR, eSWFiltProtocolVID=eSWFiltProtocolVID, eSWFiltVLANProtocolType=eSWFiltVLANProtocolType, eSWRemoteConfigFileName=eSWRemoteConfigFileName, eSWAutoNegAutoConfig=eSWAutoNegAutoConfig, ipagentDefaultGateway=ipagentDefaultGateway, eSWVlanMemberSet=eSWVlanMemberSet, eSWSecPortIndex=eSWSecPortIndex, eSWPortCtrlGVRPEnable=eSWPortCtrlGVRPEnable, eSWAutoNegAdvertisedAbility=eSWAutoNegAdvertisedAbility, agentFw=agentFw, eSWVlanInfo=eSWVlanInfo, eSWFiltPMACAddr=eSWFiltPMACAddr, asante=asante, eSWEEPROMSize=eSWEEPROMSize, eSWUpDownloadAction=eSWUpDownloadAction, eSWTrunkBundlePortA=eSWTrunkBundlePortA, eSWSTP=eSWSTP, agentHwVer=agentHwVer, eSWFiltMACPortBasedConfigTable=eSWFiltMACPortBasedConfigTable, eSWVIDIndex=eSWVIDIndex, intraCore8000=intraCore8000, eSWGpPtCtrlBcastFilter=eSWGpPtCtrlBcastFilter, eSWMonVLANID=eSWMonVLANID, eSWAutoNegRemoteAble=eSWAutoNegRemoteAble, eSWGrpNumofPorts=eSWGrpNumofPorts, eSWGrpLED=eSWGrpLED, agentHw=agentHw, eSWMonPort=eSWMonPort, intraSwitch6216M=intraSwitch6216M, eSWIncSetMACStatus=eSWIncSetMACStatus, eSWIntruderPortDisable=eSWIntruderPortDisable, eSWDRAMSize=eSWDRAMSize, eSWPortCtrlBcastFilter=eSWPortCtrlBcastFilter, ipagentBootServerAddr=ipagentBootServerAddr, eSWPtMacInfoEntry=eSWPtMacInfoEntry, eSWVlanMaxCapacity=eSWVlanMaxCapacity, eSWGpPtCtrlStNFw=eSWGpPtCtrlStNFw, eSWEnhIntruderDetected=eSWEnhIntruderDetected, ipagentUnAuthIP=ipagentUnAuthIP, eSWFiltProtPort=eSWFiltProtPort, eSWPortDuplex=eSWPortDuplex, eSWEnhIntruderPortDisable=eSWEnhIntruderPortDisable, eSWEnhIPSpoofing=eSWEnhIPSpoofing, eSWAgentHW=eSWAgentHW, agentNetProtocol=agentNetProtocol, eSWVlanVersion=eSWVlanVersion, eSWSecMonitorPort=eSWSecMonitorPort, eSWSecIntMACAddrTable=eSWSecIntMACAddrTable, eSWPortCtrlVlanID=eSWPortCtrlVlanID, eSWMonIPTable=eSWMonIPTable, eSWAutoPortCtrlTable=eSWAutoPortCtrlTable, eSWGpPtCtrlState=eSWGpPtCtrlState, agentRemoteBootFile=agentRemoteBootFile, agentOutBandBaudRate=agentOutBandBaudRate, ipagentTrapRcvrStatus=ipagentTrapRcvrStatus, ipagentProtocol=ipagentProtocol, eSWMajorVer=eSWMajorVer, eSWDateTime=eSWDateTime, eSWRemoteDownloadFile=eSWRemoteDownloadFile, eSWGrpType=eSWGrpType, eSWRemoteImageServer=eSWRemoteImageServer, eSWPortAutoNegAbility=eSWPortAutoNegAbility, eSWBkpType=eSWBkpType, eSWFiltMACPortBasedConfigEntry=eSWFiltMACPortBasedConfigEntry, eSWGrpReset=eSWGrpReset, eSWAutoPortCtrlEntry=eSWAutoPortCtrlEntry, eSWFiltMACVLANBasedConfigEntry=eSWFiltMACVLANBasedConfigEntry, eSWPortCtrlEntry=eSWPortCtrlEntry, eSWRemoteImageFileName=eSWRemoteImageFileName, agentNetProtoStkCapMap=agentNetProtoStkCapMap, eSWGpPtCtrlTable=eSWGpPtCtrlTable, eSWRemoteDownloadImageBank=eSWRemoteDownloadImageBank, eSWSecurityLevel=eSWSecurityLevel, eSWFiltPMACStatus=eSWFiltPMACStatus, eSWSecIncSetConfigEntry=eSWSecIncSetConfigEntry, eSWCfgFileErrStatus=eSWCfgFileErrStatus, eSWNetworkSecurityVersion=eSWNetworkSecurityVersion, eSWGrpPtCtrlIndex=eSWGrpPtCtrlIndex, agentRemoteBootProtocol=agentRemoteBootProtocol, eSWBCastMcastDuration=eSWBCastMcastDuration, eSWBasic=eSWBasic, eSWTrunkBundleState=eSWTrunkBundleState, eSWPortCtrlSecurityLevel=eSWPortCtrlSecurityLevel, eSWSecConfigTable=eSWSecConfigTable, eSWPortProtocolFilter=eSWPortProtocolFilter, eSWTelnetSessions=eSWTelnetSessions, eSWIncSetMACAddr=eSWIncSetMACAddr, eSWIntMACAddr=eSWIntMACAddr, eSWGpPtInfoLink=eSWGpPtInfoLink, eSWGrpFanStatus=eSWGrpFanStatus, eSWTrunkBundleCapacity=eSWTrunkBundleCapacity, agentReset=agentReset, ipagentTrapRcvrComm=ipagentTrapRcvrComm, eSWIPSpoofing=eSWIPSpoofing, eSWTelnetTimeOut=eSWTelnetTimeOut, intrastack=intrastack, eSWPtMacPort=eSWPtMacPort, eSWBankImageInfoEntry=eSWBankImageInfoEntry, eSWSecConfigEntry=eSWSecConfigEntry, eSWPortCtrlSTP=eSWPortCtrlSTP, eSWStationMove=eSWStationMove, eSWFilteringTypesSupported=eSWFilteringTypesSupported, eSWFiltMACSts=eSWFiltMACSts, eSWGpPtInfoAutoNegAbility=eSWGpPtInfoAutoNegAbility, agentOutBandDialString=agentOutBandDialString, productId=productId, eSWPortGrpIndex=eSWPortGrpIndex, eSWGpPtInfoDuplex=eSWGpPtInfoDuplex, eSWGpPtInfoTable=eSWGpPtInfoTable, eSWFiltProtPortBasedCFGEntry=eSWFiltProtPortBasedCFGEntry, products=products, ipagentTrapRcvrIpAddr=ipagentTrapRcvrIpAddr, eSWGrpID=eSWGrpID, eSWGpPtCtrlIndex=eSWGpPtCtrlIndex, eSWAutoNegReceivedAbility=eSWAutoNegReceivedAbility, agentRunTimeImageMinorVer=agentRunTimeImageMinorVer, eSWSecIncSetConfigTable=eSWSecIncSetConfigTable, eSWPortCtrlIndex=eSWPortCtrlIndex, eSWVlanEntry=eSWVlanEntry, eSWGpPtProtocolFilter=eSWGpPtProtocolFilter, eSWIntruderDetected=eSWIntruderDetected, ipagentTrapRcvrTable=ipagentTrapRcvrTable, eSWFiltProtVLANBasedCFGEntry=eSWFiltProtVLANBasedCFGEntry, eSWGrpDescrption=eSWGrpDescrption, eSWVlanTable=eSWVlanTable, eSWBCastMcastThreshold=eSWBCastMcastThreshold, eSWAgentSW=eSWAgentSW, eSWFlashRAMSize=eSWFlashRAMSize, eSWNetworkSecurityMAXLevels=eSWNetworkSecurityMAXLevels, intraCore9000=intraCore9000, eSWVlanMgmAccess=eSWVlanMgmAccess, ipagentIpNetMask=ipagentIpNetMask, eSWGpPtCtrlSecurityLevel=eSWGpPtCtrlSecurityLevel, eSWFiltProtVLANBasedCFGTable=eSWFiltProtVLANBasedCFGTable, eSWPortType=eSWPortType, agentRunTimeImageMajorVer=agentRunTimeImageMajorVer, eSWGrpState=eSWGrpState, eSWSecIntMACAddrEntry=eSWSecIntMACAddrEntry, eSWAutoNegPortIndex=eSWAutoNegPortIndex, eSWPortCtrlVlanTagging=eSWPortCtrlVlanTagging, eSWPortCtrlTable=eSWPortCtrlTable, eSWPortCtrlTrunkBundleIndex=eSWPortCtrlTrunkBundleIndex, eSWAutoNegAdminState=eSWAutoNegAdminState, eSWFiltPortIndex=eSWFiltPortIndex, agentHwReVer=agentHwReVer, eSWAutoNegGrpIndex=eSWAutoNegGrpIndex, eSWMonitor=eSWMonitor, eSWMinorVer=eSWMinorVer, eSWGrpLastChange=eSWGrpLastChange, eSWGpPtCtrlSTP=eSWGpPtCtrlSTP, eSWActiveImageBank=eSWActiveImageBank, ipagentUnAuthComm=ipagentUnAuthComm, eSWAutoNegRestartAutoConfig=eSWAutoNegRestartAutoConfig, eSWVlanName=eSWVlanName, eSWGpPtInfoSpeed=eSWGpPtInfoSpeed, eSWPortCtrlVlanGroups=eSWPortCtrlVlanGroups, eSWEnhNewNodeDetected=eSWEnhNewNodeDetected, eSWPortInfoEntry=eSWPortInfoEntry, eSWGrpNumofExpPorts=eSWGrpNumofExpPorts, ipagentIpAddr=ipagentIpAddr, eSWIntMACAddrPort=eSWIntMACAddrPort, eSWMonGrp=eSWMonGrp, eSWVlanTypesSupported=eSWVlanTypesSupported, eSWGroupCapacity=eSWGroupCapacity, eSWImageRetryCounter=eSWImageRetryCounter, eSWVLANIndex=eSWVLANIndex, eSWMonIPEntry=eSWMonIPEntry, eSWPortSpeed=eSWPortSpeed, eSWGrpIndex=eSWGrpIndex, eSWPtMacInfoTable=eSWPtMacInfoTable, eSWEnhStationMove=eSWEnhStationMove, eSWFiltProtPortBasedCFGTable=eSWFiltProtPortBasedCFGTable, agentSw=agentSw, eSWType=eSWType, eSWGpPtInfoIndex=eSWGpPtInfoIndex, eSWExpPortConnectStateChange=eSWExpPortConnectStateChange, eSWConfigRetryCounter=eSWConfigRetryCounter, eSWTrunkBundleTable=eSWTrunkBundleTable, eSWAgent=eSWAgent, eSWPortIndex=eSWPortIndex, eSWFiltMACVLANBasedConfigTable=eSWFiltMACVLANBasedConfigTable, eSWUserInterfaceTimeOut=eSWUserInterfaceTimeOut, eSWNewNodeDetected=eSWNewNodeDetected, eSWGroupInfoEntry=eSWGroupInfoEntry, eSWPortLink=eSWPortLink, eSWVlanID=eSWVlanID, eSWIncSetPort=eSWIncSetPort, agentImageLoadMode=agentImageLoadMode, intraSwitch6224=intraSwitch6224, MacAddress=MacAddress, eSWPortCtrlStNFw=eSWPortCtrlStNFw, eSWFilteringInfo=eSWFilteringInfo, concProductId=concProductId, switch=switch, eSWGpPtCtrlEntry=eSWGpPtCtrlEntry)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, value_size_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (module_identity, notification_type, unsigned32, object_identity, mib_identifier, iso, integer32, counter64, bits, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, enterprises, time_ticks, gauge32, counter32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'NotificationType', 'Unsigned32', 'ObjectIdentity', 'MibIdentifier', 'iso', 'Integer32', 'Counter64', 'Bits', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'enterprises', 'TimeTicks', 'Gauge32', 'Counter32', 'NotificationType') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') class Macaddress(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6) fixed_length = 6 asante = mib_identifier((1, 3, 6, 1, 4, 1, 298)) products = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1)) snmp_agent = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 1)) agent_sw = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 1)) agent_fw = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 2)) agent_hw = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 3)) agent_net_protocol = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 5)) ipagent_protocol = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1)) switch = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5)) e_asnt_switch = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1)) e_sw_agent = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1)) e_sw_agent_sw = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1)) e_sw_agent_hw = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2)) e_sw_agent_fw = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 3)) e_sw_basic = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2)) e_sw_ctrl = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3)) e_sw_monitor = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4)) product_id = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2)) conc_product_id = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2)) intraswitch = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 11)) intrastack = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 12)) friendlyswitch = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 13)) intra_switch6216_m = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 16)) intra_switch6224 = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 17)) intra_core8000 = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 22)) intra_core9000 = mib_identifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 23)) agent_run_time_image_major_ver = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentRunTimeImageMajorVer.setStatus('mandatory') agent_run_time_image_minor_ver = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentRunTimeImageMinorVer.setStatus('mandatory') agent_image_load_mode = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('localBoot', 2), ('netBoot', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentImageLoadMode.setStatus('mandatory') agent_remote_boot_info = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('eepromBootInfo', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: agentRemoteBootInfo.setStatus('mandatory') agent_remote_boot_protocol = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bootp-tftp', 2), ('tftp-only', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentRemoteBootProtocol.setStatus('mandatory') agent_remote_boot_file = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentRemoteBootFile.setStatus('mandatory') agent_out_band_dial_string = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentOutBandDialString.setStatus('mandatory') agent_out_band_baud_rate = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('b1200', 2), ('b2400', 3), ('b4800', 4), ('b9600', 5), ('b19200', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentOutBandBaudRate.setStatus('mandatory') agent_reset = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('reset', 2), ('not-reset', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: agentReset.setStatus('mandatory') agent_hw_re_ver = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentHwReVer.setStatus('mandatory') agent_hw_ver = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 3, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentHwVer.setStatus('mandatory') agent_fw_major_ver = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentFwMajorVer.setStatus('mandatory') agent_fw_minor_ver = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 2, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: agentFwMinorVer.setStatus('mandatory') agent_net_proto_stk_cap_map = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: agentNetProtoStkCapMap.setStatus('mandatory') ipagent_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipagentIpAddr.setStatus('mandatory') ipagent_ip_net_mask = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipagentIpNetMask.setStatus('mandatory') ipagent_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipagentDefaultGateway.setStatus('mandatory') ipagent_boot_server_addr = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipagentBootServerAddr.setStatus('mandatory') ipagent_un_auth_ip = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipagentUnAuthIP.setStatus('mandatory') ipagent_un_auth_comm = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipagentUnAuthComm.setStatus('mandatory') ipagent_trap_rcvr_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2)) if mibBuilder.loadTexts: ipagentTrapRcvrTable.setStatus('mandatory') ipagent_trap_rcvr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'ipagentTrapRcvrIpAddr')) if mibBuilder.loadTexts: ipagentTrapRcvrEntry.setStatus('mandatory') ipagent_trap_rcvr_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipagentTrapRcvrIpAddr.setStatus('mandatory') ipagent_trap_rcvr_status = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('valid', 2), ('invalid', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipagentTrapRcvrStatus.setStatus('mandatory') ipagent_trap_rcvr_comm = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipagentTrapRcvrComm.setStatus('mandatory') e_sw_up_download_action = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('off', 2), ('download', 3), ('upload', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWUpDownloadAction.setStatus('mandatory') e_sw_up_download_status = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('action-Success', 2), ('action-Failure', 3), ('in-Progress', 4), ('no-Action', 5), ('configError', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWUpDownloadStatus.setStatus('mandatory') e_sw_remote_download_file = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('config-File', 2), ('image-File', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWRemoteDownloadFile.setStatus('mandatory') e_sw_remote_config_server = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 4), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWRemoteConfigServer.setStatus('mandatory') e_sw_remote_config_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWRemoteConfigFileName.setStatus('mandatory') e_sw_config_retry_counter = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWConfigRetryCounter.setStatus('mandatory') e_sw_remote_image_server = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 7), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWRemoteImageServer.setStatus('mandatory') e_sw_remote_image_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWRemoteImageFileName.setStatus('mandatory') e_sw_image_retry_counter = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWImageRetryCounter.setStatus('mandatory') e_sw_active_image_bank = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bank1', 2), ('bank2', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWActiveImageBank.setStatus('mandatory') e_sw_remote_download_image_bank = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('bank1', 2), ('bank2', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWRemoteDownloadImageBank.setStatus('mandatory') e_sw_reset_wait_time = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 86400))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWResetWaitTime.setStatus('mandatory') e_sw_reset_left_time = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWResetLeftTime.setStatus('mandatory') e_sw_bank_image_info_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14)) if mibBuilder.loadTexts: eSWBankImageInfoTable.setStatus('mandatory') e_sw_bank_image_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWBankIndex')) if mibBuilder.loadTexts: eSWBankImageInfoEntry.setStatus('mandatory') e_sw_bank_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWBankIndex.setStatus('mandatory') e_sw_major_ver = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMajorVer.setStatus('mandatory') e_sw_minor_ver = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMinorVer.setStatus('mandatory') e_sw_date_time = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWDateTime.setStatus('mandatory') e_sw_telnet_sessions = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWTelnetSessions.setStatus('mandatory') e_sw_telnet_session_active = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWTelnetSessionActive.setStatus('mandatory') e_sw_telnet_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 60))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWTelnetTimeOut.setStatus('mandatory') e_swstp = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWSTP.setStatus('mandatory') e_sw_user_interface_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 60))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWUserInterfaceTimeOut.setStatus('mandatory') e_swb_cast_mcast_threshold = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 20), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWBCastMcastThreshold.setStatus('mandatory') e_swb_cast_mcast_duration = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 21), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWBCastMcastDuration.setStatus('mandatory') e_sw_cfg_file_err_status = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 22), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWCfgFileErrStatus.setStatus('mandatory') e_swdram_size = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWDRAMSize.setStatus('mandatory') e_sw_flash_ram_size = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWFlashRAMSize.setStatus('mandatory') e_sweeprom_size = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWEEPROMSize.setStatus('mandatory') e_sw_type = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('thunderBird', 2), ('intraStack', 3), ('intraSwitch', 4), ('intraCore8000', 5), ('intraCore9000', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWType.setStatus('mandatory') e_sw_bkp_type = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('no-Bkp', 2), ('intraStack', 3), ('intraSwitch6216M', 4), ('intraSwitch6224', 5), ('intraSwitch6224M', 6), ('intraCore8000', 7), ('intraCore9000', 8)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWBkpType.setStatus('mandatory') e_sw_group_capacity = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGroupCapacity.setStatus('mandatory') e_sw_stack_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 4), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWStackLastChange.setStatus('mandatory') e_sw_group_info_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5)) if mibBuilder.loadTexts: eSWGroupInfoTable.setStatus('mandatory') e_sw_group_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWGrpIndex')) if mibBuilder.loadTexts: eSWGroupInfoEntry.setStatus('mandatory') e_sw_grp_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpIndex.setStatus('mandatory') e_sw_grp_id = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpID.setStatus('mandatory') e_sw_grp_state = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWGrpState.setStatus('mandatory') e_sw_grp_numof_ports = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpNumofPorts.setStatus('mandatory') e_sw_grp_type = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('other', 1), ('empty', 2), ('intraSwitch', 3), ('intraStack-Base', 4), ('intraStack-FX8', 5), ('intraStack-TX16', 6), ('enterprise6216M-TX16', 7), ('enterprise6224M-TX24', 8), ('intraCore8000', 9), ('intraCore-RJ45', 10), ('intraCore-RJ21', 11), ('intraCore-GIGA', 12)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpType.setStatus('mandatory') e_sw_grp_descrption = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpDescrption.setStatus('mandatory') e_sw_grp_led = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(128, 128)).setFixedLength(128)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpLED.setStatus('mandatory') e_sw_grp_fan_status = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('no-fan', 2), ('normal', 3), ('fail', 4), ('fan-1-bad', 5), ('fan-2-bad', 6), ('fan-1-2-bad', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpFanStatus.setStatus('mandatory') e_sw_grp_numof_exp_ports = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpNumofExpPorts.setStatus('mandatory') e_sw_grp_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 10), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpLastChange.setStatus('mandatory') e_sw_grp_reset = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noReset', 2), ('reset', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpReset.setStatus('mandatory') e_sw_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6)) if mibBuilder.loadTexts: eSWPortInfoTable.setStatus('mandatory') e_sw_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWPortGrpIndex'), (0, 'ASANTE-SWITCH-MIB', 'eSWPortIndex')) if mibBuilder.loadTexts: eSWPortInfoEntry.setStatus('mandatory') e_sw_port_grp_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortGrpIndex.setStatus('mandatory') e_sw_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortIndex.setStatus('mandatory') e_sw_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('mii-Empty', 2), ('mii-FL', 3), ('mii-RJ45', 4), ('mii-FX', 5), ('rj45', 6), ('foil', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortType.setStatus('mandatory') e_sw_port_auto_neg_ability = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('with', 2), ('without', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortAutoNegAbility.setStatus('mandatory') e_sw_port_link = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('up', 2), ('down', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortLink.setStatus('mandatory') e_sw_port_speed = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('m10-Mbps', 2), ('m100-Mbps', 3), ('g1-Gbps', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortSpeed.setStatus('mandatory') e_sw_port_duplex = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('half-Duplex', 2), ('full-Duplex', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortDuplex.setStatus('mandatory') e_sw_gp_pt_info_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7)) if mibBuilder.loadTexts: eSWGpPtInfoTable.setStatus('mandatory') e_sw_gp_pt_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWGpPtInfoIndex')) if mibBuilder.loadTexts: eSWGpPtInfoEntry.setStatus('mandatory') e_sw_gp_pt_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtInfoIndex.setStatus('mandatory') e_sw_gp_pt_info_type = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtInfoType.setStatus('mandatory') e_sw_gp_pt_info_auto_neg_ability = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtInfoAutoNegAbility.setStatus('mandatory') e_sw_gp_pt_info_link = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtInfoLink.setStatus('mandatory') e_sw_gp_pt_info_speed = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtInfoSpeed.setStatus('mandatory') e_sw_gp_pt_info_duplex = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtInfoDuplex.setStatus('mandatory') e_sw_pt_mac_info_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8)) if mibBuilder.loadTexts: eSWPtMacInfoTable.setStatus('mandatory') e_sw_pt_mac_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWPtMacPort'), (0, 'ASANTE-SWITCH-MIB', 'eSWPtMacMACADDR')) if mibBuilder.loadTexts: eSWPtMacInfoEntry.setStatus('mandatory') e_sw_pt_mac_port = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPtMacPort.setStatus('mandatory') e_sw_pt_mac_macaddr = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPtMacMACADDR.setStatus('mandatory') e_sw_vlan_info = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9)) e_sw_vlan_version = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWVlanVersion.setStatus('mandatory') e_sw_vlan_max_capacity = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWVlanMaxCapacity.setStatus('mandatory') e_sw_vlan_types_supported = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWVlanTypesSupported.setStatus('mandatory') e_sw_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4)) if mibBuilder.loadTexts: eSWVlanTable.setStatus('mandatory') e_sw_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWVLANIndex')) if mibBuilder.loadTexts: eSWVlanEntry.setStatus('mandatory') e_swvlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWVLANIndex.setStatus('mandatory') e_sw_vlan_name = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWVlanName.setStatus('mandatory') e_sw_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWVlanID.setStatus('mandatory') e_sw_vlan_member_set = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 4), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWVlanMemberSet.setStatus('mandatory') e_sw_vlan_mgm_access = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWVlanMgmAccess.setStatus('mandatory') e_sw_trunk_bundle_capacity = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWTrunkBundleCapacity.setStatus('mandatory') e_sw_trunk_bundle_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11)) if mibBuilder.loadTexts: eSWTrunkBundleTable.setStatus('mandatory') e_sw_trunk_bundle_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWTrunkBundleIndex')) if mibBuilder.loadTexts: eSWTrunkBundleEntry.setStatus('mandatory') e_sw_trunk_bundle_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWTrunkBundleIndex.setStatus('mandatory') e_sw_trunk_bundle_port_a = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWTrunkBundlePortA.setStatus('mandatory') e_sw_trunk_bundle_port_b = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWTrunkBundlePortB.setStatus('mandatory') e_sw_trunk_bundle_state = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWTrunkBundleState.setStatus('mandatory') e_sw_net_security_info = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13)) e_sw_network_security_version = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWNetworkSecurityVersion.setStatus('mandatory') e_sw_network_security_max_levels = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWNetworkSecurityMAXLevels.setStatus('mandatory') e_sw_security_types_supported = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWSecurityTypesSupported.setStatus('mandatory') e_sw_sec_config_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4)) if mibBuilder.loadTexts: eSWSecConfigTable.setStatus('mandatory') e_sw_sec_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWSecPortIndex')) if mibBuilder.loadTexts: eSWSecConfigEntry.setStatus('mandatory') e_sw_sec_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWSecPortIndex.setStatus('mandatory') e_sw_security_level = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('newNodeDetection', 1), ('knownMACAddressForwarding', 2), ('restrictedKnownMACAddressForwarding', 3), ('knownMACAddressForwardingWithIntruderLock', 4), ('normalPort', 5), ('other', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWSecurityLevel.setStatus('mandatory') e_sw_sec_monitor_port = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWSecMonitorPort.setStatus('mandatory') e_sw_security_trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('disable', 2), ('other', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWSecurityTrapEnable.setStatus('mandatory') e_sw_sec_inc_set_config_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7)) if mibBuilder.loadTexts: eSWSecIncSetConfigTable.setStatus('mandatory') e_sw_sec_inc_set_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWIncSetPort'), (0, 'ASANTE-SWITCH-MIB', 'eSWIncSetMACAddr')) if mibBuilder.loadTexts: eSWSecIncSetConfigEntry.setStatus('mandatory') e_sw_inc_set_port = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWIncSetPort.setStatus('mandatory') e_sw_inc_set_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWIncSetMACAddr.setStatus('mandatory') e_sw_inc_set_mac_status = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWIncSetMACStatus.setStatus('mandatory') e_sw_sec_int_mac_addr_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8)) if mibBuilder.loadTexts: eSWSecIntMACAddrTable.setStatus('mandatory') e_sw_sec_int_mac_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWIntMACAddrPort'), (0, 'ASANTE-SWITCH-MIB', 'eSWIntMACAddr')) if mibBuilder.loadTexts: eSWSecIntMACAddrEntry.setStatus('mandatory') e_sw_int_mac_addr_port = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWIntMACAddrPort.setStatus('mandatory') e_sw_int_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWIntMACAddr.setStatus('mandatory') e_sw_filtering_info = mib_identifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14)) e_sw_filtering_types_supported = mib_scalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWFilteringTypesSupported.setStatus('mandatory') e_sw_filt_macvlan_based_config_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2)) if mibBuilder.loadTexts: eSWFiltMACVLANBasedConfigTable.setStatus('mandatory') e_sw_filt_macvlan_based_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWVLANIndex'), (0, 'ASANTE-SWITCH-MIB', 'eSWFiltMACAddr')) if mibBuilder.loadTexts: eSWFiltMACVLANBasedConfigEntry.setStatus('mandatory') e_swvid_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWVIDIndex.setStatus('mandatory') e_sw_filt_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWFiltMACAddr.setStatus('mandatory') e_sw_filt_mac_sts = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltMACSts.setStatus('mandatory') e_sw_filt_mac_port_based_config_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3)) if mibBuilder.loadTexts: eSWFiltMACPortBasedConfigTable.setStatus('mandatory') e_sw_filt_mac_port_based_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWFiltPortIndex'), (0, 'ASANTE-SWITCH-MIB', 'eSWFiltPMACAddr')) if mibBuilder.loadTexts: eSWFiltMACPortBasedConfigEntry.setStatus('mandatory') e_sw_filt_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltPortIndex.setStatus('mandatory') e_sw_filt_pmac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 2), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltPMACAddr.setStatus('mandatory') e_sw_filt_pmac_status = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltPMACStatus.setStatus('mandatory') e_sw_filt_prot_vlan_based_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4)) if mibBuilder.loadTexts: eSWFiltProtVLANBasedCFGTable.setStatus('mandatory') e_sw_filt_prot_vlan_based_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWVLANIndex')) if mibBuilder.loadTexts: eSWFiltProtVLANBasedCFGEntry.setStatus('mandatory') e_sw_filt_protocol_vid = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltProtocolVID.setStatus('mandatory') e_sw_filt_vlan_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltVLANProtocolType.setStatus('mandatory') e_sw_filt_prot_port_based_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5)) if mibBuilder.loadTexts: eSWFiltProtPortBasedCFGTable.setStatus('mandatory') e_sw_filt_prot_port_based_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWPortIndex')) if mibBuilder.loadTexts: eSWFiltProtPortBasedCFGEntry.setStatus('mandatory') e_sw_filt_prot_port = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltProtPort.setStatus('mandatory') e_sw_filt_protcol_type = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWFiltProtcolType.setStatus('mandatory') e_sw_port_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1)) if mibBuilder.loadTexts: eSWPortCtrlTable.setStatus('mandatory') e_sw_port_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWGrpPtCtrlIndex'), (0, 'ASANTE-SWITCH-MIB', 'eSWPortCtrlIndex')) if mibBuilder.loadTexts: eSWPortCtrlEntry.setStatus('mandatory') e_sw_grp_pt_ctrl_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGrpPtCtrlIndex.setStatus('mandatory') e_sw_port_ctrl_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortCtrlIndex.setStatus('mandatory') e_sw_port_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlState.setStatus('mandatory') e_sw_port_ctrl_bcast_filter = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlBcastFilter.setStatus('mandatory') e_sw_port_ctrl_st_n_fw = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlStNFw.setStatus('mandatory') e_sw_port_ctrl_stp = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enable', 2), ('disable', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortCtrlSTP.setStatus('mandatory') e_sw_port_ctrl_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlVlanID.setStatus('mandatory') e_sw_port_ctrl_vlan_tagging = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enable', 1), ('enable8021Q', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlVlanTagging.setStatus('mandatory') e_sw_port_ctrl_vlan_groups = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlVlanGroups.setStatus('mandatory') e_sw_port_ctrl_trunk_bundle_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWPortCtrlTrunkBundleIndex.setStatus('mandatory') e_sw_port_ctrl_gvrp_enable = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlGVRPEnable.setStatus('mandatory') e_sw_port_ctrl_security_level = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('newNodeDetection', 1), ('knownMACAddressForwarding', 2), ('restrictedKnownMACAddressForwarding', 3), ('knownMACAddressForwardingWithIntruderLock', 4), ('normalPort', 5), ('other', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortCtrlSecurityLevel.setStatus('mandatory') e_sw_port_protocol_filter = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 13), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWPortProtocolFilter.setStatus('mandatory') e_sw_gp_pt_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2)) if mibBuilder.loadTexts: eSWGpPtCtrlTable.setStatus('mandatory') e_sw_gp_pt_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWGpPtCtrlIndex')) if mibBuilder.loadTexts: eSWGpPtCtrlEntry.setStatus('mandatory') e_sw_gp_pt_ctrl_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtCtrlIndex.setStatus('mandatory') e_sw_gp_pt_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWGpPtCtrlState.setStatus('mandatory') e_sw_gp_pt_ctrl_bcast_filter = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWGpPtCtrlBcastFilter.setStatus('mandatory') e_sw_gp_pt_ctrl_st_n_fw = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtCtrlStNFw.setStatus('mandatory') e_sw_gp_pt_ctrl_stp = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWGpPtCtrlSTP.setStatus('mandatory') e_sw_gp_pt_ctrl_security_level = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWGpPtCtrlSecurityLevel.setStatus('mandatory') e_sw_gp_pt_protocol_filter = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWGpPtProtocolFilter.setStatus('mandatory') e_sw_auto_port_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3)) if mibBuilder.loadTexts: eSWAutoPortCtrlTable.setStatus('mandatory') e_sw_auto_port_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWAutoNegGrpIndex'), (0, 'ASANTE-SWITCH-MIB', 'eSWAutoNegPortIndex')) if mibBuilder.loadTexts: eSWAutoPortCtrlEntry.setStatus('mandatory') e_sw_auto_neg_grp_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWAutoNegGrpIndex.setStatus('mandatory') e_sw_auto_neg_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWAutoNegPortIndex.setStatus('mandatory') e_sw_auto_neg_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('enabled', 2), ('disable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWAutoNegAdminState.setStatus('mandatory') e_sw_auto_neg_remote_able = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('able', 2), ('not-able', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWAutoNegRemoteAble.setStatus('mandatory') e_sw_auto_neg_auto_config = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('configuring', 2), ('complete', 3), ('disable', 4), ('parallel-detect-fail', 5), ('remote-fault', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWAutoNegAutoConfig.setStatus('mandatory') e_sw_auto_neg_local_ability = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWAutoNegLocalAbility.setStatus('mandatory') e_sw_auto_neg_advertised_ability = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWAutoNegAdvertisedAbility.setStatus('mandatory') e_sw_auto_neg_received_ability = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWAutoNegReceivedAbility.setStatus('mandatory') e_sw_auto_neg_restart_auto_config = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('reStart', 2), ('noRestart', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eSWAutoNegRestartAutoConfig.setStatus('mandatory') e_sw_mon_ip_table = mib_table((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1)) if mibBuilder.loadTexts: eSWMonIPTable.setStatus('mandatory') e_sw_mon_ip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1)).setIndexNames((0, 'ASANTE-SWITCH-MIB', 'eSWMonIP')) if mibBuilder.loadTexts: eSWMonIPEntry.setStatus('mandatory') e_sw_mon_ip = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMonIP.setStatus('mandatory') e_sw_mon_mac = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 2), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMonMAC.setStatus('mandatory') e_sw_mon_vlanid = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMonVLANID.setStatus('mandatory') e_sw_mon_grp = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMonGrp.setStatus('mandatory') e_sw_mon_port = mib_table_column((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eSWMonPort.setStatus('mandatory') e_sw_fan_fail = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 3)).setObjects(('ASANTE-SWITCH-MIB', 'eSWGrpIndex')) e_sw_exp_port_connect_state_change = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 4)).setObjects(('ASANTE-SWITCH-MIB', 'eSWGrpIndex'), ('ASANTE-SWITCH-MIB', 'eSWPortIndex')) e_swip_spoofing = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 5)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonIP'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonIP'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonPort')) e_sw_station_move = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 6)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonIP'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonPort')) e_sw_new_node_detected = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 7)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonIP')) e_sw_intruder_detected = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 8)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonIP'), ('ASANTE-SWITCH-MIB', 'eSWSecurityLevel')) e_sw_intruder_port_disable = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 9)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonIP')) e_sw_enh_ip_spoofing = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 10)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonIP'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonVLANID'), ('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonVLANID'), ('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort')) e_sw_enh_station_move = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 11)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonIP'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonVLANID'), ('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort')) e_sw_enh_new_node_detected = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 12)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonVLANID'), ('ASANTE-SWITCH-MIB', 'eSWMonIP')) e_sw_enh_intruder_detected = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 13)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonVLANID'), ('ASANTE-SWITCH-MIB', 'eSWMonIP')) e_sw_enh_intruder_port_disable = notification_type((1, 3, 6, 1, 4, 1, 298) + (0, 14)).setObjects(('ASANTE-SWITCH-MIB', 'eSWMonGrp'), ('ASANTE-SWITCH-MIB', 'eSWMonPort'), ('ASANTE-SWITCH-MIB', 'eSWMonMAC'), ('ASANTE-SWITCH-MIB', 'eSWMonVLANID'), ('ASANTE-SWITCH-MIB', 'eSWMonIP')) mibBuilder.exportSymbols('ASANTE-SWITCH-MIB', eSWUpDownloadStatus=eSWUpDownloadStatus, eSWGroupInfoTable=eSWGroupInfoTable, eSWCtrl=eSWCtrl, agentFwMinorVer=agentFwMinorVer, intraswitch=intraswitch, eSWResetWaitTime=eSWResetWaitTime, eSWFiltProtcolType=eSWFiltProtcolType, snmpAgent=snmpAgent, eSWFiltMACAddr=eSWFiltMACAddr, eSWRemoteConfigServer=eSWRemoteConfigServer, eSWPortInfoTable=eSWPortInfoTable, eSWTrunkBundleEntry=eSWTrunkBundleEntry, eSWMonMAC=eSWMonMAC, eSWGpPtInfoEntry=eSWGpPtInfoEntry, eSWNetSecurityInfo=eSWNetSecurityInfo, eSWGpPtInfoType=eSWGpPtInfoType, eSWTrunkBundleIndex=eSWTrunkBundleIndex, eSWAutoNegLocalAbility=eSWAutoNegLocalAbility, eSWBankImageInfoTable=eSWBankImageInfoTable, eSWSecurityTrapEnable=eSWSecurityTrapEnable, eSWMonIP=eSWMonIP, eSWTelnetSessionActive=eSWTelnetSessionActive, eSWStackLastChange=eSWStackLastChange, eSWFanFail=eSWFanFail, eSWPortCtrlState=eSWPortCtrlState, eSWResetLeftTime=eSWResetLeftTime, eAsntSwitch=eAsntSwitch, ipagentTrapRcvrEntry=ipagentTrapRcvrEntry, friendlyswitch=friendlyswitch, eSWAgentFW=eSWAgentFW, agentFwMajorVer=agentFwMajorVer, eSWBankIndex=eSWBankIndex, eSWTrunkBundlePortB=eSWTrunkBundlePortB, agentRemoteBootInfo=agentRemoteBootInfo, eSWSecurityTypesSupported=eSWSecurityTypesSupported, eSWPtMacMACADDR=eSWPtMacMACADDR, eSWFiltProtocolVID=eSWFiltProtocolVID, eSWFiltVLANProtocolType=eSWFiltVLANProtocolType, eSWRemoteConfigFileName=eSWRemoteConfigFileName, eSWAutoNegAutoConfig=eSWAutoNegAutoConfig, ipagentDefaultGateway=ipagentDefaultGateway, eSWVlanMemberSet=eSWVlanMemberSet, eSWSecPortIndex=eSWSecPortIndex, eSWPortCtrlGVRPEnable=eSWPortCtrlGVRPEnable, eSWAutoNegAdvertisedAbility=eSWAutoNegAdvertisedAbility, agentFw=agentFw, eSWVlanInfo=eSWVlanInfo, eSWFiltPMACAddr=eSWFiltPMACAddr, asante=asante, eSWEEPROMSize=eSWEEPROMSize, eSWUpDownloadAction=eSWUpDownloadAction, eSWTrunkBundlePortA=eSWTrunkBundlePortA, eSWSTP=eSWSTP, agentHwVer=agentHwVer, eSWFiltMACPortBasedConfigTable=eSWFiltMACPortBasedConfigTable, eSWVIDIndex=eSWVIDIndex, intraCore8000=intraCore8000, eSWGpPtCtrlBcastFilter=eSWGpPtCtrlBcastFilter, eSWMonVLANID=eSWMonVLANID, eSWAutoNegRemoteAble=eSWAutoNegRemoteAble, eSWGrpNumofPorts=eSWGrpNumofPorts, eSWGrpLED=eSWGrpLED, agentHw=agentHw, eSWMonPort=eSWMonPort, intraSwitch6216M=intraSwitch6216M, eSWIncSetMACStatus=eSWIncSetMACStatus, eSWIntruderPortDisable=eSWIntruderPortDisable, eSWDRAMSize=eSWDRAMSize, eSWPortCtrlBcastFilter=eSWPortCtrlBcastFilter, ipagentBootServerAddr=ipagentBootServerAddr, eSWPtMacInfoEntry=eSWPtMacInfoEntry, eSWVlanMaxCapacity=eSWVlanMaxCapacity, eSWGpPtCtrlStNFw=eSWGpPtCtrlStNFw, eSWEnhIntruderDetected=eSWEnhIntruderDetected, ipagentUnAuthIP=ipagentUnAuthIP, eSWFiltProtPort=eSWFiltProtPort, eSWPortDuplex=eSWPortDuplex, eSWEnhIntruderPortDisable=eSWEnhIntruderPortDisable, eSWEnhIPSpoofing=eSWEnhIPSpoofing, eSWAgentHW=eSWAgentHW, agentNetProtocol=agentNetProtocol, eSWVlanVersion=eSWVlanVersion, eSWSecMonitorPort=eSWSecMonitorPort, eSWSecIntMACAddrTable=eSWSecIntMACAddrTable, eSWPortCtrlVlanID=eSWPortCtrlVlanID, eSWMonIPTable=eSWMonIPTable, eSWAutoPortCtrlTable=eSWAutoPortCtrlTable, eSWGpPtCtrlState=eSWGpPtCtrlState, agentRemoteBootFile=agentRemoteBootFile, agentOutBandBaudRate=agentOutBandBaudRate, ipagentTrapRcvrStatus=ipagentTrapRcvrStatus, ipagentProtocol=ipagentProtocol, eSWMajorVer=eSWMajorVer, eSWDateTime=eSWDateTime, eSWRemoteDownloadFile=eSWRemoteDownloadFile, eSWGrpType=eSWGrpType, eSWRemoteImageServer=eSWRemoteImageServer, eSWPortAutoNegAbility=eSWPortAutoNegAbility, eSWBkpType=eSWBkpType, eSWFiltMACPortBasedConfigEntry=eSWFiltMACPortBasedConfigEntry, eSWGrpReset=eSWGrpReset, eSWAutoPortCtrlEntry=eSWAutoPortCtrlEntry, eSWFiltMACVLANBasedConfigEntry=eSWFiltMACVLANBasedConfigEntry, eSWPortCtrlEntry=eSWPortCtrlEntry, eSWRemoteImageFileName=eSWRemoteImageFileName, agentNetProtoStkCapMap=agentNetProtoStkCapMap, eSWGpPtCtrlTable=eSWGpPtCtrlTable, eSWRemoteDownloadImageBank=eSWRemoteDownloadImageBank, eSWSecurityLevel=eSWSecurityLevel, eSWFiltPMACStatus=eSWFiltPMACStatus, eSWSecIncSetConfigEntry=eSWSecIncSetConfigEntry, eSWCfgFileErrStatus=eSWCfgFileErrStatus, eSWNetworkSecurityVersion=eSWNetworkSecurityVersion, eSWGrpPtCtrlIndex=eSWGrpPtCtrlIndex, agentRemoteBootProtocol=agentRemoteBootProtocol, eSWBCastMcastDuration=eSWBCastMcastDuration, eSWBasic=eSWBasic, eSWTrunkBundleState=eSWTrunkBundleState, eSWPortCtrlSecurityLevel=eSWPortCtrlSecurityLevel, eSWSecConfigTable=eSWSecConfigTable, eSWPortProtocolFilter=eSWPortProtocolFilter, eSWTelnetSessions=eSWTelnetSessions, eSWIncSetMACAddr=eSWIncSetMACAddr, eSWIntMACAddr=eSWIntMACAddr, eSWGpPtInfoLink=eSWGpPtInfoLink, eSWGrpFanStatus=eSWGrpFanStatus, eSWTrunkBundleCapacity=eSWTrunkBundleCapacity, agentReset=agentReset, ipagentTrapRcvrComm=ipagentTrapRcvrComm, eSWIPSpoofing=eSWIPSpoofing, eSWTelnetTimeOut=eSWTelnetTimeOut, intrastack=intrastack, eSWPtMacPort=eSWPtMacPort, eSWBankImageInfoEntry=eSWBankImageInfoEntry, eSWSecConfigEntry=eSWSecConfigEntry, eSWPortCtrlSTP=eSWPortCtrlSTP, eSWStationMove=eSWStationMove, eSWFilteringTypesSupported=eSWFilteringTypesSupported, eSWFiltMACSts=eSWFiltMACSts, eSWGpPtInfoAutoNegAbility=eSWGpPtInfoAutoNegAbility, agentOutBandDialString=agentOutBandDialString, productId=productId, eSWPortGrpIndex=eSWPortGrpIndex, eSWGpPtInfoDuplex=eSWGpPtInfoDuplex, eSWGpPtInfoTable=eSWGpPtInfoTable, eSWFiltProtPortBasedCFGEntry=eSWFiltProtPortBasedCFGEntry, products=products, ipagentTrapRcvrIpAddr=ipagentTrapRcvrIpAddr, eSWGrpID=eSWGrpID, eSWGpPtCtrlIndex=eSWGpPtCtrlIndex, eSWAutoNegReceivedAbility=eSWAutoNegReceivedAbility, agentRunTimeImageMinorVer=agentRunTimeImageMinorVer, eSWSecIncSetConfigTable=eSWSecIncSetConfigTable, eSWPortCtrlIndex=eSWPortCtrlIndex, eSWVlanEntry=eSWVlanEntry, eSWGpPtProtocolFilter=eSWGpPtProtocolFilter, eSWIntruderDetected=eSWIntruderDetected, ipagentTrapRcvrTable=ipagentTrapRcvrTable, eSWFiltProtVLANBasedCFGEntry=eSWFiltProtVLANBasedCFGEntry, eSWGrpDescrption=eSWGrpDescrption, eSWVlanTable=eSWVlanTable, eSWBCastMcastThreshold=eSWBCastMcastThreshold, eSWAgentSW=eSWAgentSW, eSWFlashRAMSize=eSWFlashRAMSize, eSWNetworkSecurityMAXLevels=eSWNetworkSecurityMAXLevels, intraCore9000=intraCore9000, eSWVlanMgmAccess=eSWVlanMgmAccess, ipagentIpNetMask=ipagentIpNetMask, eSWGpPtCtrlSecurityLevel=eSWGpPtCtrlSecurityLevel, eSWFiltProtVLANBasedCFGTable=eSWFiltProtVLANBasedCFGTable, eSWPortType=eSWPortType, agentRunTimeImageMajorVer=agentRunTimeImageMajorVer, eSWGrpState=eSWGrpState, eSWSecIntMACAddrEntry=eSWSecIntMACAddrEntry, eSWAutoNegPortIndex=eSWAutoNegPortIndex, eSWPortCtrlVlanTagging=eSWPortCtrlVlanTagging, eSWPortCtrlTable=eSWPortCtrlTable, eSWPortCtrlTrunkBundleIndex=eSWPortCtrlTrunkBundleIndex, eSWAutoNegAdminState=eSWAutoNegAdminState, eSWFiltPortIndex=eSWFiltPortIndex, agentHwReVer=agentHwReVer, eSWAutoNegGrpIndex=eSWAutoNegGrpIndex, eSWMonitor=eSWMonitor, eSWMinorVer=eSWMinorVer, eSWGrpLastChange=eSWGrpLastChange, eSWGpPtCtrlSTP=eSWGpPtCtrlSTP, eSWActiveImageBank=eSWActiveImageBank, ipagentUnAuthComm=ipagentUnAuthComm, eSWAutoNegRestartAutoConfig=eSWAutoNegRestartAutoConfig, eSWVlanName=eSWVlanName, eSWGpPtInfoSpeed=eSWGpPtInfoSpeed, eSWPortCtrlVlanGroups=eSWPortCtrlVlanGroups, eSWEnhNewNodeDetected=eSWEnhNewNodeDetected, eSWPortInfoEntry=eSWPortInfoEntry, eSWGrpNumofExpPorts=eSWGrpNumofExpPorts, ipagentIpAddr=ipagentIpAddr, eSWIntMACAddrPort=eSWIntMACAddrPort, eSWMonGrp=eSWMonGrp, eSWVlanTypesSupported=eSWVlanTypesSupported, eSWGroupCapacity=eSWGroupCapacity, eSWImageRetryCounter=eSWImageRetryCounter, eSWVLANIndex=eSWVLANIndex, eSWMonIPEntry=eSWMonIPEntry, eSWPortSpeed=eSWPortSpeed, eSWGrpIndex=eSWGrpIndex, eSWPtMacInfoTable=eSWPtMacInfoTable, eSWEnhStationMove=eSWEnhStationMove, eSWFiltProtPortBasedCFGTable=eSWFiltProtPortBasedCFGTable, agentSw=agentSw, eSWType=eSWType, eSWGpPtInfoIndex=eSWGpPtInfoIndex, eSWExpPortConnectStateChange=eSWExpPortConnectStateChange, eSWConfigRetryCounter=eSWConfigRetryCounter, eSWTrunkBundleTable=eSWTrunkBundleTable, eSWAgent=eSWAgent, eSWPortIndex=eSWPortIndex, eSWFiltMACVLANBasedConfigTable=eSWFiltMACVLANBasedConfigTable, eSWUserInterfaceTimeOut=eSWUserInterfaceTimeOut, eSWNewNodeDetected=eSWNewNodeDetected, eSWGroupInfoEntry=eSWGroupInfoEntry, eSWPortLink=eSWPortLink, eSWVlanID=eSWVlanID, eSWIncSetPort=eSWIncSetPort, agentImageLoadMode=agentImageLoadMode, intraSwitch6224=intraSwitch6224, MacAddress=MacAddress, eSWPortCtrlStNFw=eSWPortCtrlStNFw, eSWFilteringInfo=eSWFilteringInfo, concProductId=concProductId, switch=switch, eSWGpPtCtrlEntry=eSWGpPtCtrlEntry)
# Okta codility challenge def solution(A, Y): # write your code in Python 3.6 clientTimestamps = {} clients = [] resultMap = {} result = [] for cur in A: client = cur.split(' ')[0] timestamp = cur.split(' ')[1] if client not in clientTimestamps: clients.append(client) clientTimestamps[client] = list([timestamp]) else: clientTimestamps[client].append(timestamp) eachWindowTotals = {} for client in clients: eachWindowTotals[client] = list() curWindow = int(clientTimestamps[client][0]) // 60 curCount, totalCount = 0, 0 index = 0 for curTimestamp in clientTimestamps[client]: if int(curTimestamp) // 60 == curWindow: if curCount < Y: curCount += 1 else: index = setWindowRequestTotal(index, curWindow, eachWindowTotals, client, curCount, curTimestamp) curWindow = int(curTimestamp) // 60 totalCount += curCount curCount = 1 index = setWindowRequestTotal(index, curWindow, eachWindowTotals, client, curCount, curTimestamp) totalCount += curCount resultMap[client] = totalCount index = setWindowRequestTotal(index, curWindow, eachWindowTotals, client, curCount, curTimestamp) # print(eachWindowTotals) # print(index) for i in range(index): # index here is total no of windows or minutes in input prev5WindowTotal = 0 for j in range(i, i - 5, -1): if j < 0: break for client in eachWindowTotals.keys(): if len(eachWindowTotals[client]) - 1 < j: continue prev5WindowTotal += eachWindowTotals[client][j] if prev5WindowTotal >= 10: for client in eachWindowTotals.keys(): clientTotal = 0 for j in range(i, i - 5, -1): if j < 0: break if len(eachWindowTotals[client]) - 1 < j: continue clientTotal += eachWindowTotals[client][j] if clientTotal / prev5WindowTotal > 0.5: try: eachWindowTotals[client][i + 1] = 0 except: pass try: eachWindowTotals[client][i + 2] = 0 except: pass for client in eachWindowTotals.keys(): newTotal = 0 for cur in eachWindowTotals[client]: newTotal += cur resultMap[client] = newTotal for curClient in resultMap.keys(): result.append(curClient + " " + str(resultMap[curClient])) return result def setWindowRequestTotal(index, curWindow, eachWindowTotals, client, curCount, curTimestamp): if index == curWindow: eachWindowTotals[client].append(curCount) index += 1 elif index != curWindow and index != int(curTimestamp) // 60: for i in range(index, int(curTimestamp) // 60): eachWindowTotals[client].append(0) index += 1 elif index == int(curTimestamp) // 60: pass return index
def solution(A, Y): client_timestamps = {} clients = [] result_map = {} result = [] for cur in A: client = cur.split(' ')[0] timestamp = cur.split(' ')[1] if client not in clientTimestamps: clients.append(client) clientTimestamps[client] = list([timestamp]) else: clientTimestamps[client].append(timestamp) each_window_totals = {} for client in clients: eachWindowTotals[client] = list() cur_window = int(clientTimestamps[client][0]) // 60 (cur_count, total_count) = (0, 0) index = 0 for cur_timestamp in clientTimestamps[client]: if int(curTimestamp) // 60 == curWindow: if curCount < Y: cur_count += 1 else: index = set_window_request_total(index, curWindow, eachWindowTotals, client, curCount, curTimestamp) cur_window = int(curTimestamp) // 60 total_count += curCount cur_count = 1 index = set_window_request_total(index, curWindow, eachWindowTotals, client, curCount, curTimestamp) total_count += curCount resultMap[client] = totalCount index = set_window_request_total(index, curWindow, eachWindowTotals, client, curCount, curTimestamp) for i in range(index): prev5_window_total = 0 for j in range(i, i - 5, -1): if j < 0: break for client in eachWindowTotals.keys(): if len(eachWindowTotals[client]) - 1 < j: continue prev5_window_total += eachWindowTotals[client][j] if prev5WindowTotal >= 10: for client in eachWindowTotals.keys(): client_total = 0 for j in range(i, i - 5, -1): if j < 0: break if len(eachWindowTotals[client]) - 1 < j: continue client_total += eachWindowTotals[client][j] if clientTotal / prev5WindowTotal > 0.5: try: eachWindowTotals[client][i + 1] = 0 except: pass try: eachWindowTotals[client][i + 2] = 0 except: pass for client in eachWindowTotals.keys(): new_total = 0 for cur in eachWindowTotals[client]: new_total += cur resultMap[client] = newTotal for cur_client in resultMap.keys(): result.append(curClient + ' ' + str(resultMap[curClient])) return result def set_window_request_total(index, curWindow, eachWindowTotals, client, curCount, curTimestamp): if index == curWindow: eachWindowTotals[client].append(curCount) index += 1 elif index != curWindow and index != int(curTimestamp) // 60: for i in range(index, int(curTimestamp) // 60): eachWindowTotals[client].append(0) index += 1 elif index == int(curTimestamp) // 60: pass return index
class Circle: __pi = 3.14 def __init__(self, diameter): self.radius = diameter / 2 self.diameter = diameter def calculate_circumference(self): return self.diameter * self.__pi def calculate_area(self): radius = self.diameter / 2 return radius * radius * self.__pi def calculate_area_of_sector(self, angle): return self.calculate_area() * angle / 360 circle = Circle(10) angle = 5 print(f"{circle.calculate_circumference():.2f}") print(f"{circle.calculate_area():.2f}") print(f"{circle.calculate_area_of_sector(angle):.2f}")
class Circle: __pi = 3.14 def __init__(self, diameter): self.radius = diameter / 2 self.diameter = diameter def calculate_circumference(self): return self.diameter * self.__pi def calculate_area(self): radius = self.diameter / 2 return radius * radius * self.__pi def calculate_area_of_sector(self, angle): return self.calculate_area() * angle / 360 circle = circle(10) angle = 5 print(f'{circle.calculate_circumference():.2f}') print(f'{circle.calculate_area():.2f}') print(f'{circle.calculate_area_of_sector(angle):.2f}')
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 """Packaging of Linux, macOS and Windows binaries into tarballs""" load("@os_info//:os_info.bzl", "is_windows") def _package_app_impl(ctx): files = depset(ctx.attr.binary.files) runfiles = ctx.attr.binary.default_runfiles.files datafiles = ctx.attr.binary[DefaultInfo].data_runfiles.files args = ctx.actions.args() inputs = depset([], transitive = [files, runfiles, datafiles] + [r.files for r in ctx.attr.resources]) tools = [ctx.executable.tar, ctx.executable.gzip] if is_windows else [ctx.executable.patchelf, ctx.executable.tar, ctx.executable.gzip] ctx.actions.run_shell( outputs = [ctx.outputs.out], tools = [ctx.executable.package_app] + tools, inputs = inputs.to_list(), arguments = [args], progress_message = "Packaging " + ctx.attr.name, command = """ set -eu export PATH=$PATH:{path} {package_app} \ "$PWD/{binary}" \ "$PWD/{output}" \ {resources} """.format( path = ":".join(["$PWD/`dirname {tool}`".format(tool = tool.path) for tool in tools]), output = ctx.outputs.out.path, name = ctx.attr.name, package_app = ctx.executable.package_app.path, binary = ctx.executable.binary.path, resources = " ".join([ _get_resource_path(r) for r in ctx.attr.resources ]), ), ) def _get_resource_path(r): """Get the path to use for a resource. If the resource has a single file, it'll be copied to the resource root directory. With multiple files the relative directory structure is preserved. This mirrors how rules that produce directories work in Buck. """ files = r.files.to_list() if len(files) > 1: first_file = files[0].path prefix_end = first_file.index(r.label.package) # e.g. package foo/bar, # first file at bazel-out/k8-fastbuild/bleh/foo/bar/baz/quux # return path as bazel-out/k8-fastbuild/bleh/foo/bar. return first_file[0:(prefix_end + len(r.label.package))] else: return files[0].path package_app = rule( implementation = _package_app_impl, attrs = dict({ "binary": attr.label( cfg = "target", executable = True, allow_files = True, ), "resources": attr.label_list( allow_files = True, ), "patchelf": attr.label( default = None if is_windows else Label("@patchelf_nix//:bin/patchelf"), cfg = "host", executable = True, allow_files = True, ), "tar": attr.label( default = Label("@tar_dev_env//:tar"), cfg = "host", executable = True, allow_files = True, ), "gzip": attr.label( default = Label("@gzip_dev_env//:gzip"), cfg = "host", executable = True, allow_files = True, ), "package_app": attr.label( default = Label("//bazel_tools/packaging:package-app.sh"), cfg = "host", executable = True, allow_files = True, ), }), outputs = { "out": "%{name}.tar.gz", }, ) """Package a binary along with its dynamic library dependencies and data dependencies into a tarball. The data dependencies are placed in 'resources' directory. """
"""Packaging of Linux, macOS and Windows binaries into tarballs""" load('@os_info//:os_info.bzl', 'is_windows') def _package_app_impl(ctx): files = depset(ctx.attr.binary.files) runfiles = ctx.attr.binary.default_runfiles.files datafiles = ctx.attr.binary[DefaultInfo].data_runfiles.files args = ctx.actions.args() inputs = depset([], transitive=[files, runfiles, datafiles] + [r.files for r in ctx.attr.resources]) tools = [ctx.executable.tar, ctx.executable.gzip] if is_windows else [ctx.executable.patchelf, ctx.executable.tar, ctx.executable.gzip] ctx.actions.run_shell(outputs=[ctx.outputs.out], tools=[ctx.executable.package_app] + tools, inputs=inputs.to_list(), arguments=[args], progress_message='Packaging ' + ctx.attr.name, command='\n set -eu\n export PATH=$PATH:{path}\n {package_app} "$PWD/{binary}" "$PWD/{output}" {resources}\n '.format(path=':'.join(['$PWD/`dirname {tool}`'.format(tool=tool.path) for tool in tools]), output=ctx.outputs.out.path, name=ctx.attr.name, package_app=ctx.executable.package_app.path, binary=ctx.executable.binary.path, resources=' '.join([_get_resource_path(r) for r in ctx.attr.resources]))) def _get_resource_path(r): """Get the path to use for a resource. If the resource has a single file, it'll be copied to the resource root directory. With multiple files the relative directory structure is preserved. This mirrors how rules that produce directories work in Buck. """ files = r.files.to_list() if len(files) > 1: first_file = files[0].path prefix_end = first_file.index(r.label.package) return first_file[0:prefix_end + len(r.label.package)] else: return files[0].path package_app = rule(implementation=_package_app_impl, attrs=dict({'binary': attr.label(cfg='target', executable=True, allow_files=True), 'resources': attr.label_list(allow_files=True), 'patchelf': attr.label(default=None if is_windows else label('@patchelf_nix//:bin/patchelf'), cfg='host', executable=True, allow_files=True), 'tar': attr.label(default=label('@tar_dev_env//:tar'), cfg='host', executable=True, allow_files=True), 'gzip': attr.label(default=label('@gzip_dev_env//:gzip'), cfg='host', executable=True, allow_files=True), 'package_app': attr.label(default=label('//bazel_tools/packaging:package-app.sh'), cfg='host', executable=True, allow_files=True)}), outputs={'out': '%{name}.tar.gz'}) "Package a binary along with its dynamic library dependencies and data dependencies\n into a tarball. The data dependencies are placed in 'resources' directory.\n"
permissions = [ 'accessapproval.requests.approve', 'accessapproval.requests.dismiss', 'accessapproval.requests.get', 'accessapproval.requests.list', 'accessapproval.settings.get', 'accessapproval.settings.update', 'androidmanagement.enterprises.manage', 'appengine.applications.create', 'appengine.applications.get', 'appengine.applications.update', 'appengine.instances.delete', 'appengine.instances.get', 'appengine.instances.list', 'appengine.memcache.addKey', 'appengine.memcache.flush', 'appengine.memcache.get', 'appengine.memcache.getKey', 'appengine.memcache.list', 'appengine.memcache.update', 'appengine.operations.get', 'appengine.operations.list', 'appengine.runtimes.actAsAdmin', 'appengine.services.delete', 'appengine.services.get', 'appengine.services.list', 'appengine.services.update', 'appengine.versions.create', 'appengine.versions.delete', 'appengine.versions.get', 'appengine.versions.getFileContents', 'appengine.versions.list', 'appengine.versions.update', 'automl.annotationSpecs.create', 'automl.annotationSpecs.delete', 'automl.annotationSpecs.get', 'automl.annotationSpecs.list', 'automl.annotationSpecs.update', 'automl.annotations.approve', 'automl.annotations.create', 'automl.annotations.list', 'automl.annotations.manipulate', 'automl.annotations.reject', 'automl.columnSpecs.get', 'automl.columnSpecs.list', 'automl.columnSpecs.update', 'automl.datasets.create', 'automl.datasets.delete', 'automl.datasets.export', 'automl.datasets.get', 'automl.datasets.getIamPolicy', 'automl.datasets.import', 'automl.datasets.list', 'automl.datasets.setIamPolicy', 'automl.datasets.update', 'automl.examples.delete', 'automl.examples.get', 'automl.examples.list', 'automl.humanAnnotationTasks.create', 'automl.humanAnnotationTasks.delete', 'automl.humanAnnotationTasks.get', 'automl.humanAnnotationTasks.list', 'automl.locations.get', 'automl.locations.getIamPolicy', 'automl.locations.list', 'automl.locations.setIamPolicy', 'automl.modelEvaluations.create', 'automl.modelEvaluations.get', 'automl.modelEvaluations.list', 'automl.models.create', 'automl.models.delete', 'automl.models.deploy', 'automl.models.export', 'automl.models.get', 'automl.models.getIamPolicy', 'automl.models.list', 'automl.models.predict', 'automl.models.setIamPolicy', 'automl.models.undeploy', 'automl.operations.cancel', 'automl.operations.delete', 'automl.operations.get', 'automl.operations.list', 'automl.tableSpecs.get', 'automl.tableSpecs.list', 'automl.tableSpecs.update', 'automlrecommendations.apiKeys.create', 'automlrecommendations.apiKeys.delete', 'automlrecommendations.apiKeys.list', 'automlrecommendations.catalogItems.create', 'automlrecommendations.catalogItems.delete', 'automlrecommendations.catalogItems.get', 'automlrecommendations.catalogItems.list', 'automlrecommendations.catalogItems.update', 'automlrecommendations.catalogs.getStats', 'automlrecommendations.catalogs.list', 'automlrecommendations.eventStores.getStats', 'automlrecommendations.events.create', 'automlrecommendations.events.list', 'automlrecommendations.events.purge', 'automlrecommendations.placements.getStats', 'automlrecommendations.placements.list', 'automlrecommendations.recommendations.list', 'bigquery.config.get', 'bigquery.config.update', 'bigquery.connections.create', 'bigquery.connections.delete', 'bigquery.connections.get', 'bigquery.connections.getIamPolicy', 'bigquery.connections.list', 'bigquery.connections.setIamPolicy', 'bigquery.connections.update', 'bigquery.connections.use', 'bigquery.datasets.create', 'bigquery.datasets.delete', 'bigquery.datasets.get', 'bigquery.datasets.getIamPolicy', 'bigquery.datasets.setIamPolicy', 'bigquery.datasets.update', 'bigquery.datasets.updateTag', 'bigquery.jobs.create', 'bigquery.jobs.get', 'bigquery.jobs.list', 'bigquery.jobs.listAll', 'bigquery.jobs.update', 'bigquery.models.create', 'bigquery.models.delete', 'bigquery.models.getData', 'bigquery.models.getMetadata', 'bigquery.models.list', 'bigquery.models.updateData', 'bigquery.models.updateMetadata', 'bigquery.models.updateTag', 'bigquery.readsessions.create', 'bigquery.routines.create', 'bigquery.routines.delete', 'bigquery.routines.get', 'bigquery.routines.list', 'bigquery.routines.update', 'bigquery.savedqueries.create', 'bigquery.savedqueries.delete', 'bigquery.savedqueries.get', 'bigquery.savedqueries.list', 'bigquery.savedqueries.update', 'bigquery.transfers.get', 'bigquery.transfers.update', 'bigtable.appProfiles.create', 'bigtable.appProfiles.delete', 'bigtable.appProfiles.get', 'bigtable.appProfiles.list', 'bigtable.appProfiles.update', 'bigtable.clusters.create', 'bigtable.clusters.delete', 'bigtable.clusters.get', 'bigtable.clusters.list', 'bigtable.clusters.update', 'bigtable.instances.create', 'bigtable.instances.delete', 'bigtable.instances.get', 'bigtable.instances.getIamPolicy', 'bigtable.instances.list', 'bigtable.instances.setIamPolicy', 'bigtable.instances.update', 'bigtable.locations.list', 'bigtable.tables.checkConsistency', 'bigtable.tables.create', 'bigtable.tables.delete', 'bigtable.tables.generateConsistencyToken', 'bigtable.tables.get', 'bigtable.tables.list', 'bigtable.tables.mutateRows', 'bigtable.tables.readRows', 'bigtable.tables.sampleRowKeys', 'bigtable.tables.update', 'billing.resourceCosts.get', 'binaryauthorization.attestors.create', 'binaryauthorization.attestors.delete', 'binaryauthorization.attestors.get', 'binaryauthorization.attestors.getIamPolicy', 'binaryauthorization.attestors.list', 'binaryauthorization.attestors.setIamPolicy', 'binaryauthorization.attestors.update', 'binaryauthorization.attestors.verifyImageAttested', 'binaryauthorization.policy.get', 'binaryauthorization.policy.getIamPolicy', 'binaryauthorization.policy.setIamPolicy', 'binaryauthorization.policy.update', 'cloudasset.assets.exportIamPolicy', 'cloudasset.assets.exportResource', 'cloudbuild.builds.create', 'cloudbuild.builds.get', 'cloudbuild.builds.list', 'cloudbuild.builds.update', 'cloudconfig.configs.get', 'cloudconfig.configs.update', 'clouddebugger.breakpoints.create', 'clouddebugger.breakpoints.delete', 'clouddebugger.breakpoints.get', 'clouddebugger.breakpoints.list', 'clouddebugger.breakpoints.listActive', 'clouddebugger.breakpoints.update', 'clouddebugger.debuggees.create', 'clouddebugger.debuggees.list', 'cloudfunctions.functions.call', 'cloudfunctions.functions.create', 'cloudfunctions.functions.delete', 'cloudfunctions.functions.get', 'cloudfunctions.functions.getIamPolicy', 'cloudfunctions.functions.invoke', 'cloudfunctions.functions.list', 'cloudfunctions.functions.setIamPolicy', 'cloudfunctions.functions.sourceCodeGet', 'cloudfunctions.functions.sourceCodeSet', 'cloudfunctions.functions.update', 'cloudfunctions.locations.list', 'cloudfunctions.operations.get', 'cloudfunctions.operations.list', 'cloudiot.devices.bindGateway', 'cloudiot.devices.create', 'cloudiot.devices.delete', 'cloudiot.devices.get', 'cloudiot.devices.list', 'cloudiot.devices.sendCommand', 'cloudiot.devices.unbindGateway', 'cloudiot.devices.update', 'cloudiot.devices.updateConfig', 'cloudiot.registries.create', 'cloudiot.registries.delete', 'cloudiot.registries.get', 'cloudiot.registries.getIamPolicy', 'cloudiot.registries.list', 'cloudiot.registries.setIamPolicy', 'cloudiot.registries.update', 'cloudiottoken.tokensettings.get', 'cloudiottoken.tokensettings.update', 'cloudjobdiscovery.companies.create', 'cloudjobdiscovery.companies.delete', 'cloudjobdiscovery.companies.get', 'cloudjobdiscovery.companies.list', 'cloudjobdiscovery.companies.update', 'cloudjobdiscovery.events.create', 'cloudjobdiscovery.jobs.create', 'cloudjobdiscovery.jobs.delete', 'cloudjobdiscovery.jobs.get', 'cloudjobdiscovery.jobs.search', 'cloudjobdiscovery.jobs.update', 'cloudjobdiscovery.profiles.create', 'cloudjobdiscovery.profiles.delete', 'cloudjobdiscovery.profiles.get', 'cloudjobdiscovery.profiles.search', 'cloudjobdiscovery.profiles.update', 'cloudjobdiscovery.tenants.create', 'cloudjobdiscovery.tenants.delete', 'cloudjobdiscovery.tenants.get', 'cloudjobdiscovery.tenants.update', 'cloudjobdiscovery.tools.access', 'cloudkms.cryptoKeyVersions.create', 'cloudkms.cryptoKeyVersions.destroy', 'cloudkms.cryptoKeyVersions.get', 'cloudkms.cryptoKeyVersions.list', 'cloudkms.cryptoKeyVersions.restore', 'cloudkms.cryptoKeyVersions.update', 'cloudkms.cryptoKeyVersions.useToDecrypt', 'cloudkms.cryptoKeyVersions.useToEncrypt', 'cloudkms.cryptoKeyVersions.useToSign', 'cloudkms.cryptoKeyVersions.viewPublicKey', 'cloudkms.cryptoKeys.create', 'cloudkms.cryptoKeys.get', 'cloudkms.cryptoKeys.getIamPolicy', 'cloudkms.cryptoKeys.list', 'cloudkms.cryptoKeys.setIamPolicy', 'cloudkms.cryptoKeys.update', 'cloudkms.keyRings.create', 'cloudkms.keyRings.get', 'cloudkms.keyRings.getIamPolicy', 'cloudkms.keyRings.list', 'cloudkms.keyRings.setIamPolicy', 'cloudmessaging.messages.create', 'cloudmigration.velostrataendpoints.connect', 'cloudnotifications.activities.list', 'cloudprivatecatalog.targets.get', 'cloudprivatecatalogproducer.targets.associate', 'cloudprivatecatalogproducer.targets.unassociate', 'cloudprofiler.profiles.create', 'cloudprofiler.profiles.list', 'cloudprofiler.profiles.update', 'cloudscheduler.jobs.create', 'cloudscheduler.jobs.delete', 'cloudscheduler.jobs.enable', 'cloudscheduler.jobs.fullView', 'cloudscheduler.jobs.get', 'cloudscheduler.jobs.list', 'cloudscheduler.jobs.pause', 'cloudscheduler.jobs.run', 'cloudscheduler.jobs.update', 'cloudscheduler.locations.get', 'cloudscheduler.locations.list', 'cloudsecurityscanner.crawledurls.list', 'cloudsecurityscanner.results.get', 'cloudsecurityscanner.results.list', 'cloudsecurityscanner.scanruns.get', 'cloudsecurityscanner.scanruns.getSummary', 'cloudsecurityscanner.scanruns.list', 'cloudsecurityscanner.scanruns.stop', 'cloudsecurityscanner.scans.create', 'cloudsecurityscanner.scans.delete', 'cloudsecurityscanner.scans.get', 'cloudsecurityscanner.scans.list', 'cloudsecurityscanner.scans.run', 'cloudsecurityscanner.scans.update', 'cloudsql.backupRuns.create', 'cloudsql.backupRuns.delete', 'cloudsql.backupRuns.get', 'cloudsql.backupRuns.list', 'cloudsql.databases.create', 'cloudsql.databases.delete', 'cloudsql.databases.get', 'cloudsql.databases.list', 'cloudsql.databases.update', 'cloudsql.instances.addServerCa', 'cloudsql.instances.clone', 'cloudsql.instances.connect', 'cloudsql.instances.create', 'cloudsql.instances.delete', 'cloudsql.instances.demoteMaster', 'cloudsql.instances.export', 'cloudsql.instances.failover', 'cloudsql.instances.get', 'cloudsql.instances.import', 'cloudsql.instances.list', 'cloudsql.instances.listServerCas', 'cloudsql.instances.promoteReplica', 'cloudsql.instances.resetSslConfig', 'cloudsql.instances.restart', 'cloudsql.instances.restoreBackup', 'cloudsql.instances.rotateServerCa', 'cloudsql.instances.startReplica', 'cloudsql.instances.stopReplica', 'cloudsql.instances.truncateLog', 'cloudsql.instances.update', 'cloudsql.sslCerts.create', 'cloudsql.sslCerts.createEphemeral', 'cloudsql.sslCerts.delete', 'cloudsql.sslCerts.get', 'cloudsql.sslCerts.list', 'cloudsql.users.create', 'cloudsql.users.delete', 'cloudsql.users.list', 'cloudsql.users.update', 'cloudtasks.locations.get', 'cloudtasks.locations.list', 'cloudtasks.queues.create', 'cloudtasks.queues.delete', 'cloudtasks.queues.get', 'cloudtasks.queues.getIamPolicy', 'cloudtasks.queues.list', 'cloudtasks.queues.pause', 'cloudtasks.queues.purge', 'cloudtasks.queues.resume', 'cloudtasks.queues.setIamPolicy', 'cloudtasks.queues.update', 'cloudtasks.tasks.create', 'cloudtasks.tasks.delete', 'cloudtasks.tasks.fullView', 'cloudtasks.tasks.get', 'cloudtasks.tasks.list', 'cloudtasks.tasks.run', 'cloudtestservice.environmentcatalog.get', 'cloudtestservice.matrices.create', 'cloudtestservice.matrices.get', 'cloudtestservice.matrices.update', 'cloudtoolresults.executions.create', 'cloudtoolresults.executions.get', 'cloudtoolresults.executions.list', 'cloudtoolresults.executions.update', 'cloudtoolresults.histories.create', 'cloudtoolresults.histories.get', 'cloudtoolresults.histories.list', 'cloudtoolresults.settings.create', 'cloudtoolresults.settings.get', 'cloudtoolresults.settings.update', 'cloudtoolresults.steps.create', 'cloudtoolresults.steps.get', 'cloudtoolresults.steps.list', 'cloudtoolresults.steps.update', 'cloudtrace.insights.get', 'cloudtrace.insights.list', 'cloudtrace.stats.get', 'cloudtrace.tasks.create', 'cloudtrace.tasks.delete', 'cloudtrace.tasks.get', 'cloudtrace.tasks.list', 'cloudtrace.traces.get', 'cloudtrace.traces.list', 'cloudtrace.traces.patch', 'cloudtranslate.generalModels.batchPredict', 'cloudtranslate.generalModels.get', 'cloudtranslate.generalModels.predict', 'cloudtranslate.glossaries.batchPredict', 'cloudtranslate.glossaries.create', 'cloudtranslate.glossaries.delete', 'cloudtranslate.glossaries.get', 'cloudtranslate.glossaries.list', 'cloudtranslate.glossaries.predict', 'cloudtranslate.languageDetectionModels.predict', 'cloudtranslate.locations.get', 'cloudtranslate.locations.list', 'cloudtranslate.operations.cancel', 'cloudtranslate.operations.delete', 'cloudtranslate.operations.get', 'cloudtranslate.operations.list', 'cloudtranslate.operations.wait', 'composer.environments.create', 'composer.environments.delete', 'composer.environments.get', 'composer.environments.list', 'composer.environments.update', 'composer.imageversions.list', 'composer.operations.delete', 'composer.operations.get', 'composer.operations.list', 'compute.acceleratorTypes.get', 'compute.acceleratorTypes.list', 'compute.addresses.create', 'compute.addresses.createInternal', 'compute.addresses.delete', 'compute.addresses.deleteInternal', 'compute.addresses.get', 'compute.addresses.list', 'compute.addresses.setLabels', 'compute.addresses.use', 'compute.addresses.useInternal', 'compute.autoscalers.create', 'compute.autoscalers.delete', 'compute.autoscalers.get', 'compute.autoscalers.list', 'compute.autoscalers.update', 'compute.backendBuckets.create', 'compute.backendBuckets.delete', 'compute.backendBuckets.get', 'compute.backendBuckets.list', 'compute.backendBuckets.update', 'compute.backendBuckets.use', 'compute.backendServices.create', 'compute.backendServices.delete', 'compute.backendServices.get', 'compute.backendServices.list', 'compute.backendServices.setSecurityPolicy', 'compute.backendServices.update', 'compute.backendServices.use', 'compute.commitments.create', 'compute.commitments.get', 'compute.commitments.list', 'compute.diskTypes.get', 'compute.diskTypes.list', 'compute.disks.addResourcePolicies', 'compute.disks.create', 'compute.disks.createSnapshot', 'compute.disks.delete', 'compute.disks.get', 'compute.disks.getIamPolicy', 'compute.disks.list', 'compute.disks.removeResourcePolicies', 'compute.disks.resize', 'compute.disks.setIamPolicy', 'compute.disks.setLabels', 'compute.disks.update', 'compute.disks.use', 'compute.disks.useReadOnly', 'compute.firewalls.create', 'compute.firewalls.delete', 'compute.firewalls.get', 'compute.firewalls.list', 'compute.firewalls.update', 'compute.forwardingRules.create', 'compute.forwardingRules.delete', 'compute.forwardingRules.get', 'compute.forwardingRules.list', 'compute.forwardingRules.setLabels', 'compute.forwardingRules.setTarget', 'compute.globalAddresses.create', 'compute.globalAddresses.createInternal', 'compute.globalAddresses.delete', 'compute.globalAddresses.deleteInternal', 'compute.globalAddresses.get', 'compute.globalAddresses.list', 'compute.globalAddresses.setLabels', 'compute.globalAddresses.use', 'compute.globalForwardingRules.create', 'compute.globalForwardingRules.delete', 'compute.globalForwardingRules.get', 'compute.globalForwardingRules.list', 'compute.globalForwardingRules.setLabels', 'compute.globalForwardingRules.setTarget', 'compute.globalOperations.delete', 'compute.globalOperations.get', 'compute.globalOperations.getIamPolicy', 'compute.globalOperations.list', 'compute.globalOperations.setIamPolicy', 'compute.healthChecks.create', 'compute.healthChecks.delete', 'compute.healthChecks.get', 'compute.healthChecks.list', 'compute.healthChecks.update', 'compute.healthChecks.use', 'compute.healthChecks.useReadOnly', 'compute.httpHealthChecks.create', 'compute.httpHealthChecks.delete', 'compute.httpHealthChecks.get', 'compute.httpHealthChecks.list', 'compute.httpHealthChecks.update', 'compute.httpHealthChecks.use', 'compute.httpHealthChecks.useReadOnly', 'compute.httpsHealthChecks.create', 'compute.httpsHealthChecks.delete', 'compute.httpsHealthChecks.get', 'compute.httpsHealthChecks.list', 'compute.httpsHealthChecks.update', 'compute.httpsHealthChecks.use', 'compute.httpsHealthChecks.useReadOnly', 'compute.images.create', 'compute.images.delete', 'compute.images.deprecate', 'compute.images.get', 'compute.images.getFromFamily', 'compute.images.getIamPolicy', 'compute.images.list', 'compute.images.setIamPolicy', 'compute.images.setLabels', 'compute.images.update', 'compute.images.useReadOnly', 'compute.instanceGroupManagers.create', 'compute.instanceGroupManagers.delete', 'compute.instanceGroupManagers.get', 'compute.instanceGroupManagers.list', 'compute.instanceGroupManagers.update', 'compute.instanceGroupManagers.use', 'compute.instanceGroups.create', 'compute.instanceGroups.delete', 'compute.instanceGroups.get', 'compute.instanceGroups.list', 'compute.instanceGroups.update', 'compute.instanceGroups.use', 'compute.instanceTemplates.create', 'compute.instanceTemplates.delete', 'compute.instanceTemplates.get', 'compute.instanceTemplates.getIamPolicy', 'compute.instanceTemplates.list', 'compute.instanceTemplates.setIamPolicy', 'compute.instanceTemplates.useReadOnly', 'compute.instances.addAccessConfig', 'compute.instances.addMaintenancePolicies', 'compute.instances.attachDisk', 'compute.instances.create', 'compute.instances.delete', 'compute.instances.deleteAccessConfig', 'compute.instances.detachDisk', 'compute.instances.get', 'compute.instances.getGuestAttributes', 'compute.instances.getIamPolicy', 'compute.instances.getSerialPortOutput', 'compute.instances.getShieldedInstanceIdentity', 'compute.instances.getShieldedVmIdentity', 'compute.instances.list', 'compute.instances.listReferrers', 'compute.instances.osAdminLogin', 'compute.instances.osLogin', 'compute.instances.removeMaintenancePolicies', 'compute.instances.reset', 'compute.instances.resume', 'compute.instances.setDeletionProtection', 'compute.instances.setDiskAutoDelete', 'compute.instances.setIamPolicy', 'compute.instances.setLabels', 'compute.instances.setMachineResources', 'compute.instances.setMachineType', 'compute.instances.setMetadata', 'compute.instances.setMinCpuPlatform', 'compute.instances.setScheduling', 'compute.instances.setServiceAccount', 'compute.instances.setShieldedInstanceIntegrityPolicy', 'compute.instances.setShieldedVmIntegrityPolicy', 'compute.instances.setTags', 'compute.instances.start', 'compute.instances.startWithEncryptionKey', 'compute.instances.stop', 'compute.instances.suspend', 'compute.instances.update', 'compute.instances.updateAccessConfig', 'compute.instances.updateDisplayDevice', 'compute.instances.updateNetworkInterface', 'compute.instances.updateShieldedInstanceConfig', 'compute.instances.updateShieldedVmConfig', 'compute.instances.use', 'compute.interconnectAttachments.create', 'compute.interconnectAttachments.delete', 'compute.interconnectAttachments.get', 'compute.interconnectAttachments.list', 'compute.interconnectAttachments.setLabels', 'compute.interconnectAttachments.update', 'compute.interconnectAttachments.use', 'compute.interconnectLocations.get', 'compute.interconnectLocations.list', 'compute.interconnects.create', 'compute.interconnects.delete', 'compute.interconnects.get', 'compute.interconnects.list', 'compute.interconnects.setLabels', 'compute.interconnects.update', 'compute.interconnects.use', 'compute.licenseCodes.get', 'compute.licenseCodes.getIamPolicy', 'compute.licenseCodes.list', 'compute.licenseCodes.setIamPolicy', 'compute.licenseCodes.update', 'compute.licenseCodes.use', 'compute.licenses.create', 'compute.licenses.delete', 'compute.licenses.get', 'compute.licenses.getIamPolicy', 'compute.licenses.list', 'compute.licenses.setIamPolicy', 'compute.machineTypes.get', 'compute.machineTypes.list', 'compute.maintenancePolicies.create', 'compute.maintenancePolicies.delete', 'compute.maintenancePolicies.get', 'compute.maintenancePolicies.getIamPolicy', 'compute.maintenancePolicies.list', 'compute.maintenancePolicies.setIamPolicy', 'compute.maintenancePolicies.use', 'compute.networkEndpointGroups.attachNetworkEndpoints', 'compute.networkEndpointGroups.create', 'compute.networkEndpointGroups.delete', 'compute.networkEndpointGroups.detachNetworkEndpoints', 'compute.networkEndpointGroups.get', 'compute.networkEndpointGroups.getIamPolicy', 'compute.networkEndpointGroups.list', 'compute.networkEndpointGroups.setIamPolicy', 'compute.networkEndpointGroups.use', 'compute.networks.addPeering', 'compute.networks.create', 'compute.networks.delete', 'compute.networks.get', 'compute.networks.list', 'compute.networks.removePeering', 'compute.networks.switchToCustomMode', 'compute.networks.update', 'compute.networks.updatePeering', 'compute.networks.updatePolicy', 'compute.networks.use', 'compute.networks.useExternalIp', 'compute.nodeGroups.addNodes', 'compute.nodeGroups.create', 'compute.nodeGroups.delete', 'compute.nodeGroups.deleteNodes', 'compute.nodeGroups.get', 'compute.nodeGroups.getIamPolicy', 'compute.nodeGroups.list', 'compute.nodeGroups.setIamPolicy', 'compute.nodeGroups.setNodeTemplate', 'compute.nodeTemplates.create', 'compute.nodeTemplates.delete', 'compute.nodeTemplates.get', 'compute.nodeTemplates.getIamPolicy', 'compute.nodeTemplates.list', 'compute.nodeTemplates.setIamPolicy', 'compute.nodeTypes.get', 'compute.nodeTypes.list', 'compute.projects.get', 'compute.projects.setDefaultNetworkTier', 'compute.projects.setDefaultServiceAccount', 'compute.projects.setUsageExportBucket', 'compute.regionBackendServices.create', 'compute.regionBackendServices.delete', 'compute.regionBackendServices.get', 'compute.regionBackendServices.list', 'compute.regionBackendServices.setSecurityPolicy', 'compute.regionBackendServices.update', 'compute.regionBackendServices.use', 'compute.regionOperations.delete', 'compute.regionOperations.get', 'compute.regionOperations.getIamPolicy', 'compute.regionOperations.list', 'compute.regionOperations.setIamPolicy', 'compute.regions.get', 'compute.regions.list', 'compute.reservations.create', 'compute.reservations.delete', 'compute.reservations.get', 'compute.reservations.list', 'compute.reservations.resize', 'compute.resourcePolicies.create', 'compute.resourcePolicies.delete', 'compute.resourcePolicies.get', 'compute.resourcePolicies.list', 'compute.resourcePolicies.use', 'compute.routers.create', 'compute.routers.delete', 'compute.routers.get', 'compute.routers.list', 'compute.routers.update', 'compute.routers.use', 'compute.routes.create', 'compute.routes.delete', 'compute.routes.get', 'compute.routes.list', 'compute.securityPolicies.create', 'compute.securityPolicies.delete', 'compute.securityPolicies.get', 'compute.securityPolicies.getIamPolicy', 'compute.securityPolicies.list', 'compute.securityPolicies.setIamPolicy', 'compute.securityPolicies.update', 'compute.securityPolicies.use', 'compute.snapshots.create', 'compute.snapshots.delete', 'compute.snapshots.get', 'compute.snapshots.getIamPolicy', 'compute.snapshots.list', 'compute.snapshots.setIamPolicy', 'compute.snapshots.setLabels', 'compute.snapshots.useReadOnly', 'compute.sslCertificates.create', 'compute.sslCertificates.delete', 'compute.sslCertificates.get', 'compute.sslCertificates.list', 'compute.sslPolicies.create', 'compute.sslPolicies.delete', 'compute.sslPolicies.get', 'compute.sslPolicies.list', 'compute.sslPolicies.listAvailableFeatures', 'compute.sslPolicies.update', 'compute.sslPolicies.use', 'compute.subnetworks.create', 'compute.subnetworks.delete', 'compute.subnetworks.expandIpCidrRange', 'compute.subnetworks.get', 'compute.subnetworks.getIamPolicy', 'compute.subnetworks.list', 'compute.subnetworks.setIamPolicy', 'compute.subnetworks.setPrivateIpGoogleAccess', 'compute.subnetworks.update', 'compute.subnetworks.use', 'compute.subnetworks.useExternalIp', 'compute.targetHttpProxies.create', 'compute.targetHttpProxies.delete', 'compute.targetHttpProxies.get', 'compute.targetHttpProxies.list', 'compute.targetHttpProxies.setUrlMap', 'compute.targetHttpProxies.use', 'compute.targetHttpsProxies.create', 'compute.targetHttpsProxies.delete', 'compute.targetHttpsProxies.get', 'compute.targetHttpsProxies.list', 'compute.targetHttpsProxies.setSslCertificates', 'compute.targetHttpsProxies.setSslPolicy', 'compute.targetHttpsProxies.setUrlMap', 'compute.targetHttpsProxies.use', 'compute.targetInstances.create', 'compute.targetInstances.delete', 'compute.targetInstances.get', 'compute.targetInstances.list', 'compute.targetInstances.use', 'compute.targetPools.addHealthCheck', 'compute.targetPools.addInstance', 'compute.targetPools.create', 'compute.targetPools.delete', 'compute.targetPools.get', 'compute.targetPools.list', 'compute.targetPools.removeHealthCheck', 'compute.targetPools.removeInstance', 'compute.targetPools.update', 'compute.targetPools.use', 'compute.targetSslProxies.create', 'compute.targetSslProxies.delete', 'compute.targetSslProxies.get', 'compute.targetSslProxies.list', 'compute.targetSslProxies.setBackendService', 'compute.targetSslProxies.setProxyHeader', 'compute.targetSslProxies.setSslCertificates', 'compute.targetSslProxies.use', 'compute.targetTcpProxies.create', 'compute.targetTcpProxies.delete', 'compute.targetTcpProxies.get', 'compute.targetTcpProxies.list', 'compute.targetTcpProxies.update', 'compute.targetTcpProxies.use', 'compute.targetVpnGateways.create', 'compute.targetVpnGateways.delete', 'compute.targetVpnGateways.get', 'compute.targetVpnGateways.list', 'compute.targetVpnGateways.setLabels', 'compute.targetVpnGateways.use', 'compute.urlMaps.create', 'compute.urlMaps.delete', 'compute.urlMaps.get', 'compute.urlMaps.invalidateCache', 'compute.urlMaps.list', 'compute.urlMaps.update', 'compute.urlMaps.use', 'compute.urlMaps.validate', 'compute.vpnGateways.create', 'compute.vpnGateways.delete', 'compute.vpnGateways.get', 'compute.vpnGateways.list', 'compute.vpnGateways.setLabels', 'compute.vpnGateways.use', 'compute.vpnTunnels.create', 'compute.vpnTunnels.delete', 'compute.vpnTunnels.get', 'compute.vpnTunnels.list', 'compute.vpnTunnels.setLabels', 'compute.zoneOperations.delete', 'compute.zoneOperations.get', 'compute.zoneOperations.getIamPolicy', 'compute.zoneOperations.list', 'compute.zoneOperations.setIamPolicy', 'compute.zones.get', 'compute.zones.list', 'container.apiServices.create', 'container.apiServices.delete', 'container.apiServices.get', 'container.apiServices.list', 'container.apiServices.update', 'container.apiServices.updateStatus', 'container.backendConfigs.create', 'container.backendConfigs.delete', 'container.backendConfigs.get', 'container.backendConfigs.list', 'container.backendConfigs.update', 'container.bindings.create', 'container.bindings.delete', 'container.bindings.get', 'container.bindings.list', 'container.bindings.update', 'container.certificateSigningRequests.approve', 'container.certificateSigningRequests.create', 'container.certificateSigningRequests.delete', 'container.certificateSigningRequests.get', 'container.certificateSigningRequests.list', 'container.certificateSigningRequests.update', 'container.certificateSigningRequests.updateStatus', 'container.clusterRoleBindings.create', 'container.clusterRoleBindings.delete', 'container.clusterRoleBindings.get', 'container.clusterRoleBindings.list', 'container.clusterRoleBindings.update', 'container.clusterRoles.bind', 'container.clusterRoles.create', 'container.clusterRoles.delete', 'container.clusterRoles.get', 'container.clusterRoles.list', 'container.clusterRoles.update', 'container.clusters.create', 'container.clusters.delete', 'container.clusters.get', 'container.clusters.getCredentials', 'container.clusters.list', 'container.clusters.update', 'container.componentStatuses.get', 'container.componentStatuses.list', 'container.configMaps.create', 'container.configMaps.delete', 'container.configMaps.get', 'container.configMaps.list', 'container.configMaps.update', 'container.controllerRevisions.create', 'container.controllerRevisions.delete', 'container.controllerRevisions.get', 'container.controllerRevisions.list', 'container.controllerRevisions.update', 'container.cronJobs.create', 'container.cronJobs.delete', 'container.cronJobs.get', 'container.cronJobs.getStatus', 'container.cronJobs.list', 'container.cronJobs.update', 'container.cronJobs.updateStatus', 'container.customResourceDefinitions.create', 'container.customResourceDefinitions.delete', 'container.customResourceDefinitions.get', 'container.customResourceDefinitions.list', 'container.customResourceDefinitions.update', 'container.customResourceDefinitions.updateStatus', 'container.daemonSets.create', 'container.daemonSets.delete', 'container.daemonSets.get', 'container.daemonSets.getStatus', 'container.daemonSets.list', 'container.daemonSets.update', 'container.daemonSets.updateStatus', 'container.deployments.create', 'container.deployments.delete', 'container.deployments.get', 'container.deployments.getScale', 'container.deployments.getStatus', 'container.deployments.list', 'container.deployments.rollback', 'container.deployments.update', 'container.deployments.updateScale', 'container.deployments.updateStatus', 'container.endpoints.create', 'container.endpoints.delete', 'container.endpoints.get', 'container.endpoints.list', 'container.endpoints.update', 'container.events.create', 'container.events.delete', 'container.events.get', 'container.events.list', 'container.events.update', 'container.horizontalPodAutoscalers.create', 'container.horizontalPodAutoscalers.delete', 'container.horizontalPodAutoscalers.get', 'container.horizontalPodAutoscalers.getStatus', 'container.horizontalPodAutoscalers.list', 'container.horizontalPodAutoscalers.update', 'container.horizontalPodAutoscalers.updateStatus', 'container.ingresses.create', 'container.ingresses.delete', 'container.ingresses.get', 'container.ingresses.getStatus', 'container.ingresses.list', 'container.ingresses.update', 'container.ingresses.updateStatus', 'container.initializerConfigurations.create', 'container.initializerConfigurations.delete', 'container.initializerConfigurations.get', 'container.initializerConfigurations.list', 'container.initializerConfigurations.update', 'container.jobs.create', 'container.jobs.delete', 'container.jobs.get', 'container.jobs.getStatus', 'container.jobs.list', 'container.jobs.update', 'container.jobs.updateStatus', 'container.limitRanges.create', 'container.limitRanges.delete', 'container.limitRanges.get', 'container.limitRanges.list', 'container.limitRanges.update', 'container.localSubjectAccessReviews.create', 'container.localSubjectAccessReviews.list', 'container.namespaces.create', 'container.namespaces.delete', 'container.namespaces.get', 'container.namespaces.getStatus', 'container.namespaces.list', 'container.namespaces.update', 'container.namespaces.updateStatus', 'container.networkPolicies.create', 'container.networkPolicies.delete', 'container.networkPolicies.get', 'container.networkPolicies.list', 'container.networkPolicies.update', 'container.nodes.create', 'container.nodes.delete', 'container.nodes.get', 'container.nodes.getStatus', 'container.nodes.list', 'container.nodes.proxy', 'container.nodes.update', 'container.nodes.updateStatus', 'container.operations.get', 'container.operations.list', 'container.persistentVolumeClaims.create', 'container.persistentVolumeClaims.delete', 'container.persistentVolumeClaims.get', 'container.persistentVolumeClaims.getStatus', 'container.persistentVolumeClaims.list', 'container.persistentVolumeClaims.update', 'container.persistentVolumeClaims.updateStatus', 'container.persistentVolumes.create', 'container.persistentVolumes.delete', 'container.persistentVolumes.get', 'container.persistentVolumes.getStatus', 'container.persistentVolumes.list', 'container.persistentVolumes.update', 'container.persistentVolumes.updateStatus', 'container.petSets.create', 'container.petSets.delete', 'container.petSets.get', 'container.petSets.list', 'container.petSets.update', 'container.petSets.updateStatus', 'container.podDisruptionBudgets.create', 'container.podDisruptionBudgets.delete', 'container.podDisruptionBudgets.get', 'container.podDisruptionBudgets.getStatus', 'container.podDisruptionBudgets.list', 'container.podDisruptionBudgets.update', 'container.podDisruptionBudgets.updateStatus', 'container.podPresets.create', 'container.podPresets.delete', 'container.podPresets.get', 'container.podPresets.list', 'container.podPresets.update', 'container.podSecurityPolicies.create', 'container.podSecurityPolicies.delete', 'container.podSecurityPolicies.get', 'container.podSecurityPolicies.list', 'container.podSecurityPolicies.update', 'container.podSecurityPolicies.use', 'container.podTemplates.create', 'container.podTemplates.delete', 'container.podTemplates.get', 'container.podTemplates.list', 'container.podTemplates.update', 'container.pods.attach', 'container.pods.create', 'container.pods.delete', 'container.pods.evict', 'container.pods.exec', 'container.pods.get', 'container.pods.getLogs', 'container.pods.getStatus', 'container.pods.initialize', 'container.pods.list', 'container.pods.portForward', 'container.pods.proxy', 'container.pods.update', 'container.pods.updateStatus', 'container.replicaSets.create', 'container.replicaSets.delete', 'container.replicaSets.get', 'container.replicaSets.getScale', 'container.replicaSets.getStatus', 'container.replicaSets.list', 'container.replicaSets.update', 'container.replicaSets.updateScale', 'container.replicaSets.updateStatus', 'container.replicationControllers.create', 'container.replicationControllers.delete', 'container.replicationControllers.get', 'container.replicationControllers.getScale', 'container.replicationControllers.getStatus', 'container.replicationControllers.list', 'container.replicationControllers.update', 'container.replicationControllers.updateScale', 'container.replicationControllers.updateStatus', 'container.resourceQuotas.create', 'container.resourceQuotas.delete', 'container.resourceQuotas.get', 'container.resourceQuotas.getStatus', 'container.resourceQuotas.list', 'container.resourceQuotas.update', 'container.resourceQuotas.updateStatus', 'container.roleBindings.create', 'container.roleBindings.delete', 'container.roleBindings.get', 'container.roleBindings.list', 'container.roleBindings.update', 'container.roles.bind', 'container.roles.create', 'container.roles.delete', 'container.roles.get', 'container.roles.list', 'container.roles.update', 'container.scheduledJobs.create', 'container.scheduledJobs.delete', 'container.scheduledJobs.get', 'container.scheduledJobs.list', 'container.scheduledJobs.update', 'container.scheduledJobs.updateStatus', 'container.secrets.create', 'container.secrets.delete', 'container.secrets.get', 'container.secrets.list', 'container.secrets.update', 'container.selfSubjectAccessReviews.create', 'container.selfSubjectAccessReviews.list', 'container.serviceAccounts.create', 'container.serviceAccounts.delete', 'container.serviceAccounts.get', 'container.serviceAccounts.list', 'container.serviceAccounts.update', 'container.services.create', 'container.services.delete', 'container.services.get', 'container.services.getStatus', 'container.services.list', 'container.services.proxy', 'container.services.update', 'container.services.updateStatus', 'container.statefulSets.create', 'container.statefulSets.delete', 'container.statefulSets.get', 'container.statefulSets.getScale', 'container.statefulSets.getStatus', 'container.statefulSets.list', 'container.statefulSets.update', 'container.statefulSets.updateScale', 'container.statefulSets.updateStatus', 'container.storageClasses.create', 'container.storageClasses.delete', 'container.storageClasses.get', 'container.storageClasses.list', 'container.storageClasses.update', 'container.subjectAccessReviews.create', 'container.subjectAccessReviews.list', 'container.thirdPartyObjects.create', 'container.thirdPartyObjects.delete', 'container.thirdPartyObjects.get', 'container.thirdPartyObjects.list', 'container.thirdPartyObjects.update', 'container.thirdPartyResources.create', 'container.thirdPartyResources.delete', 'container.thirdPartyResources.get', 'container.thirdPartyResources.list', 'container.thirdPartyResources.update', 'container.tokenReviews.create', 'datacatalog.entries.create', 'datacatalog.entries.delete', 'datacatalog.entries.get', 'datacatalog.entries.getIamPolicy', 'datacatalog.entries.setIamPolicy', 'datacatalog.entries.update', 'datacatalog.entryGroups.create', 'datacatalog.entryGroups.delete', 'datacatalog.entryGroups.get', 'datacatalog.entryGroups.getIamPolicy', 'datacatalog.entryGroups.setIamPolicy', 'datacatalog.tagTemplates.create', 'datacatalog.tagTemplates.delete', 'datacatalog.tagTemplates.get', 'datacatalog.tagTemplates.getIamPolicy', 'datacatalog.tagTemplates.getTag', 'datacatalog.tagTemplates.setIamPolicy', 'datacatalog.tagTemplates.update', 'datacatalog.tagTemplates.use', 'dataflow.jobs.cancel', 'dataflow.jobs.create', 'dataflow.jobs.get', 'dataflow.jobs.list', 'dataflow.jobs.updateContents', 'dataflow.messages.list', 'dataflow.metrics.get', 'datafusion.instances.create', 'datafusion.instances.delete', 'datafusion.instances.get', 'datafusion.instances.getIamPolicy', 'datafusion.instances.list', 'datafusion.instances.restart', 'datafusion.instances.setIamPolicy', 'datafusion.instances.update', 'datafusion.instances.upgrade', 'datafusion.locations.get', 'datafusion.locations.list', 'datafusion.operations.cancel', 'datafusion.operations.get', 'datafusion.operations.list', 'datalabeling.annotateddatasets.delete', 'datalabeling.annotateddatasets.get', 'datalabeling.annotateddatasets.label', 'datalabeling.annotateddatasets.list', 'datalabeling.annotationspecsets.create', 'datalabeling.annotationspecsets.delete', 'datalabeling.annotationspecsets.get', 'datalabeling.annotationspecsets.list', 'datalabeling.dataitems.get', 'datalabeling.dataitems.list', 'datalabeling.datasets.create', 'datalabeling.datasets.delete', 'datalabeling.datasets.export', 'datalabeling.datasets.get', 'datalabeling.datasets.import', 'datalabeling.datasets.list', 'datalabeling.examples.get', 'datalabeling.examples.list', 'datalabeling.instructions.create', 'datalabeling.instructions.delete', 'datalabeling.instructions.get', 'datalabeling.instructions.list', 'datalabeling.operations.cancel', 'datalabeling.operations.get', 'datalabeling.operations.list', 'dataprep.projects.use', 'dataproc.agents.create', 'dataproc.agents.delete', 'dataproc.agents.get', 'dataproc.agents.list', 'dataproc.agents.update', 'dataproc.clusters.create', 'dataproc.clusters.delete', 'dataproc.clusters.get', 'dataproc.clusters.getIamPolicy', 'dataproc.clusters.list', 'dataproc.clusters.setIamPolicy', 'dataproc.clusters.update', 'dataproc.clusters.use', 'dataproc.jobs.cancel', 'dataproc.jobs.create', 'dataproc.jobs.delete', 'dataproc.jobs.get', 'dataproc.jobs.getIamPolicy', 'dataproc.jobs.list', 'dataproc.jobs.setIamPolicy', 'dataproc.jobs.update', 'dataproc.operations.cancel', 'dataproc.operations.delete', 'dataproc.operations.get', 'dataproc.operations.getIamPolicy', 'dataproc.operations.list', 'dataproc.operations.setIamPolicy', 'dataproc.tasks.lease', 'dataproc.tasks.listInvalidatedLeases', 'dataproc.tasks.reportStatus', 'dataproc.workflowTemplates.create', 'dataproc.workflowTemplates.delete', 'dataproc.workflowTemplates.get', 'dataproc.workflowTemplates.getIamPolicy', 'dataproc.workflowTemplates.instantiate', 'dataproc.workflowTemplates.instantiateInline', 'dataproc.workflowTemplates.list', 'dataproc.workflowTemplates.setIamPolicy', 'dataproc.workflowTemplates.update', 'datastore.databases.create', 'datastore.databases.delete', 'datastore.databases.export', 'datastore.databases.get', 'datastore.databases.getIamPolicy', 'datastore.databases.import', 'datastore.databases.list', 'datastore.databases.setIamPolicy', 'datastore.databases.update', 'datastore.entities.allocateIds', 'datastore.entities.create', 'datastore.entities.delete', 'datastore.entities.get', 'datastore.entities.list', 'datastore.entities.update', 'datastore.indexes.create', 'datastore.indexes.delete', 'datastore.indexes.get', 'datastore.indexes.list', 'datastore.indexes.update', 'datastore.locations.get', 'datastore.locations.list', 'datastore.namespaces.get', 'datastore.namespaces.getIamPolicy', 'datastore.namespaces.list', 'datastore.namespaces.setIamPolicy', 'datastore.operations.cancel', 'datastore.operations.delete', 'datastore.operations.get', 'datastore.operations.list', 'datastore.statistics.get', 'datastore.statistics.list', 'deploymentmanager.compositeTypes.create', 'deploymentmanager.compositeTypes.delete', 'deploymentmanager.compositeTypes.get', 'deploymentmanager.compositeTypes.list', 'deploymentmanager.compositeTypes.update', 'deploymentmanager.deployments.cancelPreview', 'deploymentmanager.deployments.create', 'deploymentmanager.deployments.delete', 'deploymentmanager.deployments.get', 'deploymentmanager.deployments.getIamPolicy', 'deploymentmanager.deployments.list', 'deploymentmanager.deployments.setIamPolicy', 'deploymentmanager.deployments.stop', 'deploymentmanager.deployments.update', 'deploymentmanager.manifests.get', 'deploymentmanager.manifests.list', 'deploymentmanager.operations.get', 'deploymentmanager.operations.list', 'deploymentmanager.resources.get', 'deploymentmanager.resources.list', 'deploymentmanager.typeProviders.create', 'deploymentmanager.typeProviders.delete', 'deploymentmanager.typeProviders.get', 'deploymentmanager.typeProviders.getType', 'deploymentmanager.typeProviders.list', 'deploymentmanager.typeProviders.listTypes', 'deploymentmanager.typeProviders.update', 'deploymentmanager.types.create', 'deploymentmanager.types.delete', 'deploymentmanager.types.get', 'deploymentmanager.types.list', 'deploymentmanager.types.update', 'dialogflow.agents.create', 'dialogflow.agents.delete', 'dialogflow.agents.export', 'dialogflow.agents.get', 'dialogflow.agents.import', 'dialogflow.agents.restore', 'dialogflow.agents.search', 'dialogflow.agents.train', 'dialogflow.agents.update', 'dialogflow.contexts.create', 'dialogflow.contexts.delete', 'dialogflow.contexts.get', 'dialogflow.contexts.list', 'dialogflow.contexts.update', 'dialogflow.entityTypes.create', 'dialogflow.entityTypes.createEntity', 'dialogflow.entityTypes.delete', 'dialogflow.entityTypes.deleteEntity', 'dialogflow.entityTypes.get', 'dialogflow.entityTypes.list', 'dialogflow.entityTypes.update', 'dialogflow.entityTypes.updateEntity', 'dialogflow.intents.create', 'dialogflow.intents.delete', 'dialogflow.intents.get', 'dialogflow.intents.list', 'dialogflow.intents.update', 'dialogflow.operations.get', 'dialogflow.sessionEntityTypes.create', 'dialogflow.sessionEntityTypes.delete', 'dialogflow.sessionEntityTypes.get', 'dialogflow.sessionEntityTypes.list', 'dialogflow.sessionEntityTypes.update', 'dialogflow.sessions.detectIntent', 'dialogflow.sessions.streamingDetectIntent', 'dlp.analyzeRiskTemplates.create', 'dlp.analyzeRiskTemplates.delete', 'dlp.analyzeRiskTemplates.get', 'dlp.analyzeRiskTemplates.list', 'dlp.analyzeRiskTemplates.update', 'dlp.deidentifyTemplates.create', 'dlp.deidentifyTemplates.delete', 'dlp.deidentifyTemplates.get', 'dlp.deidentifyTemplates.list', 'dlp.deidentifyTemplates.update', 'dlp.inspectTemplates.create', 'dlp.inspectTemplates.delete', 'dlp.inspectTemplates.get', 'dlp.inspectTemplates.list', 'dlp.inspectTemplates.update', 'dlp.jobTriggers.create', 'dlp.jobTriggers.delete', 'dlp.jobTriggers.get', 'dlp.jobTriggers.list', 'dlp.jobTriggers.update', 'dlp.jobs.cancel', 'dlp.jobs.create', 'dlp.jobs.delete', 'dlp.jobs.get', 'dlp.jobs.list', 'dlp.kms.encrypt', 'dlp.storedInfoTypes.create', 'dlp.storedInfoTypes.delete', 'dlp.storedInfoTypes.get', 'dlp.storedInfoTypes.list', 'dlp.storedInfoTypes.update', 'dns.changes.create', 'dns.changes.get', 'dns.changes.list', 'dns.dnsKeys.get', 'dns.dnsKeys.list', 'dns.managedZoneOperations.get', 'dns.managedZoneOperations.list', 'dns.managedZones.create', 'dns.managedZones.delete', 'dns.managedZones.get', 'dns.managedZones.list', 'dns.managedZones.update', 'dns.networks.bindPrivateDNSPolicy', 'dns.networks.bindPrivateDNSZone', 'dns.networks.targetWithPeeringZone', 'dns.policies.create', 'dns.policies.delete', 'dns.policies.get', 'dns.policies.getIamPolicy', 'dns.policies.list', 'dns.policies.setIamPolicy', 'dns.policies.update', 'dns.projects.get', 'dns.resourceRecordSets.create', 'dns.resourceRecordSets.delete', 'dns.resourceRecordSets.list', 'dns.resourceRecordSets.update', 'endpoints.portals.attachCustomDomain', 'endpoints.portals.detachCustomDomain', 'endpoints.portals.listCustomDomains', 'endpoints.portals.update', 'errorreporting.applications.list', 'errorreporting.errorEvents.create', 'errorreporting.errorEvents.delete', 'errorreporting.errorEvents.list', 'errorreporting.groupMetadata.get', 'errorreporting.groupMetadata.update', 'errorreporting.groups.list', 'file.instances.create', 'file.instances.delete', 'file.instances.get', 'file.instances.list', 'file.instances.restore', 'file.instances.update', 'file.locations.get', 'file.locations.list', 'file.operations.cancel', 'file.operations.delete', 'file.operations.get', 'file.operations.list', 'file.snapshots.create', 'file.snapshots.delete', 'file.snapshots.get', 'file.snapshots.list', 'file.snapshots.update', 'firebase.billingPlans.get', 'firebase.billingPlans.update', 'firebase.clients.create', 'firebase.clients.delete', 'firebase.clients.get', 'firebase.links.create', 'firebase.links.delete', 'firebase.links.list', 'firebase.links.update', 'firebase.projects.delete', 'firebase.projects.get', 'firebase.projects.update', 'firebaseabt.experimentresults.get', 'firebaseabt.experiments.create', 'firebaseabt.experiments.delete', 'firebaseabt.experiments.get', 'firebaseabt.experiments.list', 'firebaseabt.experiments.update', 'firebaseabt.projectmetadata.get', 'firebaseanalytics.resources.googleAnalyticsEdit', 'firebaseanalytics.resources.googleAnalyticsReadAndAnalyze', 'firebaseauth.configs.create', 'firebaseauth.configs.get', 'firebaseauth.configs.getHashConfig', 'firebaseauth.configs.update', 'firebaseauth.users.create', 'firebaseauth.users.createSession', 'firebaseauth.users.delete', 'firebaseauth.users.get', 'firebaseauth.users.sendEmail', 'firebaseauth.users.update', 'firebasecrash.issues.update', 'firebasecrash.reports.get', 'firebasecrashlytics.config.get', 'firebasecrashlytics.config.update', 'firebasecrashlytics.data.get', 'firebasecrashlytics.issues.get', 'firebasecrashlytics.issues.list', 'firebasecrashlytics.issues.update', 'firebasecrashlytics.sessions.get', 'firebasedatabase.instances.create', 'firebasedatabase.instances.get', 'firebasedatabase.instances.list', 'firebasedatabase.instances.update', 'firebasedynamiclinks.destinations.list', 'firebasedynamiclinks.destinations.update', 'firebasedynamiclinks.domains.create', 'firebasedynamiclinks.domains.delete', 'firebasedynamiclinks.domains.get', 'firebasedynamiclinks.domains.list', 'firebasedynamiclinks.domains.update', 'firebasedynamiclinks.links.create', 'firebasedynamiclinks.links.get', 'firebasedynamiclinks.links.list', 'firebasedynamiclinks.links.update', 'firebasedynamiclinks.stats.get', 'firebaseextensions.configs.create', 'firebaseextensions.configs.delete', 'firebaseextensions.configs.list', 'firebaseextensions.configs.update', 'firebasehosting.sites.create', 'firebasehosting.sites.delete', 'firebasehosting.sites.get', 'firebasehosting.sites.list', 'firebasehosting.sites.update', 'firebaseinappmessaging.campaigns.create', 'firebaseinappmessaging.campaigns.delete', 'firebaseinappmessaging.campaigns.get', 'firebaseinappmessaging.campaigns.list', 'firebaseinappmessaging.campaigns.update', 'firebaseml.compressionjobs.create', 'firebaseml.compressionjobs.delete', 'firebaseml.compressionjobs.get', 'firebaseml.compressionjobs.list', 'firebaseml.compressionjobs.start', 'firebaseml.compressionjobs.update', 'firebaseml.models.create', 'firebaseml.models.delete', 'firebaseml.models.get', 'firebaseml.models.list', 'firebaseml.modelversions.create', 'firebaseml.modelversions.get', 'firebaseml.modelversions.list', 'firebaseml.modelversions.update', 'firebasenotifications.messages.create', 'firebasenotifications.messages.delete', 'firebasenotifications.messages.get', 'firebasenotifications.messages.list', 'firebasenotifications.messages.update', 'firebaseperformance.config.create', 'firebaseperformance.config.delete', 'firebaseperformance.config.update', 'firebaseperformance.data.get', 'firebasepredictions.predictions.create', 'firebasepredictions.predictions.delete', 'firebasepredictions.predictions.list', 'firebasepredictions.predictions.update', 'firebaserules.releases.create', 'firebaserules.releases.delete', 'firebaserules.releases.get', 'firebaserules.releases.getExecutable', 'firebaserules.releases.list', 'firebaserules.releases.update', 'firebaserules.rulesets.create', 'firebaserules.rulesets.delete', 'firebaserules.rulesets.get', 'firebaserules.rulesets.list', 'firebaserules.rulesets.test', 'genomics.datasets.create', 'genomics.datasets.delete', 'genomics.datasets.get', 'genomics.datasets.getIamPolicy', 'genomics.datasets.list', 'genomics.datasets.setIamPolicy', 'genomics.datasets.update', 'genomics.operations.cancel', 'genomics.operations.create', 'genomics.operations.get', 'genomics.operations.list', 'healthcare.datasets.create', 'healthcare.datasets.deidentify', 'healthcare.datasets.delete', 'healthcare.datasets.get', 'healthcare.datasets.getIamPolicy', 'healthcare.datasets.list', 'healthcare.datasets.setIamPolicy', 'healthcare.datasets.update', 'healthcare.dicomStores.create', 'healthcare.dicomStores.delete', 'healthcare.dicomStores.dicomWebDelete', 'healthcare.dicomStores.dicomWebRead', 'healthcare.dicomStores.dicomWebWrite', 'healthcare.dicomStores.export', 'healthcare.dicomStores.get', 'healthcare.dicomStores.getIamPolicy', 'healthcare.dicomStores.import', 'healthcare.dicomStores.list', 'healthcare.dicomStores.setIamPolicy', 'healthcare.dicomStores.update', 'healthcare.fhirResources.create', 'healthcare.fhirResources.delete', 'healthcare.fhirResources.get', 'healthcare.fhirResources.patch', 'healthcare.fhirResources.purge', 'healthcare.fhirResources.update', 'healthcare.fhirStores.create', 'healthcare.fhirStores.delete', 'healthcare.fhirStores.export', 'healthcare.fhirStores.get', 'healthcare.fhirStores.getIamPolicy', 'healthcare.fhirStores.import', 'healthcare.fhirStores.list', 'healthcare.fhirStores.searchResources', 'healthcare.fhirStores.setIamPolicy', 'healthcare.fhirStores.update', 'healthcare.hl7V2Messages.create', 'healthcare.hl7V2Messages.delete', 'healthcare.hl7V2Messages.get', 'healthcare.hl7V2Messages.ingest', 'healthcare.hl7V2Messages.list', 'healthcare.hl7V2Messages.update', 'healthcare.hl7V2Stores.create', 'healthcare.hl7V2Stores.delete', 'healthcare.hl7V2Stores.get', 'healthcare.hl7V2Stores.getIamPolicy', 'healthcare.hl7V2Stores.list', 'healthcare.hl7V2Stores.setIamPolicy', 'healthcare.hl7V2Stores.update', 'healthcare.operations.cancel', 'healthcare.operations.get', 'healthcare.operations.list', 'iam.roles.create', 'iam.roles.delete', 'iam.roles.get', 'iam.roles.list', 'iam.roles.undelete', 'iam.roles.update', 'iam.serviceAccountKeys.create', 'iam.serviceAccountKeys.delete', 'iam.serviceAccountKeys.get', 'iam.serviceAccountKeys.list', 'iam.serviceAccounts.actAs', 'iam.serviceAccounts.create', 'iam.serviceAccounts.delete', 'iam.serviceAccounts.get', 'iam.serviceAccounts.getIamPolicy', 'iam.serviceAccounts.list', 'iam.serviceAccounts.setIamPolicy', 'iam.serviceAccounts.update', 'iap.tunnel.getIamPolicy', 'iap.tunnel.setIamPolicy', 'iap.tunnelInstances.accessViaIAP', 'iap.tunnelInstances.getIamPolicy', 'iap.tunnelInstances.setIamPolicy', 'iap.tunnelZones.getIamPolicy', 'iap.tunnelZones.setIamPolicy', 'iap.web.getIamPolicy', 'iap.web.setIamPolicy', 'iap.webServiceVersions.getIamPolicy', 'iap.webServiceVersions.setIamPolicy', 'iap.webServices.getIamPolicy', 'iap.webServices.setIamPolicy', 'iap.webTypes.getIamPolicy', 'iap.webTypes.setIamPolicy', 'logging.exclusions.create', 'logging.exclusions.delete', 'logging.exclusions.get', 'logging.exclusions.list', 'logging.exclusions.update', 'logging.logEntries.create', 'logging.logEntries.list', 'logging.logMetrics.create', 'logging.logMetrics.delete', 'logging.logMetrics.get', 'logging.logMetrics.list', 'logging.logMetrics.update', 'logging.logServiceIndexes.list', 'logging.logServices.list', 'logging.logs.delete', 'logging.logs.list', 'logging.privateLogEntries.list', 'logging.sinks.create', 'logging.sinks.delete', 'logging.sinks.get', 'logging.sinks.list', 'logging.sinks.update', 'logging.usage.get', 'managedidentities.domains.attachTrust', 'managedidentities.domains.create', 'managedidentities.domains.delete', 'managedidentities.domains.detachTrust', 'managedidentities.domains.get', 'managedidentities.domains.getIamPolicy', 'managedidentities.domains.list', 'managedidentities.domains.reconfigureTrust', 'managedidentities.domains.resetpassword', 'managedidentities.domains.setIamPolicy', 'managedidentities.domains.update', 'managedidentities.domains.validateTrust', 'managedidentities.locations.get', 'managedidentities.locations.list', 'managedidentities.operations.cancel', 'managedidentities.operations.delete', 'managedidentities.operations.get', 'managedidentities.operations.list', 'ml.jobs.cancel', 'ml.jobs.create', 'ml.jobs.get', 'ml.jobs.getIamPolicy', 'ml.jobs.list', 'ml.jobs.setIamPolicy', 'ml.jobs.update', 'ml.locations.get', 'ml.locations.list', 'ml.models.create', 'ml.models.delete', 'ml.models.get', 'ml.models.getIamPolicy', 'ml.models.list', 'ml.models.predict', 'ml.models.setIamPolicy', 'ml.models.update', 'ml.operations.cancel', 'ml.operations.get', 'ml.operations.list', 'ml.projects.getConfig', 'ml.versions.create', 'ml.versions.delete', 'ml.versions.get', 'ml.versions.list', 'ml.versions.predict', 'ml.versions.update', 'monitoring.alertPolicies.create', 'monitoring.alertPolicies.delete', 'monitoring.alertPolicies.get', 'monitoring.alertPolicies.list', 'monitoring.alertPolicies.update', 'monitoring.dashboards.create', 'monitoring.dashboards.delete', 'monitoring.dashboards.get', 'monitoring.dashboards.list', 'monitoring.dashboards.update', 'monitoring.groups.create', 'monitoring.groups.delete', 'monitoring.groups.get', 'monitoring.groups.list', 'monitoring.groups.update', 'monitoring.metricDescriptors.create', 'monitoring.metricDescriptors.delete', 'monitoring.metricDescriptors.get', 'monitoring.metricDescriptors.list', 'monitoring.monitoredResourceDescriptors.get', 'monitoring.monitoredResourceDescriptors.list', 'monitoring.notificationChannelDescriptors.get', 'monitoring.notificationChannelDescriptors.list', 'monitoring.notificationChannels.create', 'monitoring.notificationChannels.delete', 'monitoring.notificationChannels.get', 'monitoring.notificationChannels.getVerificationCode', 'monitoring.notificationChannels.list', 'monitoring.notificationChannels.sendVerificationCode', 'monitoring.notificationChannels.update', 'monitoring.notificationChannels.verify', 'monitoring.publicWidgets.create', 'monitoring.publicWidgets.delete', 'monitoring.publicWidgets.get', 'monitoring.publicWidgets.list', 'monitoring.publicWidgets.update', 'monitoring.timeSeries.create', 'monitoring.timeSeries.list', 'monitoring.uptimeCheckConfigs.create', 'monitoring.uptimeCheckConfigs.delete', 'monitoring.uptimeCheckConfigs.get', 'monitoring.uptimeCheckConfigs.list', 'monitoring.uptimeCheckConfigs.update', 'orgpolicy.policy.get', 'proximitybeacon.attachments.create', 'proximitybeacon.attachments.delete', 'proximitybeacon.attachments.get', 'proximitybeacon.attachments.list', 'proximitybeacon.beacons.attach', 'proximitybeacon.beacons.create', 'proximitybeacon.beacons.get', 'proximitybeacon.beacons.getIamPolicy', 'proximitybeacon.beacons.list', 'proximitybeacon.beacons.setIamPolicy', 'proximitybeacon.beacons.update', 'proximitybeacon.namespaces.create', 'proximitybeacon.namespaces.delete', 'proximitybeacon.namespaces.get', 'proximitybeacon.namespaces.getIamPolicy', 'proximitybeacon.namespaces.list', 'proximitybeacon.namespaces.setIamPolicy', 'proximitybeacon.namespaces.update', 'pubsub.snapshots.create', 'pubsub.snapshots.delete', 'pubsub.snapshots.get', 'pubsub.snapshots.getIamPolicy', 'pubsub.snapshots.list', 'pubsub.snapshots.seek', 'pubsub.snapshots.setIamPolicy', 'pubsub.snapshots.update', 'pubsub.subscriptions.consume', 'pubsub.subscriptions.create', 'pubsub.subscriptions.delete', 'pubsub.subscriptions.get', 'pubsub.subscriptions.getIamPolicy', 'pubsub.subscriptions.list', 'pubsub.subscriptions.setIamPolicy', 'pubsub.subscriptions.update', 'pubsub.topics.attachSubscription', 'pubsub.topics.create', 'pubsub.topics.delete', 'pubsub.topics.get', 'pubsub.topics.getIamPolicy', 'pubsub.topics.list', 'pubsub.topics.publish', 'pubsub.topics.setIamPolicy', 'pubsub.topics.update', 'pubsub.topics.updateTag', 'redis.instances.create', 'redis.instances.delete', 'redis.instances.export', 'redis.instances.get', 'redis.instances.import', 'redis.instances.list', 'redis.instances.update', 'redis.locations.get', 'redis.locations.list', 'redis.operations.cancel', 'redis.operations.delete', 'redis.operations.get', 'redis.operations.list', 'remotebuildexecution.actions.create', 'remotebuildexecution.actions.get', 'remotebuildexecution.actions.update', 'remotebuildexecution.blobs.create', 'remotebuildexecution.blobs.get', 'remotebuildexecution.botsessions.create', 'remotebuildexecution.botsessions.update', 'remotebuildexecution.instances.create', 'remotebuildexecution.instances.delete', 'remotebuildexecution.instances.get', 'remotebuildexecution.instances.list', 'remotebuildexecution.logstreams.create', 'remotebuildexecution.logstreams.get', 'remotebuildexecution.logstreams.update', 'remotebuildexecution.workerpools.create', 'remotebuildexecution.workerpools.delete', 'remotebuildexecution.workerpools.get', 'remotebuildexecution.workerpools.list', 'remotebuildexecution.workerpools.update', 'resourcemanager.projects.createBillingAssignment', 'resourcemanager.projects.delete', 'resourcemanager.projects.deleteBillingAssignment', 'resourcemanager.projects.get', 'resourcemanager.projects.getIamPolicy', 'resourcemanager.projects.setIamPolicy', 'resourcemanager.projects.undelete', 'resourcemanager.projects.update', 'resourcemanager.projects.updateLiens', 'run.configurations.get', 'run.configurations.list', 'run.locations.list', 'run.revisions.delete', 'run.revisions.get', 'run.revisions.list', 'run.routes.get', 'run.routes.invoke', 'run.routes.list', 'run.services.create', 'run.services.delete', 'run.services.get', 'run.services.getIamPolicy', 'run.services.list', 'run.services.setIamPolicy', 'run.services.update', 'runtimeconfig.configs.create', 'runtimeconfig.configs.delete', 'runtimeconfig.configs.get', 'runtimeconfig.configs.getIamPolicy', 'runtimeconfig.configs.list', 'runtimeconfig.configs.setIamPolicy', 'runtimeconfig.configs.update', 'runtimeconfig.operations.get', 'runtimeconfig.operations.list', 'runtimeconfig.variables.create', 'runtimeconfig.variables.delete', 'runtimeconfig.variables.get', 'runtimeconfig.variables.getIamPolicy', 'runtimeconfig.variables.list', 'runtimeconfig.variables.setIamPolicy', 'runtimeconfig.variables.update', 'runtimeconfig.variables.watch', 'runtimeconfig.waiters.create', 'runtimeconfig.waiters.delete', 'runtimeconfig.waiters.get', 'runtimeconfig.waiters.getIamPolicy', 'runtimeconfig.waiters.list', 'runtimeconfig.waiters.setIamPolicy', 'runtimeconfig.waiters.update', 'servicebroker.bindingoperations.get', 'servicebroker.bindingoperations.list', 'servicebroker.bindings.create', 'servicebroker.bindings.delete', 'servicebroker.bindings.get', 'servicebroker.bindings.getIamPolicy', 'servicebroker.bindings.list', 'servicebroker.bindings.setIamPolicy', 'servicebroker.catalogs.create', 'servicebroker.catalogs.delete', 'servicebroker.catalogs.get', 'servicebroker.catalogs.getIamPolicy', 'servicebroker.catalogs.list', 'servicebroker.catalogs.setIamPolicy', 'servicebroker.catalogs.validate', 'servicebroker.instanceoperations.get', 'servicebroker.instanceoperations.list', 'servicebroker.instances.create', 'servicebroker.instances.delete', 'servicebroker.instances.get', 'servicebroker.instances.getIamPolicy', 'servicebroker.instances.list', 'servicebroker.instances.setIamPolicy', 'servicebroker.instances.update', 'serviceconsumermanagement.consumers.get', 'serviceconsumermanagement.quota.get', 'serviceconsumermanagement.quota.update', 'serviceconsumermanagement.tenancyu.addResource', 'serviceconsumermanagement.tenancyu.create', 'serviceconsumermanagement.tenancyu.delete', 'serviceconsumermanagement.tenancyu.list', 'serviceconsumermanagement.tenancyu.removeResource', 'servicemanagement.services.bind', 'servicemanagement.services.check', 'servicemanagement.services.create', 'servicemanagement.services.delete', 'servicemanagement.services.get', 'servicemanagement.services.getIamPolicy', 'servicemanagement.services.list', 'servicemanagement.services.quota', 'servicemanagement.services.report', 'servicemanagement.services.setIamPolicy', 'servicemanagement.services.update', 'servicenetworking.operations.cancel', 'servicenetworking.operations.delete', 'servicenetworking.operations.get', 'servicenetworking.operations.list', 'servicenetworking.services.addPeering', 'servicenetworking.services.addSubnetwork', 'servicenetworking.services.get', 'serviceusage.apiKeys.create', 'serviceusage.apiKeys.delete', 'serviceusage.apiKeys.get', 'serviceusage.apiKeys.getProjectForKey', 'serviceusage.apiKeys.list', 'serviceusage.apiKeys.regenerate', 'serviceusage.apiKeys.revert', 'serviceusage.apiKeys.update', 'serviceusage.operations.cancel', 'serviceusage.operations.delete', 'serviceusage.operations.get', 'serviceusage.operations.list', 'serviceusage.quotas.get', 'serviceusage.quotas.update', 'serviceusage.services.disable', 'serviceusage.services.enable', 'serviceusage.services.get', 'serviceusage.services.list', 'serviceusage.services.use', 'source.repos.create', 'source.repos.delete', 'source.repos.get', 'source.repos.getIamPolicy', 'source.repos.getProjectConfig', 'source.repos.list', 'source.repos.setIamPolicy', 'source.repos.update', 'source.repos.updateProjectConfig', 'source.repos.updateRepoConfig', 'spanner.databaseOperations.cancel', 'spanner.databaseOperations.delete', 'spanner.databaseOperations.get', 'spanner.databaseOperations.list', 'spanner.databases.beginOrRollbackReadWriteTransaction', 'spanner.databases.beginReadOnlyTransaction', 'spanner.databases.create', 'spanner.databases.drop', 'spanner.databases.get', 'spanner.databases.getDdl', 'spanner.databases.getIamPolicy', 'spanner.databases.list', 'spanner.databases.read', 'spanner.databases.select', 'spanner.databases.setIamPolicy', 'spanner.databases.update', 'spanner.databases.updateDdl', 'spanner.databases.write', 'spanner.instanceConfigs.get', 'spanner.instanceConfigs.list', 'spanner.instanceOperations.cancel', 'spanner.instanceOperations.delete', 'spanner.instanceOperations.get', 'spanner.instanceOperations.list', 'spanner.instances.create', 'spanner.instances.delete', 'spanner.instances.get', 'spanner.instances.getIamPolicy', 'spanner.instances.list', 'spanner.instances.setIamPolicy', 'spanner.instances.update', 'spanner.sessions.create', 'spanner.sessions.delete', 'spanner.sessions.get', 'spanner.sessions.list', 'stackdriver.projects.edit', 'stackdriver.projects.get', 'stackdriver.resourceMetadata.write', 'storage.buckets.create', 'storage.buckets.delete', 'storage.buckets.list', 'storage.objects.create', 'storage.objects.delete', 'storage.objects.get', 'storage.objects.getIamPolicy', 'storage.objects.list', 'storage.objects.setIamPolicy', 'storage.objects.update', 'storage.hmacKeys.create', 'storage.hmacKeys.delete', 'storage.hmacKeys.get', 'storage.hmacKeys.list', 'storage.hmacKeys.update', 'storagetransfer.jobs.create', 'storagetransfer.jobs.delete', 'storagetransfer.jobs.get', 'storagetransfer.jobs.list', 'storagetransfer.jobs.update', 'storagetransfer.operations.cancel', 'storagetransfer.operations.get', 'storagetransfer.operations.list', 'storagetransfer.operations.pause', 'storagetransfer.operations.resume', 'storagetransfer.projects.getServiceAccount', 'subscribewithgoogledeveloper.tools.get', 'threatdetection.detectorSettings.clear', 'threatdetection.detectorSettings.get', 'threatdetection.detectorSettings.update', 'tpu.acceleratortypes.get', 'tpu.acceleratortypes.list', 'tpu.locations.get', 'tpu.locations.list', 'tpu.nodes.create', 'tpu.nodes.delete', 'tpu.nodes.get', 'tpu.nodes.list', 'tpu.nodes.reimage', 'tpu.nodes.reset', 'tpu.nodes.start', 'tpu.nodes.stop', 'tpu.operations.get', 'tpu.operations.list', 'tpu.tensorflowversions.get', 'tpu.tensorflowversions.list', 'vpcaccess.connectors.create', 'vpcaccess.connectors.delete', 'vpcaccess.connectors.get', 'vpcaccess.connectors.list', 'vpcaccess.connectors.use', 'vpcaccess.locations.list', 'vpcaccess.operations.get', 'vpcaccess.operations.list' ]
permissions = ['accessapproval.requests.approve', 'accessapproval.requests.dismiss', 'accessapproval.requests.get', 'accessapproval.requests.list', 'accessapproval.settings.get', 'accessapproval.settings.update', 'androidmanagement.enterprises.manage', 'appengine.applications.create', 'appengine.applications.get', 'appengine.applications.update', 'appengine.instances.delete', 'appengine.instances.get', 'appengine.instances.list', 'appengine.memcache.addKey', 'appengine.memcache.flush', 'appengine.memcache.get', 'appengine.memcache.getKey', 'appengine.memcache.list', 'appengine.memcache.update', 'appengine.operations.get', 'appengine.operations.list', 'appengine.runtimes.actAsAdmin', 'appengine.services.delete', 'appengine.services.get', 'appengine.services.list', 'appengine.services.update', 'appengine.versions.create', 'appengine.versions.delete', 'appengine.versions.get', 'appengine.versions.getFileContents', 'appengine.versions.list', 'appengine.versions.update', 'automl.annotationSpecs.create', 'automl.annotationSpecs.delete', 'automl.annotationSpecs.get', 'automl.annotationSpecs.list', 'automl.annotationSpecs.update', 'automl.annotations.approve', 'automl.annotations.create', 'automl.annotations.list', 'automl.annotations.manipulate', 'automl.annotations.reject', 'automl.columnSpecs.get', 'automl.columnSpecs.list', 'automl.columnSpecs.update', 'automl.datasets.create', 'automl.datasets.delete', 'automl.datasets.export', 'automl.datasets.get', 'automl.datasets.getIamPolicy', 'automl.datasets.import', 'automl.datasets.list', 'automl.datasets.setIamPolicy', 'automl.datasets.update', 'automl.examples.delete', 'automl.examples.get', 'automl.examples.list', 'automl.humanAnnotationTasks.create', 'automl.humanAnnotationTasks.delete', 'automl.humanAnnotationTasks.get', 'automl.humanAnnotationTasks.list', 'automl.locations.get', 'automl.locations.getIamPolicy', 'automl.locations.list', 'automl.locations.setIamPolicy', 'automl.modelEvaluations.create', 'automl.modelEvaluations.get', 'automl.modelEvaluations.list', 'automl.models.create', 'automl.models.delete', 'automl.models.deploy', 'automl.models.export', 'automl.models.get', 'automl.models.getIamPolicy', 'automl.models.list', 'automl.models.predict', 'automl.models.setIamPolicy', 'automl.models.undeploy', 'automl.operations.cancel', 'automl.operations.delete', 'automl.operations.get', 'automl.operations.list', 'automl.tableSpecs.get', 'automl.tableSpecs.list', 'automl.tableSpecs.update', 'automlrecommendations.apiKeys.create', 'automlrecommendations.apiKeys.delete', 'automlrecommendations.apiKeys.list', 'automlrecommendations.catalogItems.create', 'automlrecommendations.catalogItems.delete', 'automlrecommendations.catalogItems.get', 'automlrecommendations.catalogItems.list', 'automlrecommendations.catalogItems.update', 'automlrecommendations.catalogs.getStats', 'automlrecommendations.catalogs.list', 'automlrecommendations.eventStores.getStats', 'automlrecommendations.events.create', 'automlrecommendations.events.list', 'automlrecommendations.events.purge', 'automlrecommendations.placements.getStats', 'automlrecommendations.placements.list', 'automlrecommendations.recommendations.list', 'bigquery.config.get', 'bigquery.config.update', 'bigquery.connections.create', 'bigquery.connections.delete', 'bigquery.connections.get', 'bigquery.connections.getIamPolicy', 'bigquery.connections.list', 'bigquery.connections.setIamPolicy', 'bigquery.connections.update', 'bigquery.connections.use', 'bigquery.datasets.create', 'bigquery.datasets.delete', 'bigquery.datasets.get', 'bigquery.datasets.getIamPolicy', 'bigquery.datasets.setIamPolicy', 'bigquery.datasets.update', 'bigquery.datasets.updateTag', 'bigquery.jobs.create', 'bigquery.jobs.get', 'bigquery.jobs.list', 'bigquery.jobs.listAll', 'bigquery.jobs.update', 'bigquery.models.create', 'bigquery.models.delete', 'bigquery.models.getData', 'bigquery.models.getMetadata', 'bigquery.models.list', 'bigquery.models.updateData', 'bigquery.models.updateMetadata', 'bigquery.models.updateTag', 'bigquery.readsessions.create', 'bigquery.routines.create', 'bigquery.routines.delete', 'bigquery.routines.get', 'bigquery.routines.list', 'bigquery.routines.update', 'bigquery.savedqueries.create', 'bigquery.savedqueries.delete', 'bigquery.savedqueries.get', 'bigquery.savedqueries.list', 'bigquery.savedqueries.update', 'bigquery.transfers.get', 'bigquery.transfers.update', 'bigtable.appProfiles.create', 'bigtable.appProfiles.delete', 'bigtable.appProfiles.get', 'bigtable.appProfiles.list', 'bigtable.appProfiles.update', 'bigtable.clusters.create', 'bigtable.clusters.delete', 'bigtable.clusters.get', 'bigtable.clusters.list', 'bigtable.clusters.update', 'bigtable.instances.create', 'bigtable.instances.delete', 'bigtable.instances.get', 'bigtable.instances.getIamPolicy', 'bigtable.instances.list', 'bigtable.instances.setIamPolicy', 'bigtable.instances.update', 'bigtable.locations.list', 'bigtable.tables.checkConsistency', 'bigtable.tables.create', 'bigtable.tables.delete', 'bigtable.tables.generateConsistencyToken', 'bigtable.tables.get', 'bigtable.tables.list', 'bigtable.tables.mutateRows', 'bigtable.tables.readRows', 'bigtable.tables.sampleRowKeys', 'bigtable.tables.update', 'billing.resourceCosts.get', 'binaryauthorization.attestors.create', 'binaryauthorization.attestors.delete', 'binaryauthorization.attestors.get', 'binaryauthorization.attestors.getIamPolicy', 'binaryauthorization.attestors.list', 'binaryauthorization.attestors.setIamPolicy', 'binaryauthorization.attestors.update', 'binaryauthorization.attestors.verifyImageAttested', 'binaryauthorization.policy.get', 'binaryauthorization.policy.getIamPolicy', 'binaryauthorization.policy.setIamPolicy', 'binaryauthorization.policy.update', 'cloudasset.assets.exportIamPolicy', 'cloudasset.assets.exportResource', 'cloudbuild.builds.create', 'cloudbuild.builds.get', 'cloudbuild.builds.list', 'cloudbuild.builds.update', 'cloudconfig.configs.get', 'cloudconfig.configs.update', 'clouddebugger.breakpoints.create', 'clouddebugger.breakpoints.delete', 'clouddebugger.breakpoints.get', 'clouddebugger.breakpoints.list', 'clouddebugger.breakpoints.listActive', 'clouddebugger.breakpoints.update', 'clouddebugger.debuggees.create', 'clouddebugger.debuggees.list', 'cloudfunctions.functions.call', 'cloudfunctions.functions.create', 'cloudfunctions.functions.delete', 'cloudfunctions.functions.get', 'cloudfunctions.functions.getIamPolicy', 'cloudfunctions.functions.invoke', 'cloudfunctions.functions.list', 'cloudfunctions.functions.setIamPolicy', 'cloudfunctions.functions.sourceCodeGet', 'cloudfunctions.functions.sourceCodeSet', 'cloudfunctions.functions.update', 'cloudfunctions.locations.list', 'cloudfunctions.operations.get', 'cloudfunctions.operations.list', 'cloudiot.devices.bindGateway', 'cloudiot.devices.create', 'cloudiot.devices.delete', 'cloudiot.devices.get', 'cloudiot.devices.list', 'cloudiot.devices.sendCommand', 'cloudiot.devices.unbindGateway', 'cloudiot.devices.update', 'cloudiot.devices.updateConfig', 'cloudiot.registries.create', 'cloudiot.registries.delete', 'cloudiot.registries.get', 'cloudiot.registries.getIamPolicy', 'cloudiot.registries.list', 'cloudiot.registries.setIamPolicy', 'cloudiot.registries.update', 'cloudiottoken.tokensettings.get', 'cloudiottoken.tokensettings.update', 'cloudjobdiscovery.companies.create', 'cloudjobdiscovery.companies.delete', 'cloudjobdiscovery.companies.get', 'cloudjobdiscovery.companies.list', 'cloudjobdiscovery.companies.update', 'cloudjobdiscovery.events.create', 'cloudjobdiscovery.jobs.create', 'cloudjobdiscovery.jobs.delete', 'cloudjobdiscovery.jobs.get', 'cloudjobdiscovery.jobs.search', 'cloudjobdiscovery.jobs.update', 'cloudjobdiscovery.profiles.create', 'cloudjobdiscovery.profiles.delete', 'cloudjobdiscovery.profiles.get', 'cloudjobdiscovery.profiles.search', 'cloudjobdiscovery.profiles.update', 'cloudjobdiscovery.tenants.create', 'cloudjobdiscovery.tenants.delete', 'cloudjobdiscovery.tenants.get', 'cloudjobdiscovery.tenants.update', 'cloudjobdiscovery.tools.access', 'cloudkms.cryptoKeyVersions.create', 'cloudkms.cryptoKeyVersions.destroy', 'cloudkms.cryptoKeyVersions.get', 'cloudkms.cryptoKeyVersions.list', 'cloudkms.cryptoKeyVersions.restore', 'cloudkms.cryptoKeyVersions.update', 'cloudkms.cryptoKeyVersions.useToDecrypt', 'cloudkms.cryptoKeyVersions.useToEncrypt', 'cloudkms.cryptoKeyVersions.useToSign', 'cloudkms.cryptoKeyVersions.viewPublicKey', 'cloudkms.cryptoKeys.create', 'cloudkms.cryptoKeys.get', 'cloudkms.cryptoKeys.getIamPolicy', 'cloudkms.cryptoKeys.list', 'cloudkms.cryptoKeys.setIamPolicy', 'cloudkms.cryptoKeys.update', 'cloudkms.keyRings.create', 'cloudkms.keyRings.get', 'cloudkms.keyRings.getIamPolicy', 'cloudkms.keyRings.list', 'cloudkms.keyRings.setIamPolicy', 'cloudmessaging.messages.create', 'cloudmigration.velostrataendpoints.connect', 'cloudnotifications.activities.list', 'cloudprivatecatalog.targets.get', 'cloudprivatecatalogproducer.targets.associate', 'cloudprivatecatalogproducer.targets.unassociate', 'cloudprofiler.profiles.create', 'cloudprofiler.profiles.list', 'cloudprofiler.profiles.update', 'cloudscheduler.jobs.create', 'cloudscheduler.jobs.delete', 'cloudscheduler.jobs.enable', 'cloudscheduler.jobs.fullView', 'cloudscheduler.jobs.get', 'cloudscheduler.jobs.list', 'cloudscheduler.jobs.pause', 'cloudscheduler.jobs.run', 'cloudscheduler.jobs.update', 'cloudscheduler.locations.get', 'cloudscheduler.locations.list', 'cloudsecurityscanner.crawledurls.list', 'cloudsecurityscanner.results.get', 'cloudsecurityscanner.results.list', 'cloudsecurityscanner.scanruns.get', 'cloudsecurityscanner.scanruns.getSummary', 'cloudsecurityscanner.scanruns.list', 'cloudsecurityscanner.scanruns.stop', 'cloudsecurityscanner.scans.create', 'cloudsecurityscanner.scans.delete', 'cloudsecurityscanner.scans.get', 'cloudsecurityscanner.scans.list', 'cloudsecurityscanner.scans.run', 'cloudsecurityscanner.scans.update', 'cloudsql.backupRuns.create', 'cloudsql.backupRuns.delete', 'cloudsql.backupRuns.get', 'cloudsql.backupRuns.list', 'cloudsql.databases.create', 'cloudsql.databases.delete', 'cloudsql.databases.get', 'cloudsql.databases.list', 'cloudsql.databases.update', 'cloudsql.instances.addServerCa', 'cloudsql.instances.clone', 'cloudsql.instances.connect', 'cloudsql.instances.create', 'cloudsql.instances.delete', 'cloudsql.instances.demoteMaster', 'cloudsql.instances.export', 'cloudsql.instances.failover', 'cloudsql.instances.get', 'cloudsql.instances.import', 'cloudsql.instances.list', 'cloudsql.instances.listServerCas', 'cloudsql.instances.promoteReplica', 'cloudsql.instances.resetSslConfig', 'cloudsql.instances.restart', 'cloudsql.instances.restoreBackup', 'cloudsql.instances.rotateServerCa', 'cloudsql.instances.startReplica', 'cloudsql.instances.stopReplica', 'cloudsql.instances.truncateLog', 'cloudsql.instances.update', 'cloudsql.sslCerts.create', 'cloudsql.sslCerts.createEphemeral', 'cloudsql.sslCerts.delete', 'cloudsql.sslCerts.get', 'cloudsql.sslCerts.list', 'cloudsql.users.create', 'cloudsql.users.delete', 'cloudsql.users.list', 'cloudsql.users.update', 'cloudtasks.locations.get', 'cloudtasks.locations.list', 'cloudtasks.queues.create', 'cloudtasks.queues.delete', 'cloudtasks.queues.get', 'cloudtasks.queues.getIamPolicy', 'cloudtasks.queues.list', 'cloudtasks.queues.pause', 'cloudtasks.queues.purge', 'cloudtasks.queues.resume', 'cloudtasks.queues.setIamPolicy', 'cloudtasks.queues.update', 'cloudtasks.tasks.create', 'cloudtasks.tasks.delete', 'cloudtasks.tasks.fullView', 'cloudtasks.tasks.get', 'cloudtasks.tasks.list', 'cloudtasks.tasks.run', 'cloudtestservice.environmentcatalog.get', 'cloudtestservice.matrices.create', 'cloudtestservice.matrices.get', 'cloudtestservice.matrices.update', 'cloudtoolresults.executions.create', 'cloudtoolresults.executions.get', 'cloudtoolresults.executions.list', 'cloudtoolresults.executions.update', 'cloudtoolresults.histories.create', 'cloudtoolresults.histories.get', 'cloudtoolresults.histories.list', 'cloudtoolresults.settings.create', 'cloudtoolresults.settings.get', 'cloudtoolresults.settings.update', 'cloudtoolresults.steps.create', 'cloudtoolresults.steps.get', 'cloudtoolresults.steps.list', 'cloudtoolresults.steps.update', 'cloudtrace.insights.get', 'cloudtrace.insights.list', 'cloudtrace.stats.get', 'cloudtrace.tasks.create', 'cloudtrace.tasks.delete', 'cloudtrace.tasks.get', 'cloudtrace.tasks.list', 'cloudtrace.traces.get', 'cloudtrace.traces.list', 'cloudtrace.traces.patch', 'cloudtranslate.generalModels.batchPredict', 'cloudtranslate.generalModels.get', 'cloudtranslate.generalModels.predict', 'cloudtranslate.glossaries.batchPredict', 'cloudtranslate.glossaries.create', 'cloudtranslate.glossaries.delete', 'cloudtranslate.glossaries.get', 'cloudtranslate.glossaries.list', 'cloudtranslate.glossaries.predict', 'cloudtranslate.languageDetectionModels.predict', 'cloudtranslate.locations.get', 'cloudtranslate.locations.list', 'cloudtranslate.operations.cancel', 'cloudtranslate.operations.delete', 'cloudtranslate.operations.get', 'cloudtranslate.operations.list', 'cloudtranslate.operations.wait', 'composer.environments.create', 'composer.environments.delete', 'composer.environments.get', 'composer.environments.list', 'composer.environments.update', 'composer.imageversions.list', 'composer.operations.delete', 'composer.operations.get', 'composer.operations.list', 'compute.acceleratorTypes.get', 'compute.acceleratorTypes.list', 'compute.addresses.create', 'compute.addresses.createInternal', 'compute.addresses.delete', 'compute.addresses.deleteInternal', 'compute.addresses.get', 'compute.addresses.list', 'compute.addresses.setLabels', 'compute.addresses.use', 'compute.addresses.useInternal', 'compute.autoscalers.create', 'compute.autoscalers.delete', 'compute.autoscalers.get', 'compute.autoscalers.list', 'compute.autoscalers.update', 'compute.backendBuckets.create', 'compute.backendBuckets.delete', 'compute.backendBuckets.get', 'compute.backendBuckets.list', 'compute.backendBuckets.update', 'compute.backendBuckets.use', 'compute.backendServices.create', 'compute.backendServices.delete', 'compute.backendServices.get', 'compute.backendServices.list', 'compute.backendServices.setSecurityPolicy', 'compute.backendServices.update', 'compute.backendServices.use', 'compute.commitments.create', 'compute.commitments.get', 'compute.commitments.list', 'compute.diskTypes.get', 'compute.diskTypes.list', 'compute.disks.addResourcePolicies', 'compute.disks.create', 'compute.disks.createSnapshot', 'compute.disks.delete', 'compute.disks.get', 'compute.disks.getIamPolicy', 'compute.disks.list', 'compute.disks.removeResourcePolicies', 'compute.disks.resize', 'compute.disks.setIamPolicy', 'compute.disks.setLabels', 'compute.disks.update', 'compute.disks.use', 'compute.disks.useReadOnly', 'compute.firewalls.create', 'compute.firewalls.delete', 'compute.firewalls.get', 'compute.firewalls.list', 'compute.firewalls.update', 'compute.forwardingRules.create', 'compute.forwardingRules.delete', 'compute.forwardingRules.get', 'compute.forwardingRules.list', 'compute.forwardingRules.setLabels', 'compute.forwardingRules.setTarget', 'compute.globalAddresses.create', 'compute.globalAddresses.createInternal', 'compute.globalAddresses.delete', 'compute.globalAddresses.deleteInternal', 'compute.globalAddresses.get', 'compute.globalAddresses.list', 'compute.globalAddresses.setLabels', 'compute.globalAddresses.use', 'compute.globalForwardingRules.create', 'compute.globalForwardingRules.delete', 'compute.globalForwardingRules.get', 'compute.globalForwardingRules.list', 'compute.globalForwardingRules.setLabels', 'compute.globalForwardingRules.setTarget', 'compute.globalOperations.delete', 'compute.globalOperations.get', 'compute.globalOperations.getIamPolicy', 'compute.globalOperations.list', 'compute.globalOperations.setIamPolicy', 'compute.healthChecks.create', 'compute.healthChecks.delete', 'compute.healthChecks.get', 'compute.healthChecks.list', 'compute.healthChecks.update', 'compute.healthChecks.use', 'compute.healthChecks.useReadOnly', 'compute.httpHealthChecks.create', 'compute.httpHealthChecks.delete', 'compute.httpHealthChecks.get', 'compute.httpHealthChecks.list', 'compute.httpHealthChecks.update', 'compute.httpHealthChecks.use', 'compute.httpHealthChecks.useReadOnly', 'compute.httpsHealthChecks.create', 'compute.httpsHealthChecks.delete', 'compute.httpsHealthChecks.get', 'compute.httpsHealthChecks.list', 'compute.httpsHealthChecks.update', 'compute.httpsHealthChecks.use', 'compute.httpsHealthChecks.useReadOnly', 'compute.images.create', 'compute.images.delete', 'compute.images.deprecate', 'compute.images.get', 'compute.images.getFromFamily', 'compute.images.getIamPolicy', 'compute.images.list', 'compute.images.setIamPolicy', 'compute.images.setLabels', 'compute.images.update', 'compute.images.useReadOnly', 'compute.instanceGroupManagers.create', 'compute.instanceGroupManagers.delete', 'compute.instanceGroupManagers.get', 'compute.instanceGroupManagers.list', 'compute.instanceGroupManagers.update', 'compute.instanceGroupManagers.use', 'compute.instanceGroups.create', 'compute.instanceGroups.delete', 'compute.instanceGroups.get', 'compute.instanceGroups.list', 'compute.instanceGroups.update', 'compute.instanceGroups.use', 'compute.instanceTemplates.create', 'compute.instanceTemplates.delete', 'compute.instanceTemplates.get', 'compute.instanceTemplates.getIamPolicy', 'compute.instanceTemplates.list', 'compute.instanceTemplates.setIamPolicy', 'compute.instanceTemplates.useReadOnly', 'compute.instances.addAccessConfig', 'compute.instances.addMaintenancePolicies', 'compute.instances.attachDisk', 'compute.instances.create', 'compute.instances.delete', 'compute.instances.deleteAccessConfig', 'compute.instances.detachDisk', 'compute.instances.get', 'compute.instances.getGuestAttributes', 'compute.instances.getIamPolicy', 'compute.instances.getSerialPortOutput', 'compute.instances.getShieldedInstanceIdentity', 'compute.instances.getShieldedVmIdentity', 'compute.instances.list', 'compute.instances.listReferrers', 'compute.instances.osAdminLogin', 'compute.instances.osLogin', 'compute.instances.removeMaintenancePolicies', 'compute.instances.reset', 'compute.instances.resume', 'compute.instances.setDeletionProtection', 'compute.instances.setDiskAutoDelete', 'compute.instances.setIamPolicy', 'compute.instances.setLabels', 'compute.instances.setMachineResources', 'compute.instances.setMachineType', 'compute.instances.setMetadata', 'compute.instances.setMinCpuPlatform', 'compute.instances.setScheduling', 'compute.instances.setServiceAccount', 'compute.instances.setShieldedInstanceIntegrityPolicy', 'compute.instances.setShieldedVmIntegrityPolicy', 'compute.instances.setTags', 'compute.instances.start', 'compute.instances.startWithEncryptionKey', 'compute.instances.stop', 'compute.instances.suspend', 'compute.instances.update', 'compute.instances.updateAccessConfig', 'compute.instances.updateDisplayDevice', 'compute.instances.updateNetworkInterface', 'compute.instances.updateShieldedInstanceConfig', 'compute.instances.updateShieldedVmConfig', 'compute.instances.use', 'compute.interconnectAttachments.create', 'compute.interconnectAttachments.delete', 'compute.interconnectAttachments.get', 'compute.interconnectAttachments.list', 'compute.interconnectAttachments.setLabels', 'compute.interconnectAttachments.update', 'compute.interconnectAttachments.use', 'compute.interconnectLocations.get', 'compute.interconnectLocations.list', 'compute.interconnects.create', 'compute.interconnects.delete', 'compute.interconnects.get', 'compute.interconnects.list', 'compute.interconnects.setLabels', 'compute.interconnects.update', 'compute.interconnects.use', 'compute.licenseCodes.get', 'compute.licenseCodes.getIamPolicy', 'compute.licenseCodes.list', 'compute.licenseCodes.setIamPolicy', 'compute.licenseCodes.update', 'compute.licenseCodes.use', 'compute.licenses.create', 'compute.licenses.delete', 'compute.licenses.get', 'compute.licenses.getIamPolicy', 'compute.licenses.list', 'compute.licenses.setIamPolicy', 'compute.machineTypes.get', 'compute.machineTypes.list', 'compute.maintenancePolicies.create', 'compute.maintenancePolicies.delete', 'compute.maintenancePolicies.get', 'compute.maintenancePolicies.getIamPolicy', 'compute.maintenancePolicies.list', 'compute.maintenancePolicies.setIamPolicy', 'compute.maintenancePolicies.use', 'compute.networkEndpointGroups.attachNetworkEndpoints', 'compute.networkEndpointGroups.create', 'compute.networkEndpointGroups.delete', 'compute.networkEndpointGroups.detachNetworkEndpoints', 'compute.networkEndpointGroups.get', 'compute.networkEndpointGroups.getIamPolicy', 'compute.networkEndpointGroups.list', 'compute.networkEndpointGroups.setIamPolicy', 'compute.networkEndpointGroups.use', 'compute.networks.addPeering', 'compute.networks.create', 'compute.networks.delete', 'compute.networks.get', 'compute.networks.list', 'compute.networks.removePeering', 'compute.networks.switchToCustomMode', 'compute.networks.update', 'compute.networks.updatePeering', 'compute.networks.updatePolicy', 'compute.networks.use', 'compute.networks.useExternalIp', 'compute.nodeGroups.addNodes', 'compute.nodeGroups.create', 'compute.nodeGroups.delete', 'compute.nodeGroups.deleteNodes', 'compute.nodeGroups.get', 'compute.nodeGroups.getIamPolicy', 'compute.nodeGroups.list', 'compute.nodeGroups.setIamPolicy', 'compute.nodeGroups.setNodeTemplate', 'compute.nodeTemplates.create', 'compute.nodeTemplates.delete', 'compute.nodeTemplates.get', 'compute.nodeTemplates.getIamPolicy', 'compute.nodeTemplates.list', 'compute.nodeTemplates.setIamPolicy', 'compute.nodeTypes.get', 'compute.nodeTypes.list', 'compute.projects.get', 'compute.projects.setDefaultNetworkTier', 'compute.projects.setDefaultServiceAccount', 'compute.projects.setUsageExportBucket', 'compute.regionBackendServices.create', 'compute.regionBackendServices.delete', 'compute.regionBackendServices.get', 'compute.regionBackendServices.list', 'compute.regionBackendServices.setSecurityPolicy', 'compute.regionBackendServices.update', 'compute.regionBackendServices.use', 'compute.regionOperations.delete', 'compute.regionOperations.get', 'compute.regionOperations.getIamPolicy', 'compute.regionOperations.list', 'compute.regionOperations.setIamPolicy', 'compute.regions.get', 'compute.regions.list', 'compute.reservations.create', 'compute.reservations.delete', 'compute.reservations.get', 'compute.reservations.list', 'compute.reservations.resize', 'compute.resourcePolicies.create', 'compute.resourcePolicies.delete', 'compute.resourcePolicies.get', 'compute.resourcePolicies.list', 'compute.resourcePolicies.use', 'compute.routers.create', 'compute.routers.delete', 'compute.routers.get', 'compute.routers.list', 'compute.routers.update', 'compute.routers.use', 'compute.routes.create', 'compute.routes.delete', 'compute.routes.get', 'compute.routes.list', 'compute.securityPolicies.create', 'compute.securityPolicies.delete', 'compute.securityPolicies.get', 'compute.securityPolicies.getIamPolicy', 'compute.securityPolicies.list', 'compute.securityPolicies.setIamPolicy', 'compute.securityPolicies.update', 'compute.securityPolicies.use', 'compute.snapshots.create', 'compute.snapshots.delete', 'compute.snapshots.get', 'compute.snapshots.getIamPolicy', 'compute.snapshots.list', 'compute.snapshots.setIamPolicy', 'compute.snapshots.setLabels', 'compute.snapshots.useReadOnly', 'compute.sslCertificates.create', 'compute.sslCertificates.delete', 'compute.sslCertificates.get', 'compute.sslCertificates.list', 'compute.sslPolicies.create', 'compute.sslPolicies.delete', 'compute.sslPolicies.get', 'compute.sslPolicies.list', 'compute.sslPolicies.listAvailableFeatures', 'compute.sslPolicies.update', 'compute.sslPolicies.use', 'compute.subnetworks.create', 'compute.subnetworks.delete', 'compute.subnetworks.expandIpCidrRange', 'compute.subnetworks.get', 'compute.subnetworks.getIamPolicy', 'compute.subnetworks.list', 'compute.subnetworks.setIamPolicy', 'compute.subnetworks.setPrivateIpGoogleAccess', 'compute.subnetworks.update', 'compute.subnetworks.use', 'compute.subnetworks.useExternalIp', 'compute.targetHttpProxies.create', 'compute.targetHttpProxies.delete', 'compute.targetHttpProxies.get', 'compute.targetHttpProxies.list', 'compute.targetHttpProxies.setUrlMap', 'compute.targetHttpProxies.use', 'compute.targetHttpsProxies.create', 'compute.targetHttpsProxies.delete', 'compute.targetHttpsProxies.get', 'compute.targetHttpsProxies.list', 'compute.targetHttpsProxies.setSslCertificates', 'compute.targetHttpsProxies.setSslPolicy', 'compute.targetHttpsProxies.setUrlMap', 'compute.targetHttpsProxies.use', 'compute.targetInstances.create', 'compute.targetInstances.delete', 'compute.targetInstances.get', 'compute.targetInstances.list', 'compute.targetInstances.use', 'compute.targetPools.addHealthCheck', 'compute.targetPools.addInstance', 'compute.targetPools.create', 'compute.targetPools.delete', 'compute.targetPools.get', 'compute.targetPools.list', 'compute.targetPools.removeHealthCheck', 'compute.targetPools.removeInstance', 'compute.targetPools.update', 'compute.targetPools.use', 'compute.targetSslProxies.create', 'compute.targetSslProxies.delete', 'compute.targetSslProxies.get', 'compute.targetSslProxies.list', 'compute.targetSslProxies.setBackendService', 'compute.targetSslProxies.setProxyHeader', 'compute.targetSslProxies.setSslCertificates', 'compute.targetSslProxies.use', 'compute.targetTcpProxies.create', 'compute.targetTcpProxies.delete', 'compute.targetTcpProxies.get', 'compute.targetTcpProxies.list', 'compute.targetTcpProxies.update', 'compute.targetTcpProxies.use', 'compute.targetVpnGateways.create', 'compute.targetVpnGateways.delete', 'compute.targetVpnGateways.get', 'compute.targetVpnGateways.list', 'compute.targetVpnGateways.setLabels', 'compute.targetVpnGateways.use', 'compute.urlMaps.create', 'compute.urlMaps.delete', 'compute.urlMaps.get', 'compute.urlMaps.invalidateCache', 'compute.urlMaps.list', 'compute.urlMaps.update', 'compute.urlMaps.use', 'compute.urlMaps.validate', 'compute.vpnGateways.create', 'compute.vpnGateways.delete', 'compute.vpnGateways.get', 'compute.vpnGateways.list', 'compute.vpnGateways.setLabels', 'compute.vpnGateways.use', 'compute.vpnTunnels.create', 'compute.vpnTunnels.delete', 'compute.vpnTunnels.get', 'compute.vpnTunnels.list', 'compute.vpnTunnels.setLabels', 'compute.zoneOperations.delete', 'compute.zoneOperations.get', 'compute.zoneOperations.getIamPolicy', 'compute.zoneOperations.list', 'compute.zoneOperations.setIamPolicy', 'compute.zones.get', 'compute.zones.list', 'container.apiServices.create', 'container.apiServices.delete', 'container.apiServices.get', 'container.apiServices.list', 'container.apiServices.update', 'container.apiServices.updateStatus', 'container.backendConfigs.create', 'container.backendConfigs.delete', 'container.backendConfigs.get', 'container.backendConfigs.list', 'container.backendConfigs.update', 'container.bindings.create', 'container.bindings.delete', 'container.bindings.get', 'container.bindings.list', 'container.bindings.update', 'container.certificateSigningRequests.approve', 'container.certificateSigningRequests.create', 'container.certificateSigningRequests.delete', 'container.certificateSigningRequests.get', 'container.certificateSigningRequests.list', 'container.certificateSigningRequests.update', 'container.certificateSigningRequests.updateStatus', 'container.clusterRoleBindings.create', 'container.clusterRoleBindings.delete', 'container.clusterRoleBindings.get', 'container.clusterRoleBindings.list', 'container.clusterRoleBindings.update', 'container.clusterRoles.bind', 'container.clusterRoles.create', 'container.clusterRoles.delete', 'container.clusterRoles.get', 'container.clusterRoles.list', 'container.clusterRoles.update', 'container.clusters.create', 'container.clusters.delete', 'container.clusters.get', 'container.clusters.getCredentials', 'container.clusters.list', 'container.clusters.update', 'container.componentStatuses.get', 'container.componentStatuses.list', 'container.configMaps.create', 'container.configMaps.delete', 'container.configMaps.get', 'container.configMaps.list', 'container.configMaps.update', 'container.controllerRevisions.create', 'container.controllerRevisions.delete', 'container.controllerRevisions.get', 'container.controllerRevisions.list', 'container.controllerRevisions.update', 'container.cronJobs.create', 'container.cronJobs.delete', 'container.cronJobs.get', 'container.cronJobs.getStatus', 'container.cronJobs.list', 'container.cronJobs.update', 'container.cronJobs.updateStatus', 'container.customResourceDefinitions.create', 'container.customResourceDefinitions.delete', 'container.customResourceDefinitions.get', 'container.customResourceDefinitions.list', 'container.customResourceDefinitions.update', 'container.customResourceDefinitions.updateStatus', 'container.daemonSets.create', 'container.daemonSets.delete', 'container.daemonSets.get', 'container.daemonSets.getStatus', 'container.daemonSets.list', 'container.daemonSets.update', 'container.daemonSets.updateStatus', 'container.deployments.create', 'container.deployments.delete', 'container.deployments.get', 'container.deployments.getScale', 'container.deployments.getStatus', 'container.deployments.list', 'container.deployments.rollback', 'container.deployments.update', 'container.deployments.updateScale', 'container.deployments.updateStatus', 'container.endpoints.create', 'container.endpoints.delete', 'container.endpoints.get', 'container.endpoints.list', 'container.endpoints.update', 'container.events.create', 'container.events.delete', 'container.events.get', 'container.events.list', 'container.events.update', 'container.horizontalPodAutoscalers.create', 'container.horizontalPodAutoscalers.delete', 'container.horizontalPodAutoscalers.get', 'container.horizontalPodAutoscalers.getStatus', 'container.horizontalPodAutoscalers.list', 'container.horizontalPodAutoscalers.update', 'container.horizontalPodAutoscalers.updateStatus', 'container.ingresses.create', 'container.ingresses.delete', 'container.ingresses.get', 'container.ingresses.getStatus', 'container.ingresses.list', 'container.ingresses.update', 'container.ingresses.updateStatus', 'container.initializerConfigurations.create', 'container.initializerConfigurations.delete', 'container.initializerConfigurations.get', 'container.initializerConfigurations.list', 'container.initializerConfigurations.update', 'container.jobs.create', 'container.jobs.delete', 'container.jobs.get', 'container.jobs.getStatus', 'container.jobs.list', 'container.jobs.update', 'container.jobs.updateStatus', 'container.limitRanges.create', 'container.limitRanges.delete', 'container.limitRanges.get', 'container.limitRanges.list', 'container.limitRanges.update', 'container.localSubjectAccessReviews.create', 'container.localSubjectAccessReviews.list', 'container.namespaces.create', 'container.namespaces.delete', 'container.namespaces.get', 'container.namespaces.getStatus', 'container.namespaces.list', 'container.namespaces.update', 'container.namespaces.updateStatus', 'container.networkPolicies.create', 'container.networkPolicies.delete', 'container.networkPolicies.get', 'container.networkPolicies.list', 'container.networkPolicies.update', 'container.nodes.create', 'container.nodes.delete', 'container.nodes.get', 'container.nodes.getStatus', 'container.nodes.list', 'container.nodes.proxy', 'container.nodes.update', 'container.nodes.updateStatus', 'container.operations.get', 'container.operations.list', 'container.persistentVolumeClaims.create', 'container.persistentVolumeClaims.delete', 'container.persistentVolumeClaims.get', 'container.persistentVolumeClaims.getStatus', 'container.persistentVolumeClaims.list', 'container.persistentVolumeClaims.update', 'container.persistentVolumeClaims.updateStatus', 'container.persistentVolumes.create', 'container.persistentVolumes.delete', 'container.persistentVolumes.get', 'container.persistentVolumes.getStatus', 'container.persistentVolumes.list', 'container.persistentVolumes.update', 'container.persistentVolumes.updateStatus', 'container.petSets.create', 'container.petSets.delete', 'container.petSets.get', 'container.petSets.list', 'container.petSets.update', 'container.petSets.updateStatus', 'container.podDisruptionBudgets.create', 'container.podDisruptionBudgets.delete', 'container.podDisruptionBudgets.get', 'container.podDisruptionBudgets.getStatus', 'container.podDisruptionBudgets.list', 'container.podDisruptionBudgets.update', 'container.podDisruptionBudgets.updateStatus', 'container.podPresets.create', 'container.podPresets.delete', 'container.podPresets.get', 'container.podPresets.list', 'container.podPresets.update', 'container.podSecurityPolicies.create', 'container.podSecurityPolicies.delete', 'container.podSecurityPolicies.get', 'container.podSecurityPolicies.list', 'container.podSecurityPolicies.update', 'container.podSecurityPolicies.use', 'container.podTemplates.create', 'container.podTemplates.delete', 'container.podTemplates.get', 'container.podTemplates.list', 'container.podTemplates.update', 'container.pods.attach', 'container.pods.create', 'container.pods.delete', 'container.pods.evict', 'container.pods.exec', 'container.pods.get', 'container.pods.getLogs', 'container.pods.getStatus', 'container.pods.initialize', 'container.pods.list', 'container.pods.portForward', 'container.pods.proxy', 'container.pods.update', 'container.pods.updateStatus', 'container.replicaSets.create', 'container.replicaSets.delete', 'container.replicaSets.get', 'container.replicaSets.getScale', 'container.replicaSets.getStatus', 'container.replicaSets.list', 'container.replicaSets.update', 'container.replicaSets.updateScale', 'container.replicaSets.updateStatus', 'container.replicationControllers.create', 'container.replicationControllers.delete', 'container.replicationControllers.get', 'container.replicationControllers.getScale', 'container.replicationControllers.getStatus', 'container.replicationControllers.list', 'container.replicationControllers.update', 'container.replicationControllers.updateScale', 'container.replicationControllers.updateStatus', 'container.resourceQuotas.create', 'container.resourceQuotas.delete', 'container.resourceQuotas.get', 'container.resourceQuotas.getStatus', 'container.resourceQuotas.list', 'container.resourceQuotas.update', 'container.resourceQuotas.updateStatus', 'container.roleBindings.create', 'container.roleBindings.delete', 'container.roleBindings.get', 'container.roleBindings.list', 'container.roleBindings.update', 'container.roles.bind', 'container.roles.create', 'container.roles.delete', 'container.roles.get', 'container.roles.list', 'container.roles.update', 'container.scheduledJobs.create', 'container.scheduledJobs.delete', 'container.scheduledJobs.get', 'container.scheduledJobs.list', 'container.scheduledJobs.update', 'container.scheduledJobs.updateStatus', 'container.secrets.create', 'container.secrets.delete', 'container.secrets.get', 'container.secrets.list', 'container.secrets.update', 'container.selfSubjectAccessReviews.create', 'container.selfSubjectAccessReviews.list', 'container.serviceAccounts.create', 'container.serviceAccounts.delete', 'container.serviceAccounts.get', 'container.serviceAccounts.list', 'container.serviceAccounts.update', 'container.services.create', 'container.services.delete', 'container.services.get', 'container.services.getStatus', 'container.services.list', 'container.services.proxy', 'container.services.update', 'container.services.updateStatus', 'container.statefulSets.create', 'container.statefulSets.delete', 'container.statefulSets.get', 'container.statefulSets.getScale', 'container.statefulSets.getStatus', 'container.statefulSets.list', 'container.statefulSets.update', 'container.statefulSets.updateScale', 'container.statefulSets.updateStatus', 'container.storageClasses.create', 'container.storageClasses.delete', 'container.storageClasses.get', 'container.storageClasses.list', 'container.storageClasses.update', 'container.subjectAccessReviews.create', 'container.subjectAccessReviews.list', 'container.thirdPartyObjects.create', 'container.thirdPartyObjects.delete', 'container.thirdPartyObjects.get', 'container.thirdPartyObjects.list', 'container.thirdPartyObjects.update', 'container.thirdPartyResources.create', 'container.thirdPartyResources.delete', 'container.thirdPartyResources.get', 'container.thirdPartyResources.list', 'container.thirdPartyResources.update', 'container.tokenReviews.create', 'datacatalog.entries.create', 'datacatalog.entries.delete', 'datacatalog.entries.get', 'datacatalog.entries.getIamPolicy', 'datacatalog.entries.setIamPolicy', 'datacatalog.entries.update', 'datacatalog.entryGroups.create', 'datacatalog.entryGroups.delete', 'datacatalog.entryGroups.get', 'datacatalog.entryGroups.getIamPolicy', 'datacatalog.entryGroups.setIamPolicy', 'datacatalog.tagTemplates.create', 'datacatalog.tagTemplates.delete', 'datacatalog.tagTemplates.get', 'datacatalog.tagTemplates.getIamPolicy', 'datacatalog.tagTemplates.getTag', 'datacatalog.tagTemplates.setIamPolicy', 'datacatalog.tagTemplates.update', 'datacatalog.tagTemplates.use', 'dataflow.jobs.cancel', 'dataflow.jobs.create', 'dataflow.jobs.get', 'dataflow.jobs.list', 'dataflow.jobs.updateContents', 'dataflow.messages.list', 'dataflow.metrics.get', 'datafusion.instances.create', 'datafusion.instances.delete', 'datafusion.instances.get', 'datafusion.instances.getIamPolicy', 'datafusion.instances.list', 'datafusion.instances.restart', 'datafusion.instances.setIamPolicy', 'datafusion.instances.update', 'datafusion.instances.upgrade', 'datafusion.locations.get', 'datafusion.locations.list', 'datafusion.operations.cancel', 'datafusion.operations.get', 'datafusion.operations.list', 'datalabeling.annotateddatasets.delete', 'datalabeling.annotateddatasets.get', 'datalabeling.annotateddatasets.label', 'datalabeling.annotateddatasets.list', 'datalabeling.annotationspecsets.create', 'datalabeling.annotationspecsets.delete', 'datalabeling.annotationspecsets.get', 'datalabeling.annotationspecsets.list', 'datalabeling.dataitems.get', 'datalabeling.dataitems.list', 'datalabeling.datasets.create', 'datalabeling.datasets.delete', 'datalabeling.datasets.export', 'datalabeling.datasets.get', 'datalabeling.datasets.import', 'datalabeling.datasets.list', 'datalabeling.examples.get', 'datalabeling.examples.list', 'datalabeling.instructions.create', 'datalabeling.instructions.delete', 'datalabeling.instructions.get', 'datalabeling.instructions.list', 'datalabeling.operations.cancel', 'datalabeling.operations.get', 'datalabeling.operations.list', 'dataprep.projects.use', 'dataproc.agents.create', 'dataproc.agents.delete', 'dataproc.agents.get', 'dataproc.agents.list', 'dataproc.agents.update', 'dataproc.clusters.create', 'dataproc.clusters.delete', 'dataproc.clusters.get', 'dataproc.clusters.getIamPolicy', 'dataproc.clusters.list', 'dataproc.clusters.setIamPolicy', 'dataproc.clusters.update', 'dataproc.clusters.use', 'dataproc.jobs.cancel', 'dataproc.jobs.create', 'dataproc.jobs.delete', 'dataproc.jobs.get', 'dataproc.jobs.getIamPolicy', 'dataproc.jobs.list', 'dataproc.jobs.setIamPolicy', 'dataproc.jobs.update', 'dataproc.operations.cancel', 'dataproc.operations.delete', 'dataproc.operations.get', 'dataproc.operations.getIamPolicy', 'dataproc.operations.list', 'dataproc.operations.setIamPolicy', 'dataproc.tasks.lease', 'dataproc.tasks.listInvalidatedLeases', 'dataproc.tasks.reportStatus', 'dataproc.workflowTemplates.create', 'dataproc.workflowTemplates.delete', 'dataproc.workflowTemplates.get', 'dataproc.workflowTemplates.getIamPolicy', 'dataproc.workflowTemplates.instantiate', 'dataproc.workflowTemplates.instantiateInline', 'dataproc.workflowTemplates.list', 'dataproc.workflowTemplates.setIamPolicy', 'dataproc.workflowTemplates.update', 'datastore.databases.create', 'datastore.databases.delete', 'datastore.databases.export', 'datastore.databases.get', 'datastore.databases.getIamPolicy', 'datastore.databases.import', 'datastore.databases.list', 'datastore.databases.setIamPolicy', 'datastore.databases.update', 'datastore.entities.allocateIds', 'datastore.entities.create', 'datastore.entities.delete', 'datastore.entities.get', 'datastore.entities.list', 'datastore.entities.update', 'datastore.indexes.create', 'datastore.indexes.delete', 'datastore.indexes.get', 'datastore.indexes.list', 'datastore.indexes.update', 'datastore.locations.get', 'datastore.locations.list', 'datastore.namespaces.get', 'datastore.namespaces.getIamPolicy', 'datastore.namespaces.list', 'datastore.namespaces.setIamPolicy', 'datastore.operations.cancel', 'datastore.operations.delete', 'datastore.operations.get', 'datastore.operations.list', 'datastore.statistics.get', 'datastore.statistics.list', 'deploymentmanager.compositeTypes.create', 'deploymentmanager.compositeTypes.delete', 'deploymentmanager.compositeTypes.get', 'deploymentmanager.compositeTypes.list', 'deploymentmanager.compositeTypes.update', 'deploymentmanager.deployments.cancelPreview', 'deploymentmanager.deployments.create', 'deploymentmanager.deployments.delete', 'deploymentmanager.deployments.get', 'deploymentmanager.deployments.getIamPolicy', 'deploymentmanager.deployments.list', 'deploymentmanager.deployments.setIamPolicy', 'deploymentmanager.deployments.stop', 'deploymentmanager.deployments.update', 'deploymentmanager.manifests.get', 'deploymentmanager.manifests.list', 'deploymentmanager.operations.get', 'deploymentmanager.operations.list', 'deploymentmanager.resources.get', 'deploymentmanager.resources.list', 'deploymentmanager.typeProviders.create', 'deploymentmanager.typeProviders.delete', 'deploymentmanager.typeProviders.get', 'deploymentmanager.typeProviders.getType', 'deploymentmanager.typeProviders.list', 'deploymentmanager.typeProviders.listTypes', 'deploymentmanager.typeProviders.update', 'deploymentmanager.types.create', 'deploymentmanager.types.delete', 'deploymentmanager.types.get', 'deploymentmanager.types.list', 'deploymentmanager.types.update', 'dialogflow.agents.create', 'dialogflow.agents.delete', 'dialogflow.agents.export', 'dialogflow.agents.get', 'dialogflow.agents.import', 'dialogflow.agents.restore', 'dialogflow.agents.search', 'dialogflow.agents.train', 'dialogflow.agents.update', 'dialogflow.contexts.create', 'dialogflow.contexts.delete', 'dialogflow.contexts.get', 'dialogflow.contexts.list', 'dialogflow.contexts.update', 'dialogflow.entityTypes.create', 'dialogflow.entityTypes.createEntity', 'dialogflow.entityTypes.delete', 'dialogflow.entityTypes.deleteEntity', 'dialogflow.entityTypes.get', 'dialogflow.entityTypes.list', 'dialogflow.entityTypes.update', 'dialogflow.entityTypes.updateEntity', 'dialogflow.intents.create', 'dialogflow.intents.delete', 'dialogflow.intents.get', 'dialogflow.intents.list', 'dialogflow.intents.update', 'dialogflow.operations.get', 'dialogflow.sessionEntityTypes.create', 'dialogflow.sessionEntityTypes.delete', 'dialogflow.sessionEntityTypes.get', 'dialogflow.sessionEntityTypes.list', 'dialogflow.sessionEntityTypes.update', 'dialogflow.sessions.detectIntent', 'dialogflow.sessions.streamingDetectIntent', 'dlp.analyzeRiskTemplates.create', 'dlp.analyzeRiskTemplates.delete', 'dlp.analyzeRiskTemplates.get', 'dlp.analyzeRiskTemplates.list', 'dlp.analyzeRiskTemplates.update', 'dlp.deidentifyTemplates.create', 'dlp.deidentifyTemplates.delete', 'dlp.deidentifyTemplates.get', 'dlp.deidentifyTemplates.list', 'dlp.deidentifyTemplates.update', 'dlp.inspectTemplates.create', 'dlp.inspectTemplates.delete', 'dlp.inspectTemplates.get', 'dlp.inspectTemplates.list', 'dlp.inspectTemplates.update', 'dlp.jobTriggers.create', 'dlp.jobTriggers.delete', 'dlp.jobTriggers.get', 'dlp.jobTriggers.list', 'dlp.jobTriggers.update', 'dlp.jobs.cancel', 'dlp.jobs.create', 'dlp.jobs.delete', 'dlp.jobs.get', 'dlp.jobs.list', 'dlp.kms.encrypt', 'dlp.storedInfoTypes.create', 'dlp.storedInfoTypes.delete', 'dlp.storedInfoTypes.get', 'dlp.storedInfoTypes.list', 'dlp.storedInfoTypes.update', 'dns.changes.create', 'dns.changes.get', 'dns.changes.list', 'dns.dnsKeys.get', 'dns.dnsKeys.list', 'dns.managedZoneOperations.get', 'dns.managedZoneOperations.list', 'dns.managedZones.create', 'dns.managedZones.delete', 'dns.managedZones.get', 'dns.managedZones.list', 'dns.managedZones.update', 'dns.networks.bindPrivateDNSPolicy', 'dns.networks.bindPrivateDNSZone', 'dns.networks.targetWithPeeringZone', 'dns.policies.create', 'dns.policies.delete', 'dns.policies.get', 'dns.policies.getIamPolicy', 'dns.policies.list', 'dns.policies.setIamPolicy', 'dns.policies.update', 'dns.projects.get', 'dns.resourceRecordSets.create', 'dns.resourceRecordSets.delete', 'dns.resourceRecordSets.list', 'dns.resourceRecordSets.update', 'endpoints.portals.attachCustomDomain', 'endpoints.portals.detachCustomDomain', 'endpoints.portals.listCustomDomains', 'endpoints.portals.update', 'errorreporting.applications.list', 'errorreporting.errorEvents.create', 'errorreporting.errorEvents.delete', 'errorreporting.errorEvents.list', 'errorreporting.groupMetadata.get', 'errorreporting.groupMetadata.update', 'errorreporting.groups.list', 'file.instances.create', 'file.instances.delete', 'file.instances.get', 'file.instances.list', 'file.instances.restore', 'file.instances.update', 'file.locations.get', 'file.locations.list', 'file.operations.cancel', 'file.operations.delete', 'file.operations.get', 'file.operations.list', 'file.snapshots.create', 'file.snapshots.delete', 'file.snapshots.get', 'file.snapshots.list', 'file.snapshots.update', 'firebase.billingPlans.get', 'firebase.billingPlans.update', 'firebase.clients.create', 'firebase.clients.delete', 'firebase.clients.get', 'firebase.links.create', 'firebase.links.delete', 'firebase.links.list', 'firebase.links.update', 'firebase.projects.delete', 'firebase.projects.get', 'firebase.projects.update', 'firebaseabt.experimentresults.get', 'firebaseabt.experiments.create', 'firebaseabt.experiments.delete', 'firebaseabt.experiments.get', 'firebaseabt.experiments.list', 'firebaseabt.experiments.update', 'firebaseabt.projectmetadata.get', 'firebaseanalytics.resources.googleAnalyticsEdit', 'firebaseanalytics.resources.googleAnalyticsReadAndAnalyze', 'firebaseauth.configs.create', 'firebaseauth.configs.get', 'firebaseauth.configs.getHashConfig', 'firebaseauth.configs.update', 'firebaseauth.users.create', 'firebaseauth.users.createSession', 'firebaseauth.users.delete', 'firebaseauth.users.get', 'firebaseauth.users.sendEmail', 'firebaseauth.users.update', 'firebasecrash.issues.update', 'firebasecrash.reports.get', 'firebasecrashlytics.config.get', 'firebasecrashlytics.config.update', 'firebasecrashlytics.data.get', 'firebasecrashlytics.issues.get', 'firebasecrashlytics.issues.list', 'firebasecrashlytics.issues.update', 'firebasecrashlytics.sessions.get', 'firebasedatabase.instances.create', 'firebasedatabase.instances.get', 'firebasedatabase.instances.list', 'firebasedatabase.instances.update', 'firebasedynamiclinks.destinations.list', 'firebasedynamiclinks.destinations.update', 'firebasedynamiclinks.domains.create', 'firebasedynamiclinks.domains.delete', 'firebasedynamiclinks.domains.get', 'firebasedynamiclinks.domains.list', 'firebasedynamiclinks.domains.update', 'firebasedynamiclinks.links.create', 'firebasedynamiclinks.links.get', 'firebasedynamiclinks.links.list', 'firebasedynamiclinks.links.update', 'firebasedynamiclinks.stats.get', 'firebaseextensions.configs.create', 'firebaseextensions.configs.delete', 'firebaseextensions.configs.list', 'firebaseextensions.configs.update', 'firebasehosting.sites.create', 'firebasehosting.sites.delete', 'firebasehosting.sites.get', 'firebasehosting.sites.list', 'firebasehosting.sites.update', 'firebaseinappmessaging.campaigns.create', 'firebaseinappmessaging.campaigns.delete', 'firebaseinappmessaging.campaigns.get', 'firebaseinappmessaging.campaigns.list', 'firebaseinappmessaging.campaigns.update', 'firebaseml.compressionjobs.create', 'firebaseml.compressionjobs.delete', 'firebaseml.compressionjobs.get', 'firebaseml.compressionjobs.list', 'firebaseml.compressionjobs.start', 'firebaseml.compressionjobs.update', 'firebaseml.models.create', 'firebaseml.models.delete', 'firebaseml.models.get', 'firebaseml.models.list', 'firebaseml.modelversions.create', 'firebaseml.modelversions.get', 'firebaseml.modelversions.list', 'firebaseml.modelversions.update', 'firebasenotifications.messages.create', 'firebasenotifications.messages.delete', 'firebasenotifications.messages.get', 'firebasenotifications.messages.list', 'firebasenotifications.messages.update', 'firebaseperformance.config.create', 'firebaseperformance.config.delete', 'firebaseperformance.config.update', 'firebaseperformance.data.get', 'firebasepredictions.predictions.create', 'firebasepredictions.predictions.delete', 'firebasepredictions.predictions.list', 'firebasepredictions.predictions.update', 'firebaserules.releases.create', 'firebaserules.releases.delete', 'firebaserules.releases.get', 'firebaserules.releases.getExecutable', 'firebaserules.releases.list', 'firebaserules.releases.update', 'firebaserules.rulesets.create', 'firebaserules.rulesets.delete', 'firebaserules.rulesets.get', 'firebaserules.rulesets.list', 'firebaserules.rulesets.test', 'genomics.datasets.create', 'genomics.datasets.delete', 'genomics.datasets.get', 'genomics.datasets.getIamPolicy', 'genomics.datasets.list', 'genomics.datasets.setIamPolicy', 'genomics.datasets.update', 'genomics.operations.cancel', 'genomics.operations.create', 'genomics.operations.get', 'genomics.operations.list', 'healthcare.datasets.create', 'healthcare.datasets.deidentify', 'healthcare.datasets.delete', 'healthcare.datasets.get', 'healthcare.datasets.getIamPolicy', 'healthcare.datasets.list', 'healthcare.datasets.setIamPolicy', 'healthcare.datasets.update', 'healthcare.dicomStores.create', 'healthcare.dicomStores.delete', 'healthcare.dicomStores.dicomWebDelete', 'healthcare.dicomStores.dicomWebRead', 'healthcare.dicomStores.dicomWebWrite', 'healthcare.dicomStores.export', 'healthcare.dicomStores.get', 'healthcare.dicomStores.getIamPolicy', 'healthcare.dicomStores.import', 'healthcare.dicomStores.list', 'healthcare.dicomStores.setIamPolicy', 'healthcare.dicomStores.update', 'healthcare.fhirResources.create', 'healthcare.fhirResources.delete', 'healthcare.fhirResources.get', 'healthcare.fhirResources.patch', 'healthcare.fhirResources.purge', 'healthcare.fhirResources.update', 'healthcare.fhirStores.create', 'healthcare.fhirStores.delete', 'healthcare.fhirStores.export', 'healthcare.fhirStores.get', 'healthcare.fhirStores.getIamPolicy', 'healthcare.fhirStores.import', 'healthcare.fhirStores.list', 'healthcare.fhirStores.searchResources', 'healthcare.fhirStores.setIamPolicy', 'healthcare.fhirStores.update', 'healthcare.hl7V2Messages.create', 'healthcare.hl7V2Messages.delete', 'healthcare.hl7V2Messages.get', 'healthcare.hl7V2Messages.ingest', 'healthcare.hl7V2Messages.list', 'healthcare.hl7V2Messages.update', 'healthcare.hl7V2Stores.create', 'healthcare.hl7V2Stores.delete', 'healthcare.hl7V2Stores.get', 'healthcare.hl7V2Stores.getIamPolicy', 'healthcare.hl7V2Stores.list', 'healthcare.hl7V2Stores.setIamPolicy', 'healthcare.hl7V2Stores.update', 'healthcare.operations.cancel', 'healthcare.operations.get', 'healthcare.operations.list', 'iam.roles.create', 'iam.roles.delete', 'iam.roles.get', 'iam.roles.list', 'iam.roles.undelete', 'iam.roles.update', 'iam.serviceAccountKeys.create', 'iam.serviceAccountKeys.delete', 'iam.serviceAccountKeys.get', 'iam.serviceAccountKeys.list', 'iam.serviceAccounts.actAs', 'iam.serviceAccounts.create', 'iam.serviceAccounts.delete', 'iam.serviceAccounts.get', 'iam.serviceAccounts.getIamPolicy', 'iam.serviceAccounts.list', 'iam.serviceAccounts.setIamPolicy', 'iam.serviceAccounts.update', 'iap.tunnel.getIamPolicy', 'iap.tunnel.setIamPolicy', 'iap.tunnelInstances.accessViaIAP', 'iap.tunnelInstances.getIamPolicy', 'iap.tunnelInstances.setIamPolicy', 'iap.tunnelZones.getIamPolicy', 'iap.tunnelZones.setIamPolicy', 'iap.web.getIamPolicy', 'iap.web.setIamPolicy', 'iap.webServiceVersions.getIamPolicy', 'iap.webServiceVersions.setIamPolicy', 'iap.webServices.getIamPolicy', 'iap.webServices.setIamPolicy', 'iap.webTypes.getIamPolicy', 'iap.webTypes.setIamPolicy', 'logging.exclusions.create', 'logging.exclusions.delete', 'logging.exclusions.get', 'logging.exclusions.list', 'logging.exclusions.update', 'logging.logEntries.create', 'logging.logEntries.list', 'logging.logMetrics.create', 'logging.logMetrics.delete', 'logging.logMetrics.get', 'logging.logMetrics.list', 'logging.logMetrics.update', 'logging.logServiceIndexes.list', 'logging.logServices.list', 'logging.logs.delete', 'logging.logs.list', 'logging.privateLogEntries.list', 'logging.sinks.create', 'logging.sinks.delete', 'logging.sinks.get', 'logging.sinks.list', 'logging.sinks.update', 'logging.usage.get', 'managedidentities.domains.attachTrust', 'managedidentities.domains.create', 'managedidentities.domains.delete', 'managedidentities.domains.detachTrust', 'managedidentities.domains.get', 'managedidentities.domains.getIamPolicy', 'managedidentities.domains.list', 'managedidentities.domains.reconfigureTrust', 'managedidentities.domains.resetpassword', 'managedidentities.domains.setIamPolicy', 'managedidentities.domains.update', 'managedidentities.domains.validateTrust', 'managedidentities.locations.get', 'managedidentities.locations.list', 'managedidentities.operations.cancel', 'managedidentities.operations.delete', 'managedidentities.operations.get', 'managedidentities.operations.list', 'ml.jobs.cancel', 'ml.jobs.create', 'ml.jobs.get', 'ml.jobs.getIamPolicy', 'ml.jobs.list', 'ml.jobs.setIamPolicy', 'ml.jobs.update', 'ml.locations.get', 'ml.locations.list', 'ml.models.create', 'ml.models.delete', 'ml.models.get', 'ml.models.getIamPolicy', 'ml.models.list', 'ml.models.predict', 'ml.models.setIamPolicy', 'ml.models.update', 'ml.operations.cancel', 'ml.operations.get', 'ml.operations.list', 'ml.projects.getConfig', 'ml.versions.create', 'ml.versions.delete', 'ml.versions.get', 'ml.versions.list', 'ml.versions.predict', 'ml.versions.update', 'monitoring.alertPolicies.create', 'monitoring.alertPolicies.delete', 'monitoring.alertPolicies.get', 'monitoring.alertPolicies.list', 'monitoring.alertPolicies.update', 'monitoring.dashboards.create', 'monitoring.dashboards.delete', 'monitoring.dashboards.get', 'monitoring.dashboards.list', 'monitoring.dashboards.update', 'monitoring.groups.create', 'monitoring.groups.delete', 'monitoring.groups.get', 'monitoring.groups.list', 'monitoring.groups.update', 'monitoring.metricDescriptors.create', 'monitoring.metricDescriptors.delete', 'monitoring.metricDescriptors.get', 'monitoring.metricDescriptors.list', 'monitoring.monitoredResourceDescriptors.get', 'monitoring.monitoredResourceDescriptors.list', 'monitoring.notificationChannelDescriptors.get', 'monitoring.notificationChannelDescriptors.list', 'monitoring.notificationChannels.create', 'monitoring.notificationChannels.delete', 'monitoring.notificationChannels.get', 'monitoring.notificationChannels.getVerificationCode', 'monitoring.notificationChannels.list', 'monitoring.notificationChannels.sendVerificationCode', 'monitoring.notificationChannels.update', 'monitoring.notificationChannels.verify', 'monitoring.publicWidgets.create', 'monitoring.publicWidgets.delete', 'monitoring.publicWidgets.get', 'monitoring.publicWidgets.list', 'monitoring.publicWidgets.update', 'monitoring.timeSeries.create', 'monitoring.timeSeries.list', 'monitoring.uptimeCheckConfigs.create', 'monitoring.uptimeCheckConfigs.delete', 'monitoring.uptimeCheckConfigs.get', 'monitoring.uptimeCheckConfigs.list', 'monitoring.uptimeCheckConfigs.update', 'orgpolicy.policy.get', 'proximitybeacon.attachments.create', 'proximitybeacon.attachments.delete', 'proximitybeacon.attachments.get', 'proximitybeacon.attachments.list', 'proximitybeacon.beacons.attach', 'proximitybeacon.beacons.create', 'proximitybeacon.beacons.get', 'proximitybeacon.beacons.getIamPolicy', 'proximitybeacon.beacons.list', 'proximitybeacon.beacons.setIamPolicy', 'proximitybeacon.beacons.update', 'proximitybeacon.namespaces.create', 'proximitybeacon.namespaces.delete', 'proximitybeacon.namespaces.get', 'proximitybeacon.namespaces.getIamPolicy', 'proximitybeacon.namespaces.list', 'proximitybeacon.namespaces.setIamPolicy', 'proximitybeacon.namespaces.update', 'pubsub.snapshots.create', 'pubsub.snapshots.delete', 'pubsub.snapshots.get', 'pubsub.snapshots.getIamPolicy', 'pubsub.snapshots.list', 'pubsub.snapshots.seek', 'pubsub.snapshots.setIamPolicy', 'pubsub.snapshots.update', 'pubsub.subscriptions.consume', 'pubsub.subscriptions.create', 'pubsub.subscriptions.delete', 'pubsub.subscriptions.get', 'pubsub.subscriptions.getIamPolicy', 'pubsub.subscriptions.list', 'pubsub.subscriptions.setIamPolicy', 'pubsub.subscriptions.update', 'pubsub.topics.attachSubscription', 'pubsub.topics.create', 'pubsub.topics.delete', 'pubsub.topics.get', 'pubsub.topics.getIamPolicy', 'pubsub.topics.list', 'pubsub.topics.publish', 'pubsub.topics.setIamPolicy', 'pubsub.topics.update', 'pubsub.topics.updateTag', 'redis.instances.create', 'redis.instances.delete', 'redis.instances.export', 'redis.instances.get', 'redis.instances.import', 'redis.instances.list', 'redis.instances.update', 'redis.locations.get', 'redis.locations.list', 'redis.operations.cancel', 'redis.operations.delete', 'redis.operations.get', 'redis.operations.list', 'remotebuildexecution.actions.create', 'remotebuildexecution.actions.get', 'remotebuildexecution.actions.update', 'remotebuildexecution.blobs.create', 'remotebuildexecution.blobs.get', 'remotebuildexecution.botsessions.create', 'remotebuildexecution.botsessions.update', 'remotebuildexecution.instances.create', 'remotebuildexecution.instances.delete', 'remotebuildexecution.instances.get', 'remotebuildexecution.instances.list', 'remotebuildexecution.logstreams.create', 'remotebuildexecution.logstreams.get', 'remotebuildexecution.logstreams.update', 'remotebuildexecution.workerpools.create', 'remotebuildexecution.workerpools.delete', 'remotebuildexecution.workerpools.get', 'remotebuildexecution.workerpools.list', 'remotebuildexecution.workerpools.update', 'resourcemanager.projects.createBillingAssignment', 'resourcemanager.projects.delete', 'resourcemanager.projects.deleteBillingAssignment', 'resourcemanager.projects.get', 'resourcemanager.projects.getIamPolicy', 'resourcemanager.projects.setIamPolicy', 'resourcemanager.projects.undelete', 'resourcemanager.projects.update', 'resourcemanager.projects.updateLiens', 'run.configurations.get', 'run.configurations.list', 'run.locations.list', 'run.revisions.delete', 'run.revisions.get', 'run.revisions.list', 'run.routes.get', 'run.routes.invoke', 'run.routes.list', 'run.services.create', 'run.services.delete', 'run.services.get', 'run.services.getIamPolicy', 'run.services.list', 'run.services.setIamPolicy', 'run.services.update', 'runtimeconfig.configs.create', 'runtimeconfig.configs.delete', 'runtimeconfig.configs.get', 'runtimeconfig.configs.getIamPolicy', 'runtimeconfig.configs.list', 'runtimeconfig.configs.setIamPolicy', 'runtimeconfig.configs.update', 'runtimeconfig.operations.get', 'runtimeconfig.operations.list', 'runtimeconfig.variables.create', 'runtimeconfig.variables.delete', 'runtimeconfig.variables.get', 'runtimeconfig.variables.getIamPolicy', 'runtimeconfig.variables.list', 'runtimeconfig.variables.setIamPolicy', 'runtimeconfig.variables.update', 'runtimeconfig.variables.watch', 'runtimeconfig.waiters.create', 'runtimeconfig.waiters.delete', 'runtimeconfig.waiters.get', 'runtimeconfig.waiters.getIamPolicy', 'runtimeconfig.waiters.list', 'runtimeconfig.waiters.setIamPolicy', 'runtimeconfig.waiters.update', 'servicebroker.bindingoperations.get', 'servicebroker.bindingoperations.list', 'servicebroker.bindings.create', 'servicebroker.bindings.delete', 'servicebroker.bindings.get', 'servicebroker.bindings.getIamPolicy', 'servicebroker.bindings.list', 'servicebroker.bindings.setIamPolicy', 'servicebroker.catalogs.create', 'servicebroker.catalogs.delete', 'servicebroker.catalogs.get', 'servicebroker.catalogs.getIamPolicy', 'servicebroker.catalogs.list', 'servicebroker.catalogs.setIamPolicy', 'servicebroker.catalogs.validate', 'servicebroker.instanceoperations.get', 'servicebroker.instanceoperations.list', 'servicebroker.instances.create', 'servicebroker.instances.delete', 'servicebroker.instances.get', 'servicebroker.instances.getIamPolicy', 'servicebroker.instances.list', 'servicebroker.instances.setIamPolicy', 'servicebroker.instances.update', 'serviceconsumermanagement.consumers.get', 'serviceconsumermanagement.quota.get', 'serviceconsumermanagement.quota.update', 'serviceconsumermanagement.tenancyu.addResource', 'serviceconsumermanagement.tenancyu.create', 'serviceconsumermanagement.tenancyu.delete', 'serviceconsumermanagement.tenancyu.list', 'serviceconsumermanagement.tenancyu.removeResource', 'servicemanagement.services.bind', 'servicemanagement.services.check', 'servicemanagement.services.create', 'servicemanagement.services.delete', 'servicemanagement.services.get', 'servicemanagement.services.getIamPolicy', 'servicemanagement.services.list', 'servicemanagement.services.quota', 'servicemanagement.services.report', 'servicemanagement.services.setIamPolicy', 'servicemanagement.services.update', 'servicenetworking.operations.cancel', 'servicenetworking.operations.delete', 'servicenetworking.operations.get', 'servicenetworking.operations.list', 'servicenetworking.services.addPeering', 'servicenetworking.services.addSubnetwork', 'servicenetworking.services.get', 'serviceusage.apiKeys.create', 'serviceusage.apiKeys.delete', 'serviceusage.apiKeys.get', 'serviceusage.apiKeys.getProjectForKey', 'serviceusage.apiKeys.list', 'serviceusage.apiKeys.regenerate', 'serviceusage.apiKeys.revert', 'serviceusage.apiKeys.update', 'serviceusage.operations.cancel', 'serviceusage.operations.delete', 'serviceusage.operations.get', 'serviceusage.operations.list', 'serviceusage.quotas.get', 'serviceusage.quotas.update', 'serviceusage.services.disable', 'serviceusage.services.enable', 'serviceusage.services.get', 'serviceusage.services.list', 'serviceusage.services.use', 'source.repos.create', 'source.repos.delete', 'source.repos.get', 'source.repos.getIamPolicy', 'source.repos.getProjectConfig', 'source.repos.list', 'source.repos.setIamPolicy', 'source.repos.update', 'source.repos.updateProjectConfig', 'source.repos.updateRepoConfig', 'spanner.databaseOperations.cancel', 'spanner.databaseOperations.delete', 'spanner.databaseOperations.get', 'spanner.databaseOperations.list', 'spanner.databases.beginOrRollbackReadWriteTransaction', 'spanner.databases.beginReadOnlyTransaction', 'spanner.databases.create', 'spanner.databases.drop', 'spanner.databases.get', 'spanner.databases.getDdl', 'spanner.databases.getIamPolicy', 'spanner.databases.list', 'spanner.databases.read', 'spanner.databases.select', 'spanner.databases.setIamPolicy', 'spanner.databases.update', 'spanner.databases.updateDdl', 'spanner.databases.write', 'spanner.instanceConfigs.get', 'spanner.instanceConfigs.list', 'spanner.instanceOperations.cancel', 'spanner.instanceOperations.delete', 'spanner.instanceOperations.get', 'spanner.instanceOperations.list', 'spanner.instances.create', 'spanner.instances.delete', 'spanner.instances.get', 'spanner.instances.getIamPolicy', 'spanner.instances.list', 'spanner.instances.setIamPolicy', 'spanner.instances.update', 'spanner.sessions.create', 'spanner.sessions.delete', 'spanner.sessions.get', 'spanner.sessions.list', 'stackdriver.projects.edit', 'stackdriver.projects.get', 'stackdriver.resourceMetadata.write', 'storage.buckets.create', 'storage.buckets.delete', 'storage.buckets.list', 'storage.objects.create', 'storage.objects.delete', 'storage.objects.get', 'storage.objects.getIamPolicy', 'storage.objects.list', 'storage.objects.setIamPolicy', 'storage.objects.update', 'storage.hmacKeys.create', 'storage.hmacKeys.delete', 'storage.hmacKeys.get', 'storage.hmacKeys.list', 'storage.hmacKeys.update', 'storagetransfer.jobs.create', 'storagetransfer.jobs.delete', 'storagetransfer.jobs.get', 'storagetransfer.jobs.list', 'storagetransfer.jobs.update', 'storagetransfer.operations.cancel', 'storagetransfer.operations.get', 'storagetransfer.operations.list', 'storagetransfer.operations.pause', 'storagetransfer.operations.resume', 'storagetransfer.projects.getServiceAccount', 'subscribewithgoogledeveloper.tools.get', 'threatdetection.detectorSettings.clear', 'threatdetection.detectorSettings.get', 'threatdetection.detectorSettings.update', 'tpu.acceleratortypes.get', 'tpu.acceleratortypes.list', 'tpu.locations.get', 'tpu.locations.list', 'tpu.nodes.create', 'tpu.nodes.delete', 'tpu.nodes.get', 'tpu.nodes.list', 'tpu.nodes.reimage', 'tpu.nodes.reset', 'tpu.nodes.start', 'tpu.nodes.stop', 'tpu.operations.get', 'tpu.operations.list', 'tpu.tensorflowversions.get', 'tpu.tensorflowversions.list', 'vpcaccess.connectors.create', 'vpcaccess.connectors.delete', 'vpcaccess.connectors.get', 'vpcaccess.connectors.list', 'vpcaccess.connectors.use', 'vpcaccess.locations.list', 'vpcaccess.operations.get', 'vpcaccess.operations.list']
ALL_BLUE_MOUNTAINS_SERVICES = range(9833, 9848) INBOUND_BLUE_MOUNTAINS_SERVICES = (9833, 9835, 9838, 9840, 9841, 9843, 9844, 9847) YELLOW_LINE_SERVICES = [9901, 9903, 9904, 9906, 9908, 9909, 9911, 9964, 9965, 9966, 9967, 9968, 9969, 9972, 9973, 9974] # 9847 has a hornsby to springwood service thrown in for good measure :-( #INBOUND_BLUE_MOUNTAINS_SERVICES = (9833, 9835, 9838, 9840, 9841, 9843, 9844) TEST_SERVICES = (9843,) #SERVICE_LIST = YELLOW_LINE_SERVICES + ALL_BLUE_MOUNTAINS_SERVICES #SERVICE_LIST = ALL_BLUE_MOUNTAINS_SERVICES LITHGOW_TO_CENTRAL_ORIGINS = ("Lithgow Station", "Mount Victoria Station", "Katoomba Station", "Springwood Station") CENTRAL_TO_LITHGOW_ORIGINS = ("Central Station", "Hornsby Station",) PENRITH_TO_HORNSBY_ORIGINS = ("Emu Plains Station", "Penrith Station", "Richmond Station", "Blacktown Station", "Quakers Hill Station") HORNSBY_TO_PENRITH_ORIGINS = ("Berowra Station", "Hornsby Station", "Gordon Station", "North Sydney Station", "Wyong Station", "Lindfield Station") INTERCHANGE_LINE_NAME = "Dummy Interchange Line" LINE_NAMES = ["Blue Mountains - Lithgow to Central", "Blue Mountains - Central to Lithgow", "Western Line - Penrif to Hornsby", "Western Line - Hornsby to Penrif", ] # List the stations that are on each line # TODO: Generate this automatically? INTERCHANGE_STATION_MAP = { "Emu Plains Station": (1, 2, 3, 4), "Penrith Station": (1, 2, 3, 4), "Blacktown Station": (1, 2, 3, 4), "Westmead Station": (1, 2, 3, 4), "Parramatta Station": (1, 2, 3, 4), "Granville Station": (1, 2, 3, 4), "Lidcombe Station": (1, 2, 3, 4), "Strathfield Station": (1, 2, 3, 4), "Burwood Station": (3, 4), "Redfern Station": (1, 2, 3, 4), "Central Station": (1, 2, 3, 4), "Town Hall Station": (3, 4), "Wynyard Station": (3, 4), "North Sydney Station": (3, 4) }
all_blue_mountains_services = range(9833, 9848) inbound_blue_mountains_services = (9833, 9835, 9838, 9840, 9841, 9843, 9844, 9847) yellow_line_services = [9901, 9903, 9904, 9906, 9908, 9909, 9911, 9964, 9965, 9966, 9967, 9968, 9969, 9972, 9973, 9974] test_services = (9843,) lithgow_to_central_origins = ('Lithgow Station', 'Mount Victoria Station', 'Katoomba Station', 'Springwood Station') central_to_lithgow_origins = ('Central Station', 'Hornsby Station') penrith_to_hornsby_origins = ('Emu Plains Station', 'Penrith Station', 'Richmond Station', 'Blacktown Station', 'Quakers Hill Station') hornsby_to_penrith_origins = ('Berowra Station', 'Hornsby Station', 'Gordon Station', 'North Sydney Station', 'Wyong Station', 'Lindfield Station') interchange_line_name = 'Dummy Interchange Line' line_names = ['Blue Mountains - Lithgow to Central', 'Blue Mountains - Central to Lithgow', 'Western Line - Penrif to Hornsby', 'Western Line - Hornsby to Penrif'] interchange_station_map = {'Emu Plains Station': (1, 2, 3, 4), 'Penrith Station': (1, 2, 3, 4), 'Blacktown Station': (1, 2, 3, 4), 'Westmead Station': (1, 2, 3, 4), 'Parramatta Station': (1, 2, 3, 4), 'Granville Station': (1, 2, 3, 4), 'Lidcombe Station': (1, 2, 3, 4), 'Strathfield Station': (1, 2, 3, 4), 'Burwood Station': (3, 4), 'Redfern Station': (1, 2, 3, 4), 'Central Station': (1, 2, 3, 4), 'Town Hall Station': (3, 4), 'Wynyard Station': (3, 4), 'North Sydney Station': (3, 4)}
study_name = 'mperf' # Sampling frequency SAMPLING_FREQ_RIP = 21.33 SAMPLING_FREQ_MOTIONSENSE_ACCEL = 25 SAMPLING_FREQ_MOTIONSENSE_GYRO = 25 # MACD (moving average convergence divergence) related threshold FAST_MOVING_AVG_SIZE = 13 SLOW_MOVING_AVG_SIZE = 131 # FAST_MOVING_AVG_SIZE = 20 # SLOW_MOVING_AVG_SIZE = 205 # Hand orientation related threshold MIN_ROLL = -20 MAX_ROLL = 65 MIN_PITCH = -125 MAX_PITCH = -40 # MotionSense sample range MIN_MSHRV_ACCEL = -2.5 MAX_MSHRV_ACCEL = 2.5 MIN_MSHRV_GYRO = -250 MAX_MSHRV_GYRO = 250 # Puff label PUFF_LABEL_RIGHT = 2 PUFF_LABEL_LEFT = 1 NO_PUFF = 0 # Input stream names required for puffmarker MOTIONSENSE_HRV_ACCEL_LEFT_STREAMNAME = "ACCELEROMETER--org.md2k.motionsense--MOTION_SENSE_HRV--LEFT_WRIST" MOTIONSENSE_HRV_GYRO_LEFT_STREAMNAME = "GYROSCOPE--org.md2k.motionsense--MOTION_SENSE_HRV--LEFT_WRIST" MOTIONSENSE_HRV_ACCEL_RIGHT_STREAMNAME = "ACCELEROMETER--org.md2k.motionsense--MOTION_SENSE_HRV--RIGHT_WRIST" MOTIONSENSE_HRV_GYRO_RIGHT_STREAMNAME = "GYROSCOPE--org.md2k.motionsense--MOTION_SENSE_HRV--RIGHT_WRIST" PUFFMARKER_MODEL_FILENAME = 'puffmarker_wrist_randomforest.model' # Outputs stream names PUFFMARKER_WRIST_SMOKING_EPISODE = "org.md2k.data_analysis.feature.puffmarker.smoking_episode" PUFFMARKER_WRIST_SMOKING_PUFF = "org.md2k.data_analysis.feature.puffmarker.smoking_puff" # smoking episode MINIMUM_TIME_DIFFERENCE_FIRST_AND_LAST_PUFFS = 7 * 60 # seconds MINIMUM_INTER_PUFF_DURATION = 5 # seconds MINIMUM_PUFFS_IN_EPISODE = 4 LEFT_WRIST = 'leftwrist' RIGHT_WRIST = 'rightwrist' # NU ground truth label_sd = 1 # smoking dominant hand label_fd = 2 # feeding dominant hand label_dd = 3 # drinking dominant hand label_cd = 4 # confounding dominant hand text_sd = 'sd' # smoking dominant hand text_fd = 'fd' # feeding dominant hand text_dd = 'dd' # drinking dominant hand text_cd = 'cd' # confounding dominant hand
study_name = 'mperf' sampling_freq_rip = 21.33 sampling_freq_motionsense_accel = 25 sampling_freq_motionsense_gyro = 25 fast_moving_avg_size = 13 slow_moving_avg_size = 131 min_roll = -20 max_roll = 65 min_pitch = -125 max_pitch = -40 min_mshrv_accel = -2.5 max_mshrv_accel = 2.5 min_mshrv_gyro = -250 max_mshrv_gyro = 250 puff_label_right = 2 puff_label_left = 1 no_puff = 0 motionsense_hrv_accel_left_streamname = 'ACCELEROMETER--org.md2k.motionsense--MOTION_SENSE_HRV--LEFT_WRIST' motionsense_hrv_gyro_left_streamname = 'GYROSCOPE--org.md2k.motionsense--MOTION_SENSE_HRV--LEFT_WRIST' motionsense_hrv_accel_right_streamname = 'ACCELEROMETER--org.md2k.motionsense--MOTION_SENSE_HRV--RIGHT_WRIST' motionsense_hrv_gyro_right_streamname = 'GYROSCOPE--org.md2k.motionsense--MOTION_SENSE_HRV--RIGHT_WRIST' puffmarker_model_filename = 'puffmarker_wrist_randomforest.model' puffmarker_wrist_smoking_episode = 'org.md2k.data_analysis.feature.puffmarker.smoking_episode' puffmarker_wrist_smoking_puff = 'org.md2k.data_analysis.feature.puffmarker.smoking_puff' minimum_time_difference_first_and_last_puffs = 7 * 60 minimum_inter_puff_duration = 5 minimum_puffs_in_episode = 4 left_wrist = 'leftwrist' right_wrist = 'rightwrist' label_sd = 1 label_fd = 2 label_dd = 3 label_cd = 4 text_sd = 'sd' text_fd = 'fd' text_dd = 'dd' text_cd = 'cd'
class Printer: """ Class for printing string with specific color Color list: blue, green, cyan, red, white """ def __init__(self): self.__BLUE = '\033[1;34;48m' self.__GREEN = '\033[1;32;48m' self.__CYAN = '\033[1;36;48m' self.__RED = '\033[1;31;48m' self.__TERM = '\033[1;37;0m' def print_c(self, text, color): print(color + text + self.__TERM, end='') def blue(self, text): self.print_c(text, self.__BLUE) def green(self, text): self.print_c(text, self.__GREEN) def cyan(self, text): self.print_c(text, self.__CYAN) def red(self, text): self.print_c(text, self.__RED) def white(self, text): print(text, end='')
class Printer: """ Class for printing string with specific color Color list: blue, green, cyan, red, white """ def __init__(self): self.__BLUE = '\x1b[1;34;48m' self.__GREEN = '\x1b[1;32;48m' self.__CYAN = '\x1b[1;36;48m' self.__RED = '\x1b[1;31;48m' self.__TERM = '\x1b[1;37;0m' def print_c(self, text, color): print(color + text + self.__TERM, end='') def blue(self, text): self.print_c(text, self.__BLUE) def green(self, text): self.print_c(text, self.__GREEN) def cyan(self, text): self.print_c(text, self.__CYAN) def red(self, text): self.print_c(text, self.__RED) def white(self, text): print(text, end='')
x = y = 1 print(x,y) x = y = z = 1 print(x,y,z)
x = y = 1 print(x, y) x = y = z = 1 print(x, y, z)
"""Custom exceptions for the application""" class InvalidConfigException(Exception): """Exception that is thrown if the configuration file is not valid""" def __init__(self): super().__init__('Configuration file is not valid. \ Please review the docs and check your config file.')
"""Custom exceptions for the application""" class Invalidconfigexception(Exception): """Exception that is thrown if the configuration file is not valid""" def __init__(self): super().__init__('Configuration file is not valid. Please review the docs and check your config file.')
#-*- coding: utf-8 -*- # Let's start with lists spam = ["eggs", 7.12345] # This is a list, a comma-separated sequence of values between square brackets print(spam) print(type(spam)) eggs = [spam, 1.2345, "fooo"] # No problem with multi-line declaration print(eggs) #=============================================================================== # - You can mix all kind of types inside a list # - Even other lists, of course #=============================================================================== spam = ["eggs"] # Actually just square brackets is enough to declare a list print(spam) spam = [] # And this is an empty list print(spam) # What about tuples? spam = ("eggs", 7.12345) # This is a tuple, a comma-separated sequence of values between parentheses print(spam) print(type(spam)) eggs = (spam, 1.2345, "fooo") # Again, no problem with multiline declaration print(eggs) #=============================================================================== # - Again, you can mix all kind of types inside a tuple #=============================================================================== #=============================================================================== # Python ordered sequence types (arrays in other languages, not linked lists): # - They are arrays, not linked lists, so they have constant O(1) time for index access # - list: # - Comma-separated with square brackets # - Mutable # - tuple: # - Comma-separated with parentheses # - Parentheses only required in empty tuple # - Immutable # - Slightly better traversing performance than lists # - str and unicode: # - One or three single or double quotes # - They have special methods # - Immutable #=============================================================================== # Let's a play a bit with sequences operations spam = ["1st", "2nd", "3rd", "4th", "5th"] eggs = (spam, 1.2345, "fooo") print("eggs" in spam) print("fooo" not in eggs) print("am" in "spam") # Check items membership print("spam".find("am")) # NOT recommended for membership print(spam.count("1st")) # Count repetitions (slow) print(spam + spam) print(eggs + eggs) print("spam" + "eggs") # Concatenation. must be of the same type print(spam * 5) print(eggs * 3) print("spam" * 3) # Also "multiply" creating copies concatenated print(len(spam)) print(len(eggs)) print(len("spam")) # Obtain its length # Let's see how indexing works spam = ["1st", "2nd", "3rd", "4th", "5th"] eggs = (spam, 1.2345, "fooo") print(spam[0]) print(eggs[1]) print("spam"[2]) # Access by index, starting from 0 to length - 1, may raise an exception print(spam[-1]) print(eggs[-2]) print("spam"[-3]) # Access by index, even negative # Let's see how slicing works spam = ("1st", "2nd", "3rd", "4th", "5th") print(spam[1:3]) # Use colon and a second index for slicing print(type(spam[1:4])) # It generates a brand new object (shallow copy) spam = ["1st", "2nd", "3rd", "4th", "5th"] print(spam[:3]) print(spam[1:7]) print(spam[-2:7]) # Negative indexes are also valid print(spam[3:-2]) print(spam[1:7:2]) # Use another colon and a third int to specify the step print(spam[::2]) #=============================================================================== # - In slicing Python is able to cleverly set the indexes # - No IndexError when slicing index is out of range # - First (0) and last (-1) index is automatically filled # - Step is 1 by default and does not need to be multiple of sequence length #=============================================================================== # Let's try something different spam = ["1st", "2nd", "3rd", "4th", "5th"] spam[3] = 1 print(spam) #=============================================================================== # - lists mutable sequences, so they allow in place modifications #=============================================================================== # Let's see more modification operations spam = [1, 2, 3, 4, 5] eggs = ['a', 'b', 'c'] spam[1:3] = eggs print(spam) # We can use slicing here too! spam = [1, 2, 3, 4, 5, 6, 7, 8] eggs = ['a', 'b', 'c'] spam[1:7:2] = eggs print(spam) # We can use even slicing with step!! spam = [1, 2, 3, 4, 5] spam.append("a") print(spam) # We can append an element at the end (amortized O(1)) spam = [1, 2, 3, 4, 5] eggs = ['a', 'b', 'c'] spam.extend(eggs) print(spam) # We can append another sequence elements at the end (amortized O(1)) spam = [1, 2, 3, 4, 5] eggs = ['a', 'b', 'c'] spam.append(eggs) print(spam) # Take care to not mix both commands!! spam = [1, 2, 3, 4, 5] spam.insert(3, "a") print(spam) # The same like spam[3:3] = ["a"] spam = [1, 2, 3, 4, 5] print(spam.pop()) print(spam) # Pop (remove and return) last item print(spam.pop(2)) print(spam) # Pop (remove and return) given item spam = [1, 2, 3, 4, 5] del spam[3] print(spam) # Delete an item #=============================================================================== # SOURCES: # - http://docs.python.org/2/tutorial/introduction.html#lists # - http://docs.python.org/2/tutorial/datastructures.html#tuples-and-sequences # - http://docs.python.org/2/tutorial/datastructures.html#sets #===============================================================================
spam = ['eggs', 7.12345] print(spam) print(type(spam)) eggs = [spam, 1.2345, 'fooo'] print(eggs) spam = ['eggs'] print(spam) spam = [] print(spam) spam = ('eggs', 7.12345) print(spam) print(type(spam)) eggs = (spam, 1.2345, 'fooo') print(eggs) spam = ['1st', '2nd', '3rd', '4th', '5th'] eggs = (spam, 1.2345, 'fooo') print('eggs' in spam) print('fooo' not in eggs) print('am' in 'spam') print('spam'.find('am')) print(spam.count('1st')) print(spam + spam) print(eggs + eggs) print('spam' + 'eggs') print(spam * 5) print(eggs * 3) print('spam' * 3) print(len(spam)) print(len(eggs)) print(len('spam')) spam = ['1st', '2nd', '3rd', '4th', '5th'] eggs = (spam, 1.2345, 'fooo') print(spam[0]) print(eggs[1]) print('spam'[2]) print(spam[-1]) print(eggs[-2]) print('spam'[-3]) spam = ('1st', '2nd', '3rd', '4th', '5th') print(spam[1:3]) print(type(spam[1:4])) spam = ['1st', '2nd', '3rd', '4th', '5th'] print(spam[:3]) print(spam[1:7]) print(spam[-2:7]) print(spam[3:-2]) print(spam[1:7:2]) print(spam[::2]) spam = ['1st', '2nd', '3rd', '4th', '5th'] spam[3] = 1 print(spam) spam = [1, 2, 3, 4, 5] eggs = ['a', 'b', 'c'] spam[1:3] = eggs print(spam) spam = [1, 2, 3, 4, 5, 6, 7, 8] eggs = ['a', 'b', 'c'] spam[1:7:2] = eggs print(spam) spam = [1, 2, 3, 4, 5] spam.append('a') print(spam) spam = [1, 2, 3, 4, 5] eggs = ['a', 'b', 'c'] spam.extend(eggs) print(spam) spam = [1, 2, 3, 4, 5] eggs = ['a', 'b', 'c'] spam.append(eggs) print(spam) spam = [1, 2, 3, 4, 5] spam.insert(3, 'a') print(spam) spam = [1, 2, 3, 4, 5] print(spam.pop()) print(spam) print(spam.pop(2)) print(spam) spam = [1, 2, 3, 4, 5] del spam[3] print(spam)
""" some constants """ # pylint: disable=invalid-name version_info = (0, 2, 0, "dev") __version__ = ".".join(map(str, version_info)) module_name = "@deathbeds/wxyz-yaml" module_version = "^0.2.0"
""" some constants """ version_info = (0, 2, 0, 'dev') __version__ = '.'.join(map(str, version_info)) module_name = '@deathbeds/wxyz-yaml' module_version = '^0.2.0'
#define a dictionary data structure #dictionaries have key:valyue pairs for the elements example_dict = { "class" : "ASTR 119", "prof" : "Brant", "awesomeness" : 10 } print ("The type of example_dict is ", type(example_dict)) #get value via key course = example_dict["class"] print(course) example_dict["awesomeness"] += 1 #print the dictionary print(example_dict) #print dictionary element by element for x in example_dict.key(): print(x, example_dict[x])
example_dict = {'class': 'ASTR 119', 'prof': 'Brant', 'awesomeness': 10} print('The type of example_dict is ', type(example_dict)) course = example_dict['class'] print(course) example_dict['awesomeness'] += 1 print(example_dict) for x in example_dict.key(): print(x, example_dict[x])
class BaseLoadOn(Enum,IComparable,IFormattable,IConvertible): """ An enumerated type listing all the possible power load use types for a space object. enum BaseLoadOn,values: kNoOfBaseLoadOnMethods (3),kUseActualLoad (2),kUseCalculatedLoad (1),kUseDefaultLoad (-1),kUseEnteredLoad (0) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self,*args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self,*args): pass def __gt__(self,*args): pass def __init__(self,*args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self,*args): pass def __lt__(self,*args): pass def __ne__(self,*args): pass def __reduce_ex__(self,*args): pass def __str__(self,*args): pass kNoOfBaseLoadOnMethods=None kUseActualLoad=None kUseCalculatedLoad=None kUseDefaultLoad=None kUseEnteredLoad=None value__=None
class Baseloadon(Enum, IComparable, IFormattable, IConvertible): """ An enumerated type listing all the possible power load use types for a space object. enum BaseLoadOn,values: kNoOfBaseLoadOnMethods (3),kUseActualLoad (2),kUseCalculatedLoad (1),kUseDefaultLoad (-1),kUseEnteredLoad (0) """ def __eq__(self, *args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self, *args): """ __format__(formattable: IFormattable,format: str) -> str """ pass def __ge__(self, *args): pass def __gt__(self, *args): pass def __init__(self, *args): """ x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """ pass def __le__(self, *args): pass def __lt__(self, *args): pass def __ne__(self, *args): pass def __reduce_ex__(self, *args): pass def __str__(self, *args): pass k_no_of_base_load_on_methods = None k_use_actual_load = None k_use_calculated_load = None k_use_default_load = None k_use_entered_load = None value__ = None
## @ GpioDataConfig.py # This is a Gpio config script for Slim Bootloader # # Copyright (c) 2020, Intel Corporation. All rights reserved. <BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # # The index for a group has to match implementation # in a platform specific Gpio library. # grp_info_lp = { # Grp Index 'GPP_B' : [ 0x0], 'GPP_T' : [ 0x1], 'GPP_A' : [ 0x2], 'GPP_R' : [ 0x3], 'GPP_S' : [ 0x5], 'GPP_H' : [ 0x6], 'GPP_D' : [ 0x7], 'GPP_U' : [ 0x8], 'GPP_C' : [ 0xA], 'GPP_F' : [ 0xB], 'GPP_E' : [ 0xC], } grp_info_h = { # Grp Index 'GPP_A' : [ 0x1], 'GPP_R' : [ 0x2], 'GPP_B' : [ 0x3], 'GPP_D' : [ 0x4], 'GPP_C' : [ 0x5], 'GPP_S' : [ 0x6], 'GPP_G' : [ 0x7], 'GPP_E' : [ 0x9], 'GPP_F' : [ 0xA], 'GPP_H' : [ 0xB], 'GPP_K' : [ 0xC], 'GPP_J' : [ 0xD], 'GPP_I' : [ 0xE], } def get_grp_info(pch_series): if pch_series not in ['lp', 'h']: raise Exception ('Invalid pch series passed') else: if pch_series == 'lp': return grp_info_lp elif pch_series == 'h': return grp_info_h def rxraw_override_cfg(): return False def vir_to_phy_grp(): return False def plat_name(): return 'tgl'
grp_info_lp = {'GPP_B': [0], 'GPP_T': [1], 'GPP_A': [2], 'GPP_R': [3], 'GPP_S': [5], 'GPP_H': [6], 'GPP_D': [7], 'GPP_U': [8], 'GPP_C': [10], 'GPP_F': [11], 'GPP_E': [12]} grp_info_h = {'GPP_A': [1], 'GPP_R': [2], 'GPP_B': [3], 'GPP_D': [4], 'GPP_C': [5], 'GPP_S': [6], 'GPP_G': [7], 'GPP_E': [9], 'GPP_F': [10], 'GPP_H': [11], 'GPP_K': [12], 'GPP_J': [13], 'GPP_I': [14]} def get_grp_info(pch_series): if pch_series not in ['lp', 'h']: raise exception('Invalid pch series passed') elif pch_series == 'lp': return grp_info_lp elif pch_series == 'h': return grp_info_h def rxraw_override_cfg(): return False def vir_to_phy_grp(): return False def plat_name(): return 'tgl'
class Solution: def flipAndInvertImage(self, A: [[int]]) -> [[int]]: for row in A : left, right = 0 , len(row) -1 while left < right : if row[left] == row[right] : row[left] ^= 1 row[right] ^= 1 left += 1 right -= 1 if left == right : row[left] ^= 1 return A if __name__ == "__main__" : s = Solution() a1 = [[1,1,0],[1,0,1],[0,0,0]] a2 = s.flipAndInvertImage(a1) print(a2)
class Solution: def flip_and_invert_image(self, A: [[int]]) -> [[int]]: for row in A: (left, right) = (0, len(row) - 1) while left < right: if row[left] == row[right]: row[left] ^= 1 row[right] ^= 1 left += 1 right -= 1 if left == right: row[left] ^= 1 return A if __name__ == '__main__': s = solution() a1 = [[1, 1, 0], [1, 0, 1], [0, 0, 0]] a2 = s.flipAndInvertImage(a1) print(a2)
def read_input(): with open("input.txt", "r") as file: d = [c[2:].split("..") for c in file.read()[13:].split(", ")] return [int(i) for s in d for i in s] def bruteforce(y_v, x_v, b): x,y = 0,0 while True: x+=x_v y+=y_v if b[0] <= x <= b[1] and b[2] <= y <= b[3]: return 1 elif x > b[1] or y < b[2]: return 0 x_v -= 1 if x_v > 0 else 0 y_v -= 1 def main(): data = read_input() print(f"Part 1 {sum([y for y in range(-data[2])])}") p = 0 for y_v in range(data[2], -data[2]+1): for x_v in range(data[1]+1): p+=bruteforce(y_v, x_v, data) print(f"Part 2 {p}") if __name__ == "__main__": main()
def read_input(): with open('input.txt', 'r') as file: d = [c[2:].split('..') for c in file.read()[13:].split(', ')] return [int(i) for s in d for i in s] def bruteforce(y_v, x_v, b): (x, y) = (0, 0) while True: x += x_v y += y_v if b[0] <= x <= b[1] and b[2] <= y <= b[3]: return 1 elif x > b[1] or y < b[2]: return 0 x_v -= 1 if x_v > 0 else 0 y_v -= 1 def main(): data = read_input() print(f'Part 1 {sum([y for y in range(-data[2])])}') p = 0 for y_v in range(data[2], -data[2] + 1): for x_v in range(data[1] + 1): p += bruteforce(y_v, x_v, data) print(f'Part 2 {p}') if __name__ == '__main__': main()
#!/usr/bin/python # Filename: ex_global.py x = 50 def func(): global x print('x is ', x) x = 2 print('Changed local x to ', x) func() print('Value of x is ', x)
x = 50 def func(): global x print('x is ', x) x = 2 print('Changed local x to ', x) func() print('Value of x is ', x)
USAGE_MSG = """ Usage: golem golem run <project> <test|suite|dir> [-b -t -e] golem gui [-p] golem createproject <project> golem createtest <project> <test> golem createsuite <project> <suite> golem createuser <username> <password> [-a -p -r] Usage: golem run Run tests or suites positional arguments: projects name of the project test|suite|dir name of a single test, a suite or a directory of tests. optional arguments: -b, --browsers a list of browsers -t, --threads amount of threads, default is 1 -e, --environments a list of environments Usage: golem gui Start the Golem GUI module optional arguments: -p, --port which port to use, default is 5000 Type: golem -h <command> for more help """ RUN_USAGE_MSG = """ Usage: golem run <project> <test|suite|dir> [-b|--browsers] [-t|--threads] [-e|--environments] Run tests, suites or entire test directories positional arguments: project name of the project test|suite|dir name of a single test, a suite or a directory of tests. optional arguments: -b, --browsers a list of browsers -t, --threads amount of threads, default is 1 -e, --environments a list of environments """ GUI_USAGE_MSG = """ Usage: golem gui [-p|--port] Start the Golem GUI module optional arguments: -p, --port which port to use, default is 5000 """ CREATEPROJECT_USAGE_MSG = """ Usage: golem createproject <project> Create a new project positional arguments: project project name """ CREATETEST_USAGE_MSG = """ Usage: golem createtest <project> <test> Create a new test inside a project positional arguments: project an existing project name test the name of the new test. Use dots to create inside sub-folders. """ CREATESUITE_USAGE_MSG = """ Usage: golem createsuite <project> <suite> Create a new test suite inside a project positional arguments: project an existing project name suite the name of the new suite. Use dots to create inside sub-folders. """ CREATEUSER_USAGE_MSG = """ Usage: golem createuser <username> <password> [-a|--admin] [-p|--projects] [-r|--reports] Create a new user positional arguments: username the username of the user password the password of the user optional arguments: -a, --admin make the user admin. Admin users have access to all projects. -p, --projects a list of projects to give the user access -r, --reports a list of projects to give the user access to the reports """ ADMIN_USAGE_MSG = """ Usage: golem-admin golem-admin createdirectory <directory-name> Create a new directory with the structure and files required for golem projects. """
usage_msg = '\nUsage: golem\n\n golem run <project> <test|suite|dir> [-b -t -e]\n golem gui [-p]\n golem createproject <project>\n golem createtest <project> <test>\n golem createsuite <project> <suite>\n golem createuser <username> <password> [-a -p -r]\n\nUsage: golem run\n\n Run tests or suites\n\n positional arguments:\n projects name of the project\n test|suite|dir name of a single test, a suite or a\n directory of tests.\n\n optional arguments:\n -b, --browsers a list of browsers\n -t, --threads amount of threads, default is 1\n -e, --environments a list of environments\n\nUsage: golem gui\n \n Start the Golem GUI module\n\n optional arguments:\n -p, --port which port to use, default is 5000\n\nType: golem -h <command> for more help\n' run_usage_msg = '\nUsage: golem run <project> <test|suite|dir> [-b|--browsers]\n [-t|--threads] [-e|--environments]\n\n Run tests, suites or entire test directories\n\n positional arguments:\n project name of the project\n test|suite|dir name of a single test, a suite or a\n directory of tests.\n\n optional arguments:\n -b, --browsers a list of browsers\n -t, --threads amount of threads, default is 1\n -e, --environments a list of environments\n' gui_usage_msg = '\nUsage: golem gui [-p|--port]\n \n Start the Golem GUI module\n\n optional arguments:\n -p, --port which port to use, default is 5000\n' createproject_usage_msg = '\nUsage: golem createproject <project>\n \n Create a new project\n\n positional arguments:\n project project name\n' createtest_usage_msg = '\nUsage: golem createtest <project> <test>\n \n Create a new test inside a project\n\n positional arguments:\n project an existing project name\n test the name of the new test. Use dots\n to create inside sub-folders.\n' createsuite_usage_msg = '\nUsage: golem createsuite <project> <suite>\n \n Create a new test suite inside a project\n\n positional arguments:\n project an existing project name\n suite the name of the new suite. Use dots\n to create inside sub-folders.\n' createuser_usage_msg = '\nUsage: golem createuser <username> <password> [-a|--admin]\n [-p|--projects] [-r|--reports]\n \n Create a new user\n\n positional arguments:\n username the username of the user\n password the password of the user\n\n optional arguments:\n -a, --admin make the user admin. Admin users\n have access to all projects.\n -p, --projects a list of projects to give the user\n access\n -r, --reports a list of projects to give the user\n access to the reports\n' admin_usage_msg = '\nUsage: golem-admin\n\n golem-admin createdirectory <directory-name>\n\n Create a new directory with the structure and files\n required for golem projects.\n'
class RUNLOG: class STATUS: SUCCESS = "SUCCESS" PENDING = "PENDING" RUNNING = "RUNNING" FAILURE = "FAILURE" WARNING = "WARNING" ERROR = "ERROR" APPROVAL = "APPROVAL" APPROVAL_FAILED = "APPROVAL_FAILED" ABORTED = "ABORTED" ABORTING = "ABORTING" SYS_FAILURE = "SYS_FAILURE" SYS_ERROR = "SYS_ERROR" SYS_ABORTED = "SYS_ABORTED" ALREADY_RUN = "ALREADY_RUN" TIMEOUT = "TIMEOUT" INPUT = "INPUT" CONFIRM = "CONFIRM" PAUSED = "PAUSED" TERMINAL_STATES = [ STATUS.SUCCESS, STATUS.FAILURE, STATUS.APPROVAL_FAILED, STATUS.WARNING, STATUS.ERROR, STATUS.ABORTED, STATUS.SYS_FAILURE, STATUS.SYS_ERROR, STATUS.SYS_ABORTED, ] FAILURE_STATES = [ STATUS.FAILURE, STATUS.APPROVAL_FAILED, STATUS.WARNING, STATUS.ERROR, STATUS.ABORTED, STATUS.SYS_FAILURE, STATUS.SYS_ERROR, STATUS.SYS_ABORTED, ] class RUNBOOK: class STATES: ACTIVE = "ACTIVE" DELETED = "DELETED" DRAFT = "DRAFT" ERROR = "ERROR" class ENDPOINT: class STATES: ACTIVE = "ACTIVE" DELETED = "DELETED" DRAFT = "DRAFT" ERROR = "ERROR" class TYPES: HTTP = "HTTP" WINDOWS = "Windows" LINUX = "Linux" class VALUE_TYPES: VM = "VM" IP = "IP" class BLUEPRINT: class STATES: ACTIVE = "ACTIVE" DELETED = "DELETED" DRAFT = "DRAFT" ERROR = "ERROR" class APPLICATION: class STATES: PROVISIONING = "provisioning" STOPPED = "stopped" RUNNING = "running" ERROR = "error" DELETED = "deleted" DELETING = "deleting" STARTING = "starting" STOPPING = "stopping" RESTARTING = "restarting" BUSY = "busy" TIMEOUT = "timeout" RESTARTING = "restarting" class ACCOUNT: class STATES: DELETED = "DELETED" VERIFIED = "VERIFIED" NOT_VERIFIED = "NOT_VERIFIED" VERIFY_FAILED = "VERIFY_FAILED" DRAFT = "DRAFT" ACTIVE = "ACTIVE" UNSAVED = "UNSAVED" class TYPES: AWS = "aws" AHV = "nutanix" KUBERNETES = "k8s" AZURE = "azure" GCP = "gcp" VMWARE = "vmware" class SINGLE_INPUT: class TYPE: TEXT = "text" PASSWORD = "password" CHECKBOX = "checkbox" SELECT = "select" SELECTMULTIPLE = "selectmultiple" DATE = "date" TIME = "time" DATETIME = "datetime" VALID_TYPES = [ TYPE.TEXT, TYPE.PASSWORD, TYPE.CHECKBOX, TYPE.SELECT, TYPE.SELECTMULTIPLE, TYPE.DATE, TYPE.TIME, TYPE.DATETIME, ] class SYSTEM_ACTIONS: CREATE = "create" START = "start" RESTART = "restart" STOP = "stop" DELETE = "delete" SOFT_DELETE = "soft_delete" class MARKETPLACE_ITEM: class TYPES: BLUEPRINT = "blueprint" RUNBOOK = "runbook" class STATES: PENDING = "PENDING" ACCEPTED = "ACCEPTED" REJECTED = "REJECTED" PUBLISHED = "PUBLISHED" class SOURCES: GLOBAL = "GLOBAL_STORE" LOCAL = "LOCAL" class TASKS: class TASK_TYPES: EXEC = "EXEC" SET_VARIABLE = "SET_VARIABLE" HTTP = "HTTP" class SCRIPT_TYPES: POWERSHELL = "npsscript" SHELL = "sh" ESCRIPT = "static" class STATES: ACTIVE = "ACTIVE" DELETED = "DELETED" DRAFT = "DRAFT" class ERGON_TASK: class STATUS: QUEUED = "QUEUED" RUNNING = "RUNNING" ABORTED = "ABORTED" SUCCEEDED = "SUCCEEDED" SUSPENDED = "SUSPENDED" FAILED = "FAILED" TERMINAL_STATES = [ STATUS.SUCCEEDED, STATUS.FAILED, STATUS.ABORTED, STATUS.SUSPENDED, ] FAILURE_STATES = [STATUS.FAILED, STATUS.ABORTED, STATUS.SUSPENDED] class ACP: class ENTITY_FILTER_EXPRESSION_LIST: DEVELOPER = [ { "operator": "IN", "left_hand_side": {"entity_type": "image"}, "right_hand_side": {"collection": "ALL"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "marketplace_item"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "app_icon"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "category"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "app_task"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "app_variable"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, ] OPERATOR = [ { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "app_icon"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "category"}, }, ] CONSUMER = [ { "operator": "IN", "left_hand_side": {"entity_type": "image"}, "right_hand_side": {"collection": "ALL"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "marketplace_item"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "app_icon"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "category"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "app_task"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "app_variable"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, ] PROJECT_ADMIN = [ { "operator": "IN", "left_hand_side": {"entity_type": "image"}, "right_hand_side": {"collection": "ALL"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "marketplace_item"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "directory_service"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "role"}, }, { "operator": "IN", "right_hand_side": {"uuid_list": []}, "left_hand_side": {"entity_type": "project"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "user"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "user_group"}, }, { "operator": "IN", "right_hand_side": {"collection": "SELF_OWNED"}, "left_hand_side": {"entity_type": "environment"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "app_icon"}, }, { "operator": "IN", "right_hand_side": {"collection": "ALL"}, "left_hand_side": {"entity_type": "category"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "app_task"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, { "operator": "IN", "left_hand_side": {"entity_type": "app_variable"}, "right_hand_side": {"collection": "SELF_OWNED"}, }, ] DEFAULT_CONTEXT = { "scope_filter_expression_list": [ { "operator": "IN", "left_hand_side": "PROJECT", "right_hand_side": {"uuid_list": []}, } ], "entity_filter_expression_list": [ { "operator": "IN", "left_hand_side": {"entity_type": "ALL"}, "right_hand_side": {"collection": "ALL"}, } ], }
class Runlog: class Status: success = 'SUCCESS' pending = 'PENDING' running = 'RUNNING' failure = 'FAILURE' warning = 'WARNING' error = 'ERROR' approval = 'APPROVAL' approval_failed = 'APPROVAL_FAILED' aborted = 'ABORTED' aborting = 'ABORTING' sys_failure = 'SYS_FAILURE' sys_error = 'SYS_ERROR' sys_aborted = 'SYS_ABORTED' already_run = 'ALREADY_RUN' timeout = 'TIMEOUT' input = 'INPUT' confirm = 'CONFIRM' paused = 'PAUSED' terminal_states = [STATUS.SUCCESS, STATUS.FAILURE, STATUS.APPROVAL_FAILED, STATUS.WARNING, STATUS.ERROR, STATUS.ABORTED, STATUS.SYS_FAILURE, STATUS.SYS_ERROR, STATUS.SYS_ABORTED] failure_states = [STATUS.FAILURE, STATUS.APPROVAL_FAILED, STATUS.WARNING, STATUS.ERROR, STATUS.ABORTED, STATUS.SYS_FAILURE, STATUS.SYS_ERROR, STATUS.SYS_ABORTED] class Runbook: class States: active = 'ACTIVE' deleted = 'DELETED' draft = 'DRAFT' error = 'ERROR' class Endpoint: class States: active = 'ACTIVE' deleted = 'DELETED' draft = 'DRAFT' error = 'ERROR' class Types: http = 'HTTP' windows = 'Windows' linux = 'Linux' class Value_Types: vm = 'VM' ip = 'IP' class Blueprint: class States: active = 'ACTIVE' deleted = 'DELETED' draft = 'DRAFT' error = 'ERROR' class Application: class States: provisioning = 'provisioning' stopped = 'stopped' running = 'running' error = 'error' deleted = 'deleted' deleting = 'deleting' starting = 'starting' stopping = 'stopping' restarting = 'restarting' busy = 'busy' timeout = 'timeout' restarting = 'restarting' class Account: class States: deleted = 'DELETED' verified = 'VERIFIED' not_verified = 'NOT_VERIFIED' verify_failed = 'VERIFY_FAILED' draft = 'DRAFT' active = 'ACTIVE' unsaved = 'UNSAVED' class Types: aws = 'aws' ahv = 'nutanix' kubernetes = 'k8s' azure = 'azure' gcp = 'gcp' vmware = 'vmware' class Single_Input: class Type: text = 'text' password = 'password' checkbox = 'checkbox' select = 'select' selectmultiple = 'selectmultiple' date = 'date' time = 'time' datetime = 'datetime' valid_types = [TYPE.TEXT, TYPE.PASSWORD, TYPE.CHECKBOX, TYPE.SELECT, TYPE.SELECTMULTIPLE, TYPE.DATE, TYPE.TIME, TYPE.DATETIME] class System_Actions: create = 'create' start = 'start' restart = 'restart' stop = 'stop' delete = 'delete' soft_delete = 'soft_delete' class Marketplace_Item: class Types: blueprint = 'blueprint' runbook = 'runbook' class States: pending = 'PENDING' accepted = 'ACCEPTED' rejected = 'REJECTED' published = 'PUBLISHED' class Sources: global = 'GLOBAL_STORE' local = 'LOCAL' class Tasks: class Task_Types: exec = 'EXEC' set_variable = 'SET_VARIABLE' http = 'HTTP' class Script_Types: powershell = 'npsscript' shell = 'sh' escript = 'static' class States: active = 'ACTIVE' deleted = 'DELETED' draft = 'DRAFT' class Ergon_Task: class Status: queued = 'QUEUED' running = 'RUNNING' aborted = 'ABORTED' succeeded = 'SUCCEEDED' suspended = 'SUSPENDED' failed = 'FAILED' terminal_states = [STATUS.SUCCEEDED, STATUS.FAILED, STATUS.ABORTED, STATUS.SUSPENDED] failure_states = [STATUS.FAILED, STATUS.ABORTED, STATUS.SUSPENDED] class Acp: class Entity_Filter_Expression_List: developer = [{'operator': 'IN', 'left_hand_side': {'entity_type': 'image'}, 'right_hand_side': {'collection': 'ALL'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'marketplace_item'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'app_icon'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'category'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'app_task'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'app_variable'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}] operator = [{'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'app_icon'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'category'}}] consumer = [{'operator': 'IN', 'left_hand_side': {'entity_type': 'image'}, 'right_hand_side': {'collection': 'ALL'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'marketplace_item'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'app_icon'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'category'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'app_task'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'app_variable'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}] project_admin = [{'operator': 'IN', 'left_hand_side': {'entity_type': 'image'}, 'right_hand_side': {'collection': 'ALL'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'marketplace_item'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'directory_service'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'role'}}, {'operator': 'IN', 'right_hand_side': {'uuid_list': []}, 'left_hand_side': {'entity_type': 'project'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'user'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'user_group'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'SELF_OWNED'}, 'left_hand_side': {'entity_type': 'environment'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'app_icon'}}, {'operator': 'IN', 'right_hand_side': {'collection': 'ALL'}, 'left_hand_side': {'entity_type': 'category'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'app_task'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}, {'operator': 'IN', 'left_hand_side': {'entity_type': 'app_variable'}, 'right_hand_side': {'collection': 'SELF_OWNED'}}] default_context = {'scope_filter_expression_list': [{'operator': 'IN', 'left_hand_side': 'PROJECT', 'right_hand_side': {'uuid_list': []}}], 'entity_filter_expression_list': [{'operator': 'IN', 'left_hand_side': {'entity_type': 'ALL'}, 'right_hand_side': {'collection': 'ALL'}}]}
# MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special exceptions to the terms and # conditions of the GPLv2 as it is applied to this software, see the # FOSS License Exception # <http://www.mysql.com/about/legal/licensing/foss-exception.html>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA """MySQL Connector/Python version information The file version.py gets installed and is available after installation as mysql.connector.version. """ VERSION = (8, 0, 5, 'b', 1) if VERSION[3] and VERSION[4]: VERSION_TEXT = '{0}.{1}.{2}{3}{4}'.format(*VERSION) else: VERSION_TEXT = '{0}.{1}.{2}'.format(*VERSION[0:3]) VERSION_EXTRA = 'dmr' LICENSE = 'GPLv2 with FOSS License Exception' EDITION = '' # Added in package names, after the version
"""MySQL Connector/Python version information The file version.py gets installed and is available after installation as mysql.connector.version. """ version = (8, 0, 5, 'b', 1) if VERSION[3] and VERSION[4]: version_text = '{0}.{1}.{2}{3}{4}'.format(*VERSION) else: version_text = '{0}.{1}.{2}'.format(*VERSION[0:3]) version_extra = 'dmr' license = 'GPLv2 with FOSS License Exception' edition = ''
l=int(input("enter length: ")) b=int(input("enter breath: ")) area=l*b perimeter=2*(l+b) print(area) print(perimeter)
l = int(input('enter length: ')) b = int(input('enter breath: ')) area = l * b perimeter = 2 * (l + b) print(area) print(perimeter)
# Simple Math Libraries def add(*nums): number = 0 for num in nums: number += num return number def sub(*nums): number = 0 for num in nums: number -= num return number def multiply(*nums): number = 1 for num in nums: number *= num return number def square(num): return num ** 2 def cube(num): return num ** 3 def powerof(num1, num2): return num1**num2 def div2num(dividend, divisor): return dividend/divisor def sqrt(num): return num ** 0.5 def curt(num): return num ** (1/3)
def add(*nums): number = 0 for num in nums: number += num return number def sub(*nums): number = 0 for num in nums: number -= num return number def multiply(*nums): number = 1 for num in nums: number *= num return number def square(num): return num ** 2 def cube(num): return num ** 3 def powerof(num1, num2): return num1 ** num2 def div2num(dividend, divisor): return dividend / divisor def sqrt(num): return num ** 0.5 def curt(num): return num ** (1 / 3)
""" Faca um programa que receba 6 numeros inteiros e mostre: - Os numeros pares digitados; -A soma dos numeros pares digitados; -Os numeros impares digitados; -A quantidade de numeros impares digitados; """ x = [] soma = 0 quant = 0 for z in range(6): x.append(int(input('Digite um numero: '))) print('Numeros pares digitados:') for i, y in enumerate(x): if y % 2 == 0: print(f'[{i}] = {y}') soma = soma + y print('Numeros impares digitados:') for a, b in enumerate(x): if b % 2 != 0: print(f'[{a}] = {b}') quant += 1 print(f'A soma dos numeros pares digitados: {soma}') print(f'A quantidade de numeros impares digitados: {quant}')
""" Faca um programa que receba 6 numeros inteiros e mostre: - Os numeros pares digitados; -A soma dos numeros pares digitados; -Os numeros impares digitados; -A quantidade de numeros impares digitados; """ x = [] soma = 0 quant = 0 for z in range(6): x.append(int(input('Digite um numero: '))) print('Numeros pares digitados:') for (i, y) in enumerate(x): if y % 2 == 0: print(f'[{i}] = {y}') soma = soma + y print('Numeros impares digitados:') for (a, b) in enumerate(x): if b % 2 != 0: print(f'[{a}] = {b}') quant += 1 print(f'A soma dos numeros pares digitados: {soma}') print(f'A quantidade de numeros impares digitados: {quant}')
#!/usr/bin/env python # coding: utf-8 def countAnswers(__values): batchComplete = False answerCount = 0 answerDict = {} for answers in __values: for answer in answers: answerDict[answer] = 1 if answers == '': batchComplete = True if batchComplete: answerCount += len(answerDict) answerDict = {} batchComplete = False answerCount += len(answerDict) return answerCount values = [] with open('day6_input') as fp: line = fp.readline() while line: if(line != ''): values.append(line.strip()) line = fp.readline() print(countAnswers(values))
def count_answers(__values): batch_complete = False answer_count = 0 answer_dict = {} for answers in __values: for answer in answers: answerDict[answer] = 1 if answers == '': batch_complete = True if batchComplete: answer_count += len(answerDict) answer_dict = {} batch_complete = False answer_count += len(answerDict) return answerCount values = [] with open('day6_input') as fp: line = fp.readline() while line: if line != '': values.append(line.strip()) line = fp.readline() print(count_answers(values))
# -*- coding: utf-8 -*- # Copyright 2020 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Templates for generating event classes for structured metrics.""" HEADER_FILE_TEMPLATE = """\ // Generated from gen_events.py. DO NOT EDIT! // source: structured.xml #ifndef {file.guard_path} #define {file.guard_path} #include <cstdint> #include <string> #include <brillo/brillo_export.h> #include "metrics/structured/event_base.h" namespace metrics {{ namespace structured {{ namespace events {{ constexpr uint64_t kProjectNameHashes[] = {project_hashes}; {project_code} }} // namespace events }} // namespace structured }} // namespace metrics #endif // {file.guard_path}\ """ HEADER_PROJECT_TEMPLATE = """\ namespace {project.namespace} {{ {event_code}\ }} // namespace {project.namespace} """ HEADER_EVENT_TEMPLATE = """\ class BRILLO_EXPORT {event.name} final : public ::metrics::structured::EventBase {{ public: {event.name}(); ~{event.name}() override; static constexpr uint64_t kEventNameHash = UINT64_C({event.name_hash}); static constexpr uint64_t kProjectNameHash = UINT64_C({project.name_hash}); static constexpr IdType kIdType = IdType::{project.id_type}; static constexpr StructuredEventProto_EventType kEventType = StructuredEventProto_EventType_{project.event_type}; {metric_code}\ }}; """ HEADER_METRIC_TEMPLATE = """\ static constexpr uint64_t k{metric.name}NameHash = UINT64_C({metric.hash}); {event.name}& Set{metric.name}(const {metric.type} value); """ IMPL_FILE_TEMPLATE = """\ // Generated from gen_events.py. DO NOT EDIT! // source: structured.xml #include "structured_events.h" namespace metrics {{ namespace structured {{ namespace events {{ {project_code} }} // namespace events }} // namespace structured }} // namespace metrics\ """ IMPL_PROJECT_TEMPLATE = """\ namespace {project.namespace} {{ {event_code}\ }} // namespace {project.namespace} """ IMPL_EVENT_TEMPLATE = """\ {event.name}::{event.name}() : ::metrics::structured::EventBase(kEventNameHash, kProjectNameHash, kIdType, kEventType) {{}} {event.name}::~{event.name}() = default; {metric_code}\ """ IMPL_METRIC_TEMPLATE = """\ {event.name}& {event.name}::Set{metric.name}(const {metric.type} value) {{ {metric.setter}(k{metric.name}NameHash, value); return *this; }} """
"""Templates for generating event classes for structured metrics.""" header_file_template = '// Generated from gen_events.py. DO NOT EDIT!\n// source: structured.xml\n\n#ifndef {file.guard_path}\n#define {file.guard_path}\n\n#include <cstdint>\n#include <string>\n\n#include <brillo/brillo_export.h>\n\n#include "metrics/structured/event_base.h"\n\nnamespace metrics {{\nnamespace structured {{\nnamespace events {{\n\nconstexpr uint64_t kProjectNameHashes[] = {project_hashes};\n\n{project_code}\n\n}} // namespace events\n}} // namespace structured\n}} // namespace metrics\n\n#endif // {file.guard_path}' header_project_template = 'namespace {project.namespace} {{\n\n{event_code}}} // namespace {project.namespace}\n\n' header_event_template = 'class BRILLO_EXPORT {event.name} final : public ::metrics::structured::EventBase {{\n public:\n {event.name}();\n ~{event.name}() override;\n\n static constexpr uint64_t kEventNameHash = UINT64_C({event.name_hash});\n static constexpr uint64_t kProjectNameHash = UINT64_C({project.name_hash});\n static constexpr IdType kIdType = IdType::{project.id_type};\n static constexpr StructuredEventProto_EventType kEventType =\n StructuredEventProto_EventType_{project.event_type};\n\n{metric_code}}};\n\n' header_metric_template = ' static constexpr uint64_t k{metric.name}NameHash = UINT64_C({metric.hash});\n {event.name}& Set{metric.name}(const {metric.type} value);\n\n' impl_file_template = '// Generated from gen_events.py. DO NOT EDIT!\n// source: structured.xml\n\n#include "structured_events.h"\n\nnamespace metrics {{\nnamespace structured {{\nnamespace events {{\n{project_code}\n}} // namespace events\n}} // namespace structured\n}} // namespace metrics' impl_project_template = 'namespace {project.namespace} {{\n\n{event_code}}} // namespace {project.namespace}\n\n' impl_event_template = '{event.name}::{event.name}() :\n ::metrics::structured::EventBase(kEventNameHash, kProjectNameHash, kIdType, kEventType) {{}}\n{event.name}::~{event.name}() = default;\n{metric_code}' impl_metric_template = '{event.name}& {event.name}::Set{metric.name}(const {metric.type} value) {{\n {metric.setter}(k{metric.name}NameHash, value);\n return *this;\n}}\n\n'
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "from matplotlib import style\n", "style.use('fivethirtyeight')\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import datetime as dt\n" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import sqlalchemy\n", "from sqlalchemy.ext.automap import automap_base\n", "from sqlalchemy.orm import Session\n", "from sqlalchemy import create_engine, func" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "#set engine\n", "engine = create_engine(\"sqlite:///Resources/hawaii.sqlite\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 2 }
{'cells': [{'cell_type': 'code', 'execution_count': 1, 'metadata': {}, 'outputs': [], 'source': ['%matplotlib inline\n', 'from matplotlib import style\n', "style.use('fivethirtyeight')\n", 'import matplotlib.pyplot as plt']}, {'cell_type': 'code', 'execution_count': 2, 'metadata': {}, 'outputs': [], 'source': ['import numpy as np\n', 'import pandas as pd']}, {'cell_type': 'code', 'execution_count': 3, 'metadata': {}, 'outputs': [], 'source': ['import datetime as dt\n']}, {'cell_type': 'code', 'execution_count': 4, 'metadata': {}, 'outputs': [], 'source': ['import sqlalchemy\n', 'from sqlalchemy.ext.automap import automap_base\n', 'from sqlalchemy.orm import Session\n', 'from sqlalchemy import create_engine, func']}, {'cell_type': 'code', 'execution_count': 5, 'metadata': {}, 'outputs': [], 'source': ['#set engine\n', 'engine = create_engine("sqlite:///Resources/hawaii.sqlite")']}, {'cell_type': 'code', 'execution_count': null, 'metadata': {}, 'outputs': [], 'source': []}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython3', 'version': '3.7.3'}}, 'nbformat': 4, 'nbformat_minor': 2}
#!/usr/bin/env python3 class ObjInfo(dict): def __init__(self): #, pre_id, name, letter, expire_state, id): self.side_id_name = ['front', 'back', 'left_side', 'right_side', 'bottom', 'side_id5', 'side_id6', 'side_id7', 'side_id8', 'side_id9'] self.obj = { # predefined merchandise information "pre_id": None, # predefined aruco ID range(i.e. 10~19) "name": '', # 'plum_riceball', 'salmon_riceball', 'sandwich', 'burger', 'drink', 'lunch_box' "letter": '', # ABCD, EFGH, IJK, LMN, OPQ, RST "expired": '', # 'new', 'old', 'expired' # update after camera take picture, changable due to object pose "id": None, # current detected aruco ID "side_id": '', # side_id_name: 'front', 'back', 'left_side', 'right_side', 'bottom', ... "pos": None, # position (x, y, z) "vector": None, # aruco marker z axis vector???? "euler": None, # rotation "sucang": None, # sucker angle? "cam_H_mrk": None, } def __getitem__(self, key): return self.obj[key] def __setitem__(self, key, value): self.obj[key] = value
class Objinfo(dict): def __init__(self): self.side_id_name = ['front', 'back', 'left_side', 'right_side', 'bottom', 'side_id5', 'side_id6', 'side_id7', 'side_id8', 'side_id9'] self.obj = {'pre_id': None, 'name': '', 'letter': '', 'expired': '', 'id': None, 'side_id': '', 'pos': None, 'vector': None, 'euler': None, 'sucang': None, 'cam_H_mrk': None} def __getitem__(self, key): return self.obj[key] def __setitem__(self, key, value): self.obj[key] = value
# Version number as Major.Minor.Patch # The version modification must respect the following rules: # Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0) # Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0) # Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9) __version__ = "3.3.1"
__version__ = '3.3.1'
# https://codeforces.com/problemset/problem/427/A n = int(input()) events = [int(x) for x in input().split()] counter = 0 free_officer = 0 for event in events: free_officer += event if free_officer < 0: counter += 1 free_officer = 0 print(counter)
n = int(input()) events = [int(x) for x in input().split()] counter = 0 free_officer = 0 for event in events: free_officer += event if free_officer < 0: counter += 1 free_officer = 0 print(counter)
class Menu: def __init__(self, options: list): self.options = options def printMenu(self): print(' [ Main Menu ] ') for i in range(len(self.options)): print((i + 1), '::', self.options[i]) def getMenuInput(self, waitValidated: bool): returnValue = -2 while returnValue == -2: selection = input('Select Option >> ') if selection.isnumeric(): selection = int(selection) if selection > 0 and selection <= len(self.options): returnValue = selection - 1 elif waitValidated: print('\r') else: returnValue = -1 return returnValue # waitValidated waits for a valid input before returning def createMenu(self, waitValidated = False): self.printMenu() selection = self.getMenuInput(waitValidated) return selection
class Menu: def __init__(self, options: list): self.options = options def print_menu(self): print(' [ Main Menu ] ') for i in range(len(self.options)): print(i + 1, '::', self.options[i]) def get_menu_input(self, waitValidated: bool): return_value = -2 while returnValue == -2: selection = input('Select Option >> ') if selection.isnumeric(): selection = int(selection) if selection > 0 and selection <= len(self.options): return_value = selection - 1 elif waitValidated: print('\r') else: return_value = -1 return returnValue def create_menu(self, waitValidated=False): self.printMenu() selection = self.getMenuInput(waitValidated) return selection
# TASK """Given names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers. You will then be given an unknown number of names to query your phone book for. For each queried, print the associated entry from your phone book on a new line in the form name=phoneNumber; if an entry for is not found, print Not found instead.""" # Input Format """ The first line contains an integer, , denoting the number of entries in the phone book. Each of the subsequent lines describes an entry in the form of space-separated values on a single line. The first value is a friend's name, and the second value is an -digit phone number. After the lines of phone book entries, there are an unknown number of lines of queries. Each line (query) contains a to look up, and you must continue reading lines until there is no more input. Note: Names consist of lowercase English alphabetic letters and are first names only. """ if __name__ == '__main__': n = int(input('How many Entries? ')) e = [input('Enter Name (firstname in lowercase) and Number: ').split(' ') for _ in range(n)] q = [] while True: key = input('Find Whom (firstname in lowercase): ').split() if len(key) == 0: break else: q.append(key) continue entries = dict(e) for query in q: for name in query: if name in entries: print(f"\n{name}={entries[name]}") else: print('\n',name,': Not found') continue
"""Given names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers. You will then be given an unknown number of names to query your phone book for. For each queried, print the associated entry from your phone book on a new line in the form name=phoneNumber; if an entry for is not found, print Not found instead.""" "\nThe first line contains an integer, , denoting the number of entries in the phone book.\nEach of the subsequent lines describes an entry in the form of space-separated values on a single line. \nThe first value is a friend's name, and the second value is an -digit phone number.\n\nAfter the lines of phone book entries, there are an unknown number of lines of queries. \nEach line (query) contains a to look up, and you must continue reading lines until there is no more input.\n\nNote: Names consist of lowercase English alphabetic letters and are first names only.\n" if __name__ == '__main__': n = int(input('How many Entries? ')) e = [input('Enter Name (firstname in lowercase) and Number: ').split(' ') for _ in range(n)] q = [] while True: key = input('Find Whom (firstname in lowercase): ').split() if len(key) == 0: break else: q.append(key) continue entries = dict(e) for query in q: for name in query: if name in entries: print(f'\n{name}={entries[name]}') else: print('\n', name, ': Not found') continue
# python DDP_moco_ccrop.py path/to/this/config # model dim = 128 model = dict(type='ResNet', depth=18, num_classes=dim, maxpool=False) moco = dict(dim=dim, K=65536, m=0.999, T=0.20, mlp=True) loss = dict(type='CrossEntropyLoss') # data root = '/path/to/your/dataset' mean = (0.4914, 0.4822, 0.4465) std = (0.2023, 0.1994, 0.2010) batch_size = 512 num_workers = 4 data = dict( train=dict( ds_dict=dict( type='CIFAR10_boxes', root=root, train=True, ), rcrop_dict=dict( type='cifar_train_rcrop', mean=mean, std=std ), ccrop_dict=dict( type='cifar_train_ccrop', alpha=0.1, mean=mean, std=std ), ), eval_train=dict( ds_dict=dict( type='CIFAR10', root=root, train=True, ), trans_dict=dict( type='cifar_test', mean=mean, std=std ), ), ) # boxes warmup_epochs = 100 loc_interval = 100 box_thresh = 0.10 # training optimizer & scheduler epochs = 500 lr = 0.5 optimizer = dict(type='SGD', lr=lr, momentum=0.9, weight_decay=1e-4) lr_cfg = dict( # passed to adjust_learning_rate(cfg=lr_cfg) type='Cosine', steps=epochs, lr=lr, decay_rate=0.1, # decay_steps=[100, 150] warmup_steps=0, # warmup_from=0.01 ) # log & save log_interval = 20 save_interval = 250 work_dir = None # rewritten by args resume = None load = None port = 10001
dim = 128 model = dict(type='ResNet', depth=18, num_classes=dim, maxpool=False) moco = dict(dim=dim, K=65536, m=0.999, T=0.2, mlp=True) loss = dict(type='CrossEntropyLoss') root = '/path/to/your/dataset' mean = (0.4914, 0.4822, 0.4465) std = (0.2023, 0.1994, 0.201) batch_size = 512 num_workers = 4 data = dict(train=dict(ds_dict=dict(type='CIFAR10_boxes', root=root, train=True), rcrop_dict=dict(type='cifar_train_rcrop', mean=mean, std=std), ccrop_dict=dict(type='cifar_train_ccrop', alpha=0.1, mean=mean, std=std)), eval_train=dict(ds_dict=dict(type='CIFAR10', root=root, train=True), trans_dict=dict(type='cifar_test', mean=mean, std=std))) warmup_epochs = 100 loc_interval = 100 box_thresh = 0.1 epochs = 500 lr = 0.5 optimizer = dict(type='SGD', lr=lr, momentum=0.9, weight_decay=0.0001) lr_cfg = dict(type='Cosine', steps=epochs, lr=lr, decay_rate=0.1, warmup_steps=0) log_interval = 20 save_interval = 250 work_dir = None resume = None load = None port = 10001
#@liveupdate("globalClassMethod", "svc.debug::debugSvc", "OnRemoteExec") def OnRemoteExec(self, signedCode): eve.Message("CustomNotify", {"notify": "OnRemoteExec called"}) # No need to check if we're a client! code = marshal.loads(signedCode) self._Exec(code, {})
def on_remote_exec(self, signedCode): eve.Message('CustomNotify', {'notify': 'OnRemoteExec called'}) code = marshal.loads(signedCode) self._Exec(code, {})
#frase = 'Curso em video python' #print(frase[:13]) #frase = ' Curso em video python ' #print(len(frase.strip())) #frase = 'Curso em Video Python' #print(frase.replace('Python', 'Android')) #frase ='Curso em Video Python' #print('Curso' in frase) frase = 'Curso em Vidio Python' dividido = frase.split() print(dividido[0])
frase = 'Curso em Vidio Python' dividido = frase.split() print(dividido[0])
# # PySNMP MIB module CISCO-GPRS-L2RLY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-GPRS-L2RLY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:42:06 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") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") TimeTicks, iso, IpAddress, Bits, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Unsigned32, MibIdentifier, Counter64, ObjectIdentity, NotificationType, Integer32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "iso", "IpAddress", "Bits", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Unsigned32", "MibIdentifier", "Counter64", "ObjectIdentity", "NotificationType", "Integer32", "Counter32") DisplayString, TruthValue, TextualConvention, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention", "RowStatus") ciscoGprsL2rlyMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 9993)) if mibBuilder.loadTexts: ciscoGprsL2rlyMIB.setLastUpdated('9812150000Z') if mibBuilder.loadTexts: ciscoGprsL2rlyMIB.setOrganization('Cisco Systems, Inc.') ciscoGprsL2rlyObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1)) ciscoGprsL2rlyConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1)) ciscoGprsL2rlyStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2)) cgprsL2rlyUid = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64)).clone(32)).setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyUid.setStatus('current') cgprsL2rlyUnitType = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("datacomUnit", 1), ("telecomUnit", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyUnitType.setStatus('current') cgprsL2rlyEchoTimer = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyEchoTimer.setStatus('current') cgprsL2rlyFlowControlFlag = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 4), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyFlowControlFlag.setStatus('current') cgprsL2rlyDroppedPktsMonTime = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535)).clone(300)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyDroppedPktsMonTime.setStatus('current') cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable.setStatus('current') cgprsL2rlyUnitJoinNotificationEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 7), TruthValue().clone('true')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cgprsL2rlyUnitJoinNotificationEnable.setStatus('current') cgprsL2rlyInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8), ) if mibBuilder.loadTexts: cgprsL2rlyInterfaceTable.setStatus('current') cgprsL2rlyInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8, 1), ).setIndexNames((0, "CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyInterfaceId")) if mibBuilder.loadTexts: cgprsL2rlyInterfaceEntry.setStatus('current') cgprsL2rlyInterfaceId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: cgprsL2rlyInterfaceId.setStatus('current') cgprsL2rlyInterfaceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cgprsL2rlyInterfaceRowStatus.setStatus('current') cgprsL2rlyFlowControlTriggerCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cgprsL2rlyFlowControlTriggerCount.setStatus('current') cgprsL2rlyInputQLen = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 2), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cgprsL2rlyInputQLen.setStatus('current') cgprsL2rlyTotalPacketsDropped = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 3), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cgprsL2rlyTotalPacketsDropped.setStatus('current') cgprsL2rlyDroppedPktsTimeFrame = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: cgprsL2rlyDroppedPktsTimeFrame.setStatus('current') cgprsL2rlyDroppedPktsCount = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 5), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: cgprsL2rlyDroppedPktsCount.setStatus('current') cgprsL2rlyPeerTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6), ) if mibBuilder.loadTexts: cgprsL2rlyPeerTable.setStatus('current') cgprsL2rlyPeerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6, 1), ).setIndexNames((0, "CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyPeerUid"), (0, "CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyInterfaceId")) if mibBuilder.loadTexts: cgprsL2rlyPeerEntry.setStatus('current') cgprsL2rlyPeerUid = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))) if mibBuilder.loadTexts: cgprsL2rlyPeerUid.setStatus('current') cgprsL2rlyPeerUnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("datacomUnit", 1), ("telecomUnit", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cgprsL2rlyPeerUnitType.setStatus('current') ciscoGprsL2rlyNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2)) ciscoGprsL2rlyNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2, 0)) cgprsL2rlyUnitJoinNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2, 0, 1)).setObjects(("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyUid")) if mibBuilder.loadTexts: cgprsL2rlyUnitJoinNotification.setStatus('current') cgprsL2rlyNoRespToKeepAliveMsgNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2, 0, 2)).setObjects(("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyUid")) if mibBuilder.loadTexts: cgprsL2rlyNoRespToKeepAliveMsgNotification.setStatus('current') ciscoGprsL2rlyConformances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3)) cgprsL2rlyCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 1)) cgprsL2rlyGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 2)) cgprsL2rlyCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 1, 1)).setObjects(("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyConfigGroup"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyStatsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cgprsL2rlyCompliance = cgprsL2rlyCompliance.setStatus('current') cgprsL2rlyConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 2, 1)).setObjects(("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyUid"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyUnitType"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyEchoTimer"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyFlowControlFlag"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyDroppedPktsMonTime"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyUnitJoinNotificationEnable"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyInterfaceRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cgprsL2rlyConfigGroup = cgprsL2rlyConfigGroup.setStatus('current') cgprsL2rlyStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 2, 2)).setObjects(("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyFlowControlTriggerCount"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyInputQLen"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyTotalPacketsDropped"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyDroppedPktsTimeFrame"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyDroppedPktsCount"), ("CISCO-GPRS-L2RLY-MIB", "cgprsL2rlyPeerUnitType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cgprsL2rlyStatsGroup = cgprsL2rlyStatsGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-GPRS-L2RLY-MIB", cgprsL2rlyDroppedPktsCount=cgprsL2rlyDroppedPktsCount, cgprsL2rlyPeerUid=cgprsL2rlyPeerUid, ciscoGprsL2rlyStats=ciscoGprsL2rlyStats, cgprsL2rlyUid=cgprsL2rlyUid, cgprsL2rlyConfigGroup=cgprsL2rlyConfigGroup, cgprsL2rlyInterfaceTable=cgprsL2rlyInterfaceTable, cgprsL2rlyUnitJoinNotification=cgprsL2rlyUnitJoinNotification, cgprsL2rlyNoRespToKeepAliveMsgNotification=cgprsL2rlyNoRespToKeepAliveMsgNotification, cgprsL2rlyInterfaceRowStatus=cgprsL2rlyInterfaceRowStatus, cgprsL2rlyDroppedPktsMonTime=cgprsL2rlyDroppedPktsMonTime, ciscoGprsL2rlyNotificationPrefix=ciscoGprsL2rlyNotificationPrefix, cgprsL2rlyDroppedPktsTimeFrame=cgprsL2rlyDroppedPktsTimeFrame, cgprsL2rlyCompliances=cgprsL2rlyCompliances, cgprsL2rlyFlowControlTriggerCount=cgprsL2rlyFlowControlTriggerCount, cgprsL2rlyStatsGroup=cgprsL2rlyStatsGroup, cgprsL2rlyTotalPacketsDropped=cgprsL2rlyTotalPacketsDropped, cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable=cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable, cgprsL2rlyInterfaceId=cgprsL2rlyInterfaceId, cgprsL2rlyInterfaceEntry=cgprsL2rlyInterfaceEntry, cgprsL2rlyUnitJoinNotificationEnable=cgprsL2rlyUnitJoinNotificationEnable, cgprsL2rlyCompliance=cgprsL2rlyCompliance, ciscoGprsL2rlyNotifications=ciscoGprsL2rlyNotifications, PYSNMP_MODULE_ID=ciscoGprsL2rlyMIB, cgprsL2rlyPeerUnitType=cgprsL2rlyPeerUnitType, cgprsL2rlyInputQLen=cgprsL2rlyInputQLen, cgprsL2rlyEchoTimer=cgprsL2rlyEchoTimer, cgprsL2rlyGroups=cgprsL2rlyGroups, cgprsL2rlyUnitType=cgprsL2rlyUnitType, cgprsL2rlyFlowControlFlag=cgprsL2rlyFlowControlFlag, cgprsL2rlyPeerTable=cgprsL2rlyPeerTable, ciscoGprsL2rlyMIB=ciscoGprsL2rlyMIB, ciscoGprsL2rlyConfig=ciscoGprsL2rlyConfig, ciscoGprsL2rlyObjects=ciscoGprsL2rlyObjects, cgprsL2rlyPeerEntry=cgprsL2rlyPeerEntry, ciscoGprsL2rlyConformances=ciscoGprsL2rlyConformances)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (time_ticks, iso, ip_address, bits, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, unsigned32, mib_identifier, counter64, object_identity, notification_type, integer32, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'iso', 'IpAddress', 'Bits', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Unsigned32', 'MibIdentifier', 'Counter64', 'ObjectIdentity', 'NotificationType', 'Integer32', 'Counter32') (display_string, truth_value, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'TextualConvention', 'RowStatus') cisco_gprs_l2rly_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 9993)) if mibBuilder.loadTexts: ciscoGprsL2rlyMIB.setLastUpdated('9812150000Z') if mibBuilder.loadTexts: ciscoGprsL2rlyMIB.setOrganization('Cisco Systems, Inc.') cisco_gprs_l2rly_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1)) cisco_gprs_l2rly_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1)) cisco_gprs_l2rly_stats = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2)) cgprs_l2rly_uid = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 64)).clone(32)).setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyUid.setStatus('current') cgprs_l2rly_unit_type = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('datacomUnit', 1), ('telecomUnit', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyUnitType.setStatus('current') cgprs_l2rly_echo_timer = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyEchoTimer.setStatus('current') cgprs_l2rly_flow_control_flag = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 4), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyFlowControlFlag.setStatus('current') cgprs_l2rly_dropped_pkts_mon_time = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535)).clone(300)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyDroppedPktsMonTime.setStatus('current') cgprs_l2rly_no_resp_to_keep_alive_msg_notification_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable.setStatus('current') cgprs_l2rly_unit_join_notification_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 7), truth_value().clone('true')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cgprsL2rlyUnitJoinNotificationEnable.setStatus('current') cgprs_l2rly_interface_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8)) if mibBuilder.loadTexts: cgprsL2rlyInterfaceTable.setStatus('current') cgprs_l2rly_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8, 1)).setIndexNames((0, 'CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyInterfaceId')) if mibBuilder.loadTexts: cgprsL2rlyInterfaceEntry.setStatus('current') cgprs_l2rly_interface_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8, 1, 1), interface_index()) if mibBuilder.loadTexts: cgprsL2rlyInterfaceId.setStatus('current') cgprs_l2rly_interface_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 1, 8, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: cgprsL2rlyInterfaceRowStatus.setStatus('current') cgprs_l2rly_flow_control_trigger_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cgprsL2rlyFlowControlTriggerCount.setStatus('current') cgprs_l2rly_input_q_len = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 2), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cgprsL2rlyInputQLen.setStatus('current') cgprs_l2rly_total_packets_dropped = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 3), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cgprsL2rlyTotalPacketsDropped.setStatus('current') cgprs_l2rly_dropped_pkts_time_frame = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: cgprsL2rlyDroppedPktsTimeFrame.setStatus('current') cgprs_l2rly_dropped_pkts_count = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 5), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: cgprsL2rlyDroppedPktsCount.setStatus('current') cgprs_l2rly_peer_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6)) if mibBuilder.loadTexts: cgprsL2rlyPeerTable.setStatus('current') cgprs_l2rly_peer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6, 1)).setIndexNames((0, 'CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyPeerUid'), (0, 'CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyInterfaceId')) if mibBuilder.loadTexts: cgprsL2rlyPeerEntry.setStatus('current') cgprs_l2rly_peer_uid = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 64))) if mibBuilder.loadTexts: cgprsL2rlyPeerUid.setStatus('current') cgprs_l2rly_peer_unit_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 9993, 1, 2, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('datacomUnit', 1), ('telecomUnit', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: cgprsL2rlyPeerUnitType.setStatus('current') cisco_gprs_l2rly_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2)) cisco_gprs_l2rly_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2, 0)) cgprs_l2rly_unit_join_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2, 0, 1)).setObjects(('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyUid')) if mibBuilder.loadTexts: cgprsL2rlyUnitJoinNotification.setStatus('current') cgprs_l2rly_no_resp_to_keep_alive_msg_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 9993, 2, 0, 2)).setObjects(('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyUid')) if mibBuilder.loadTexts: cgprsL2rlyNoRespToKeepAliveMsgNotification.setStatus('current') cisco_gprs_l2rly_conformances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3)) cgprs_l2rly_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 1)) cgprs_l2rly_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 2)) cgprs_l2rly_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 1, 1)).setObjects(('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyConfigGroup'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyStatsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cgprs_l2rly_compliance = cgprsL2rlyCompliance.setStatus('current') cgprs_l2rly_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 2, 1)).setObjects(('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyUid'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyUnitType'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyEchoTimer'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyFlowControlFlag'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyDroppedPktsMonTime'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyUnitJoinNotificationEnable'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyInterfaceRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cgprs_l2rly_config_group = cgprsL2rlyConfigGroup.setStatus('current') cgprs_l2rly_stats_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 9993, 3, 2, 2)).setObjects(('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyFlowControlTriggerCount'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyInputQLen'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyTotalPacketsDropped'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyDroppedPktsTimeFrame'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyDroppedPktsCount'), ('CISCO-GPRS-L2RLY-MIB', 'cgprsL2rlyPeerUnitType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cgprs_l2rly_stats_group = cgprsL2rlyStatsGroup.setStatus('current') mibBuilder.exportSymbols('CISCO-GPRS-L2RLY-MIB', cgprsL2rlyDroppedPktsCount=cgprsL2rlyDroppedPktsCount, cgprsL2rlyPeerUid=cgprsL2rlyPeerUid, ciscoGprsL2rlyStats=ciscoGprsL2rlyStats, cgprsL2rlyUid=cgprsL2rlyUid, cgprsL2rlyConfigGroup=cgprsL2rlyConfigGroup, cgprsL2rlyInterfaceTable=cgprsL2rlyInterfaceTable, cgprsL2rlyUnitJoinNotification=cgprsL2rlyUnitJoinNotification, cgprsL2rlyNoRespToKeepAliveMsgNotification=cgprsL2rlyNoRespToKeepAliveMsgNotification, cgprsL2rlyInterfaceRowStatus=cgprsL2rlyInterfaceRowStatus, cgprsL2rlyDroppedPktsMonTime=cgprsL2rlyDroppedPktsMonTime, ciscoGprsL2rlyNotificationPrefix=ciscoGprsL2rlyNotificationPrefix, cgprsL2rlyDroppedPktsTimeFrame=cgprsL2rlyDroppedPktsTimeFrame, cgprsL2rlyCompliances=cgprsL2rlyCompliances, cgprsL2rlyFlowControlTriggerCount=cgprsL2rlyFlowControlTriggerCount, cgprsL2rlyStatsGroup=cgprsL2rlyStatsGroup, cgprsL2rlyTotalPacketsDropped=cgprsL2rlyTotalPacketsDropped, cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable=cgprsL2rlyNoRespToKeepAliveMsgNotificationEnable, cgprsL2rlyInterfaceId=cgprsL2rlyInterfaceId, cgprsL2rlyInterfaceEntry=cgprsL2rlyInterfaceEntry, cgprsL2rlyUnitJoinNotificationEnable=cgprsL2rlyUnitJoinNotificationEnable, cgprsL2rlyCompliance=cgprsL2rlyCompliance, ciscoGprsL2rlyNotifications=ciscoGprsL2rlyNotifications, PYSNMP_MODULE_ID=ciscoGprsL2rlyMIB, cgprsL2rlyPeerUnitType=cgprsL2rlyPeerUnitType, cgprsL2rlyInputQLen=cgprsL2rlyInputQLen, cgprsL2rlyEchoTimer=cgprsL2rlyEchoTimer, cgprsL2rlyGroups=cgprsL2rlyGroups, cgprsL2rlyUnitType=cgprsL2rlyUnitType, cgprsL2rlyFlowControlFlag=cgprsL2rlyFlowControlFlag, cgprsL2rlyPeerTable=cgprsL2rlyPeerTable, ciscoGprsL2rlyMIB=ciscoGprsL2rlyMIB, ciscoGprsL2rlyConfig=ciscoGprsL2rlyConfig, ciscoGprsL2rlyObjects=ciscoGprsL2rlyObjects, cgprsL2rlyPeerEntry=cgprsL2rlyPeerEntry, ciscoGprsL2rlyConformances=ciscoGprsL2rlyConformances)
""" This is the Scratchpad! This file is not graded, but you can use it to test your code. You can write and test your function in the Scratchpad, but make sure to copy and paste it into the Unit Test file before checking your answer. Remember to only copy and paste the function you want to submit, not all of your tests. """ # Add your own tests here # with the character at `index` replaced with a dash (-) def replace_at_index(string, index): return string[0:index]+"-"+string[index+1:] print(replace_at_index("eggplant", 3)) print(replace_at_index("strange", 0))
""" This is the Scratchpad! This file is not graded, but you can use it to test your code. You can write and test your function in the Scratchpad, but make sure to copy and paste it into the Unit Test file before checking your answer. Remember to only copy and paste the function you want to submit, not all of your tests. """ def replace_at_index(string, index): return string[0:index] + '-' + string[index + 1:] print(replace_at_index('eggplant', 3)) print(replace_at_index('strange', 0))
DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = () MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/locality.db' } } TIME_ZONE = "UTC" LANGUAGE_CODE = "en-us" SITE_ID = 1 USE_I18N = True USE_L10N = True MEDIA_ROOT = '' MEDIA_URL = '' STATIC_ROOT = '' STATIC_URL = '/static/' ADMIN_MEDIA_PREFIX = '/static/admin/' STATICFILES_DIRS = () STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) SECRET_KEY = 'd=eh)2xs8*px19*9_54-)q1=l=q*wy=(v+e002w95c@!)p_8)n' TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'locality.urls' TEMPLATE_DIRS = () INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'locality', ) LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } }
debug = True template_debug = DEBUG admins = () managers = ADMINS databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/locality.db'}} time_zone = 'UTC' language_code = 'en-us' site_id = 1 use_i18_n = True use_l10_n = True media_root = '' media_url = '' static_root = '' static_url = '/static/' admin_media_prefix = '/static/admin/' staticfiles_dirs = () staticfiles_finders = ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.DefaultStorageFinder') secret_key = 'd=eh)2xs8*px19*9_54-)q1=l=q*wy=(v+e002w95c@!)p_8)n' template_loaders = ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader') middleware_classes = ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') root_urlconf = 'locality.urls' template_dirs = () installed_apps = ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'locality') logging = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'mail_admins': {'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}}
"""pynter - Minimal utility for generating images with textual caption""" __version__ = '0.1.0' __author__ = 'Gabriele Picco <[email protected]>' __all__ = []
"""pynter - Minimal utility for generating images with textual caption""" __version__ = '0.1.0' __author__ = 'Gabriele Picco <[email protected]>' __all__ = []
#program to convert a list of tuples into a dictionary. #create a list l = [("x", 1), ("x", 2), ("x", 3), ("y", 1), ("y", 2), ("z", 1)] d = {} for a, b in l: d.setdefault(a, []).append(b) print (d)
l = [('x', 1), ('x', 2), ('x', 3), ('y', 1), ('y', 2), ('z', 1)] d = {} for (a, b) in l: d.setdefault(a, []).append(b) print(d)
floor_number = int(input()) room_number = int(input()) for floor in range(floor_number, 0, -1): if floor == floor_number: result = [f'L{floor}{room}' for room in range(room_number)] print(' '.join(result)) continue if floor % 2 == 0: result = [f'O{floor}{room}' for room in range(room_number)] else: result = [f'A{floor}{room}' for room in range(room_number)] print(' '.join(result))
floor_number = int(input()) room_number = int(input()) for floor in range(floor_number, 0, -1): if floor == floor_number: result = [f'L{floor}{room}' for room in range(room_number)] print(' '.join(result)) continue if floor % 2 == 0: result = [f'O{floor}{room}' for room in range(room_number)] else: result = [f'A{floor}{room}' for room in range(room_number)] print(' '.join(result))
class User: last_name = '' first_name = '' email = '' def authenticate(self): # some logic to authenticate should be added here, currently it does nothing # e.g. we can access the attributes of the object to authenticate via email # address. Here, we just print it out instead of actually logging in anywhere: print("logging in user " + self.first_name + " " + self.last_name + " with email address " + self.email) def setName(self, fn, ln): # "self" is the reference, pointing the current object the # method is called on. We are assigning the parameter values from this method # to the attributes of THIS object here self.last_name = ln self.first_name = fn def setEmail(self, email): # same as above. Methods like this one that just set internal attributes are called # setter methods. To access internal attributes, we can also write getter methods. # Think how one could look like! self.email = email # Now we can generate a subclass "Student" from the base class "User". # All methods and attributes of the base class are inherited and down # have to be written again! class Student(User): student_id = '' starting_year = 0 def setId(self, id): self.student_id = id def setStartingYear(self, year): self.starting_year = year # We can do the same for the Staff class. Again, just *extending* the base # class with the additional methods and attributes required. class Staff(User): phone = '' def setPhone(self, phone): self.phone = phone; # And the same for the Administrator class Administrator(User): role = '' def setRole(self, role): self.role = role student1 = Student() student1.setName("Homer", "Simpson") student1.setEmail("[email protected]") student1.setId("SIM2343342") student2 = Student() student2.setName("Martin", "Meyer") student2.setEmail("[email protected]") student2.setId("MEY8284342") student2.setStartingYear(2019) staff1 = Staff() staff1.setName("Daniel", "Cobham") staff1.setEmail("[email protected]") staff1.setPhone("+43 4534234275") staff1.authenticate() all_users = [] all_users.append(student1) all_users.append(student2) all_users.append(staff1) print("number of users in list: %d" % len(all_users)) for u in all_users: u.authenticate()
class User: last_name = '' first_name = '' email = '' def authenticate(self): print('logging in user ' + self.first_name + ' ' + self.last_name + ' with email address ' + self.email) def set_name(self, fn, ln): self.last_name = ln self.first_name = fn def set_email(self, email): self.email = email class Student(User): student_id = '' starting_year = 0 def set_id(self, id): self.student_id = id def set_starting_year(self, year): self.starting_year = year class Staff(User): phone = '' def set_phone(self, phone): self.phone = phone class Administrator(User): role = '' def set_role(self, role): self.role = role student1 = student() student1.setName('Homer', 'Simpson') student1.setEmail('[email protected]') student1.setId('SIM2343342') student2 = student() student2.setName('Martin', 'Meyer') student2.setEmail('[email protected]') student2.setId('MEY8284342') student2.setStartingYear(2019) staff1 = staff() staff1.setName('Daniel', 'Cobham') staff1.setEmail('[email protected]') staff1.setPhone('+43 4534234275') staff1.authenticate() all_users = [] all_users.append(student1) all_users.append(student2) all_users.append(staff1) print('number of users in list: %d' % len(all_users)) for u in all_users: u.authenticate()
def esPrimo(numero, a=2): #Caso base if numero <= 2: return True if (numero == 2) else False if numero%a==0: return False if a*a> numero: return True #Para al siguiente divisor return esPrimo(numero,a+1) def verificarLista(lista: list, contador=0, listaaux=None): """Esta funcion verifica si la lista cumple las condiciones del enunciado, es decir si la suma adyacente es un primo Esta funcion tiene que recibir como parametro si o si la lista a verificar, contador=0 y listaaux=[] """ if listaaux is None: listaaux = [] largo = len(lista) - 1 Exito = False particular = lista[contador - 1] + (lista[contador]) if esPrimo(particular) == True: listaaux.append("SI") if len(listaaux) == len(lista): Exito = True if contador == largo: return Exito else: return verificarLista(lista, contador + 1, listaaux) def permutar(lista): if len(lista) == 0: return [] if len(lista) == 1: return [lista] listafinal = [] for i in range(len(lista)): m = lista[i] remLst = lista[:i] + lista[i + 1:] for p in permutar(remLst): listafinal.append([m] + p) return listafinal def Desglosar(numero:int,lista=[]): """Esta funcion recibe un numero y devuelve una lista a partir de este numero creado""" def rev(l): """Esta funcion hace que la lista creada se le de reversa, todo recursivamente""" if len(l) == 0: return [] return [l[-1]] + rev(l[:-1]) if numero==0: reversa=rev(lista) return reversa else: lista.append(numero) return Desglosar(numero-1,lista) def purificar(lista,contador=0,listaaux=None): """Esta funcion elimina de la permutacion todos los que tenga un 1 al principcio d ela lista""" largo = len(lista) - 1 if listaaux is None: listaaux = [] if len(lista) == 0: return [] if lista[contador][0]==1: listaaux.append(lista[contador]) if contador==largo: return listaaux else: return purificar(lista,contador+1,listaaux) def Hacer(numero:int,contador,listafinal): lista=Desglosar(numero) permutacion=permutar(lista) contatemp=0 listaaux=[] if contador==numero-1: return listafinal if verificarLista(permutacion[contador],contatemp,listaaux)==True: listafinal.append(permutacion[contador]) else: return Hacer(numero,contador+1,listafinal) numero=8 lista=Desglosar(numero) permutacion=permutar(lista) listaaux=[] # # vilgax=[[1, 2, 3, 8, 5, 6, 7, 4], [1, 2, 5, 8, 3, 4, 7, 6], [1, 4, 7, 6, 5, 8, 3, 2], [1, 6, 7, 4, 3, 8, 5, 2], [2, 1, 4, 7, 6, 5, 8, 3], [2, 1, 6, 7, 4, 3, 8, 5], [2, 3, 8, 5, 6, 7, 4, 1], [2, 5, 8, 3, 4, 7, 6, 1], [3, 2, 1, 4, 7, 6, 5, 8], [3, 4, 7, 6, 1, 2, 5, 8], [3, 8, 5, 2, 1, 6, 7, 4], [3, 8, 5, 6, 7, 4, 1, 2], [4, 1, 2, 3, 8, 5, 6, 7], [4, 3, 8, 5, 2, 1, 6, 7], [4, 7, 6, 1, 2, 5, 8, 3], [4, 7, 6, 5, 8, 3, 2, 1], [5, 2, 1, 6, 7, 4, 3, 8], [5, 6, 7, 4, 1, 2, 3, 8], [5, 8, 3, 2, 1, 4, 7, 6], [5, 8, 3, 4, 7, 6, 1, 2], [6, 1, 2, 5, 8, 3, 4, 7], [6, 5, 8, 3, 2, 1, 4, 7], [6, 7, 4, 1, 2, 3, 8, 5], [6, 7, 4, 3, 8, 5, 2, 1], [7, 4, 1, 2, 3, 8, 5, 6], [7, 4, 3, 8, 5, 2, 1, 6], [7, 6, 1, 2, 5, 8, 3, 4], [7, 6, 5, 8, 3, 2, 1, 4], [8, 3, 2, 1, 4, 7, 6, 5], [8, 3, 4, 7, 6, 1, 2, 5], [8, 5, 2, 1, 6, 7, 4, 3], [8, 5, 6, 7, 4, 1, 2, 3]] # for recorrer in range(0,len(permutacion)): # if verificarLista(permutacion[recorrer])==True: # listaaux.append(permutacion[recorrer])
def es_primo(numero, a=2): if numero <= 2: return True if numero == 2 else False if numero % a == 0: return False if a * a > numero: return True return es_primo(numero, a + 1) def verificar_lista(lista: list, contador=0, listaaux=None): """Esta funcion verifica si la lista cumple las condiciones del enunciado, es decir si la suma adyacente es un primo Esta funcion tiene que recibir como parametro si o si la lista a verificar, contador=0 y listaaux=[] """ if listaaux is None: listaaux = [] largo = len(lista) - 1 exito = False particular = lista[contador - 1] + lista[contador] if es_primo(particular) == True: listaaux.append('SI') if len(listaaux) == len(lista): exito = True if contador == largo: return Exito else: return verificar_lista(lista, contador + 1, listaaux) def permutar(lista): if len(lista) == 0: return [] if len(lista) == 1: return [lista] listafinal = [] for i in range(len(lista)): m = lista[i] rem_lst = lista[:i] + lista[i + 1:] for p in permutar(remLst): listafinal.append([m] + p) return listafinal def desglosar(numero: int, lista=[]): """Esta funcion recibe un numero y devuelve una lista a partir de este numero creado""" def rev(l): """Esta funcion hace que la lista creada se le de reversa, todo recursivamente""" if len(l) == 0: return [] return [l[-1]] + rev(l[:-1]) if numero == 0: reversa = rev(lista) return reversa else: lista.append(numero) return desglosar(numero - 1, lista) def purificar(lista, contador=0, listaaux=None): """Esta funcion elimina de la permutacion todos los que tenga un 1 al principcio d ela lista""" largo = len(lista) - 1 if listaaux is None: listaaux = [] if len(lista) == 0: return [] if lista[contador][0] == 1: listaaux.append(lista[contador]) if contador == largo: return listaaux else: return purificar(lista, contador + 1, listaaux) def hacer(numero: int, contador, listafinal): lista = desglosar(numero) permutacion = permutar(lista) contatemp = 0 listaaux = [] if contador == numero - 1: return listafinal if verificar_lista(permutacion[contador], contatemp, listaaux) == True: listafinal.append(permutacion[contador]) else: return hacer(numero, contador + 1, listafinal) numero = 8 lista = desglosar(numero) permutacion = permutar(lista) listaaux = []
grid = [ [ 8, 2,22,97,38,15, 0,40, 0,75, 4, 5, 7,78,52,12,50,77,91, 8], [49,49,99,40,17,81,18,57,60,87,17,40,98,43,69,48, 4,56,62, 0], [81,49,31,73,55,79,14,29,93,71,40,67,53,88,30, 3,49,13,36,65], [52,70,95,23, 4,60,11,42,69,24,68,56, 1,32,56,71,37, 2,36,91], [22,31,16,71,51,67,63,89,41,92,36,54,22,40,40,28,66,33,13,80], [24,47,32,60,99, 3,45, 2,44,75,33,53,78,36,84,20,35,17,12,50], [32,98,81,28,64,23,67,10,26,38,40,67,59,54,70,66,18,38,64,70], [67,26,20,68, 2,62,12,20,95,63,94,39,63, 8,40,91,66,49,94,21], [24,55,58, 5,66,73,99,26,97,17,78,78,96,83,14,88,34,89,63,72], [21,36,23, 9,75, 0,76,44,20,45,35,14, 0,61,33,97,34,31,33,95], [78,17,53,28,22,75,31,67,15,94, 3,80, 4,62,16,14, 9,53,56,92], [16,39, 5,42,96,35,31,47,55,58,88,24, 0,17,54,24,36,29,85,57], [86,56, 0,48,35,71,89, 7, 5,44,44,37,44,60,21,58,51,54,17,58], [19,80,81,68, 5,94,47,69,28,73,92,13,86,52,17,77, 4,89,55,40], [ 4,52, 8,83,97,35,99,16, 7,97,57,32,16,26,26,79,33,27,98,66], [88,36,68,87,57,62,20,72, 3,46,33,67,46,55,12,32,63,93,53,69], [ 4,42,16,73,38,25,39,11,24,94,72,18, 8,46,29,32,40,62,76,36], [20,69,36,41,72,30,23,88,34,62,99,69,82,67,59,85,74, 4,36,16], [20,73,35,29,78,31,90, 1,74,31,49,71,48,86,81,16,23,57, 5,54], [ 1,70,54,71,83,51,54,69,16,92,33,48,61,43,52, 1,89,19,67,48], ] def grid_prod(i_max, x, y, dx, dy, prod=1): for i in range(i_max): prod *= grid[y + i*dy][x + i*dx] return prod grid_w = grid_h = 20 d = 4 ans = 0 for x in range(grid_w): for y in range(grid_h): if x + d <= grid_w: ans = max(ans, grid_prod(d, x, y, 1, 0)) if y + d <= grid_h: ans = max(ans, grid_prod(d, x, y, 1, 1)) if y - d >= 1: ans = max(ans, grid_prod(d, x, y, 1, -1)) if y + d <= grid_h: ans = max(ans, grid_prod(d, x, y, 0, 1)) print(ans) # Copyright Junipyr. All rights reserved. # https://github.com/Junipyr
grid = [[8, 2, 22, 97, 38, 15, 0, 40, 0, 75, 4, 5, 7, 78, 52, 12, 50, 77, 91, 8], [49, 49, 99, 40, 17, 81, 18, 57, 60, 87, 17, 40, 98, 43, 69, 48, 4, 56, 62, 0], [81, 49, 31, 73, 55, 79, 14, 29, 93, 71, 40, 67, 53, 88, 30, 3, 49, 13, 36, 65], [52, 70, 95, 23, 4, 60, 11, 42, 69, 24, 68, 56, 1, 32, 56, 71, 37, 2, 36, 91], [22, 31, 16, 71, 51, 67, 63, 89, 41, 92, 36, 54, 22, 40, 40, 28, 66, 33, 13, 80], [24, 47, 32, 60, 99, 3, 45, 2, 44, 75, 33, 53, 78, 36, 84, 20, 35, 17, 12, 50], [32, 98, 81, 28, 64, 23, 67, 10, 26, 38, 40, 67, 59, 54, 70, 66, 18, 38, 64, 70], [67, 26, 20, 68, 2, 62, 12, 20, 95, 63, 94, 39, 63, 8, 40, 91, 66, 49, 94, 21], [24, 55, 58, 5, 66, 73, 99, 26, 97, 17, 78, 78, 96, 83, 14, 88, 34, 89, 63, 72], [21, 36, 23, 9, 75, 0, 76, 44, 20, 45, 35, 14, 0, 61, 33, 97, 34, 31, 33, 95], [78, 17, 53, 28, 22, 75, 31, 67, 15, 94, 3, 80, 4, 62, 16, 14, 9, 53, 56, 92], [16, 39, 5, 42, 96, 35, 31, 47, 55, 58, 88, 24, 0, 17, 54, 24, 36, 29, 85, 57], [86, 56, 0, 48, 35, 71, 89, 7, 5, 44, 44, 37, 44, 60, 21, 58, 51, 54, 17, 58], [19, 80, 81, 68, 5, 94, 47, 69, 28, 73, 92, 13, 86, 52, 17, 77, 4, 89, 55, 40], [4, 52, 8, 83, 97, 35, 99, 16, 7, 97, 57, 32, 16, 26, 26, 79, 33, 27, 98, 66], [88, 36, 68, 87, 57, 62, 20, 72, 3, 46, 33, 67, 46, 55, 12, 32, 63, 93, 53, 69], [4, 42, 16, 73, 38, 25, 39, 11, 24, 94, 72, 18, 8, 46, 29, 32, 40, 62, 76, 36], [20, 69, 36, 41, 72, 30, 23, 88, 34, 62, 99, 69, 82, 67, 59, 85, 74, 4, 36, 16], [20, 73, 35, 29, 78, 31, 90, 1, 74, 31, 49, 71, 48, 86, 81, 16, 23, 57, 5, 54], [1, 70, 54, 71, 83, 51, 54, 69, 16, 92, 33, 48, 61, 43, 52, 1, 89, 19, 67, 48]] def grid_prod(i_max, x, y, dx, dy, prod=1): for i in range(i_max): prod *= grid[y + i * dy][x + i * dx] return prod grid_w = grid_h = 20 d = 4 ans = 0 for x in range(grid_w): for y in range(grid_h): if x + d <= grid_w: ans = max(ans, grid_prod(d, x, y, 1, 0)) if y + d <= grid_h: ans = max(ans, grid_prod(d, x, y, 1, 1)) if y - d >= 1: ans = max(ans, grid_prod(d, x, y, 1, -1)) if y + d <= grid_h: ans = max(ans, grid_prod(d, x, y, 0, 1)) print(ans)
# The MIT License (MIT) # # Copyright (c) 2007-2017 Einar Lielmanis, Liam Newman, and contributors. # # 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. class BeautifierOptions: def __init__(self): self.indent_size = 4 self.indent_char = ' ' self.indent_with_tabs = False self.eol = 'auto' self.preserve_newlines = True self.max_preserve_newlines = 10 self.space_in_paren = False self.space_in_empty_paren = False self.e4x = False self.jslint_happy = False self.space_after_anon_function = False self.brace_style = 'collapse' self.keep_array_indentation = False self.space_before_conditional = True self.keep_function_indentation = False self.eval_code = False self.unescape_strings = False self.wrap_line_length = 0 self.unindent_chained_methods = False self.break_chained_methods = False self.end_with_newline = False self.comma_first = False self.operator_position = 'before-newline' self.css = None self.js = None self.html = None # For testing of beautify ignore:start directive self.test_output_raw = False self.editorconfig = False def __repr__(self): return \ """indent_size = %d indent_char = [%s] preserve_newlines = %s max_preserve_newlines = %d space_in_paren = %s jslint_happy = %s space_after_anon_function = %s indent_with_tabs = %s brace_style = %s keep_array_indentation = %s eval_code = %s wrap_line_length = %s unescape_strings = %s """ % ( self.indent_size, self.indent_char, self.preserve_newlines, self.max_preserve_newlines, self.space_in_paren, self.jslint_happy, self.space_after_anon_function, self.indent_with_tabs, self.brace_style, self.keep_array_indentation, self.eval_code, self.wrap_line_length, self.unescape_strings, )
class Beautifieroptions: def __init__(self): self.indent_size = 4 self.indent_char = ' ' self.indent_with_tabs = False self.eol = 'auto' self.preserve_newlines = True self.max_preserve_newlines = 10 self.space_in_paren = False self.space_in_empty_paren = False self.e4x = False self.jslint_happy = False self.space_after_anon_function = False self.brace_style = 'collapse' self.keep_array_indentation = False self.space_before_conditional = True self.keep_function_indentation = False self.eval_code = False self.unescape_strings = False self.wrap_line_length = 0 self.unindent_chained_methods = False self.break_chained_methods = False self.end_with_newline = False self.comma_first = False self.operator_position = 'before-newline' self.css = None self.js = None self.html = None self.test_output_raw = False self.editorconfig = False def __repr__(self): return 'indent_size = %d\nindent_char = [%s]\npreserve_newlines = %s\nmax_preserve_newlines = %d\nspace_in_paren = %s\njslint_happy = %s\nspace_after_anon_function = %s\nindent_with_tabs = %s\nbrace_style = %s\nkeep_array_indentation = %s\neval_code = %s\nwrap_line_length = %s\nunescape_strings = %s\n' % (self.indent_size, self.indent_char, self.preserve_newlines, self.max_preserve_newlines, self.space_in_paren, self.jslint_happy, self.space_after_anon_function, self.indent_with_tabs, self.brace_style, self.keep_array_indentation, self.eval_code, self.wrap_line_length, self.unescape_strings)
class Aluno(): def __init__(self): self.nome = "Pinguim" self.rg = 1234567891011 self.curso = "missanga" def printa(self): print("nome = ",self.nome) print("rg = ",self.rg) print("curso = ",self.curso) Aluno = Aluno() Aluno.printa()
class Aluno: def __init__(self): self.nome = 'Pinguim' self.rg = 1234567891011 self.curso = 'missanga' def printa(self): print('nome = ', self.nome) print('rg = ', self.rg) print('curso = ', self.curso) aluno = aluno() Aluno.printa()
class RedisList: def __init__(self, redis, key, converter, content=None): self.key_ = key self.redis_ = redis self.converter_ = converter if content: self.reset(content) def __len__(self): return self.redis_.llen(self.key_) def __getitem__(self, index): if type(index) is slice: start = index.start if index.start else 0 stop = index.stop - 1 if index.stop else -1 value = self.redis_.lrange(self.key_, start, stop) value = [self.converter_.to_value(v) for v in value] else: value = self.redis_.lindex(self.key_, index) if value is None: raise IndexError('list index out of range') value = self.converter_.to_value(value) return value def __setitem__(self, index, value): self.redis_.lset(self.key_, index, self.converter_.from_value(value)) return value def __call__(self): return self[:] def __repr__(self): return str(self()) def __str__(self): return str(self()) def reset(self, value_list=None): self.redis_.delete(self.key_) if value_list: self.redis_.rpush(self.key_, *[self.converter_.from_value(v) for v in value_list]) def append(self, value): self.redis_.rpushx(self.key_, self.converter_.from_value(value)) def extend(self, value_list): self.redis_.rpush(self.key_, *[self.converter_.from_value(v) for v in value_list]) def pop(self, idx=-1): if idx == 0: return self.converter_.to_value(self.redis_.lpop(self.key_)) else: return self.converter_.to_value(self.redis_.rpop(self.key_))
class Redislist: def __init__(self, redis, key, converter, content=None): self.key_ = key self.redis_ = redis self.converter_ = converter if content: self.reset(content) def __len__(self): return self.redis_.llen(self.key_) def __getitem__(self, index): if type(index) is slice: start = index.start if index.start else 0 stop = index.stop - 1 if index.stop else -1 value = self.redis_.lrange(self.key_, start, stop) value = [self.converter_.to_value(v) for v in value] else: value = self.redis_.lindex(self.key_, index) if value is None: raise index_error('list index out of range') value = self.converter_.to_value(value) return value def __setitem__(self, index, value): self.redis_.lset(self.key_, index, self.converter_.from_value(value)) return value def __call__(self): return self[:] def __repr__(self): return str(self()) def __str__(self): return str(self()) def reset(self, value_list=None): self.redis_.delete(self.key_) if value_list: self.redis_.rpush(self.key_, *[self.converter_.from_value(v) for v in value_list]) def append(self, value): self.redis_.rpushx(self.key_, self.converter_.from_value(value)) def extend(self, value_list): self.redis_.rpush(self.key_, *[self.converter_.from_value(v) for v in value_list]) def pop(self, idx=-1): if idx == 0: return self.converter_.to_value(self.redis_.lpop(self.key_)) else: return self.converter_.to_value(self.redis_.rpop(self.key_))
# # PySNMP MIB module NTPv4-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NTPv4-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:15:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint") InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType") ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup") Gauge32, Counter64, ObjectIdentity, TimeTicks, iso, Integer32, IpAddress, MibIdentifier, mib_2, Unsigned32, ModuleIdentity, Bits, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Counter64", "ObjectIdentity", "TimeTicks", "iso", "Integer32", "IpAddress", "MibIdentifier", "mib-2", "Unsigned32", "ModuleIdentity", "Bits", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") Utf8String, = mibBuilder.importSymbols("SYSAPPL-MIB", "Utf8String") ntpSnmpMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 197)) ntpSnmpMIB.setRevisions(('2010-05-17 00:00',)) if mibBuilder.loadTexts: ntpSnmpMIB.setLastUpdated('201005170000Z') if mibBuilder.loadTexts: ntpSnmpMIB.setOrganization('The IETF NTP Working Group (ntpwg)') ntpSnmpMIBObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 1)) ntpEntInfo = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 1, 1)) ntpEntStatus = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 1, 2)) ntpAssociation = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 1, 3)) ntpEntControl = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 1, 4)) ntpEntNotifObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 1, 5)) class NtpStratum(TextualConvention, Unsigned32): status = 'current' displayHint = 'd' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 16) class NtpDateTime(TextualConvention, OctetString): reference = 'RFC 5905, section 6' status = 'current' displayHint = '4d:4d:4d.4d' subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(16, 16), ) ntpEntSoftwareName = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 1), Utf8String()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntSoftwareName.setStatus('current') ntpEntSoftwareVersion = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 2), Utf8String()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntSoftwareVersion.setStatus('current') ntpEntSoftwareVendor = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 3), Utf8String()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntSoftwareVendor.setStatus('current') ntpEntSystemType = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 4), Utf8String()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntSystemType.setStatus('current') ntpEntTimeResolution = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntTimeResolution.setStatus('current') ntpEntTimePrecision = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntTimePrecision.setStatus('current') ntpEntTimeDistance = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntTimeDistance.setStatus('current') ntpEntStatusCurrentMode = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 99))).clone(namedValues=NamedValues(("notRunning", 1), ("notSynchronized", 2), ("noneConfigured", 3), ("syncToLocal", 4), ("syncToRefclock", 5), ("syncToRemoteServer", 6), ("unknown", 99)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusCurrentMode.setStatus('current') ntpEntStatusStratum = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 2), NtpStratum()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusStratum.setStatus('current') ntpEntStatusActiveRefSourceId = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 99999))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusActiveRefSourceId.setStatus('current') ntpEntStatusActiveRefSourceName = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 4), Utf8String()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusActiveRefSourceName.setStatus('current') ntpEntStatusActiveOffset = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusActiveOffset.setStatus('current') ntpEntStatusNumberOfRefSources = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 99))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusNumberOfRefSources.setStatus('current') ntpEntStatusDispersion = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusDispersion.setStatus('current') ntpEntStatusEntityUptime = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 8), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusEntityUptime.setStatus('current') ntpEntStatusDateTime = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 9), NtpDateTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusDateTime.setStatus('current') ntpEntStatusLeapSecond = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 10), NtpDateTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusLeapSecond.setStatus('current') ntpEntStatusLeapSecDirection = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-1, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusLeapSecDirection.setStatus('current') ntpEntStatusInPkts = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 12), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusInPkts.setStatus('current') ntpEntStatusOutPkts = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 13), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusOutPkts.setStatus('current') ntpEntStatusBadVersion = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 14), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusBadVersion.setStatus('current') ntpEntStatusProtocolError = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 15), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusProtocolError.setStatus('current') ntpEntStatusNotifications = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 16), Counter32()).setUnits('notifications').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatusNotifications.setStatus('current') ntpEntStatPktModeTable = MibTable((1, 3, 6, 1, 2, 1, 197, 1, 2, 17), ) if mibBuilder.loadTexts: ntpEntStatPktModeTable.setStatus('current') ntpEntStatPktModeEntry = MibTableRow((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1), ).setIndexNames((0, "NTPv4-MIB", "ntpEntStatPktMode")) if mibBuilder.loadTexts: ntpEntStatPktModeEntry.setStatus('current') ntpEntStatPktMode = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("symetricactive", 1), ("symetricpassive", 2), ("client", 3), ("server", 4), ("broadcastserver", 5), ("broadcastclient", 6)))) if mibBuilder.loadTexts: ntpEntStatPktMode.setStatus('current') ntpEntStatPktSent = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1, 2), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatPktSent.setStatus('current') ntpEntStatPktReceived = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1, 3), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpEntStatPktReceived.setStatus('current') ntpAssociationTable = MibTable((1, 3, 6, 1, 2, 1, 197, 1, 3, 1), ) if mibBuilder.loadTexts: ntpAssociationTable.setStatus('current') ntpAssociationEntry = MibTableRow((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1), ).setIndexNames((0, "NTPv4-MIB", "ntpAssocId")) if mibBuilder.loadTexts: ntpAssociationEntry.setStatus('current') ntpAssocId = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 99999))) if mibBuilder.loadTexts: ntpAssocId.setStatus('current') ntpAssocName = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 2), Utf8String()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocName.setStatus('current') ntpAssocRefId = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocRefId.setStatus('current') ntpAssocAddressType = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 4), InetAddressType()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocAddressType.setStatus('current') ntpAssocAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 5), InetAddress().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(4, 4), ValueSizeConstraint(8, 8), ValueSizeConstraint(16, 16), ValueSizeConstraint(20, 20), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocAddress.setStatus('current') ntpAssocOffset = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 6), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocOffset.setStatus('current') ntpAssocStratum = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 7), NtpStratum()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStratum.setStatus('current') ntpAssocStatusJitter = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStatusJitter.setStatus('current') ntpAssocStatusDelay = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 9), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStatusDelay.setStatus('current') ntpAssocStatusDispersion = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStatusDispersion.setStatus('current') ntpAssociationStatisticsTable = MibTable((1, 3, 6, 1, 2, 1, 197, 1, 3, 2), ) if mibBuilder.loadTexts: ntpAssociationStatisticsTable.setStatus('current') ntpAssociationStatisticsEntry = MibTableRow((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1), ).setIndexNames((0, "NTPv4-MIB", "ntpAssocId")) if mibBuilder.loadTexts: ntpAssociationStatisticsEntry.setStatus('current') ntpAssocStatInPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1, 1), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStatInPkts.setStatus('current') ntpAssocStatOutPkts = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1, 2), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStatOutPkts.setStatus('current') ntpAssocStatProtocolError = MibTableColumn((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1, 3), Counter32()).setUnits('packets').setMaxAccess("readonly") if mibBuilder.loadTexts: ntpAssocStatProtocolError.setStatus('current') ntpEntHeartbeatInterval = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 4, 1), Unsigned32().clone(60)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: ntpEntHeartbeatInterval.setStatus('current') ntpEntNotifBits = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 4, 2), Bits().clone(namedValues=NamedValues(("notUsed", 0), ("entNotifModeChange", 1), ("entNotifStratumChange", 2), ("entNotifSyspeerChanged", 3), ("entNotifAddAssociation", 4), ("entNotifRemoveAssociation", 5), ("entNotifConfigChanged", 6), ("entNotifLeapSecondAnnounced", 7), ("entNotifHeartbeat", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ntpEntNotifBits.setStatus('current') ntpEntNotifMessage = MibScalar((1, 3, 6, 1, 2, 1, 197, 1, 5, 1), Utf8String().clone('no event')).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: ntpEntNotifMessage.setStatus('current') ntpEntNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 0)) ntpEntNotifModeChange = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 1)).setObjects(("NTPv4-MIB", "ntpEntStatusCurrentMode")) if mibBuilder.loadTexts: ntpEntNotifModeChange.setStatus('current') ntpEntNotifStratumChange = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 2)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpEntStatusStratum"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifStratumChange.setStatus('current') ntpEntNotifSyspeerChanged = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 3)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpEntStatusActiveRefSourceId"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifSyspeerChanged.setStatus('current') ntpEntNotifAddAssociation = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 4)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpAssocName"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifAddAssociation.setStatus('current') ntpEntNotifRemoveAssociation = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 5)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpAssocName"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifRemoveAssociation.setStatus('current') ntpEntNotifConfigChanged = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 6)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifConfigChanged.setStatus('current') ntpEntNotifLeapSecondAnnounced = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 7)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifLeapSecondAnnounced.setStatus('current') ntpEntNotifHeartbeat = NotificationType((1, 3, 6, 1, 2, 1, 197, 0, 8)).setObjects(("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpEntStatusCurrentMode"), ("NTPv4-MIB", "ntpEntHeartbeatInterval"), ("NTPv4-MIB", "ntpEntNotifMessage")) if mibBuilder.loadTexts: ntpEntNotifHeartbeat.setStatus('current') ntpEntConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 2)) ntpEntCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 2, 1)) ntpEntGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 197, 2, 2)) ntpEntNTPCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 197, 2, 1, 1)).setObjects(("NTPv4-MIB", "ntpEntObjectsGroup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntpEntNTPCompliance = ntpEntNTPCompliance.setStatus('current') ntpEntSNTPCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 197, 2, 1, 2)).setObjects(("NTPv4-MIB", "ntpEntObjectsGroup1"), ("NTPv4-MIB", "ntpEntObjectsGroup2"), ("NTPv4-MIB", "ntpEntNotifGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntpEntSNTPCompliance = ntpEntSNTPCompliance.setStatus('current') ntpEntObjectsGroup1 = ObjectGroup((1, 3, 6, 1, 2, 1, 197, 2, 2, 1)).setObjects(("NTPv4-MIB", "ntpEntSoftwareName"), ("NTPv4-MIB", "ntpEntSoftwareVersion"), ("NTPv4-MIB", "ntpEntSoftwareVendor"), ("NTPv4-MIB", "ntpEntSystemType"), ("NTPv4-MIB", "ntpEntStatusEntityUptime"), ("NTPv4-MIB", "ntpEntStatusDateTime"), ("NTPv4-MIB", "ntpAssocName"), ("NTPv4-MIB", "ntpAssocRefId"), ("NTPv4-MIB", "ntpAssocAddressType"), ("NTPv4-MIB", "ntpAssocAddress")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntpEntObjectsGroup1 = ntpEntObjectsGroup1.setStatus('current') ntpEntObjectsGroup2 = ObjectGroup((1, 3, 6, 1, 2, 1, 197, 2, 2, 2)).setObjects(("NTPv4-MIB", "ntpEntTimeResolution"), ("NTPv4-MIB", "ntpEntTimePrecision"), ("NTPv4-MIB", "ntpEntTimeDistance"), ("NTPv4-MIB", "ntpEntStatusCurrentMode"), ("NTPv4-MIB", "ntpEntStatusStratum"), ("NTPv4-MIB", "ntpEntStatusActiveRefSourceId"), ("NTPv4-MIB", "ntpEntStatusActiveRefSourceName"), ("NTPv4-MIB", "ntpEntStatusActiveOffset"), ("NTPv4-MIB", "ntpEntStatusNumberOfRefSources"), ("NTPv4-MIB", "ntpEntStatusDispersion"), ("NTPv4-MIB", "ntpEntStatusLeapSecond"), ("NTPv4-MIB", "ntpEntStatusLeapSecDirection"), ("NTPv4-MIB", "ntpEntStatusInPkts"), ("NTPv4-MIB", "ntpEntStatusOutPkts"), ("NTPv4-MIB", "ntpEntStatusBadVersion"), ("NTPv4-MIB", "ntpEntStatusProtocolError"), ("NTPv4-MIB", "ntpEntStatusNotifications"), ("NTPv4-MIB", "ntpEntStatPktSent"), ("NTPv4-MIB", "ntpEntStatPktReceived"), ("NTPv4-MIB", "ntpAssocOffset"), ("NTPv4-MIB", "ntpAssocStratum"), ("NTPv4-MIB", "ntpAssocStatusJitter"), ("NTPv4-MIB", "ntpAssocStatusDelay"), ("NTPv4-MIB", "ntpAssocStatusDispersion"), ("NTPv4-MIB", "ntpAssocStatInPkts"), ("NTPv4-MIB", "ntpAssocStatOutPkts"), ("NTPv4-MIB", "ntpAssocStatProtocolError"), ("NTPv4-MIB", "ntpEntHeartbeatInterval"), ("NTPv4-MIB", "ntpEntNotifBits"), ("NTPv4-MIB", "ntpEntNotifMessage")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntpEntObjectsGroup2 = ntpEntObjectsGroup2.setStatus('current') ntpEntNotifGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 197, 2, 2, 3)).setObjects(("NTPv4-MIB", "ntpEntNotifModeChange"), ("NTPv4-MIB", "ntpEntNotifStratumChange"), ("NTPv4-MIB", "ntpEntNotifSyspeerChanged"), ("NTPv4-MIB", "ntpEntNotifAddAssociation"), ("NTPv4-MIB", "ntpEntNotifRemoveAssociation"), ("NTPv4-MIB", "ntpEntNotifConfigChanged"), ("NTPv4-MIB", "ntpEntNotifLeapSecondAnnounced"), ("NTPv4-MIB", "ntpEntNotifHeartbeat")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntpEntNotifGroup = ntpEntNotifGroup.setStatus('current') mibBuilder.exportSymbols("NTPv4-MIB", ntpEntStatus=ntpEntStatus, ntpEntInfo=ntpEntInfo, ntpEntStatusDateTime=ntpEntStatusDateTime, ntpEntStatusActiveRefSourceName=ntpEntStatusActiveRefSourceName, ntpEntNotifStratumChange=ntpEntNotifStratumChange, ntpEntNotifAddAssociation=ntpEntNotifAddAssociation, ntpEntHeartbeatInterval=ntpEntHeartbeatInterval, ntpEntStatPktModeEntry=ntpEntStatPktModeEntry, ntpAssocAddress=ntpAssocAddress, ntpEntObjectsGroup1=ntpEntObjectsGroup1, ntpAssocStratum=ntpAssocStratum, ntpEntTimeResolution=ntpEntTimeResolution, ntpEntNotifMessage=ntpEntNotifMessage, ntpAssocOffset=ntpAssocOffset, ntpEntStatusActiveRefSourceId=ntpEntStatusActiveRefSourceId, ntpAssociationEntry=ntpAssociationEntry, ntpAssocAddressType=ntpAssocAddressType, ntpAssociationTable=ntpAssociationTable, ntpEntNotifModeChange=ntpEntNotifModeChange, ntpEntSoftwareVersion=ntpEntSoftwareVersion, ntpAssociationStatisticsEntry=ntpAssociationStatisticsEntry, ntpEntNotifObjects=ntpEntNotifObjects, ntpEntStatusEntityUptime=ntpEntStatusEntityUptime, ntpAssocId=ntpAssocId, ntpAssocName=ntpAssocName, ntpEntStatusActiveOffset=ntpEntStatusActiveOffset, ntpEntStatusLeapSecond=ntpEntStatusLeapSecond, ntpEntSystemType=ntpEntSystemType, ntpEntStatPktReceived=ntpEntStatPktReceived, PYSNMP_MODULE_ID=ntpSnmpMIB, ntpSnmpMIB=ntpSnmpMIB, NtpStratum=NtpStratum, ntpEntNotifications=ntpEntNotifications, ntpSnmpMIBObjects=ntpSnmpMIBObjects, ntpAssocStatusDispersion=ntpAssocStatusDispersion, ntpEntNTPCompliance=ntpEntNTPCompliance, ntpEntStatusOutPkts=ntpEntStatusOutPkts, ntpEntStatPktModeTable=ntpEntStatPktModeTable, ntpEntSNTPCompliance=ntpEntSNTPCompliance, NtpDateTime=NtpDateTime, ntpEntNotifSyspeerChanged=ntpEntNotifSyspeerChanged, ntpEntNotifHeartbeat=ntpEntNotifHeartbeat, ntpAssocRefId=ntpAssocRefId, ntpEntStatusProtocolError=ntpEntStatusProtocolError, ntpAssocStatOutPkts=ntpAssocStatOutPkts, ntpAssocStatInPkts=ntpAssocStatInPkts, ntpEntSoftwareName=ntpEntSoftwareName, ntpAssocStatProtocolError=ntpAssocStatProtocolError, ntpEntStatusBadVersion=ntpEntStatusBadVersion, ntpEntGroups=ntpEntGroups, ntpEntStatusDispersion=ntpEntStatusDispersion, ntpEntStatusInPkts=ntpEntStatusInPkts, ntpAssocStatusDelay=ntpAssocStatusDelay, ntpAssociationStatisticsTable=ntpAssociationStatisticsTable, ntpEntStatusNotifications=ntpEntStatusNotifications, ntpEntNotifRemoveAssociation=ntpEntNotifRemoveAssociation, ntpEntNotifLeapSecondAnnounced=ntpEntNotifLeapSecondAnnounced, ntpEntSoftwareVendor=ntpEntSoftwareVendor, ntpEntStatusNumberOfRefSources=ntpEntStatusNumberOfRefSources, ntpEntStatPktMode=ntpEntStatPktMode, ntpEntNotifConfigChanged=ntpEntNotifConfigChanged, ntpEntTimeDistance=ntpEntTimeDistance, ntpEntCompliances=ntpEntCompliances, ntpEntObjectsGroup2=ntpEntObjectsGroup2, ntpEntTimePrecision=ntpEntTimePrecision, ntpEntStatusStratum=ntpEntStatusStratum, ntpEntStatusCurrentMode=ntpEntStatusCurrentMode, ntpEntStatusLeapSecDirection=ntpEntStatusLeapSecDirection, ntpAssocStatusJitter=ntpAssocStatusJitter, ntpEntNotifGroup=ntpEntNotifGroup, ntpEntControl=ntpEntControl, ntpEntNotifBits=ntpEntNotifBits, ntpEntStatPktSent=ntpEntStatPktSent, ntpEntConformance=ntpEntConformance, ntpAssociation=ntpAssociation)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, constraints_intersection, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint') (inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType') (module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup') (gauge32, counter64, object_identity, time_ticks, iso, integer32, ip_address, mib_identifier, mib_2, unsigned32, module_identity, bits, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Counter64', 'ObjectIdentity', 'TimeTicks', 'iso', 'Integer32', 'IpAddress', 'MibIdentifier', 'mib-2', 'Unsigned32', 'ModuleIdentity', 'Bits', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') (utf8_string,) = mibBuilder.importSymbols('SYSAPPL-MIB', 'Utf8String') ntp_snmp_mib = module_identity((1, 3, 6, 1, 2, 1, 197)) ntpSnmpMIB.setRevisions(('2010-05-17 00:00',)) if mibBuilder.loadTexts: ntpSnmpMIB.setLastUpdated('201005170000Z') if mibBuilder.loadTexts: ntpSnmpMIB.setOrganization('The IETF NTP Working Group (ntpwg)') ntp_snmp_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 197, 1)) ntp_ent_info = mib_identifier((1, 3, 6, 1, 2, 1, 197, 1, 1)) ntp_ent_status = mib_identifier((1, 3, 6, 1, 2, 1, 197, 1, 2)) ntp_association = mib_identifier((1, 3, 6, 1, 2, 1, 197, 1, 3)) ntp_ent_control = mib_identifier((1, 3, 6, 1, 2, 1, 197, 1, 4)) ntp_ent_notif_objects = mib_identifier((1, 3, 6, 1, 2, 1, 197, 1, 5)) class Ntpstratum(TextualConvention, Unsigned32): status = 'current' display_hint = 'd' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 16) class Ntpdatetime(TextualConvention, OctetString): reference = 'RFC 5905, section 6' status = 'current' display_hint = '4d:4d:4d.4d' subtype_spec = OctetString.subtypeSpec + constraints_union(value_size_constraint(0, 0), value_size_constraint(16, 16)) ntp_ent_software_name = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 1), utf8_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntSoftwareName.setStatus('current') ntp_ent_software_version = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 2), utf8_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntSoftwareVersion.setStatus('current') ntp_ent_software_vendor = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 3), utf8_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntSoftwareVendor.setStatus('current') ntp_ent_system_type = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 4), utf8_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntSystemType.setStatus('current') ntp_ent_time_resolution = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntTimeResolution.setStatus('current') ntp_ent_time_precision = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntTimePrecision.setStatus('current') ntp_ent_time_distance = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntTimeDistance.setStatus('current') ntp_ent_status_current_mode = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 99))).clone(namedValues=named_values(('notRunning', 1), ('notSynchronized', 2), ('noneConfigured', 3), ('syncToLocal', 4), ('syncToRefclock', 5), ('syncToRemoteServer', 6), ('unknown', 99)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusCurrentMode.setStatus('current') ntp_ent_status_stratum = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 2), ntp_stratum()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusStratum.setStatus('current') ntp_ent_status_active_ref_source_id = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 99999))).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusActiveRefSourceId.setStatus('current') ntp_ent_status_active_ref_source_name = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 4), utf8_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusActiveRefSourceName.setStatus('current') ntp_ent_status_active_offset = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusActiveOffset.setStatus('current') ntp_ent_status_number_of_ref_sources = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 99))).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusNumberOfRefSources.setStatus('current') ntp_ent_status_dispersion = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusDispersion.setStatus('current') ntp_ent_status_entity_uptime = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 8), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusEntityUptime.setStatus('current') ntp_ent_status_date_time = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 9), ntp_date_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusDateTime.setStatus('current') ntp_ent_status_leap_second = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 10), ntp_date_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusLeapSecond.setStatus('current') ntp_ent_status_leap_sec_direction = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 11), integer32().subtype(subtypeSpec=value_range_constraint(-1, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusLeapSecDirection.setStatus('current') ntp_ent_status_in_pkts = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 12), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusInPkts.setStatus('current') ntp_ent_status_out_pkts = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 13), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusOutPkts.setStatus('current') ntp_ent_status_bad_version = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 14), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusBadVersion.setStatus('current') ntp_ent_status_protocol_error = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 15), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusProtocolError.setStatus('current') ntp_ent_status_notifications = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 2, 16), counter32()).setUnits('notifications').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatusNotifications.setStatus('current') ntp_ent_stat_pkt_mode_table = mib_table((1, 3, 6, 1, 2, 1, 197, 1, 2, 17)) if mibBuilder.loadTexts: ntpEntStatPktModeTable.setStatus('current') ntp_ent_stat_pkt_mode_entry = mib_table_row((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1)).setIndexNames((0, 'NTPv4-MIB', 'ntpEntStatPktMode')) if mibBuilder.loadTexts: ntpEntStatPktModeEntry.setStatus('current') ntp_ent_stat_pkt_mode = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('symetricactive', 1), ('symetricpassive', 2), ('client', 3), ('server', 4), ('broadcastserver', 5), ('broadcastclient', 6)))) if mibBuilder.loadTexts: ntpEntStatPktMode.setStatus('current') ntp_ent_stat_pkt_sent = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1, 2), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatPktSent.setStatus('current') ntp_ent_stat_pkt_received = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 2, 17, 1, 3), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpEntStatPktReceived.setStatus('current') ntp_association_table = mib_table((1, 3, 6, 1, 2, 1, 197, 1, 3, 1)) if mibBuilder.loadTexts: ntpAssociationTable.setStatus('current') ntp_association_entry = mib_table_row((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1)).setIndexNames((0, 'NTPv4-MIB', 'ntpAssocId')) if mibBuilder.loadTexts: ntpAssociationEntry.setStatus('current') ntp_assoc_id = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 99999))) if mibBuilder.loadTexts: ntpAssocId.setStatus('current') ntp_assoc_name = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 2), utf8_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocName.setStatus('current') ntp_assoc_ref_id = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocRefId.setStatus('current') ntp_assoc_address_type = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 4), inet_address_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocAddressType.setStatus('current') ntp_assoc_address = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 5), inet_address().subtype(subtypeSpec=constraints_union(value_size_constraint(4, 4), value_size_constraint(8, 8), value_size_constraint(16, 16), value_size_constraint(20, 20)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocAddress.setStatus('current') ntp_assoc_offset = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 6), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocOffset.setStatus('current') ntp_assoc_stratum = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 7), ntp_stratum()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStratum.setStatus('current') ntp_assoc_status_jitter = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStatusJitter.setStatus('current') ntp_assoc_status_delay = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 9), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStatusDelay.setStatus('current') ntp_assoc_status_dispersion = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 1, 1, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStatusDispersion.setStatus('current') ntp_association_statistics_table = mib_table((1, 3, 6, 1, 2, 1, 197, 1, 3, 2)) if mibBuilder.loadTexts: ntpAssociationStatisticsTable.setStatus('current') ntp_association_statistics_entry = mib_table_row((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1)).setIndexNames((0, 'NTPv4-MIB', 'ntpAssocId')) if mibBuilder.loadTexts: ntpAssociationStatisticsEntry.setStatus('current') ntp_assoc_stat_in_pkts = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1, 1), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStatInPkts.setStatus('current') ntp_assoc_stat_out_pkts = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1, 2), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStatOutPkts.setStatus('current') ntp_assoc_stat_protocol_error = mib_table_column((1, 3, 6, 1, 2, 1, 197, 1, 3, 2, 1, 3), counter32()).setUnits('packets').setMaxAccess('readonly') if mibBuilder.loadTexts: ntpAssocStatProtocolError.setStatus('current') ntp_ent_heartbeat_interval = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 4, 1), unsigned32().clone(60)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: ntpEntHeartbeatInterval.setStatus('current') ntp_ent_notif_bits = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 4, 2), bits().clone(namedValues=named_values(('notUsed', 0), ('entNotifModeChange', 1), ('entNotifStratumChange', 2), ('entNotifSyspeerChanged', 3), ('entNotifAddAssociation', 4), ('entNotifRemoveAssociation', 5), ('entNotifConfigChanged', 6), ('entNotifLeapSecondAnnounced', 7), ('entNotifHeartbeat', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ntpEntNotifBits.setStatus('current') ntp_ent_notif_message = mib_scalar((1, 3, 6, 1, 2, 1, 197, 1, 5, 1), utf8_string().clone('no event')).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: ntpEntNotifMessage.setStatus('current') ntp_ent_notifications = mib_identifier((1, 3, 6, 1, 2, 1, 197, 0)) ntp_ent_notif_mode_change = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 1)).setObjects(('NTPv4-MIB', 'ntpEntStatusCurrentMode')) if mibBuilder.loadTexts: ntpEntNotifModeChange.setStatus('current') ntp_ent_notif_stratum_change = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 2)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpEntStatusStratum'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifStratumChange.setStatus('current') ntp_ent_notif_syspeer_changed = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 3)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpEntStatusActiveRefSourceId'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifSyspeerChanged.setStatus('current') ntp_ent_notif_add_association = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 4)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpAssocName'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifAddAssociation.setStatus('current') ntp_ent_notif_remove_association = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 5)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpAssocName'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifRemoveAssociation.setStatus('current') ntp_ent_notif_config_changed = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 6)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifConfigChanged.setStatus('current') ntp_ent_notif_leap_second_announced = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 7)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifLeapSecondAnnounced.setStatus('current') ntp_ent_notif_heartbeat = notification_type((1, 3, 6, 1, 2, 1, 197, 0, 8)).setObjects(('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpEntStatusCurrentMode'), ('NTPv4-MIB', 'ntpEntHeartbeatInterval'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if mibBuilder.loadTexts: ntpEntNotifHeartbeat.setStatus('current') ntp_ent_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 197, 2)) ntp_ent_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 197, 2, 1)) ntp_ent_groups = mib_identifier((1, 3, 6, 1, 2, 1, 197, 2, 2)) ntp_ent_ntp_compliance = module_compliance((1, 3, 6, 1, 2, 1, 197, 2, 1, 1)).setObjects(('NTPv4-MIB', 'ntpEntObjectsGroup1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntp_ent_ntp_compliance = ntpEntNTPCompliance.setStatus('current') ntp_ent_sntp_compliance = module_compliance((1, 3, 6, 1, 2, 1, 197, 2, 1, 2)).setObjects(('NTPv4-MIB', 'ntpEntObjectsGroup1'), ('NTPv4-MIB', 'ntpEntObjectsGroup2'), ('NTPv4-MIB', 'ntpEntNotifGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntp_ent_sntp_compliance = ntpEntSNTPCompliance.setStatus('current') ntp_ent_objects_group1 = object_group((1, 3, 6, 1, 2, 1, 197, 2, 2, 1)).setObjects(('NTPv4-MIB', 'ntpEntSoftwareName'), ('NTPv4-MIB', 'ntpEntSoftwareVersion'), ('NTPv4-MIB', 'ntpEntSoftwareVendor'), ('NTPv4-MIB', 'ntpEntSystemType'), ('NTPv4-MIB', 'ntpEntStatusEntityUptime'), ('NTPv4-MIB', 'ntpEntStatusDateTime'), ('NTPv4-MIB', 'ntpAssocName'), ('NTPv4-MIB', 'ntpAssocRefId'), ('NTPv4-MIB', 'ntpAssocAddressType'), ('NTPv4-MIB', 'ntpAssocAddress')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntp_ent_objects_group1 = ntpEntObjectsGroup1.setStatus('current') ntp_ent_objects_group2 = object_group((1, 3, 6, 1, 2, 1, 197, 2, 2, 2)).setObjects(('NTPv4-MIB', 'ntpEntTimeResolution'), ('NTPv4-MIB', 'ntpEntTimePrecision'), ('NTPv4-MIB', 'ntpEntTimeDistance'), ('NTPv4-MIB', 'ntpEntStatusCurrentMode'), ('NTPv4-MIB', 'ntpEntStatusStratum'), ('NTPv4-MIB', 'ntpEntStatusActiveRefSourceId'), ('NTPv4-MIB', 'ntpEntStatusActiveRefSourceName'), ('NTPv4-MIB', 'ntpEntStatusActiveOffset'), ('NTPv4-MIB', 'ntpEntStatusNumberOfRefSources'), ('NTPv4-MIB', 'ntpEntStatusDispersion'), ('NTPv4-MIB', 'ntpEntStatusLeapSecond'), ('NTPv4-MIB', 'ntpEntStatusLeapSecDirection'), ('NTPv4-MIB', 'ntpEntStatusInPkts'), ('NTPv4-MIB', 'ntpEntStatusOutPkts'), ('NTPv4-MIB', 'ntpEntStatusBadVersion'), ('NTPv4-MIB', 'ntpEntStatusProtocolError'), ('NTPv4-MIB', 'ntpEntStatusNotifications'), ('NTPv4-MIB', 'ntpEntStatPktSent'), ('NTPv4-MIB', 'ntpEntStatPktReceived'), ('NTPv4-MIB', 'ntpAssocOffset'), ('NTPv4-MIB', 'ntpAssocStratum'), ('NTPv4-MIB', 'ntpAssocStatusJitter'), ('NTPv4-MIB', 'ntpAssocStatusDelay'), ('NTPv4-MIB', 'ntpAssocStatusDispersion'), ('NTPv4-MIB', 'ntpAssocStatInPkts'), ('NTPv4-MIB', 'ntpAssocStatOutPkts'), ('NTPv4-MIB', 'ntpAssocStatProtocolError'), ('NTPv4-MIB', 'ntpEntHeartbeatInterval'), ('NTPv4-MIB', 'ntpEntNotifBits'), ('NTPv4-MIB', 'ntpEntNotifMessage')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntp_ent_objects_group2 = ntpEntObjectsGroup2.setStatus('current') ntp_ent_notif_group = notification_group((1, 3, 6, 1, 2, 1, 197, 2, 2, 3)).setObjects(('NTPv4-MIB', 'ntpEntNotifModeChange'), ('NTPv4-MIB', 'ntpEntNotifStratumChange'), ('NTPv4-MIB', 'ntpEntNotifSyspeerChanged'), ('NTPv4-MIB', 'ntpEntNotifAddAssociation'), ('NTPv4-MIB', 'ntpEntNotifRemoveAssociation'), ('NTPv4-MIB', 'ntpEntNotifConfigChanged'), ('NTPv4-MIB', 'ntpEntNotifLeapSecondAnnounced'), ('NTPv4-MIB', 'ntpEntNotifHeartbeat')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ntp_ent_notif_group = ntpEntNotifGroup.setStatus('current') mibBuilder.exportSymbols('NTPv4-MIB', ntpEntStatus=ntpEntStatus, ntpEntInfo=ntpEntInfo, ntpEntStatusDateTime=ntpEntStatusDateTime, ntpEntStatusActiveRefSourceName=ntpEntStatusActiveRefSourceName, ntpEntNotifStratumChange=ntpEntNotifStratumChange, ntpEntNotifAddAssociation=ntpEntNotifAddAssociation, ntpEntHeartbeatInterval=ntpEntHeartbeatInterval, ntpEntStatPktModeEntry=ntpEntStatPktModeEntry, ntpAssocAddress=ntpAssocAddress, ntpEntObjectsGroup1=ntpEntObjectsGroup1, ntpAssocStratum=ntpAssocStratum, ntpEntTimeResolution=ntpEntTimeResolution, ntpEntNotifMessage=ntpEntNotifMessage, ntpAssocOffset=ntpAssocOffset, ntpEntStatusActiveRefSourceId=ntpEntStatusActiveRefSourceId, ntpAssociationEntry=ntpAssociationEntry, ntpAssocAddressType=ntpAssocAddressType, ntpAssociationTable=ntpAssociationTable, ntpEntNotifModeChange=ntpEntNotifModeChange, ntpEntSoftwareVersion=ntpEntSoftwareVersion, ntpAssociationStatisticsEntry=ntpAssociationStatisticsEntry, ntpEntNotifObjects=ntpEntNotifObjects, ntpEntStatusEntityUptime=ntpEntStatusEntityUptime, ntpAssocId=ntpAssocId, ntpAssocName=ntpAssocName, ntpEntStatusActiveOffset=ntpEntStatusActiveOffset, ntpEntStatusLeapSecond=ntpEntStatusLeapSecond, ntpEntSystemType=ntpEntSystemType, ntpEntStatPktReceived=ntpEntStatPktReceived, PYSNMP_MODULE_ID=ntpSnmpMIB, ntpSnmpMIB=ntpSnmpMIB, NtpStratum=NtpStratum, ntpEntNotifications=ntpEntNotifications, ntpSnmpMIBObjects=ntpSnmpMIBObjects, ntpAssocStatusDispersion=ntpAssocStatusDispersion, ntpEntNTPCompliance=ntpEntNTPCompliance, ntpEntStatusOutPkts=ntpEntStatusOutPkts, ntpEntStatPktModeTable=ntpEntStatPktModeTable, ntpEntSNTPCompliance=ntpEntSNTPCompliance, NtpDateTime=NtpDateTime, ntpEntNotifSyspeerChanged=ntpEntNotifSyspeerChanged, ntpEntNotifHeartbeat=ntpEntNotifHeartbeat, ntpAssocRefId=ntpAssocRefId, ntpEntStatusProtocolError=ntpEntStatusProtocolError, ntpAssocStatOutPkts=ntpAssocStatOutPkts, ntpAssocStatInPkts=ntpAssocStatInPkts, ntpEntSoftwareName=ntpEntSoftwareName, ntpAssocStatProtocolError=ntpAssocStatProtocolError, ntpEntStatusBadVersion=ntpEntStatusBadVersion, ntpEntGroups=ntpEntGroups, ntpEntStatusDispersion=ntpEntStatusDispersion, ntpEntStatusInPkts=ntpEntStatusInPkts, ntpAssocStatusDelay=ntpAssocStatusDelay, ntpAssociationStatisticsTable=ntpAssociationStatisticsTable, ntpEntStatusNotifications=ntpEntStatusNotifications, ntpEntNotifRemoveAssociation=ntpEntNotifRemoveAssociation, ntpEntNotifLeapSecondAnnounced=ntpEntNotifLeapSecondAnnounced, ntpEntSoftwareVendor=ntpEntSoftwareVendor, ntpEntStatusNumberOfRefSources=ntpEntStatusNumberOfRefSources, ntpEntStatPktMode=ntpEntStatPktMode, ntpEntNotifConfigChanged=ntpEntNotifConfigChanged, ntpEntTimeDistance=ntpEntTimeDistance, ntpEntCompliances=ntpEntCompliances, ntpEntObjectsGroup2=ntpEntObjectsGroup2, ntpEntTimePrecision=ntpEntTimePrecision, ntpEntStatusStratum=ntpEntStatusStratum, ntpEntStatusCurrentMode=ntpEntStatusCurrentMode, ntpEntStatusLeapSecDirection=ntpEntStatusLeapSecDirection, ntpAssocStatusJitter=ntpAssocStatusJitter, ntpEntNotifGroup=ntpEntNotifGroup, ntpEntControl=ntpEntControl, ntpEntNotifBits=ntpEntNotifBits, ntpEntStatPktSent=ntpEntStatPktSent, ntpEntConformance=ntpEntConformance, ntpAssociation=ntpAssociation)
def average_discount(list_of_changes): total = 0 count = 0 for change in list_of_changes: if change < 0: total += (- change) count += 1 return round((total / count), 2) def calculate_discount_averages(x): result=[] for i in x: try: y=average_discount(i) except ZeroDivisionError: y=0 result.append(y) return result
def average_discount(list_of_changes): total = 0 count = 0 for change in list_of_changes: if change < 0: total += -change count += 1 return round(total / count, 2) def calculate_discount_averages(x): result = [] for i in x: try: y = average_discount(i) except ZeroDivisionError: y = 0 result.append(y) return result
n = int(input()) even_ones = set() odd_ones = set() index = 0 sum_of_chars = 0 for _ in range(n): name = input() index += 1 for char in name: sum_of_chars += int(ord(char)) sum_of_chars //= index if sum_of_chars % 2 == 0: even_ones.add(sum_of_chars) else: odd_ones.add(sum_of_chars) sum_of_chars = 0 if sum(even_ones) == sum(odd_ones): result = odd_ones.union(even_ones) elif sum(odd_ones) > sum(even_ones): result = odd_ones.difference(even_ones) elif sum(even_ones) > sum(odd_ones): result = odd_ones.symmetric_difference(even_ones) print(', '.join([str(x) for x in result]))
n = int(input()) even_ones = set() odd_ones = set() index = 0 sum_of_chars = 0 for _ in range(n): name = input() index += 1 for char in name: sum_of_chars += int(ord(char)) sum_of_chars //= index if sum_of_chars % 2 == 0: even_ones.add(sum_of_chars) else: odd_ones.add(sum_of_chars) sum_of_chars = 0 if sum(even_ones) == sum(odd_ones): result = odd_ones.union(even_ones) elif sum(odd_ones) > sum(even_ones): result = odd_ones.difference(even_ones) elif sum(even_ones) > sum(odd_ones): result = odd_ones.symmetric_difference(even_ones) print(', '.join([str(x) for x in result]))
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0. class Action(object): """ A build step """ def is_main(self): """ Returns True if this action needs no external tasks run to set it up """ return False def run(self, env): pass def __str__(self): return self.__class__.__name__
class Action(object): """ A build step """ def is_main(self): """ Returns True if this action needs no external tasks run to set it up """ return False def run(self, env): pass def __str__(self): return self.__class__.__name__
# configs config_path = './config/config.yaml' # urls base_url = 'https://www.finanzen.net/index/' ext_urls = { 'DAX' : 'dax/30-werte', 'TECDAX' : 'tecdax/werte', 'DOW JONES' : 'dow_jones/werte', 'MDAX' : 'mdax/werte', 'SDAX' : 'sdax/werte', 'S&P500' : 's&p_500/werte', 'NASDAQ100' : 'nasdaq_100/werte', 'EUROSTOXX' : 'euro_stoxx_50/werte', 'SMI' : 'smi/werte', 'ATX' : 'atx/werte', 'CAC40' : 'cac_40/werte' } # rename cols mappings rename_dict = { 'name' : 'stock', 'current' : 'current price', 'last_day' : 'previous day price', 'percent_change' : '% drop' } # lower threshold in percent per_threshold = -5.0
config_path = './config/config.yaml' base_url = 'https://www.finanzen.net/index/' ext_urls = {'DAX': 'dax/30-werte', 'TECDAX': 'tecdax/werte', 'DOW JONES': 'dow_jones/werte', 'MDAX': 'mdax/werte', 'SDAX': 'sdax/werte', 'S&P500': 's&p_500/werte', 'NASDAQ100': 'nasdaq_100/werte', 'EUROSTOXX': 'euro_stoxx_50/werte', 'SMI': 'smi/werte', 'ATX': 'atx/werte', 'CAC40': 'cac_40/werte'} rename_dict = {'name': 'stock', 'current': 'current price', 'last_day': 'previous day price', 'percent_change': '% drop'} per_threshold = -5.0
n = int(input("Enter Number:")) sum = 0 while(n != 0): sum += n % 10 n //= 10 #floor division print(sum)
n = int(input('Enter Number:')) sum = 0 while n != 0: sum += n % 10 n //= 10 print(sum)
# Interactive Coding Exercise 2 # Solution - Wrapped the input on line 4 in an int(). year = int(input("Which year do you want to check?")) if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: print("Leap year.") else: print("Not leap year.") else: print("Leap year.") else: print("Not leap year.")
year = int(input('Which year do you want to check?')) if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: print('Leap year.') else: print('Not leap year.') else: print('Leap year.') else: print('Not leap year.')
def find_empty_space(board): """ find an empty space in the board param board: partially complete board return: (int, int) the row and the column """ for i in range(9): for j in range(9): if board[i][j] == 0: return (i,j) return None def valid_number(board, number, position): """ return if the number fit in the position param board: 2d list of ints param position: (row, col) param number: integer return: boolean """ for i in range(9): if board[position[0]][i] == number and position[1] != i: return False for i in range(9): if board[i][position[1]] == number and position[0] != i: return False box_row = (position[0] // 3)*3 box_column = (position[1] // 3)*3 for i in range(box_row, box_row+3): for j in range(box_column, box_column+3): if board[i][j] == number and (i,j) != position: return False return True def solve(board): """ solve a sudoku board using backtracking param board: 2d list of integers return: solution """ space_found = find_empty_space(board) if not space_found: return True else: row, col = space_found for i in range(1, 10): if valid_number(board, i, (row, col)): board[row][col] = i if solve(board): return True board[row][col] = 0 return False def print_board(board): """ prints the board param board: 2d List of integers return: None """ for i in range(9): if i%3 == 0 and i != 0: print("-"*21, sep=' ', end='\n') for j in range(9): if j%3 == 0 and j != 0: print('|', sep=' ', end=' ') print(board[i][j], sep=' ', end=' ') print(' ')
def find_empty_space(board): """ find an empty space in the board param board: partially complete board return: (int, int) the row and the column """ for i in range(9): for j in range(9): if board[i][j] == 0: return (i, j) return None def valid_number(board, number, position): """ return if the number fit in the position param board: 2d list of ints param position: (row, col) param number: integer return: boolean """ for i in range(9): if board[position[0]][i] == number and position[1] != i: return False for i in range(9): if board[i][position[1]] == number and position[0] != i: return False box_row = position[0] // 3 * 3 box_column = position[1] // 3 * 3 for i in range(box_row, box_row + 3): for j in range(box_column, box_column + 3): if board[i][j] == number and (i, j) != position: return False return True def solve(board): """ solve a sudoku board using backtracking param board: 2d list of integers return: solution """ space_found = find_empty_space(board) if not space_found: return True else: (row, col) = space_found for i in range(1, 10): if valid_number(board, i, (row, col)): board[row][col] = i if solve(board): return True board[row][col] = 0 return False def print_board(board): """ prints the board param board: 2d List of integers return: None """ for i in range(9): if i % 3 == 0 and i != 0: print('-' * 21, sep=' ', end='\n') for j in range(9): if j % 3 == 0 and j != 0: print('|', sep=' ', end=' ') print(board[i][j], sep=' ', end=' ') print(' ')
class CPP: @staticmethod def __protection_exception(prop): raise Exception(f'Can not modify constant property: {prop}') @staticmethod def protect(obj, prop): setattr(obj.__class__, prop, property( lambda self: getattr(self, '_'+prop), lambda self, value: CPP.__protection_exception(prop) ))
class Cpp: @staticmethod def __protection_exception(prop): raise exception(f'Can not modify constant property: {prop}') @staticmethod def protect(obj, prop): setattr(obj.__class__, prop, property(lambda self: getattr(self, '_' + prop), lambda self, value: CPP.__protection_exception(prop)))
class User: def __init__(self, username, password): self.name = username self.password = password def login(self): return def logout(self): return
class User: def __init__(self, username, password): self.name = username self.password = password def login(self): return def logout(self): return
def is_valid(s): stack = [] for i in range(len(s)): if s[i] == "(" or s[i] == "[" or s[i] == "{": stack.append(s[i]) else: if len(stack) == 0: return False if s[i] == ")" and stack[-1] != "(": return False if s[i] == "]" and stack[-1] != "[": return False if s[i] == "}" and stack[-1] != "{": return False stack.pop() return len(stack) == 0 if __name__ == "__main__": s_ = "()[]{}" print(is_valid(s_))
def is_valid(s): stack = [] for i in range(len(s)): if s[i] == '(' or s[i] == '[' or s[i] == '{': stack.append(s[i]) else: if len(stack) == 0: return False if s[i] == ')' and stack[-1] != '(': return False if s[i] == ']' and stack[-1] != '[': return False if s[i] == '}' and stack[-1] != '{': return False stack.pop() return len(stack) == 0 if __name__ == '__main__': s_ = '()[]{}' print(is_valid(s_))
#W.A.P TO TAKE INPUT FROM USER (empid,name,salary) AND PRINT EMPLOYEE DETAILS emp=int(input('Enter employee ID:')) name=input('Enter your name:') sal=int(input('Enter your annual salary:')) print('Employee Details --> \n Employee ID:',emp,'\n Name:',name,'\n Annual Salary:',sal)
emp = int(input('Enter employee ID:')) name = input('Enter your name:') sal = int(input('Enter your annual salary:')) print('Employee Details --> \n Employee ID:', emp, '\n Name:', name, '\n Annual Salary:', sal)
def main(): def findMin(x): minNum = x[0] for i in x: if minNum > i: minNum = i return minNum print(findMin([0,1,2,3,4,5,-3,24,-56])) # = -56 if __name__ == '__main__': main()
def main(): def find_min(x): min_num = x[0] for i in x: if minNum > i: min_num = i return minNum print(find_min([0, 1, 2, 3, 4, 5, -3, 24, -56])) if __name__ == '__main__': main()
a = 'some_string' b = 'some' + '_' + 'string' c = 'somestring' print(id(a)) print(id(b)) print(id(c))
a = 'some_string' b = 'some' + '_' + 'string' c = 'somestring' print(id(a)) print(id(b)) print(id(c))
__all__ = ['split_and_load'] def split_and_load(data, ctx_list, batch_axis=0, even_split=True): """Splits an NDArray into `len(ctx_list)` slices along `batch_axis` and loads each slice to one context in `ctx_list`. Parameters ---------- data : NDArray A batch of data. ctx_list : list of Context A list of Contexts. batch_axis : int, default 0 The axis along which to slice. even_split : bool, default True Whether to force all slices to have the same number of elements. Returns ------- list of NDArray Each corresponds to a context in `ctx_list`. """ if len(ctx_list) == 1: return [d.as_in_context(ctx_list[0]) for d in data] size = len(data) num_slice = len(ctx_list) step = size // num_slice for i in range(num_slice): for k in range(i*step, (i+1)*step): data[k].as_in_context(ctx_list[i]) return data
__all__ = ['split_and_load'] def split_and_load(data, ctx_list, batch_axis=0, even_split=True): """Splits an NDArray into `len(ctx_list)` slices along `batch_axis` and loads each slice to one context in `ctx_list`. Parameters ---------- data : NDArray A batch of data. ctx_list : list of Context A list of Contexts. batch_axis : int, default 0 The axis along which to slice. even_split : bool, default True Whether to force all slices to have the same number of elements. Returns ------- list of NDArray Each corresponds to a context in `ctx_list`. """ if len(ctx_list) == 1: return [d.as_in_context(ctx_list[0]) for d in data] size = len(data) num_slice = len(ctx_list) step = size // num_slice for i in range(num_slice): for k in range(i * step, (i + 1) * step): data[k].as_in_context(ctx_list[i]) return data
# Copyright 2019, A10 Networks # # 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. # ============== # Argument Names # ============== LOADBALANCERS_LIST = 'loadbalancers_list' VRID_LIST = 'vrid_list' SET_THUNDER_UPDATE_AT = 'set-thunder-update-at' SET_THUNDER_BACKUP_UPDATE_AT = 'set-thunder-backup-update-at' # Member count with specific IP. MEMBER_COUNT_IP = 'member_count_ip' MEMBER_COUNT_IP_PORT_PROTOCOL = 'member_count_ip_port_protocol' POOL_COUNT_IP = 'pool_count_ip' WRITE_MEM_SHARED_PART = 'write_mem_shared_part' WRITE_MEM_FOR_SHARED_PARTITION = 'write_memory_for_shared_partition' WRITE_MEM_FOR_LOCAL_PARTITION = 'write_memory_for_local_partition' MEMBER_LIST = 'member_list' SUBNET_LIST = 'subnet_list' MEMBERS = 'members' POOLS = 'pools' PARTITION_PROJECT_LIST = 'partition_project_list' IFNUM_BACKUP = 'ifnum_backup' IFNUM_MASTER = 'ifnum_master' LISTENER_STATS = 'listener_stats' # Octavia taskflow flow and task names (missing name in victoria octavia) RELOADLOAD_BALANCER = 'octavia-reloadload-balancer' VTHUNDER = 'vthunder' STATUS = 'status' ROLE = 'role' BACKUP_VTHUNDER = 'backup_vthunder' MASTER_VTHUNDER = 'master_vthunder' VRRP_STATUS = 'vrrp_status' MASTER_VRRP_STATUS = 'master_vrrp_status' BACKUP_VRRP_STATUS = 'backup_vrrp_status' NAT_POOL = 'nat_pool' NAT_FLAVOR = 'nat_flavor' SUBNET_PORT = 'subnet_port' WRITE_MEM_SHARED = 'write_mem_shared' WRITE_MEM_PRIVATE = 'write_mem_private' FAILED = 'FAILED' USED_SPARE = 'USED_SPARE' SPARE_VTHUNDER = 'spare_vthunder' FAILOVER_VTHUNDER = 'failover_vthunder' OCTAVIA_HEALTH_MANAGER_CONTROLLER = 'octavia_health_manager_controller' OCTAVIA_HEALTH_MONITOR = 'octavia_health_monitor' VTHUNDER_CONFIG = 'vthunder_config' DEVICE_CONFIG_DICT = 'device_config_dict' DEVICE_KEY_PREFIX = '[dev]' USE_DEVICE_FLAVOR = 'use_device_flavor' VTHUNDER_ID = "vthunder_id" DEVICE_ID = "device_id" SET_ID = "set_id" VRID = "vrid" DEVICE_PRIORITY = 'device_priority' FLOATING_IP = 'floating_ip' FLOATING_IP_MASK = 'floating_ip_mask' CERT_DATA = 'cert_data' SP_OBJ_DICT = { 'HTTP_COOKIE': "cookie_persistence", 'APP_COOKIE': "cookie_persistence", 'SOURCE_IP': "src_ip_persistence", } HTTP_TYPE = ['HTTP', 'HTTPS'] PERS_TYPE = ['cookie_persistence', 'src_ip_persistence'] NO_DEST_NAT_SUPPORTED_PROTOCOL = ['tcp', 'udp'] PORT = 'port' LB_COUNT = 'lb_count' LB_COUNT_SUBNET = 'lb_count_subnet' LB_COUNT_FLAVOR = 'lb_count_flavor' MEMBER_COUNT = 'member_count' DELETE_VRID = 'delete_vrid' LB_COUNT_THUNDER = 'lb_count_thunder' MEMBER_COUNT_THUNDER = 'member_count_thunder' LB_COUNT_THUNDER_PARTITION = 'lb_count_thunder_partition' ID = 'id' SECURITY_GROUPS = 'security_groups' VIP_SEC_GROUP_PREFIX = 'lb-' LB_RESOURCE = 'lb_resource' SUBNET_ID = "subnet_id" VLAN_ID = "vlan_id" TAG_INTERFACE = "tag_interface" VE_INTERFACE = "ve_interface" DELETE_VLAN = "delete_vlan" VLAN = "vlan" FLAT = "flat" SUPPORTED_NETWORK_TYPE = [FLAT, VLAN] SSL_TEMPLATE = "ssl_template" COMPUTE_BUSY = "compute_busy" VTHUNDER_LIST = "vthunder_list" NETWORK_LIST = "network_list" ADDED_NETWORK = "added_network" COMPUTE_PAUSED = "PAUSED" L2DSR_FLAVOR = "l2dsr_flavor" MASTER_AMPHORA_STATUS = "master_amphora_status" BACKUP_AMPHORA_STATUS = "backup_amphora_status" # ACOS versions ACOS_5_2_1_P2 = "5.2.1-P2" # ============================ # Taskflow flow and task names # ============================ GET_VTHUNDER_FOR_LB_SUBFLOW = 'octavia-get-vthunder-for-lb-subflow' BACKUP_AMPHORA_PLUG = 'backup-amphora-plug' GET_MASTER_VTHUNDER_INTERFACE = 'get-master-vthunder-intercae' GET_BACKUP_VTHUNDER_INTERFACE = 'get-backup-vthunder-intercae' MASTER_CONNECTIVITY_WAIT = 'master-connectivity-wait' BACKUP_CONNECTIVITY_WAIT = 'backup-connectivity-wait' ENABLE_MASTER_VTHUNDER_INTERFACE = 'enable-master-vthunder-interface' ENABLE_BACKUP_VTHUNDER_INTERFACE = 'enable-backup-vthunder-interface' ENABLE_VTHUNDER_INTERFACE = 'enable-vthunder-interface' MASTER_ENABLE_INTERFACE = 'master-enable-interface' BACKUP_ENABLE_INTERFACE = 'backup-enable-interface' MARK_VTHUNDER_MASTER_ACTIVE_IN_DB = 'mark-vthunder-master-active-in-db' MARK_VTHUNDER_BACKUP_ACTIVE_IN_DB = 'mark-vthunder-backup-active-in-db' MARK_VTHUNDER_MASTER_DELETED_IN_DB = 'mark-vthunder-master-deleted-in-db' MARK_VTHUNDER_BACKUP_DELETED_IN_DB = 'mark-vthunder-backup-deleted-in-db' GET_BACKUP_VTHUNDER_BY_LB = 'get-backup-vthunder-by-lb' GET_VTHUNDER_FROM_LB = 'get-vthunder-from-lb' CREATE_HEALTH_MONITOR_ON_VTHUNDER = 'create-health-monitor-on-vthunder' CREATE_HEALTH_MONITOR_ON_SPARE = 'create-health-monitor-on-spare' MARK_AMPHORA_READY_INDB = 'mark-amphora-ready-indb' HANDLE_SESS_PERS = 'handle-session-persistence-delta-subflow' GET_LOADBALANCER_FROM_DB = 'Get-Loadbalancer-from-db' GET_BACKUP_LOADBALANCER_FROM_DB = 'get-backup-loadbalancer-from-db' CONFIGURE_VRRP_FOR_MASTER_VTHUNDER = 'configure-vrrp-for-master-vthunder' CONFIGURE_VRRP_FOR_BACKUP_VTHUNDER = 'configure-vrrp-for-backup-vthunder' CONFIGURE_VRID_FOR_MASTER_VTHUNDER = 'configure-vrid-for-master-vthunder' CONFIGURE_VRID_FOR_BACKUP_VTHUNDER = 'configure-vrid-for-backup-vthunder' WAIT_FOR_MASTER_SYNC = 'wait-for-master-sync' WAIT_FOR_BACKUP_SYNC = 'wait-for-backup-sync' CONFIGURE_AVCS_SYNC_FOR_MASTER = 'configure-avcs-sync-for-master' CONFIGURE_AVCS_SYNC_FOR_BACKUP = 'configure-avcs-sync-for-backup' CONFIGURE_AVCS_FOR_FAILOVER = 'configure-avcs-for-failover' CHECK_VRRP_STATUS = 'check-vrrp-status' CHECK_VRRP_MASTER_STATUS = 'check-vrrp-master-status' CHECK_VRRP_BACKUP_STATUS = 'check-vrrp-backup-status' CONFIRM_VRRP_STATUS = 'confirm-vrrp-status' ADD_VRRP_SET_ID_INDB = 'add-vrrp-set-id-db' DELETE_VRRP_SET_ID_INDB = 'delete-vrrp-set-id-db' GET_VRRP_SET_ID_INDB = 'get-vrrp-set-id-db' ALLOCATE_VIP = 'allocate-vip' UPDATE_VIP_AFTER_ALLOCATION = 'update-vip-after-allocation' ALLOW_L2DSR = 'allow-l2dsr' ALLOW_NO_SNAT = 'allow-no-snat' AMPHORAE_POST_VIP_PLUG = 'amphorae-post-vip-plug' AMPHORA_POST_NETWORK_UNPLUG = 'amphorae-post-network-plug' AMPHORA_POST_NETWORK_UNPLUG_FOR_BACKUP_VTHUNDER = 'amphorae-post-network-plug-for-backup-vthunder' AMP_POST_VIP_PLUG = 'amp-post-vip-plug' AMPHORAE_POST_VIP_PLUG_FOR_MASTER = 'amphorae-post-vip-plug-for-master' AMPHORAE_POST_VIP_PLUG_FOR_BACKUP = 'amphorae-post-vip-plug-for-backup' VCS_RELOAD = 'vcs-reload' GET_BACKUP_VTHUNDER = 'get-backup-vthunder' GET_MASTER_VTHUNDER = 'get-master-vthunder' CONNECTIVITY_WAIT_FOR_MASTER_VTHUNDER = 'connectivity-wait-for-master-vthunder' CONNECTIVITY_WAIT_FOR_BACKUP_VTHUNDER = 'connectivity-wait-for-backup-vthunder' GET_VTHUNDER_MASTER = 'get-vthunder-master' WAIT_FOR_MASTER_VCS_RELOAD = 'wait-for-master-vcs-reload' WAIT_FOR_BACKUP_VCS_RELOAD = 'wait-for-backup-vcs-reload' VCS_SYNC_WAIT = "wait-for-vcs_ready" GET_COMPUTE_FOR_PROJECT = 'get-compute-for-project' VALIDATE_COMPUTE_FOR_PROJECT = 'validate-compute-for-project' GET_SPARE_COMPUTE_FOR_PROJECT = 'get-spare-compute-for-project' DELETE_STALE_SPARE_VTHUNDER = 'delete-stale-spare-vthunder' CREATE_VTHUNDER_ENTRY = 'create-vthunder-entry' UPDATE_ACOS_VERSION_IN_VTHUNDER_ENTRY = 'update-acos-version-in-vthunder-entry' UPDATE_ACOS_VERSION_FOR_BACKUP_VTHUNDER = 'update-acos-version-for-backup-vthunder' VTHUNDER_BY_LB = 'vthunder-by-loadbalancer' GET_VTHUNDER_BY_LB = 'get-vthunder-by-lb' VTHUNDER_CONNECTIVITY_WAIT = 'vthunder-connectivity-wait' WAIT_FOR_VTHUNDER_CONNECTIVITY = 'wait-for-vthunder-connectivity' CHANGE_PARTITION = 'change-partition' CREATE_SSL_CERT_FLOW = 'create-ssl-cert-flow' DELETE_SSL_CERT_FLOW = 'delete-ssl-cert-flow' LISTENER_TYPE_DECIDER_FLOW = 'listener_type_decider_flow' DELETE_LOADBALANCER_VRID_SUBFLOW = 'delete-loadbalancer-vrid-subflow' REVOKE_ACTIVE_VTHUNDER_LICENSE = 'revoke-active-vthunder-license' REVOKE_BACKUP_VTHUNDER_LICENSE = 'revoke-backup-vthunder-license' HANDLE_VRID_LOADBALANCER_SUBFLOW = 'handle-vrid-loadbalancer-subflow' CREATE_MEMBER_SNAT_POOL_SUBFLOW = 'create-member-snat-pool-subflow' DELETE_MEMBER_VTHUNDER_INTERNAL_SUBFLOW = 'delete-member-vthunder-internal-subflow' DELETE_MEMBER_VRID_SUBFLOW = 'delete-member-vrid-subflow' DELETE_MEMBER_VRID_INTERNAL_SUBFLOW = 'delete-member-vrid-internal-subflow' DELETE_HEALTH_MONITOR_VTHUNDER_SUBFLOW = 'delete-hm-vthunder-subflow' DELETE_HEALTH_MONITOR_SUBFLOW_WITH_POOL_DELETE_FLOW = 'delete-health-monitor-subflow' \ '-with-pool-delete-flow' DELETE_MEMBERS_SUBFLOW_WITH_POOL_DELETE_FLOW = 'delete-members-subflow-with-pool-delete-flow' HANDLE_VRID_MEMBER_SUBFLOW = 'handle-vrid-member-subflow' SPARE_VTHUNDER_CREATE = 'spare-vthunder-create' ACTIVATE_GLM_LICENSE_SUBFLOW = 'activate-glm-license-subflow' CONFIGURE_DNS_NAMESERVERS = 'configure-dns-nameservers' ACTIVATE_FLEXPOOL_LICENSE = 'activate-flexpool-license' CONFIGURE_PROXY_SERVER = 'configure-proxy-server' SET_VTHUNDER_HOSTNAME = 'set-vthunder-hostname' WRITE_MEMORY_THUNDER_FLOW = 'write-memory-thunder-flow' RELOAD_CHECK_THUNDER_FLOW = 'reload-check-thunder-flow' LB_TO_VTHUNDER_SUBFLOW = 'lb-to-vthunder-subflow' GET_SPARE_AMPHORA_SBUFLOW = 'get-sapre_amphora-subflow' GET_LB_RESOURCE = 'get-lb-resource' GET_LB_RESOURCE_SUBNET = 'get-lb-resource-subnet' GET_PROJECT_COUNT = 'get-child-parent-project-count' GET_LB_COUNT_SUBNET = 'get-lb-count-by-subnet' UPDATE_LISTENER_STATS_FLOW = 'update-listener-stats-flow' GET_VTHUNDER_AMPHORA = 'get-vthunder-amphora' COMPUTE_DELETE = 'compute-delete' SET_VTHUNDER_TO_STANDBY = 'set-vthunder-to-standby' GET_LBS_BY_THUNDER = 'get-loadbalancers-by-thunder' MARK_LB_PENIND_UPDATE_IN_DB = 'mark-vthunder-pending-update-in-db' MARK_LB_ACTIVE_IN_DB = 'mark-vthunder-active-in-db' GET_VTHUNDER_NETWORK_LIST = 'get-vthunder-network-list' GET_AMPHORA_FOR_FAILOVER = 'get-amphora-for-failover' PLUG_NETWORK_BY_IDS = 'plug-network-by-ids' PLUG_VIP_NETWORK_ON_SPARE = 'plusg-vip-network-on-spare' POST_SPARE_PLUG_NETWORK = 'post-failover-plug-network' GET_VCS_DEVICE_ID = 'get-vcs-device-id' POST_FAILOVER_DB_UPDATE = 'post-failover-db-update' MARK_LB_LIST_ERROR_ON_REVERT = 'mark-lb-list-error-on-revert' # ====================== # Non-Taskflow Constants # ====================== OCTAVIA_OWNER = 'Octavia' TOPOLOGY_SPARE = 'SPARE' READY = "READY"
loadbalancers_list = 'loadbalancers_list' vrid_list = 'vrid_list' set_thunder_update_at = 'set-thunder-update-at' set_thunder_backup_update_at = 'set-thunder-backup-update-at' member_count_ip = 'member_count_ip' member_count_ip_port_protocol = 'member_count_ip_port_protocol' pool_count_ip = 'pool_count_ip' write_mem_shared_part = 'write_mem_shared_part' write_mem_for_shared_partition = 'write_memory_for_shared_partition' write_mem_for_local_partition = 'write_memory_for_local_partition' member_list = 'member_list' subnet_list = 'subnet_list' members = 'members' pools = 'pools' partition_project_list = 'partition_project_list' ifnum_backup = 'ifnum_backup' ifnum_master = 'ifnum_master' listener_stats = 'listener_stats' reloadload_balancer = 'octavia-reloadload-balancer' vthunder = 'vthunder' status = 'status' role = 'role' backup_vthunder = 'backup_vthunder' master_vthunder = 'master_vthunder' vrrp_status = 'vrrp_status' master_vrrp_status = 'master_vrrp_status' backup_vrrp_status = 'backup_vrrp_status' nat_pool = 'nat_pool' nat_flavor = 'nat_flavor' subnet_port = 'subnet_port' write_mem_shared = 'write_mem_shared' write_mem_private = 'write_mem_private' failed = 'FAILED' used_spare = 'USED_SPARE' spare_vthunder = 'spare_vthunder' failover_vthunder = 'failover_vthunder' octavia_health_manager_controller = 'octavia_health_manager_controller' octavia_health_monitor = 'octavia_health_monitor' vthunder_config = 'vthunder_config' device_config_dict = 'device_config_dict' device_key_prefix = '[dev]' use_device_flavor = 'use_device_flavor' vthunder_id = 'vthunder_id' device_id = 'device_id' set_id = 'set_id' vrid = 'vrid' device_priority = 'device_priority' floating_ip = 'floating_ip' floating_ip_mask = 'floating_ip_mask' cert_data = 'cert_data' sp_obj_dict = {'HTTP_COOKIE': 'cookie_persistence', 'APP_COOKIE': 'cookie_persistence', 'SOURCE_IP': 'src_ip_persistence'} http_type = ['HTTP', 'HTTPS'] pers_type = ['cookie_persistence', 'src_ip_persistence'] no_dest_nat_supported_protocol = ['tcp', 'udp'] port = 'port' lb_count = 'lb_count' lb_count_subnet = 'lb_count_subnet' lb_count_flavor = 'lb_count_flavor' member_count = 'member_count' delete_vrid = 'delete_vrid' lb_count_thunder = 'lb_count_thunder' member_count_thunder = 'member_count_thunder' lb_count_thunder_partition = 'lb_count_thunder_partition' id = 'id' security_groups = 'security_groups' vip_sec_group_prefix = 'lb-' lb_resource = 'lb_resource' subnet_id = 'subnet_id' vlan_id = 'vlan_id' tag_interface = 'tag_interface' ve_interface = 've_interface' delete_vlan = 'delete_vlan' vlan = 'vlan' flat = 'flat' supported_network_type = [FLAT, VLAN] ssl_template = 'ssl_template' compute_busy = 'compute_busy' vthunder_list = 'vthunder_list' network_list = 'network_list' added_network = 'added_network' compute_paused = 'PAUSED' l2_dsr_flavor = 'l2dsr_flavor' master_amphora_status = 'master_amphora_status' backup_amphora_status = 'backup_amphora_status' acos_5_2_1_p2 = '5.2.1-P2' get_vthunder_for_lb_subflow = 'octavia-get-vthunder-for-lb-subflow' backup_amphora_plug = 'backup-amphora-plug' get_master_vthunder_interface = 'get-master-vthunder-intercae' get_backup_vthunder_interface = 'get-backup-vthunder-intercae' master_connectivity_wait = 'master-connectivity-wait' backup_connectivity_wait = 'backup-connectivity-wait' enable_master_vthunder_interface = 'enable-master-vthunder-interface' enable_backup_vthunder_interface = 'enable-backup-vthunder-interface' enable_vthunder_interface = 'enable-vthunder-interface' master_enable_interface = 'master-enable-interface' backup_enable_interface = 'backup-enable-interface' mark_vthunder_master_active_in_db = 'mark-vthunder-master-active-in-db' mark_vthunder_backup_active_in_db = 'mark-vthunder-backup-active-in-db' mark_vthunder_master_deleted_in_db = 'mark-vthunder-master-deleted-in-db' mark_vthunder_backup_deleted_in_db = 'mark-vthunder-backup-deleted-in-db' get_backup_vthunder_by_lb = 'get-backup-vthunder-by-lb' get_vthunder_from_lb = 'get-vthunder-from-lb' create_health_monitor_on_vthunder = 'create-health-monitor-on-vthunder' create_health_monitor_on_spare = 'create-health-monitor-on-spare' mark_amphora_ready_indb = 'mark-amphora-ready-indb' handle_sess_pers = 'handle-session-persistence-delta-subflow' get_loadbalancer_from_db = 'Get-Loadbalancer-from-db' get_backup_loadbalancer_from_db = 'get-backup-loadbalancer-from-db' configure_vrrp_for_master_vthunder = 'configure-vrrp-for-master-vthunder' configure_vrrp_for_backup_vthunder = 'configure-vrrp-for-backup-vthunder' configure_vrid_for_master_vthunder = 'configure-vrid-for-master-vthunder' configure_vrid_for_backup_vthunder = 'configure-vrid-for-backup-vthunder' wait_for_master_sync = 'wait-for-master-sync' wait_for_backup_sync = 'wait-for-backup-sync' configure_avcs_sync_for_master = 'configure-avcs-sync-for-master' configure_avcs_sync_for_backup = 'configure-avcs-sync-for-backup' configure_avcs_for_failover = 'configure-avcs-for-failover' check_vrrp_status = 'check-vrrp-status' check_vrrp_master_status = 'check-vrrp-master-status' check_vrrp_backup_status = 'check-vrrp-backup-status' confirm_vrrp_status = 'confirm-vrrp-status' add_vrrp_set_id_indb = 'add-vrrp-set-id-db' delete_vrrp_set_id_indb = 'delete-vrrp-set-id-db' get_vrrp_set_id_indb = 'get-vrrp-set-id-db' allocate_vip = 'allocate-vip' update_vip_after_allocation = 'update-vip-after-allocation' allow_l2_dsr = 'allow-l2dsr' allow_no_snat = 'allow-no-snat' amphorae_post_vip_plug = 'amphorae-post-vip-plug' amphora_post_network_unplug = 'amphorae-post-network-plug' amphora_post_network_unplug_for_backup_vthunder = 'amphorae-post-network-plug-for-backup-vthunder' amp_post_vip_plug = 'amp-post-vip-plug' amphorae_post_vip_plug_for_master = 'amphorae-post-vip-plug-for-master' amphorae_post_vip_plug_for_backup = 'amphorae-post-vip-plug-for-backup' vcs_reload = 'vcs-reload' get_backup_vthunder = 'get-backup-vthunder' get_master_vthunder = 'get-master-vthunder' connectivity_wait_for_master_vthunder = 'connectivity-wait-for-master-vthunder' connectivity_wait_for_backup_vthunder = 'connectivity-wait-for-backup-vthunder' get_vthunder_master = 'get-vthunder-master' wait_for_master_vcs_reload = 'wait-for-master-vcs-reload' wait_for_backup_vcs_reload = 'wait-for-backup-vcs-reload' vcs_sync_wait = 'wait-for-vcs_ready' get_compute_for_project = 'get-compute-for-project' validate_compute_for_project = 'validate-compute-for-project' get_spare_compute_for_project = 'get-spare-compute-for-project' delete_stale_spare_vthunder = 'delete-stale-spare-vthunder' create_vthunder_entry = 'create-vthunder-entry' update_acos_version_in_vthunder_entry = 'update-acos-version-in-vthunder-entry' update_acos_version_for_backup_vthunder = 'update-acos-version-for-backup-vthunder' vthunder_by_lb = 'vthunder-by-loadbalancer' get_vthunder_by_lb = 'get-vthunder-by-lb' vthunder_connectivity_wait = 'vthunder-connectivity-wait' wait_for_vthunder_connectivity = 'wait-for-vthunder-connectivity' change_partition = 'change-partition' create_ssl_cert_flow = 'create-ssl-cert-flow' delete_ssl_cert_flow = 'delete-ssl-cert-flow' listener_type_decider_flow = 'listener_type_decider_flow' delete_loadbalancer_vrid_subflow = 'delete-loadbalancer-vrid-subflow' revoke_active_vthunder_license = 'revoke-active-vthunder-license' revoke_backup_vthunder_license = 'revoke-backup-vthunder-license' handle_vrid_loadbalancer_subflow = 'handle-vrid-loadbalancer-subflow' create_member_snat_pool_subflow = 'create-member-snat-pool-subflow' delete_member_vthunder_internal_subflow = 'delete-member-vthunder-internal-subflow' delete_member_vrid_subflow = 'delete-member-vrid-subflow' delete_member_vrid_internal_subflow = 'delete-member-vrid-internal-subflow' delete_health_monitor_vthunder_subflow = 'delete-hm-vthunder-subflow' delete_health_monitor_subflow_with_pool_delete_flow = 'delete-health-monitor-subflow-with-pool-delete-flow' delete_members_subflow_with_pool_delete_flow = 'delete-members-subflow-with-pool-delete-flow' handle_vrid_member_subflow = 'handle-vrid-member-subflow' spare_vthunder_create = 'spare-vthunder-create' activate_glm_license_subflow = 'activate-glm-license-subflow' configure_dns_nameservers = 'configure-dns-nameservers' activate_flexpool_license = 'activate-flexpool-license' configure_proxy_server = 'configure-proxy-server' set_vthunder_hostname = 'set-vthunder-hostname' write_memory_thunder_flow = 'write-memory-thunder-flow' reload_check_thunder_flow = 'reload-check-thunder-flow' lb_to_vthunder_subflow = 'lb-to-vthunder-subflow' get_spare_amphora_sbuflow = 'get-sapre_amphora-subflow' get_lb_resource = 'get-lb-resource' get_lb_resource_subnet = 'get-lb-resource-subnet' get_project_count = 'get-child-parent-project-count' get_lb_count_subnet = 'get-lb-count-by-subnet' update_listener_stats_flow = 'update-listener-stats-flow' get_vthunder_amphora = 'get-vthunder-amphora' compute_delete = 'compute-delete' set_vthunder_to_standby = 'set-vthunder-to-standby' get_lbs_by_thunder = 'get-loadbalancers-by-thunder' mark_lb_penind_update_in_db = 'mark-vthunder-pending-update-in-db' mark_lb_active_in_db = 'mark-vthunder-active-in-db' get_vthunder_network_list = 'get-vthunder-network-list' get_amphora_for_failover = 'get-amphora-for-failover' plug_network_by_ids = 'plug-network-by-ids' plug_vip_network_on_spare = 'plusg-vip-network-on-spare' post_spare_plug_network = 'post-failover-plug-network' get_vcs_device_id = 'get-vcs-device-id' post_failover_db_update = 'post-failover-db-update' mark_lb_list_error_on_revert = 'mark-lb-list-error-on-revert' octavia_owner = 'Octavia' topology_spare = 'SPARE' ready = 'READY'
lots_of_numbers = range(-1000, 1000) the_same_numbers = range(-1000, 1000) same_numbers = ( i for i, j in zip(lots_of_numbers, the_same_numbers) if i is j ) print(*same_numbers, sep=", ")
lots_of_numbers = range(-1000, 1000) the_same_numbers = range(-1000, 1000) same_numbers = (i for (i, j) in zip(lots_of_numbers, the_same_numbers) if i is j) print(*same_numbers, sep=', ')
def rotate(string, n): """Rotate characters in a string. Expects string and n (int) for number of characters to move. """ return string[n:] + string[:n] print (rotate('pybites loves julian and bob!',-15))
def rotate(string, n): """Rotate characters in a string. Expects string and n (int) for number of characters to move. """ return string[n:] + string[:n] print(rotate('pybites loves julian and bob!', -15))
class Config: BOT_TOKEN = '' # from @botfather APP_ID = '' # from https://my.telegram.org/apps API_HASH = '' # from https://my.telegram.org/apps API_KEY = '' # from https://mixdrop.co API_EMAIL = '' # from https://mixdrop.co AUTH_USERS = [694380168] # ADD YOUR USER ID
class Config: bot_token = '' app_id = '' api_hash = '' api_key = '' api_email = '' auth_users = [694380168]
debug = True run = { "echo": True }
debug = True run = {'echo': True}
age = float(input()) gender = input() if gender =="m": if age >= 16: print("Mr.") else: print("Master") if gender == "f": if age >= 16: print("Ms.") else: print("Miss")
age = float(input()) gender = input() if gender == 'm': if age >= 16: print('Mr.') else: print('Master') if gender == 'f': if age >= 16: print('Ms.') else: print('Miss')
""" Asked by: Snapchat [Easy]. Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required. For example, given [(30, 75), (0, 50), (60, 150)], you should return 2. """
""" Asked by: Snapchat [Easy]. Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required. For example, given [(30, 75), (0, 50), (60, 150)], you should return 2. """
T = int(input()) if 1 <= T <= 100: for i in range(T): N = int(input()) a = [] for j in range(N - 1): l = int(input()) if l <= N: a.append(l) for k in range(1, N + 1): if k not in a: print(k)
t = int(input()) if 1 <= T <= 100: for i in range(T): n = int(input()) a = [] for j in range(N - 1): l = int(input()) if l <= N: a.append(l) for k in range(1, N + 1): if k not in a: print(k)
# # PySNMP MIB module ALCATEL-IND1-IGMP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-IGMP-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:17:51 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) # softentIND1Igmp, = mibBuilder.importSymbols("ALCATEL-IND1-BASE", "softentIND1Igmp") Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") InetAddressIPv4, InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressIPv4", "InetAddressType", "InetAddress") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") Unsigned32, Bits, MibIdentifier, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Counter64, IpAddress, Counter32, iso, NotificationType, Integer32, ModuleIdentity, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Bits", "MibIdentifier", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Counter64", "IpAddress", "Counter32", "iso", "NotificationType", "Integer32", "ModuleIdentity", "ObjectIdentity") RowStatus, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "DisplayString") alcatelIND1IgmpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1)) alcatelIND1IgmpMIB.setRevisions(('2011-02-23 00:00', '2009-03-31 00:00', '2008-09-10 00:00', '2008-08-08 00:00', '2007-04-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setRevisionsDescriptions(('Add zero-based query object', 'IGMP helper address changes', 'Add flood unknown object', 'The latest version of this MIB Module. Added maximum group limit objects.', 'The revised version of this MIB Module.',)) if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setLastUpdated('201102230000Z') if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: [email protected] World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Proprietary IPv4 Multicast MIB definitions The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') alcatelIND1IgmpMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1)) alaIgmp = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1)) alaIgmpStatus = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStatus.setDescription('Administratively enable IPv4 multicast switching and routing on the system.') alaIgmpQuerying = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpQuerying.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerying.setDescription('Administratively enable IGMP Querying on the system.') alaIgmpSpoofing = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpSpoofing.setStatus('current') if mibBuilder.loadTexts: alaIgmpSpoofing.setDescription('Administratively enable IGMP Spoofing on the system.') alaIgmpZapping = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpZapping.setStatus('current') if mibBuilder.loadTexts: alaIgmpZapping.setDescription('Administratively enable IGMP Zapping on the system.') alaIgmpVersion = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 5), Unsigned32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVersion.setStatus('current') if mibBuilder.loadTexts: alaIgmpVersion.setDescription('Set the default IGMP protocol Version running on the system.') alaIgmpRobustness = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 6), Unsigned32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpRobustness.setStatus('current') if mibBuilder.loadTexts: alaIgmpRobustness.setDescription('Set the IGMP Robustness variable used on the system.') alaIgmpQueryInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 7), Unsigned32().clone(125)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpQueryInterval.setDescription('Set the IGMP Query Interval used on the system.') alaIgmpQueryResponseInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 8), Unsigned32().clone(100)).setUnits('tenths of seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpQueryResponseInterval.setDescription('Set the IGMP Query Response Interval on the system.') alaIgmpLastMemberQueryInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 9), Unsigned32().clone(10)).setUnits('tenths of seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpLastMemberQueryInterval.setDescription('Set the IGMP Last Member Query Interval on the system.') alaIgmpRouterTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 10), Unsigned32().clone(90)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpRouterTimeout.setDescription('The IGMP Router Timeout on the system.') alaIgmpSourceTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 11), Unsigned32().clone(30)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceTimeout.setDescription('The IGMP Source Timeout on the system.') alaIgmpProxying = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpProxying.setStatus('current') if mibBuilder.loadTexts: alaIgmpProxying.setDescription('Administratively enable IGMP Proxying on the system.') alaIgmpUnsolicitedReportInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 13), Unsigned32().clone(1)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpUnsolicitedReportInterval.setDescription('The IGMP Unsolicited Report Interval on the system.') alaIgmpQuerierForwarding = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierForwarding.setDescription('Administratively enable IGMP Querier Forwarding on the system.') alaIgmpMaxGroupLimit = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 15), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpMaxGroupLimit.setDescription('The global limit on maximum number of IGMP Group memberships that can be learnt on each port/vlan instance.') alaIgmpMaxGroupExceedAction = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpMaxGroupExceedAction.setDescription('The global configuration of action to be taken when IGMP group membership limit is exceeded on a port/vlan instance.') alaIgmpFloodUnknown = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpFloodUnknown.setStatus('current') if mibBuilder.loadTexts: alaIgmpFloodUnknown.setDescription('Administratively enable flooding of multicast data packets during flow learning and setup.') alaIgmpHelperAddressType = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 18), InetAddressType().subtype(subtypeSpec=ValueRangeConstraint(1, 1))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpHelperAddressType.setStatus('current') if mibBuilder.loadTexts: alaIgmpHelperAddressType.setDescription('Set the address type of the helper address. Must be ipv4(1) and set at the same time as alaIgmpHelperAddress.') alaIgmpHelperAddress = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 19), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpHelperAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpHelperAddress.setDescription('The configured IPv4 helper address. When an IGMP report or leave is received by the device it will remove the IP header and regenerate a new IP header with a destination IP address specified. Use 0.0.0.0 to no longer help an IGMP report to an remote address. Must be set at the same time as alaIgmpHelperAddressType') alaIgmpZeroBasedQuery = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaIgmpZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv4 address for query packets when a non-querier is querying the membership of a port') alaIgmpVlan = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2)) alaIgmpVlanTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1), ) if mibBuilder.loadTexts: alaIgmpVlanTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanTable.setDescription('The VLAN table contains the information on which IPv4 multicast switching and routing is configured.') alaIgmpVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanIndex")) if mibBuilder.loadTexts: alaIgmpVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanEntry.setDescription('An entry corresponds to a VLAN on which IPv4 multicast switching and routing is configured.') alaIgmpVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpVlanIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanIndex.setDescription('The VLAN on which IPv4 multicast switching and routing is configured.') alaIgmpVlanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanStatus.setDescription('Administratively enable IPv4 multicast switching and routing on the VLAN.') alaIgmpVlanQuerying = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanQuerying.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQuerying.setDescription('Administratively enable IGMP Querying on the VLAN.') alaIgmpVlanSpoofing = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanSpoofing.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanSpoofing.setDescription('Administratively enable IGMP Spoofing on the VLAN.') alaIgmpVlanZapping = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanZapping.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanZapping.setDescription('Administratively enable IGMP Zapping on the VLAN.') alaIgmpVlanVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 6), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanVersion.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanVersion.setDescription('Set the default IGMP protocol Version running on the VLAN.') alaIgmpVlanRobustness = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanRobustness.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanRobustness.setDescription('Set the IGMP Robustness variable used on the VLAN.') alaIgmpVlanQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQueryInterval.setDescription('Set the IGMP Query Interval used on the VLAN.') alaIgmpVlanQueryResponseInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 9), Unsigned32()).setUnits('tenths of seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQueryResponseInterval.setDescription('Set the IGMP Query Response Interval on the VLAN.') alaIgmpVlanLastMemberQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 10), Unsigned32()).setUnits('tenths of seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanLastMemberQueryInterval.setDescription('Set the IGMP Last Member Query Interval on the VLAN.') alaIgmpVlanRouterTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 11), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanRouterTimeout.setDescription('Set the IGMP Router Timeout on the VLAN.') alaIgmpVlanSourceTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 12), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanSourceTimeout.setDescription('Set the IGMP Source Timeout on the VLAN.') alaIgmpVlanProxying = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanProxying.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanProxying.setDescription('Administratively enable IGMP Proxying on the VLAN.') alaIgmpVlanUnsolicitedReportInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 14), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanUnsolicitedReportInterval.setDescription('Set the IGMP Unsolicited Report Interval on the VLAN.') alaIgmpVlanQuerierForwarding = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQuerierForwarding.setDescription('Administratively enable IGMP Querier Forwarding on the VLAN.') alaIgmpVlanMaxGroupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 16), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanMaxGroupLimit.setDescription('The maximum number of IGMP Group memberships that can be learnt on the VLAN.') alaIgmpVlanMaxGroupExceedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanMaxGroupExceedAction.setDescription('The action to be taken when the IGMP group membership limit is exceeded on the VLAN.') alaIgmpVlanZeroBasedQuery = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpVlanZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv4 address for query packets when a non-querier is querying the membership of a port on the VLAN') alaIgmpMember = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3)) alaIgmpMemberTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1), ) if mibBuilder.loadTexts: alaIgmpMemberTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberTable.setDescription('The table listing the IGMP group membership information.') alaIgmpMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberIfIndex"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberGroupAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberSourceAddress")) if mibBuilder.loadTexts: alaIgmpMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberEntry.setDescription('An entry corresponding to an IGMP group membership request.') alaIgmpMemberVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberVlan.setDescription("The group membership request's VLAN.") alaIgmpMemberIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberIfIndex.setDescription("The group membership request's ifIndex.") alaIgmpMemberGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberGroupAddress.setDescription("The group membership request's IPv4 group address.") alaIgmpMemberSourceAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 4), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpMemberSourceAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberSourceAddress.setDescription("The group membership request's IPv4 source address.") alaIgmpMemberMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("include", 1), ("exclude", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpMemberMode.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberMode.setDescription("The group membership request's IGMP source filter mode.") alaIgmpMemberCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpMemberCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberCount.setDescription("The group membership request's counter.") alaIgmpMemberTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 7), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpMemberTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberTimeout.setDescription("The group membership request's timeout.") alaIgmpStaticMember = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4)) alaIgmpStaticMemberTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1), ) if mibBuilder.loadTexts: alaIgmpStaticMemberTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberTable.setDescription('The table listing the static IGMP group membership information.') alaIgmpStaticMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticMemberVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticMemberIfIndex"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticMemberGroupAddress")) if mibBuilder.loadTexts: alaIgmpStaticMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberEntry.setDescription('An entry corresponding to a static IGMP group membership request.') alaIgmpStaticMemberVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpStaticMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberVlan.setDescription("The static group membership request's VLAN.") alaIgmpStaticMemberIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpStaticMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberIfIndex.setDescription("The static group membership request's ifIndex.") alaIgmpStaticMemberGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpStaticMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberGroupAddress.setDescription("The static group membership request's IPv4 group address.") alaIgmpStaticMemberRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alaIgmpStaticMemberRowStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') alaIgmpNeighbor = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5)) alaIgmpNeighborTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1), ) if mibBuilder.loadTexts: alaIgmpNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborTable.setDescription('The table listing the neighboring IP multicast routers.') alaIgmpNeighborEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpNeighborVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpNeighborIfIndex"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpNeighborHostAddress")) if mibBuilder.loadTexts: alaIgmpNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborEntry.setDescription('An entry corresponding to an IP multicast router.') alaIgmpNeighborVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborVlan.setDescription("The IP multicast router's VLAN.") alaIgmpNeighborIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborIfIndex.setDescription("The IP multicast router's ifIndex.") alaIgmpNeighborHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpNeighborHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborHostAddress.setDescription("The IP multicast router's IPv4 host address.") alaIgmpNeighborCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpNeighborCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborCount.setDescription("The IP multicast router's counter.") alaIgmpNeighborTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpNeighborTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborTimeout.setDescription("The IP multicast router's timeout.") alaIgmpStaticNeighbor = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6)) alaIgmpStaticNeighborTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1), ) if mibBuilder.loadTexts: alaIgmpStaticNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborTable.setDescription('The table listing the static IP multicast routers.') alaIgmpStaticNeighborEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticNeighborVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticNeighborIfIndex")) if mibBuilder.loadTexts: alaIgmpStaticNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborEntry.setDescription('An entry corresponding to a static IP multicast router.') alaIgmpStaticNeighborVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpStaticNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborVlan.setDescription("The static IP multicast router's VLAN.") alaIgmpStaticNeighborIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpStaticNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborIfIndex.setDescription("The static IP multicast router's ifIndex.") alaIgmpStaticNeighborRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alaIgmpStaticNeighborRowStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') alaIgmpQuerier = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7)) alaIgmpQuerierTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1), ) if mibBuilder.loadTexts: alaIgmpQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierTable.setDescription('The table listing the neighboring IGMP queriers.') alaIgmpQuerierEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierIfIndex"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierHostAddress")) if mibBuilder.loadTexts: alaIgmpQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierEntry.setDescription('An entry corresponding to an IGMP querier.') alaIgmpQuerierVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierVlan.setDescription("The IGMP querier's VLAN.") alaIgmpQuerierIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierIfIndex.setDescription("The IGMP querier's ifIndex.") alaIgmpQuerierHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpQuerierHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierHostAddress.setDescription("The IGMP querier's IPv4 host address.") alaIgmpQuerierCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpQuerierCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierCount.setDescription("The IGMP querier's counter.") alaIgmpQuerierTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpQuerierTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierTimeout.setDescription("The IGMP querier's timeout.") alaIgmpStaticQuerier = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8)) alaIgmpStaticQuerierTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1), ) if mibBuilder.loadTexts: alaIgmpStaticQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierTable.setDescription('The table listing the static IGMP queriers.') alaIgmpStaticQuerierEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticQuerierVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticQuerierIfIndex")) if mibBuilder.loadTexts: alaIgmpStaticQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierEntry.setDescription('An entry corresponding to a static IGMP querier.') alaIgmpStaticQuerierVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpStaticQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierVlan.setDescription("The static IGMP querier's VLAN.") alaIgmpStaticQuerierIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpStaticQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierIfIndex.setDescription("The static IGMP querier's ifIndex.") alaIgmpStaticQuerierRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alaIgmpStaticQuerierRowStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') alaIgmpSource = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9)) alaIgmpSourceTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1), ) if mibBuilder.loadTexts: alaIgmpSourceTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceTable.setDescription('The table listing the IP multicast source information.') alaIgmpSourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceGroupAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceHostAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceDestAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceOrigAddress")) if mibBuilder.loadTexts: alaIgmpSourceEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceEntry.setDescription('An entry corresponding to an IP multicast source flow.') alaIgmpSourceVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpSourceVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceVlan.setDescription("The IP multicast source flow's VLAN.") alaIgmpSourceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpSourceIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceIfIndex.setDescription("The IP multicast source flow's ifIndex.") alaIgmpSourceGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpSourceGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceGroupAddress.setDescription("The IP multicast source flow's IPv4 group address.") alaIgmpSourceHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 4), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpSourceHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceHostAddress.setDescription("The IP multicast source flow's IPv4 host address.") alaIgmpSourceDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 5), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpSourceDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceDestAddress.setDescription("The IP multicast source flow's IPv4 tunnel destination address.") alaIgmpSourceOrigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 6), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpSourceOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceOrigAddress.setDescription("The IP multicast source flow's IPv4 tunnel source address.") alaIgmpSourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2), ("ipip", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpSourceType.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceType.setDescription("The IP multicast source flow's encapsulation type.") alaIgmpForward = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10)) alaIgmpForwardTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1), ) if mibBuilder.loadTexts: alaIgmpForwardTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardTable.setDescription('The table listing the IP multicast forward information.') alaIgmpForwardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardGroupAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardHostAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardDestAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardOrigAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardNextVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardNextIfIndex")) if mibBuilder.loadTexts: alaIgmpForwardEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardEntry.setDescription('An entry corresponding to an IP multicast forwarded flow.') alaIgmpForwardVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpForwardVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardVlan.setDescription("The IP multicast forwarded flow's VLAN.") alaIgmpForwardIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpForwardIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardIfIndex.setDescription("The IP multicast forwarded flow's ifIndex.") alaIgmpForwardGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpForwardGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardGroupAddress.setDescription("The IP multicast forwarded flow's IPv4 group address.") alaIgmpForwardHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 4), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpForwardHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardHostAddress.setDescription("The IP multicast forwarded flow's IPv4 host address.") alaIgmpForwardDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 5), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpForwardDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardDestAddress.setDescription("The IP multicast forwarded flow's IPv4 tunnel destination address.") alaIgmpForwardOrigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 6), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpForwardOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardOrigAddress.setDescription("The IP multicast forwarded flow's IPv4 tunnel source address.") alaIgmpForwardType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2), ("ipip", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpForwardType.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardType.setDescription("The IP multicast forwarded flow's encapsulation type.") alaIgmpForwardNextVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 8), Unsigned32()) if mibBuilder.loadTexts: alaIgmpForwardNextVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardNextVlan.setDescription("The IP multicast forwarded flow's next VLAN.") alaIgmpForwardNextIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 9), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpForwardNextIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardNextIfIndex.setDescription("The IP multicast forwarded flow's next ifIndex.") alaIgmpForwardNextType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2), ("ipip", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpForwardNextType.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardNextType.setDescription("The IP multicast forwarded flow's next encapsulation type.") alaIgmpTunnel = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11)) alaIgmpTunnelTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1), ) if mibBuilder.loadTexts: alaIgmpTunnelTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelTable.setDescription('The table listing the IP multicast tunnel information.') alaIgmpTunnelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelVlan"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelGroupAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelHostAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelDestAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelOrigAddress"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelNextDestAddress")) if mibBuilder.loadTexts: alaIgmpTunnelEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelEntry.setDescription('An entry corresponding to an IP multicast tunneled flow.') alaIgmpTunnelVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpTunnelVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelVlan.setDescription("The IP multicast tunneled flow's VLAN.") alaIgmpTunnelIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpTunnelIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelIfIndex.setDescription("The IP multicast tunneled flow's ifIndex.") alaIgmpTunnelGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 3), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpTunnelGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelGroupAddress.setDescription("The IP multicast tunneled flow's IPv4 group address.") alaIgmpTunnelHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 4), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpTunnelHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelHostAddress.setDescription("The IP multicast tunneled flow's IPv4 host address.") alaIgmpTunnelDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 5), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpTunnelDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelDestAddress.setDescription("The IP multicast tunneled flow's IPv4 tunnel destination address.") alaIgmpTunnelOrigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 6), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpTunnelOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelOrigAddress.setDescription("The IP multicast tunneled flow's IPv4 tunnel source address.") alaIgmpTunnelType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2), ("ipip", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpTunnelType.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelType.setDescription("The IP multicast tunneled flow's encapsulation type.") alaIgmpTunnelNextDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 8), InetAddressIPv4()) if mibBuilder.loadTexts: alaIgmpTunnelNextDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelNextDestAddress.setDescription("The IP multicast tunneled flow's next IPv4 tunnel destination address.") alaIgmpTunnelNextType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2), ("ipip", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpTunnelNextType.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelNextType.setDescription("The IP multicast tunneled flow's next encapsulation type.") alaIgmpPort = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12)) alaIgmpPortTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1), ) if mibBuilder.loadTexts: alaIgmpPortTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortTable.setDescription('The table listing the IP multicast port information.') alaIgmpPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpPortIfIndex")) if mibBuilder.loadTexts: alaIgmpPortEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortEntry.setDescription('An entry corresponding to IP multicast port information.') alaIgmpPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: alaIgmpPortIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortIfIndex.setDescription("The IP multicast port's ifIndex.") alaIgmpPortMaxGroupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1, 2), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpPortMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortMaxGroupLimit.setDescription('The maximum number of IGMP Group memberships that can be learnt on the port.') alaIgmpPortMaxGroupExceedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaIgmpPortMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortMaxGroupExceedAction.setDescription('The action to be taken when IGMP group membership limit is exceeded for the port.') alaIgmpPortVlan = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13)) alaIgmpPortVlanTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1), ) if mibBuilder.loadTexts: alaIgmpPortVlanTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanTable.setDescription('The table listing the IGMP group membership limit information for a port/vlan instance.') alaIgmpPortVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpPortIfIndex"), (0, "ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanId")) if mibBuilder.loadTexts: alaIgmpPortVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanEntry.setDescription('An entry corresponding to IGMP group membership limit on a port/vlan.') alaIgmpVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaIgmpVlanId.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanId.setDescription('The IP multicast group membership VLAN.') alaIgmpPortVlanCurrentGroupCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpPortVlanCurrentGroupCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanCurrentGroupCount.setDescription('The current IP multicast group memberships on a port/vlan instance.') alaIgmpPortVlanMaxGroupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupLimit.setDescription('Maximum IGMP Group memberships on the port/vlan instance.') alaIgmpPortVlanMaxGroupExceedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupExceedAction.setDescription('The action to be taken when IGMP group membership limit is exceeded for the port/vlan instance.') alcatelIND1IgmpMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2)) alcatelIND1IgmpMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 1)) alaIgmpCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 1, 1)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticMemberGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpNeighborGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticNeighborGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticQuerierGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortGroup"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortVlanGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpCompliance = alaIgmpCompliance.setStatus('current') if mibBuilder.loadTexts: alaIgmpCompliance.setDescription('The compliance statement for systems running IPv4 multicast switch and routing and implementing ALCATEL-IND1-IGMP-MIB.') alcatelIND1IgmpMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2)) alaIgmpGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 1)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpStatus"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerying"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpSpoofing"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpZapping"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVersion"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpRobustness"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpQueryInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpQueryResponseInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpLastMemberQueryInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpRouterTimeout"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceTimeout"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpProxying"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpUnsolicitedReportInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierForwarding"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpMaxGroupLimit"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpMaxGroupExceedAction"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpFloodUnknown"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpHelperAddressType"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpHelperAddress"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpZeroBasedQuery")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpGroup = alaIgmpGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpGroup.setDescription('A collection of objects to support management of IPv4 multicast switching and routing system configuration.') alaIgmpVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 2)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanStatus"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanQuerying"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanSpoofing"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanZapping"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanVersion"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanRobustness"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanQueryInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanQueryResponseInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanLastMemberQueryInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanRouterTimeout"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanSourceTimeout"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanProxying"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanUnsolicitedReportInterval"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanQuerierForwarding"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanMaxGroupLimit"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanMaxGroupExceedAction"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpVlanZeroBasedQuery")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpVlanGroup = alaIgmpVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanGroup.setDescription('A collection of objects to support management of IPv4 multicast switching and routing vlan configuration.') alaIgmpMemberGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 3)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberMode"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberCount"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpMemberTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpMemberGroup = alaIgmpMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing group membership information.') alaIgmpStaticMemberGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 4)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticMemberRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpStaticMemberGroup = alaIgmpStaticMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing static group membership information tables.') alaIgmpNeighborGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 5)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpNeighborCount"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpNeighborTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpNeighborGroup = alaIgmpNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast router information.') alaIgmpStaticNeighborGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 6)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticNeighborRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpStaticNeighborGroup = alaIgmpStaticNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing static IP multicast router information.') alaIgmpQuerierGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 7)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierCount"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpQuerierTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpQuerierGroup = alaIgmpQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IGMP querier information.') alaIgmpStaticQuerierGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 8)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpStaticQuerierRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpStaticQuerierGroup = alaIgmpStaticQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing static IGMP querier information.') alaIgmpSourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 9)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceIfIndex"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpSourceType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpSourceGroup = alaIgmpSourceGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast source information.') alaIgmpForwardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 10)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardIfIndex"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardType"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpForwardNextType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpForwardGroup = alaIgmpForwardGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast forward information.') alaIgmpTunnelGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 11)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelIfIndex"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelType"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpTunnelNextType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpTunnelGroup = alaIgmpTunnelGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast tunnel information.') alaIgmpPortGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 12)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortMaxGroupLimit"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortMaxGroupExceedAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpPortGroup = alaIgmpPortGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortGroup.setDescription('A collection of objects to support IPv4 multicast switching configuration.') alaIgmpPortVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 13)).setObjects(("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortVlanCurrentGroupCount"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortVlanMaxGroupLimit"), ("ALCATEL-IND1-IGMP-MIB", "alaIgmpPortVlanMaxGroupExceedAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaIgmpPortVlanGroup = alaIgmpPortVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanGroup.setDescription('An object to support IPv4 multicast switching group limit information for a port/vlan instance.') mibBuilder.exportSymbols("ALCATEL-IND1-IGMP-MIB", alaIgmpMember=alaIgmpMember, alaIgmpPortVlanMaxGroupLimit=alaIgmpPortVlanMaxGroupLimit, alaIgmpPortTable=alaIgmpPortTable, alaIgmpForward=alaIgmpForward, alaIgmpGroup=alaIgmpGroup, alaIgmpSourceOrigAddress=alaIgmpSourceOrigAddress, alaIgmpSourceIfIndex=alaIgmpSourceIfIndex, alaIgmpQuerierVlan=alaIgmpQuerierVlan, alaIgmpHelperAddressType=alaIgmpHelperAddressType, alaIgmpZeroBasedQuery=alaIgmpZeroBasedQuery, alaIgmpSourceTable=alaIgmpSourceTable, alaIgmpPortVlanCurrentGroupCount=alaIgmpPortVlanCurrentGroupCount, alaIgmp=alaIgmp, alaIgmpStaticMember=alaIgmpStaticMember, alaIgmpMemberGroupAddress=alaIgmpMemberGroupAddress, alaIgmpStaticMemberIfIndex=alaIgmpStaticMemberIfIndex, alaIgmpTunnelIfIndex=alaIgmpTunnelIfIndex, alaIgmpNeighborCount=alaIgmpNeighborCount, alaIgmpMemberMode=alaIgmpMemberMode, alaIgmpSourceHostAddress=alaIgmpSourceHostAddress, alaIgmpSourceGroup=alaIgmpSourceGroup, alaIgmpPortVlanEntry=alaIgmpPortVlanEntry, alaIgmpMemberVlan=alaIgmpMemberVlan, alaIgmpForwardNextType=alaIgmpForwardNextType, alaIgmpSourceEntry=alaIgmpSourceEntry, alaIgmpHelperAddress=alaIgmpHelperAddress, alaIgmpStaticMemberVlan=alaIgmpStaticMemberVlan, alcatelIND1IgmpMIBObjects=alcatelIND1IgmpMIBObjects, alaIgmpVlanLastMemberQueryInterval=alaIgmpVlanLastMemberQueryInterval, alaIgmpFloodUnknown=alaIgmpFloodUnknown, alcatelIND1IgmpMIBConformance=alcatelIND1IgmpMIBConformance, alaIgmpVlanVersion=alaIgmpVlanVersion, alaIgmpPortEntry=alaIgmpPortEntry, alaIgmpVlanZeroBasedQuery=alaIgmpVlanZeroBasedQuery, alaIgmpPortGroup=alaIgmpPortGroup, alaIgmpVlanMaxGroupExceedAction=alaIgmpVlanMaxGroupExceedAction, alaIgmpVlanZapping=alaIgmpVlanZapping, alaIgmpForwardDestAddress=alaIgmpForwardDestAddress, alaIgmpSource=alaIgmpSource, alaIgmpNeighborVlan=alaIgmpNeighborVlan, alaIgmpForwardGroupAddress=alaIgmpForwardGroupAddress, alaIgmpStaticQuerierEntry=alaIgmpStaticQuerierEntry, alaIgmpForwardHostAddress=alaIgmpForwardHostAddress, alaIgmpVersion=alaIgmpVersion, alaIgmpVlanStatus=alaIgmpVlanStatus, alaIgmpPort=alaIgmpPort, alaIgmpStaticQuerierGroup=alaIgmpStaticQuerierGroup, alaIgmpNeighborHostAddress=alaIgmpNeighborHostAddress, alaIgmpVlanGroup=alaIgmpVlanGroup, alaIgmpVlanUnsolicitedReportInterval=alaIgmpVlanUnsolicitedReportInterval, alaIgmpTunnelDestAddress=alaIgmpTunnelDestAddress, alaIgmpQueryInterval=alaIgmpQueryInterval, alaIgmpMaxGroupExceedAction=alaIgmpMaxGroupExceedAction, alaIgmpNeighborTimeout=alaIgmpNeighborTimeout, alaIgmpSourceDestAddress=alaIgmpSourceDestAddress, alaIgmpQuerierIfIndex=alaIgmpQuerierIfIndex, alaIgmpZapping=alaIgmpZapping, alaIgmpMemberTable=alaIgmpMemberTable, alaIgmpTunnelVlan=alaIgmpTunnelVlan, alaIgmpTunnelTable=alaIgmpTunnelTable, alaIgmpStaticNeighborGroup=alaIgmpStaticNeighborGroup, alaIgmpPortMaxGroupLimit=alaIgmpPortMaxGroupLimit, alaIgmpPortVlan=alaIgmpPortVlan, alaIgmpQuerierCount=alaIgmpQuerierCount, alaIgmpNeighborEntry=alaIgmpNeighborEntry, alaIgmpSourceTimeout=alaIgmpSourceTimeout, alcatelIND1IgmpMIBGroups=alcatelIND1IgmpMIBGroups, alaIgmpMemberIfIndex=alaIgmpMemberIfIndex, alaIgmpTunnelGroupAddress=alaIgmpTunnelGroupAddress, alaIgmpMemberEntry=alaIgmpMemberEntry, alaIgmpVlanIndex=alaIgmpVlanIndex, alaIgmpStaticMemberRowStatus=alaIgmpStaticMemberRowStatus, alaIgmpPortMaxGroupExceedAction=alaIgmpPortMaxGroupExceedAction, alaIgmpStaticNeighborVlan=alaIgmpStaticNeighborVlan, alaIgmpStaticQuerierRowStatus=alaIgmpStaticQuerierRowStatus, alaIgmpForwardNextIfIndex=alaIgmpForwardNextIfIndex, alaIgmpStaticNeighbor=alaIgmpStaticNeighbor, alaIgmpTunnelEntry=alaIgmpTunnelEntry, alaIgmpForwardIfIndex=alaIgmpForwardIfIndex, alaIgmpMaxGroupLimit=alaIgmpMaxGroupLimit, alaIgmpVlanId=alaIgmpVlanId, alaIgmpMemberGroup=alaIgmpMemberGroup, alaIgmpQuerierTimeout=alaIgmpQuerierTimeout, alaIgmpVlanRobustness=alaIgmpVlanRobustness, alaIgmpVlan=alaIgmpVlan, alaIgmpTunnelType=alaIgmpTunnelType, alaIgmpForwardEntry=alaIgmpForwardEntry, alaIgmpVlanSpoofing=alaIgmpVlanSpoofing, alaIgmpQuerierHostAddress=alaIgmpQuerierHostAddress, alaIgmpRouterTimeout=alaIgmpRouterTimeout, alaIgmpStaticMemberGroupAddress=alaIgmpStaticMemberGroupAddress, alaIgmpStaticQuerierVlan=alaIgmpStaticQuerierVlan, alaIgmpLastMemberQueryInterval=alaIgmpLastMemberQueryInterval, alaIgmpMemberSourceAddress=alaIgmpMemberSourceAddress, alaIgmpQuerierTable=alaIgmpQuerierTable, alaIgmpStaticMemberTable=alaIgmpStaticMemberTable, alaIgmpQuerierForwarding=alaIgmpQuerierForwarding, alaIgmpStaticNeighborEntry=alaIgmpStaticNeighborEntry, alaIgmpCompliance=alaIgmpCompliance, alaIgmpVlanQueryInterval=alaIgmpVlanQueryInterval, alaIgmpQuerying=alaIgmpQuerying, alaIgmpNeighbor=alaIgmpNeighbor, alaIgmpVlanProxying=alaIgmpVlanProxying, alaIgmpSourceVlan=alaIgmpSourceVlan, alaIgmpUnsolicitedReportInterval=alaIgmpUnsolicitedReportInterval, alaIgmpTunnel=alaIgmpTunnel, alaIgmpVlanSourceTimeout=alaIgmpVlanSourceTimeout, alaIgmpForwardNextVlan=alaIgmpForwardNextVlan, alaIgmpQuerier=alaIgmpQuerier, alaIgmpProxying=alaIgmpProxying, alaIgmpVlanQuerierForwarding=alaIgmpVlanQuerierForwarding, alaIgmpSpoofing=alaIgmpSpoofing, alaIgmpStaticQuerierTable=alaIgmpStaticQuerierTable, alcatelIND1IgmpMIB=alcatelIND1IgmpMIB, alaIgmpStaticNeighborRowStatus=alaIgmpStaticNeighborRowStatus, alaIgmpStatus=alaIgmpStatus, alaIgmpForwardType=alaIgmpForwardType, alaIgmpVlanTable=alaIgmpVlanTable, alaIgmpQueryResponseInterval=alaIgmpQueryResponseInterval, alaIgmpStaticNeighborIfIndex=alaIgmpStaticNeighborIfIndex, alaIgmpForwardGroup=alaIgmpForwardGroup, alaIgmpTunnelHostAddress=alaIgmpTunnelHostAddress, alaIgmpPortVlanTable=alaIgmpPortVlanTable, alaIgmpStaticMemberGroup=alaIgmpStaticMemberGroup, alaIgmpTunnelNextDestAddress=alaIgmpTunnelNextDestAddress, alcatelIND1IgmpMIBCompliances=alcatelIND1IgmpMIBCompliances, alaIgmpNeighborIfIndex=alaIgmpNeighborIfIndex, alaIgmpVlanQueryResponseInterval=alaIgmpVlanQueryResponseInterval, alaIgmpForwardTable=alaIgmpForwardTable, alaIgmpStaticQuerierIfIndex=alaIgmpStaticQuerierIfIndex, alaIgmpVlanMaxGroupLimit=alaIgmpVlanMaxGroupLimit, alaIgmpRobustness=alaIgmpRobustness, alaIgmpTunnelNextType=alaIgmpTunnelNextType, alaIgmpQuerierEntry=alaIgmpQuerierEntry, PYSNMP_MODULE_ID=alcatelIND1IgmpMIB, alaIgmpMemberTimeout=alaIgmpMemberTimeout, alaIgmpStaticQuerier=alaIgmpStaticQuerier, alaIgmpPortVlanMaxGroupExceedAction=alaIgmpPortVlanMaxGroupExceedAction, alaIgmpVlanQuerying=alaIgmpVlanQuerying, alaIgmpVlanRouterTimeout=alaIgmpVlanRouterTimeout, alaIgmpForwardOrigAddress=alaIgmpForwardOrigAddress, alaIgmpQuerierGroup=alaIgmpQuerierGroup, alaIgmpPortVlanGroup=alaIgmpPortVlanGroup, alaIgmpForwardVlan=alaIgmpForwardVlan, alaIgmpNeighborGroup=alaIgmpNeighborGroup, alaIgmpSourceType=alaIgmpSourceType, alaIgmpSourceGroupAddress=alaIgmpSourceGroupAddress, alaIgmpPortIfIndex=alaIgmpPortIfIndex, alaIgmpVlanEntry=alaIgmpVlanEntry, alaIgmpMemberCount=alaIgmpMemberCount, alaIgmpTunnelGroup=alaIgmpTunnelGroup, alaIgmpStaticMemberEntry=alaIgmpStaticMemberEntry, alaIgmpTunnelOrigAddress=alaIgmpTunnelOrigAddress, alaIgmpStaticNeighborTable=alaIgmpStaticNeighborTable, alaIgmpNeighborTable=alaIgmpNeighborTable)
(softent_ind1_igmp,) = mibBuilder.importSymbols('ALCATEL-IND1-BASE', 'softentIND1Igmp') (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (inet_address_i_pv4, inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressIPv4', 'InetAddressType', 'InetAddress') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (unsigned32, bits, mib_identifier, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, counter64, ip_address, counter32, iso, notification_type, integer32, module_identity, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Bits', 'MibIdentifier', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Counter64', 'IpAddress', 'Counter32', 'iso', 'NotificationType', 'Integer32', 'ModuleIdentity', 'ObjectIdentity') (row_status, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TextualConvention', 'DisplayString') alcatel_ind1_igmp_mib = module_identity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1)) alcatelIND1IgmpMIB.setRevisions(('2011-02-23 00:00', '2009-03-31 00:00', '2008-09-10 00:00', '2008-08-08 00:00', '2007-04-03 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setRevisionsDescriptions(('Add zero-based query object', 'IGMP helper address changes', 'Add flood unknown object', 'The latest version of this MIB Module. Added maximum group limit objects.', 'The revised version of this MIB Module.')) if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setLastUpdated('201102230000Z') if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: [email protected] World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1IgmpMIB.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Proprietary IPv4 Multicast MIB definitions The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') alcatel_ind1_igmp_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1)) ala_igmp = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1)) ala_igmp_status = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStatus.setDescription('Administratively enable IPv4 multicast switching and routing on the system.') ala_igmp_querying = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpQuerying.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerying.setDescription('Administratively enable IGMP Querying on the system.') ala_igmp_spoofing = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpSpoofing.setStatus('current') if mibBuilder.loadTexts: alaIgmpSpoofing.setDescription('Administratively enable IGMP Spoofing on the system.') ala_igmp_zapping = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpZapping.setStatus('current') if mibBuilder.loadTexts: alaIgmpZapping.setDescription('Administratively enable IGMP Zapping on the system.') ala_igmp_version = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 5), unsigned32().clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVersion.setStatus('current') if mibBuilder.loadTexts: alaIgmpVersion.setDescription('Set the default IGMP protocol Version running on the system.') ala_igmp_robustness = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 6), unsigned32().clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpRobustness.setStatus('current') if mibBuilder.loadTexts: alaIgmpRobustness.setDescription('Set the IGMP Robustness variable used on the system.') ala_igmp_query_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 7), unsigned32().clone(125)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpQueryInterval.setDescription('Set the IGMP Query Interval used on the system.') ala_igmp_query_response_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 8), unsigned32().clone(100)).setUnits('tenths of seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpQueryResponseInterval.setDescription('Set the IGMP Query Response Interval on the system.') ala_igmp_last_member_query_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 9), unsigned32().clone(10)).setUnits('tenths of seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpLastMemberQueryInterval.setDescription('Set the IGMP Last Member Query Interval on the system.') ala_igmp_router_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 10), unsigned32().clone(90)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpRouterTimeout.setDescription('The IGMP Router Timeout on the system.') ala_igmp_source_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 11), unsigned32().clone(30)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceTimeout.setDescription('The IGMP Source Timeout on the system.') ala_igmp_proxying = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpProxying.setStatus('current') if mibBuilder.loadTexts: alaIgmpProxying.setDescription('Administratively enable IGMP Proxying on the system.') ala_igmp_unsolicited_report_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 13), unsigned32().clone(1)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpUnsolicitedReportInterval.setDescription('The IGMP Unsolicited Report Interval on the system.') ala_igmp_querier_forwarding = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierForwarding.setDescription('Administratively enable IGMP Querier Forwarding on the system.') ala_igmp_max_group_limit = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 15), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpMaxGroupLimit.setDescription('The global limit on maximum number of IGMP Group memberships that can be learnt on each port/vlan instance.') ala_igmp_max_group_exceed_action = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpMaxGroupExceedAction.setDescription('The global configuration of action to be taken when IGMP group membership limit is exceeded on a port/vlan instance.') ala_igmp_flood_unknown = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpFloodUnknown.setStatus('current') if mibBuilder.loadTexts: alaIgmpFloodUnknown.setDescription('Administratively enable flooding of multicast data packets during flow learning and setup.') ala_igmp_helper_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 18), inet_address_type().subtype(subtypeSpec=value_range_constraint(1, 1))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpHelperAddressType.setStatus('current') if mibBuilder.loadTexts: alaIgmpHelperAddressType.setDescription('Set the address type of the helper address. Must be ipv4(1) and set at the same time as alaIgmpHelperAddress.') ala_igmp_helper_address = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 19), inet_address().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpHelperAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpHelperAddress.setDescription('The configured IPv4 helper address. When an IGMP report or leave is received by the device it will remove the IP header and regenerate a new IP header with a destination IP address specified. Use 0.0.0.0 to no longer help an IGMP report to an remote address. Must be set at the same time as alaIgmpHelperAddressType') ala_igmp_zero_based_query = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaIgmpZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv4 address for query packets when a non-querier is querying the membership of a port') ala_igmp_vlan = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2)) ala_igmp_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1)) if mibBuilder.loadTexts: alaIgmpVlanTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanTable.setDescription('The VLAN table contains the information on which IPv4 multicast switching and routing is configured.') ala_igmp_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanIndex')) if mibBuilder.loadTexts: alaIgmpVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanEntry.setDescription('An entry corresponds to a VLAN on which IPv4 multicast switching and routing is configured.') ala_igmp_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpVlanIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanIndex.setDescription('The VLAN on which IPv4 multicast switching and routing is configured.') ala_igmp_vlan_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanStatus.setDescription('Administratively enable IPv4 multicast switching and routing on the VLAN.') ala_igmp_vlan_querying = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanQuerying.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQuerying.setDescription('Administratively enable IGMP Querying on the VLAN.') ala_igmp_vlan_spoofing = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanSpoofing.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanSpoofing.setDescription('Administratively enable IGMP Spoofing on the VLAN.') ala_igmp_vlan_zapping = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanZapping.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanZapping.setDescription('Administratively enable IGMP Zapping on the VLAN.') ala_igmp_vlan_version = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 6), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanVersion.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanVersion.setDescription('Set the default IGMP protocol Version running on the VLAN.') ala_igmp_vlan_robustness = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 7), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanRobustness.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanRobustness.setDescription('Set the IGMP Robustness variable used on the VLAN.') ala_igmp_vlan_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 8), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQueryInterval.setDescription('Set the IGMP Query Interval used on the VLAN.') ala_igmp_vlan_query_response_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 9), unsigned32()).setUnits('tenths of seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQueryResponseInterval.setDescription('Set the IGMP Query Response Interval on the VLAN.') ala_igmp_vlan_last_member_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 10), unsigned32()).setUnits('tenths of seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanLastMemberQueryInterval.setDescription('Set the IGMP Last Member Query Interval on the VLAN.') ala_igmp_vlan_router_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 11), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanRouterTimeout.setDescription('Set the IGMP Router Timeout on the VLAN.') ala_igmp_vlan_source_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 12), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanSourceTimeout.setDescription('Set the IGMP Source Timeout on the VLAN.') ala_igmp_vlan_proxying = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanProxying.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanProxying.setDescription('Administratively enable IGMP Proxying on the VLAN.') ala_igmp_vlan_unsolicited_report_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 14), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanUnsolicitedReportInterval.setDescription('Set the IGMP Unsolicited Report Interval on the VLAN.') ala_igmp_vlan_querier_forwarding = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanQuerierForwarding.setDescription('Administratively enable IGMP Querier Forwarding on the VLAN.') ala_igmp_vlan_max_group_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 16), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanMaxGroupLimit.setDescription('The maximum number of IGMP Group memberships that can be learnt on the VLAN.') ala_igmp_vlan_max_group_exceed_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanMaxGroupExceedAction.setDescription('The action to be taken when the IGMP group membership limit is exceeded on the VLAN.') ala_igmp_vlan_zero_based_query = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 2, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpVlanZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv4 address for query packets when a non-querier is querying the membership of a port on the VLAN') ala_igmp_member = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3)) ala_igmp_member_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1)) if mibBuilder.loadTexts: alaIgmpMemberTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberTable.setDescription('The table listing the IGMP group membership information.') ala_igmp_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberIfIndex'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberGroupAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberSourceAddress')) if mibBuilder.loadTexts: alaIgmpMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberEntry.setDescription('An entry corresponding to an IGMP group membership request.') ala_igmp_member_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberVlan.setDescription("The group membership request's VLAN.") ala_igmp_member_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaIgmpMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberIfIndex.setDescription("The group membership request's ifIndex.") ala_igmp_member_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberGroupAddress.setDescription("The group membership request's IPv4 group address.") ala_igmp_member_source_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 4), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpMemberSourceAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberSourceAddress.setDescription("The group membership request's IPv4 source address.") ala_igmp_member_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('include', 1), ('exclude', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpMemberMode.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberMode.setDescription("The group membership request's IGMP source filter mode.") ala_igmp_member_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpMemberCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberCount.setDescription("The group membership request's counter.") ala_igmp_member_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 3, 1, 1, 7), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpMemberTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberTimeout.setDescription("The group membership request's timeout.") ala_igmp_static_member = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4)) ala_igmp_static_member_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1)) if mibBuilder.loadTexts: alaIgmpStaticMemberTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberTable.setDescription('The table listing the static IGMP group membership information.') ala_igmp_static_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticMemberVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticMemberIfIndex'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticMemberGroupAddress')) if mibBuilder.loadTexts: alaIgmpStaticMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberEntry.setDescription('An entry corresponding to a static IGMP group membership request.') ala_igmp_static_member_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpStaticMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberVlan.setDescription("The static group membership request's VLAN.") ala_igmp_static_member_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaIgmpStaticMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberIfIndex.setDescription("The static group membership request's ifIndex.") ala_igmp_static_member_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpStaticMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberGroupAddress.setDescription("The static group membership request's IPv4 group address.") ala_igmp_static_member_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 4, 1, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alaIgmpStaticMemberRowStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') ala_igmp_neighbor = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5)) ala_igmp_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1)) if mibBuilder.loadTexts: alaIgmpNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborTable.setDescription('The table listing the neighboring IP multicast routers.') ala_igmp_neighbor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpNeighborVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpNeighborIfIndex'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpNeighborHostAddress')) if mibBuilder.loadTexts: alaIgmpNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborEntry.setDescription('An entry corresponding to an IP multicast router.') ala_igmp_neighbor_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborVlan.setDescription("The IP multicast router's VLAN.") ala_igmp_neighbor_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaIgmpNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborIfIndex.setDescription("The IP multicast router's ifIndex.") ala_igmp_neighbor_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpNeighborHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborHostAddress.setDescription("The IP multicast router's IPv4 host address.") ala_igmp_neighbor_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpNeighborCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborCount.setDescription("The IP multicast router's counter.") ala_igmp_neighbor_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 5, 1, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpNeighborTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborTimeout.setDescription("The IP multicast router's timeout.") ala_igmp_static_neighbor = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6)) ala_igmp_static_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1)) if mibBuilder.loadTexts: alaIgmpStaticNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborTable.setDescription('The table listing the static IP multicast routers.') ala_igmp_static_neighbor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticNeighborVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticNeighborIfIndex')) if mibBuilder.loadTexts: alaIgmpStaticNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborEntry.setDescription('An entry corresponding to a static IP multicast router.') ala_igmp_static_neighbor_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpStaticNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborVlan.setDescription("The static IP multicast router's VLAN.") ala_igmp_static_neighbor_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaIgmpStaticNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborIfIndex.setDescription("The static IP multicast router's ifIndex.") ala_igmp_static_neighbor_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 6, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alaIgmpStaticNeighborRowStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') ala_igmp_querier = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7)) ala_igmp_querier_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1)) if mibBuilder.loadTexts: alaIgmpQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierTable.setDescription('The table listing the neighboring IGMP queriers.') ala_igmp_querier_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierIfIndex'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierHostAddress')) if mibBuilder.loadTexts: alaIgmpQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierEntry.setDescription('An entry corresponding to an IGMP querier.') ala_igmp_querier_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierVlan.setDescription("The IGMP querier's VLAN.") ala_igmp_querier_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaIgmpQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierIfIndex.setDescription("The IGMP querier's ifIndex.") ala_igmp_querier_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpQuerierHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierHostAddress.setDescription("The IGMP querier's IPv4 host address.") ala_igmp_querier_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpQuerierCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierCount.setDescription("The IGMP querier's counter.") ala_igmp_querier_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 7, 1, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpQuerierTimeout.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierTimeout.setDescription("The IGMP querier's timeout.") ala_igmp_static_querier = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8)) ala_igmp_static_querier_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1)) if mibBuilder.loadTexts: alaIgmpStaticQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierTable.setDescription('The table listing the static IGMP queriers.') ala_igmp_static_querier_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticQuerierVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticQuerierIfIndex')) if mibBuilder.loadTexts: alaIgmpStaticQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierEntry.setDescription('An entry corresponding to a static IGMP querier.') ala_igmp_static_querier_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpStaticQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierVlan.setDescription("The static IGMP querier's VLAN.") ala_igmp_static_querier_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaIgmpStaticQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierIfIndex.setDescription("The static IGMP querier's ifIndex.") ala_igmp_static_querier_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 8, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alaIgmpStaticQuerierRowStatus.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') ala_igmp_source = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9)) ala_igmp_source_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1)) if mibBuilder.loadTexts: alaIgmpSourceTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceTable.setDescription('The table listing the IP multicast source information.') ala_igmp_source_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceGroupAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceHostAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceDestAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceOrigAddress')) if mibBuilder.loadTexts: alaIgmpSourceEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceEntry.setDescription('An entry corresponding to an IP multicast source flow.') ala_igmp_source_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpSourceVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceVlan.setDescription("The IP multicast source flow's VLAN.") ala_igmp_source_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpSourceIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceIfIndex.setDescription("The IP multicast source flow's ifIndex.") ala_igmp_source_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpSourceGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceGroupAddress.setDescription("The IP multicast source flow's IPv4 group address.") ala_igmp_source_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 4), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpSourceHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceHostAddress.setDescription("The IP multicast source flow's IPv4 host address.") ala_igmp_source_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 5), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpSourceDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceDestAddress.setDescription("The IP multicast source flow's IPv4 tunnel destination address.") ala_igmp_source_orig_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 6), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpSourceOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceOrigAddress.setDescription("The IP multicast source flow's IPv4 tunnel source address.") ala_igmp_source_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 9, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('mcast', 1), ('pim', 2), ('ipip', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpSourceType.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceType.setDescription("The IP multicast source flow's encapsulation type.") ala_igmp_forward = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10)) ala_igmp_forward_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1)) if mibBuilder.loadTexts: alaIgmpForwardTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardTable.setDescription('The table listing the IP multicast forward information.') ala_igmp_forward_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardGroupAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardHostAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardDestAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardOrigAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardNextVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardNextIfIndex')) if mibBuilder.loadTexts: alaIgmpForwardEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardEntry.setDescription('An entry corresponding to an IP multicast forwarded flow.') ala_igmp_forward_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpForwardVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardVlan.setDescription("The IP multicast forwarded flow's VLAN.") ala_igmp_forward_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpForwardIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardIfIndex.setDescription("The IP multicast forwarded flow's ifIndex.") ala_igmp_forward_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpForwardGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardGroupAddress.setDescription("The IP multicast forwarded flow's IPv4 group address.") ala_igmp_forward_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 4), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpForwardHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardHostAddress.setDescription("The IP multicast forwarded flow's IPv4 host address.") ala_igmp_forward_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 5), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpForwardDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardDestAddress.setDescription("The IP multicast forwarded flow's IPv4 tunnel destination address.") ala_igmp_forward_orig_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 6), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpForwardOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardOrigAddress.setDescription("The IP multicast forwarded flow's IPv4 tunnel source address.") ala_igmp_forward_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('mcast', 1), ('pim', 2), ('ipip', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpForwardType.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardType.setDescription("The IP multicast forwarded flow's encapsulation type.") ala_igmp_forward_next_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 8), unsigned32()) if mibBuilder.loadTexts: alaIgmpForwardNextVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardNextVlan.setDescription("The IP multicast forwarded flow's next VLAN.") ala_igmp_forward_next_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 9), interface_index()) if mibBuilder.loadTexts: alaIgmpForwardNextIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardNextIfIndex.setDescription("The IP multicast forwarded flow's next ifIndex.") ala_igmp_forward_next_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 10, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('mcast', 1), ('pim', 2), ('ipip', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpForwardNextType.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardNextType.setDescription("The IP multicast forwarded flow's next encapsulation type.") ala_igmp_tunnel = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11)) ala_igmp_tunnel_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1)) if mibBuilder.loadTexts: alaIgmpTunnelTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelTable.setDescription('The table listing the IP multicast tunnel information.') ala_igmp_tunnel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelVlan'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelGroupAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelHostAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelDestAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelOrigAddress'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelNextDestAddress')) if mibBuilder.loadTexts: alaIgmpTunnelEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelEntry.setDescription('An entry corresponding to an IP multicast tunneled flow.') ala_igmp_tunnel_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpTunnelVlan.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelVlan.setDescription("The IP multicast tunneled flow's VLAN.") ala_igmp_tunnel_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpTunnelIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelIfIndex.setDescription("The IP multicast tunneled flow's ifIndex.") ala_igmp_tunnel_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 3), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpTunnelGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelGroupAddress.setDescription("The IP multicast tunneled flow's IPv4 group address.") ala_igmp_tunnel_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 4), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpTunnelHostAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelHostAddress.setDescription("The IP multicast tunneled flow's IPv4 host address.") ala_igmp_tunnel_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 5), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpTunnelDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelDestAddress.setDescription("The IP multicast tunneled flow's IPv4 tunnel destination address.") ala_igmp_tunnel_orig_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 6), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpTunnelOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelOrigAddress.setDescription("The IP multicast tunneled flow's IPv4 tunnel source address.") ala_igmp_tunnel_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('mcast', 1), ('pim', 2), ('ipip', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpTunnelType.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelType.setDescription("The IP multicast tunneled flow's encapsulation type.") ala_igmp_tunnel_next_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 8), inet_address_i_pv4()) if mibBuilder.loadTexts: alaIgmpTunnelNextDestAddress.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelNextDestAddress.setDescription("The IP multicast tunneled flow's next IPv4 tunnel destination address.") ala_igmp_tunnel_next_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 11, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('mcast', 1), ('pim', 2), ('ipip', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpTunnelNextType.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelNextType.setDescription("The IP multicast tunneled flow's next encapsulation type.") ala_igmp_port = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12)) ala_igmp_port_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1)) if mibBuilder.loadTexts: alaIgmpPortTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortTable.setDescription('The table listing the IP multicast port information.') ala_igmp_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortIfIndex')) if mibBuilder.loadTexts: alaIgmpPortEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortEntry.setDescription('An entry corresponding to IP multicast port information.') ala_igmp_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1, 1), interface_index()) if mibBuilder.loadTexts: alaIgmpPortIfIndex.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortIfIndex.setDescription("The IP multicast port's ifIndex.") ala_igmp_port_max_group_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1, 2), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpPortMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortMaxGroupLimit.setDescription('The maximum number of IGMP Group memberships that can be learnt on the port.') ala_igmp_port_max_group_exceed_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 12, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaIgmpPortMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortMaxGroupExceedAction.setDescription('The action to be taken when IGMP group membership limit is exceeded for the port.') ala_igmp_port_vlan = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13)) ala_igmp_port_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1)) if mibBuilder.loadTexts: alaIgmpPortVlanTable.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanTable.setDescription('The table listing the IGMP group membership limit information for a port/vlan instance.') ala_igmp_port_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortIfIndex'), (0, 'ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanId')) if mibBuilder.loadTexts: alaIgmpPortVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanEntry.setDescription('An entry corresponding to IGMP group membership limit on a port/vlan.') ala_igmp_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaIgmpVlanId.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanId.setDescription('The IP multicast group membership VLAN.') ala_igmp_port_vlan_current_group_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpPortVlanCurrentGroupCount.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanCurrentGroupCount.setDescription('The current IP multicast group memberships on a port/vlan instance.') ala_igmp_port_vlan_max_group_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupLimit.setDescription('Maximum IGMP Group memberships on the port/vlan instance.') ala_igmp_port_vlan_max_group_exceed_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 1, 13, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanMaxGroupExceedAction.setDescription('The action to be taken when IGMP group membership limit is exceeded for the port/vlan instance.') alcatel_ind1_igmp_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2)) alcatel_ind1_igmp_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 1)) ala_igmp_compliance = module_compliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 1, 1)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticMemberGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpNeighborGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticNeighborGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticQuerierGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortGroup'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortVlanGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_compliance = alaIgmpCompliance.setStatus('current') if mibBuilder.loadTexts: alaIgmpCompliance.setDescription('The compliance statement for systems running IPv4 multicast switch and routing and implementing ALCATEL-IND1-IGMP-MIB.') alcatel_ind1_igmp_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2)) ala_igmp_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 1)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStatus'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerying'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpSpoofing'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpZapping'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVersion'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpRobustness'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQueryInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQueryResponseInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpLastMemberQueryInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpRouterTimeout'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceTimeout'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpProxying'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpUnsolicitedReportInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierForwarding'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpMaxGroupLimit'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpMaxGroupExceedAction'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpFloodUnknown'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpHelperAddressType'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpHelperAddress'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpZeroBasedQuery')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_group = alaIgmpGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpGroup.setDescription('A collection of objects to support management of IPv4 multicast switching and routing system configuration.') ala_igmp_vlan_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 2)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanStatus'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanQuerying'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanSpoofing'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanZapping'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanVersion'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanRobustness'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanQueryInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanQueryResponseInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanLastMemberQueryInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanRouterTimeout'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanSourceTimeout'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanProxying'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanUnsolicitedReportInterval'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanQuerierForwarding'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanMaxGroupLimit'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanMaxGroupExceedAction'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpVlanZeroBasedQuery')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_vlan_group = alaIgmpVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpVlanGroup.setDescription('A collection of objects to support management of IPv4 multicast switching and routing vlan configuration.') ala_igmp_member_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 3)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberMode'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberCount'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpMemberTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_member_group = alaIgmpMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpMemberGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing group membership information.') ala_igmp_static_member_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 4)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticMemberRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_static_member_group = alaIgmpStaticMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticMemberGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing static group membership information tables.') ala_igmp_neighbor_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 5)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpNeighborCount'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpNeighborTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_neighbor_group = alaIgmpNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpNeighborGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast router information.') ala_igmp_static_neighbor_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 6)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticNeighborRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_static_neighbor_group = alaIgmpStaticNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticNeighborGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing static IP multicast router information.') ala_igmp_querier_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 7)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierCount'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpQuerierTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_querier_group = alaIgmpQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpQuerierGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IGMP querier information.') ala_igmp_static_querier_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 8)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpStaticQuerierRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_static_querier_group = alaIgmpStaticQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpStaticQuerierGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing static IGMP querier information.') ala_igmp_source_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 9)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceIfIndex'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpSourceType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_source_group = alaIgmpSourceGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpSourceGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast source information.') ala_igmp_forward_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 10)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardIfIndex'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardType'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpForwardNextType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_forward_group = alaIgmpForwardGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpForwardGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast forward information.') ala_igmp_tunnel_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 11)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelIfIndex'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelType'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpTunnelNextType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_tunnel_group = alaIgmpTunnelGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpTunnelGroup.setDescription('A collection of objects to support IPv4 multicast switching and routing IP multicast tunnel information.') ala_igmp_port_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 12)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortMaxGroupLimit'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortMaxGroupExceedAction')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_port_group = alaIgmpPortGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortGroup.setDescription('A collection of objects to support IPv4 multicast switching configuration.') ala_igmp_port_vlan_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 34, 1, 2, 2, 13)).setObjects(('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortVlanCurrentGroupCount'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortVlanMaxGroupLimit'), ('ALCATEL-IND1-IGMP-MIB', 'alaIgmpPortVlanMaxGroupExceedAction')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_igmp_port_vlan_group = alaIgmpPortVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaIgmpPortVlanGroup.setDescription('An object to support IPv4 multicast switching group limit information for a port/vlan instance.') mibBuilder.exportSymbols('ALCATEL-IND1-IGMP-MIB', alaIgmpMember=alaIgmpMember, alaIgmpPortVlanMaxGroupLimit=alaIgmpPortVlanMaxGroupLimit, alaIgmpPortTable=alaIgmpPortTable, alaIgmpForward=alaIgmpForward, alaIgmpGroup=alaIgmpGroup, alaIgmpSourceOrigAddress=alaIgmpSourceOrigAddress, alaIgmpSourceIfIndex=alaIgmpSourceIfIndex, alaIgmpQuerierVlan=alaIgmpQuerierVlan, alaIgmpHelperAddressType=alaIgmpHelperAddressType, alaIgmpZeroBasedQuery=alaIgmpZeroBasedQuery, alaIgmpSourceTable=alaIgmpSourceTable, alaIgmpPortVlanCurrentGroupCount=alaIgmpPortVlanCurrentGroupCount, alaIgmp=alaIgmp, alaIgmpStaticMember=alaIgmpStaticMember, alaIgmpMemberGroupAddress=alaIgmpMemberGroupAddress, alaIgmpStaticMemberIfIndex=alaIgmpStaticMemberIfIndex, alaIgmpTunnelIfIndex=alaIgmpTunnelIfIndex, alaIgmpNeighborCount=alaIgmpNeighborCount, alaIgmpMemberMode=alaIgmpMemberMode, alaIgmpSourceHostAddress=alaIgmpSourceHostAddress, alaIgmpSourceGroup=alaIgmpSourceGroup, alaIgmpPortVlanEntry=alaIgmpPortVlanEntry, alaIgmpMemberVlan=alaIgmpMemberVlan, alaIgmpForwardNextType=alaIgmpForwardNextType, alaIgmpSourceEntry=alaIgmpSourceEntry, alaIgmpHelperAddress=alaIgmpHelperAddress, alaIgmpStaticMemberVlan=alaIgmpStaticMemberVlan, alcatelIND1IgmpMIBObjects=alcatelIND1IgmpMIBObjects, alaIgmpVlanLastMemberQueryInterval=alaIgmpVlanLastMemberQueryInterval, alaIgmpFloodUnknown=alaIgmpFloodUnknown, alcatelIND1IgmpMIBConformance=alcatelIND1IgmpMIBConformance, alaIgmpVlanVersion=alaIgmpVlanVersion, alaIgmpPortEntry=alaIgmpPortEntry, alaIgmpVlanZeroBasedQuery=alaIgmpVlanZeroBasedQuery, alaIgmpPortGroup=alaIgmpPortGroup, alaIgmpVlanMaxGroupExceedAction=alaIgmpVlanMaxGroupExceedAction, alaIgmpVlanZapping=alaIgmpVlanZapping, alaIgmpForwardDestAddress=alaIgmpForwardDestAddress, alaIgmpSource=alaIgmpSource, alaIgmpNeighborVlan=alaIgmpNeighborVlan, alaIgmpForwardGroupAddress=alaIgmpForwardGroupAddress, alaIgmpStaticQuerierEntry=alaIgmpStaticQuerierEntry, alaIgmpForwardHostAddress=alaIgmpForwardHostAddress, alaIgmpVersion=alaIgmpVersion, alaIgmpVlanStatus=alaIgmpVlanStatus, alaIgmpPort=alaIgmpPort, alaIgmpStaticQuerierGroup=alaIgmpStaticQuerierGroup, alaIgmpNeighborHostAddress=alaIgmpNeighborHostAddress, alaIgmpVlanGroup=alaIgmpVlanGroup, alaIgmpVlanUnsolicitedReportInterval=alaIgmpVlanUnsolicitedReportInterval, alaIgmpTunnelDestAddress=alaIgmpTunnelDestAddress, alaIgmpQueryInterval=alaIgmpQueryInterval, alaIgmpMaxGroupExceedAction=alaIgmpMaxGroupExceedAction, alaIgmpNeighborTimeout=alaIgmpNeighborTimeout, alaIgmpSourceDestAddress=alaIgmpSourceDestAddress, alaIgmpQuerierIfIndex=alaIgmpQuerierIfIndex, alaIgmpZapping=alaIgmpZapping, alaIgmpMemberTable=alaIgmpMemberTable, alaIgmpTunnelVlan=alaIgmpTunnelVlan, alaIgmpTunnelTable=alaIgmpTunnelTable, alaIgmpStaticNeighborGroup=alaIgmpStaticNeighborGroup, alaIgmpPortMaxGroupLimit=alaIgmpPortMaxGroupLimit, alaIgmpPortVlan=alaIgmpPortVlan, alaIgmpQuerierCount=alaIgmpQuerierCount, alaIgmpNeighborEntry=alaIgmpNeighborEntry, alaIgmpSourceTimeout=alaIgmpSourceTimeout, alcatelIND1IgmpMIBGroups=alcatelIND1IgmpMIBGroups, alaIgmpMemberIfIndex=alaIgmpMemberIfIndex, alaIgmpTunnelGroupAddress=alaIgmpTunnelGroupAddress, alaIgmpMemberEntry=alaIgmpMemberEntry, alaIgmpVlanIndex=alaIgmpVlanIndex, alaIgmpStaticMemberRowStatus=alaIgmpStaticMemberRowStatus, alaIgmpPortMaxGroupExceedAction=alaIgmpPortMaxGroupExceedAction, alaIgmpStaticNeighborVlan=alaIgmpStaticNeighborVlan, alaIgmpStaticQuerierRowStatus=alaIgmpStaticQuerierRowStatus, alaIgmpForwardNextIfIndex=alaIgmpForwardNextIfIndex, alaIgmpStaticNeighbor=alaIgmpStaticNeighbor, alaIgmpTunnelEntry=alaIgmpTunnelEntry, alaIgmpForwardIfIndex=alaIgmpForwardIfIndex, alaIgmpMaxGroupLimit=alaIgmpMaxGroupLimit, alaIgmpVlanId=alaIgmpVlanId, alaIgmpMemberGroup=alaIgmpMemberGroup, alaIgmpQuerierTimeout=alaIgmpQuerierTimeout, alaIgmpVlanRobustness=alaIgmpVlanRobustness, alaIgmpVlan=alaIgmpVlan, alaIgmpTunnelType=alaIgmpTunnelType, alaIgmpForwardEntry=alaIgmpForwardEntry, alaIgmpVlanSpoofing=alaIgmpVlanSpoofing, alaIgmpQuerierHostAddress=alaIgmpQuerierHostAddress, alaIgmpRouterTimeout=alaIgmpRouterTimeout, alaIgmpStaticMemberGroupAddress=alaIgmpStaticMemberGroupAddress, alaIgmpStaticQuerierVlan=alaIgmpStaticQuerierVlan, alaIgmpLastMemberQueryInterval=alaIgmpLastMemberQueryInterval, alaIgmpMemberSourceAddress=alaIgmpMemberSourceAddress, alaIgmpQuerierTable=alaIgmpQuerierTable, alaIgmpStaticMemberTable=alaIgmpStaticMemberTable, alaIgmpQuerierForwarding=alaIgmpQuerierForwarding, alaIgmpStaticNeighborEntry=alaIgmpStaticNeighborEntry, alaIgmpCompliance=alaIgmpCompliance, alaIgmpVlanQueryInterval=alaIgmpVlanQueryInterval, alaIgmpQuerying=alaIgmpQuerying, alaIgmpNeighbor=alaIgmpNeighbor, alaIgmpVlanProxying=alaIgmpVlanProxying, alaIgmpSourceVlan=alaIgmpSourceVlan, alaIgmpUnsolicitedReportInterval=alaIgmpUnsolicitedReportInterval, alaIgmpTunnel=alaIgmpTunnel, alaIgmpVlanSourceTimeout=alaIgmpVlanSourceTimeout, alaIgmpForwardNextVlan=alaIgmpForwardNextVlan, alaIgmpQuerier=alaIgmpQuerier, alaIgmpProxying=alaIgmpProxying, alaIgmpVlanQuerierForwarding=alaIgmpVlanQuerierForwarding, alaIgmpSpoofing=alaIgmpSpoofing, alaIgmpStaticQuerierTable=alaIgmpStaticQuerierTable, alcatelIND1IgmpMIB=alcatelIND1IgmpMIB, alaIgmpStaticNeighborRowStatus=alaIgmpStaticNeighborRowStatus, alaIgmpStatus=alaIgmpStatus, alaIgmpForwardType=alaIgmpForwardType, alaIgmpVlanTable=alaIgmpVlanTable, alaIgmpQueryResponseInterval=alaIgmpQueryResponseInterval, alaIgmpStaticNeighborIfIndex=alaIgmpStaticNeighborIfIndex, alaIgmpForwardGroup=alaIgmpForwardGroup, alaIgmpTunnelHostAddress=alaIgmpTunnelHostAddress, alaIgmpPortVlanTable=alaIgmpPortVlanTable, alaIgmpStaticMemberGroup=alaIgmpStaticMemberGroup, alaIgmpTunnelNextDestAddress=alaIgmpTunnelNextDestAddress, alcatelIND1IgmpMIBCompliances=alcatelIND1IgmpMIBCompliances, alaIgmpNeighborIfIndex=alaIgmpNeighborIfIndex, alaIgmpVlanQueryResponseInterval=alaIgmpVlanQueryResponseInterval, alaIgmpForwardTable=alaIgmpForwardTable, alaIgmpStaticQuerierIfIndex=alaIgmpStaticQuerierIfIndex, alaIgmpVlanMaxGroupLimit=alaIgmpVlanMaxGroupLimit, alaIgmpRobustness=alaIgmpRobustness, alaIgmpTunnelNextType=alaIgmpTunnelNextType, alaIgmpQuerierEntry=alaIgmpQuerierEntry, PYSNMP_MODULE_ID=alcatelIND1IgmpMIB, alaIgmpMemberTimeout=alaIgmpMemberTimeout, alaIgmpStaticQuerier=alaIgmpStaticQuerier, alaIgmpPortVlanMaxGroupExceedAction=alaIgmpPortVlanMaxGroupExceedAction, alaIgmpVlanQuerying=alaIgmpVlanQuerying, alaIgmpVlanRouterTimeout=alaIgmpVlanRouterTimeout, alaIgmpForwardOrigAddress=alaIgmpForwardOrigAddress, alaIgmpQuerierGroup=alaIgmpQuerierGroup, alaIgmpPortVlanGroup=alaIgmpPortVlanGroup, alaIgmpForwardVlan=alaIgmpForwardVlan, alaIgmpNeighborGroup=alaIgmpNeighborGroup, alaIgmpSourceType=alaIgmpSourceType, alaIgmpSourceGroupAddress=alaIgmpSourceGroupAddress, alaIgmpPortIfIndex=alaIgmpPortIfIndex, alaIgmpVlanEntry=alaIgmpVlanEntry, alaIgmpMemberCount=alaIgmpMemberCount, alaIgmpTunnelGroup=alaIgmpTunnelGroup, alaIgmpStaticMemberEntry=alaIgmpStaticMemberEntry, alaIgmpTunnelOrigAddress=alaIgmpTunnelOrigAddress, alaIgmpStaticNeighborTable=alaIgmpStaticNeighborTable, alaIgmpNeighborTable=alaIgmpNeighborTable)
def vector_bits2int(arr): n = arr.shape[0] # number of columns a = arr[0] << n - 1 for j in range(1, n): # "overlay" with the shifted bits of the next column a |= arr[j] << n - 1 - j return a
def vector_bits2int(arr): n = arr.shape[0] a = arr[0] << n - 1 for j in range(1, n): a |= arr[j] << n - 1 - j return a
#! /usr/bin/env python3 def func1(): x = set([1,2,3,4]) y = set([3,4,5,6,7]) z = frozenset([4,5]) print(x) print(y) x.add(5) x.remove(3) print(x) print("x|y=", x | y) # x U y print("x.union(y)=", x.union(y)) print("x&y=", x & y) # x ~U y print("x.intersection(y)=", x.intersection(y)) print("x-y=", x - y) # x - (x ~U y) print("x.difference(y)=", x.difference(y)) print("x.symmetric_difference(y)=", x.symmetric_difference(y)) def func2(): x = frozenset([1,2,3,4]) y = frozenset([1,2]) print(x) print(y) print("x.issubset(y)=", x.issubset(y)) print("x.issuperset(y)=", x.issuperset(y)) def func3(): x = set([1,2,3]) y = set([5,6,7]) print(x) x.update(y) print(x) if __name__=="__main__": print("\nfunc1()") func1() print("\nfunc2()") func2() print("\nfunc3()") func3()
def func1(): x = set([1, 2, 3, 4]) y = set([3, 4, 5, 6, 7]) z = frozenset([4, 5]) print(x) print(y) x.add(5) x.remove(3) print(x) print('x|y=', x | y) print('x.union(y)=', x.union(y)) print('x&y=', x & y) print('x.intersection(y)=', x.intersection(y)) print('x-y=', x - y) print('x.difference(y)=', x.difference(y)) print('x.symmetric_difference(y)=', x.symmetric_difference(y)) def func2(): x = frozenset([1, 2, 3, 4]) y = frozenset([1, 2]) print(x) print(y) print('x.issubset(y)=', x.issubset(y)) print('x.issuperset(y)=', x.issuperset(y)) def func3(): x = set([1, 2, 3]) y = set([5, 6, 7]) print(x) x.update(y) print(x) if __name__ == '__main__': print('\nfunc1()') func1() print('\nfunc2()') func2() print('\nfunc3()') func3()
size = 21 array = [[0 for i in range(size)] for j in range(size)] for i in range(size): array[0][i] = 1 array[i][0] = 1 for i in range(1,size): for j in range(1,size): array[i][j] = array[i-1][j] + array[i][j-1] print(array[size-1][size-1])
size = 21 array = [[0 for i in range(size)] for j in range(size)] for i in range(size): array[0][i] = 1 array[i][0] = 1 for i in range(1, size): for j in range(1, size): array[i][j] = array[i - 1][j] + array[i][j - 1] print(array[size - 1][size - 1])
""" File that contains configurations used by the model """ GRID_WIDTH = 10 GRID_HEIGHT = 40 SPAWN_LINE = 19
""" File that contains configurations used by the model """ grid_width = 10 grid_height = 40 spawn_line = 19
def peak(arr, low, high): n = len(arr) while low <= high: mid = low + (high - low) / 2 mid = int(mid) if (mid == 0 or arr[mid-1] <= arr[mid]) and (mid == n-1 or arr[mid+1] <= arr[mid]): return(arr[mid]) elif mid > 0 and arr[mid-1] > arr[mid]: high = mid - 1 else: low = mid + 1 arr = [1, 3, 20, 4, 1, 0] print(peak(arr, 0, len(arr) - 1))
def peak(arr, low, high): n = len(arr) while low <= high: mid = low + (high - low) / 2 mid = int(mid) if (mid == 0 or arr[mid - 1] <= arr[mid]) and (mid == n - 1 or arr[mid + 1] <= arr[mid]): return arr[mid] elif mid > 0 and arr[mid - 1] > arr[mid]: high = mid - 1 else: low = mid + 1 arr = [1, 3, 20, 4, 1, 0] print(peak(arr, 0, len(arr) - 1))
# Copyright 2019 Google LLC # # 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 # # https://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 main(client, routine_id): # [START bigquery_update_routine] # TODO(developer): Import the client library. # from google.cloud import bigquery # TODO(developer): Construct a BigQuery client object. # client = bigquery.Client() # TODO(developer): Set the fully-qualified ID for the routine. # routine_id = "my-project.my_dataset.my_routine" routine = client.get_routine(routine_id) routine.body = "x * 4" routine = client.update_routine( routine, [ "body", # Due to a limitation of the API, all fields are required, not just # those that have been updated. "arguments", "language", "type_", "return_type", ], ) # [END bigquery_update_routine] return routine
def main(client, routine_id): routine = client.get_routine(routine_id) routine.body = 'x * 4' routine = client.update_routine(routine, ['body', 'arguments', 'language', 'type_', 'return_type']) return routine
def vsota(mat1, mat2): vsota = [] for i in range(len(mat1)): nova_vrsta = [] for j in range(len(mat1[0])): nova_vrsta.append((mat1[i][j] + mat2[i][j])) vsota.append(nova_vrsta) return vsota def razlika(mat1, mat2): razlika = [] for i in range(len(mat1)): nova_vrsta = [] for j in range(len(mat1[0])): nova_vrsta.append((mat1[i][j] - mat2[i][j])) razlika.append(nova_vrsta) return razlika def mnozi_s_skalarjem(mat, skal): for i in range(len(mat)): for j in range(len(mat[0])): mat[i][j] = skal * mat[i][j] return mat def zmnozek(mat1, mat2): zmnozek = [] for i in range(len(mat1)): nova_vrsta = [] for j in range(len(mat2[0])): element = 0 for k in range(len(mat2)): element += (mat1[i][k] * mat2[k][j]) nova_vrsta.append(element) zmnozek.append(nova_vrsta) return zmnozek def potenca(mat, stopnja): potencirana_mat = mat s = 1 while s < stopnja: potencirana_mat = zmnozek(potencirana_mat, mat) s += 1 return potencirana_mat def sled(mat): sled = 0 for i in range(len(mat)): sled += mat[i][i] return sled def transponiraj(mat): transponiranka = [[0 for i in range(len(mat[0]))] for j in range(len(mat))] for j in range(len(mat)): for k in range(len(mat[0])): transponiranka[k][j] = mat[j][k] return transponiranka #vrne matriko brez a-te vrstica in b-tega stolpca def podmatrika(mat, a, b): return [vrstica[:b - 1] + vrstica[b:] for vrstica in (mat[: a - 1] + mat[a:])] def determinanta(mat): if len(mat) == 1: return mat[0][0] elif len(mat) == 2: return mat[0][0] * mat[1][1] - mat[0][1] * mat[1][0] else: #razvoj po 1. vrstici det = 0 for i in range(len(mat)): det += ((-1) ** i) * mat[0][i] * determinanta(podmatrika(mat, 1, i + 1)) return det def zamenjaj_vrstici(mat, a, b): nova_a = mat[b - 1] mat[b - 1] = mat[a - 1] mat[a - 1] = nova_a return mat def uredi_v_zgornjetrikotno(mat): nova_mat = [] for j in range(len(mat[0])): for i in range(len(mat)): if mat[i][j] != 0: nova_mat += [mat[i]] mat = [x for x in mat if x not in nova_mat] return nova_mat + mat def Gaussova_eliminacija(mat): n = min(len(mat), len(mat[0])) for j in range(n): if mat[j][j] != 0: for i in range(j + 1, len(mat)): mat[i] = razlika([mat[i]], mnozi_s_skalarjem([mat[j]], mat[i][j] / mat[j][j]))[0] return uredi_v_zgornjetrikotno(mat) def rang(mat): gauss = Gaussova_eliminacija(mat) rang = 0 nicelna = [0 for i in range(len(mat[0]))] for i in range(len(mat)): if gauss[i] != nicelna: rang += 1 return rang
def vsota(mat1, mat2): vsota = [] for i in range(len(mat1)): nova_vrsta = [] for j in range(len(mat1[0])): nova_vrsta.append(mat1[i][j] + mat2[i][j]) vsota.append(nova_vrsta) return vsota def razlika(mat1, mat2): razlika = [] for i in range(len(mat1)): nova_vrsta = [] for j in range(len(mat1[0])): nova_vrsta.append(mat1[i][j] - mat2[i][j]) razlika.append(nova_vrsta) return razlika def mnozi_s_skalarjem(mat, skal): for i in range(len(mat)): for j in range(len(mat[0])): mat[i][j] = skal * mat[i][j] return mat def zmnozek(mat1, mat2): zmnozek = [] for i in range(len(mat1)): nova_vrsta = [] for j in range(len(mat2[0])): element = 0 for k in range(len(mat2)): element += mat1[i][k] * mat2[k][j] nova_vrsta.append(element) zmnozek.append(nova_vrsta) return zmnozek def potenca(mat, stopnja): potencirana_mat = mat s = 1 while s < stopnja: potencirana_mat = zmnozek(potencirana_mat, mat) s += 1 return potencirana_mat def sled(mat): sled = 0 for i in range(len(mat)): sled += mat[i][i] return sled def transponiraj(mat): transponiranka = [[0 for i in range(len(mat[0]))] for j in range(len(mat))] for j in range(len(mat)): for k in range(len(mat[0])): transponiranka[k][j] = mat[j][k] return transponiranka def podmatrika(mat, a, b): return [vrstica[:b - 1] + vrstica[b:] for vrstica in mat[:a - 1] + mat[a:]] def determinanta(mat): if len(mat) == 1: return mat[0][0] elif len(mat) == 2: return mat[0][0] * mat[1][1] - mat[0][1] * mat[1][0] else: det = 0 for i in range(len(mat)): det += (-1) ** i * mat[0][i] * determinanta(podmatrika(mat, 1, i + 1)) return det def zamenjaj_vrstici(mat, a, b): nova_a = mat[b - 1] mat[b - 1] = mat[a - 1] mat[a - 1] = nova_a return mat def uredi_v_zgornjetrikotno(mat): nova_mat = [] for j in range(len(mat[0])): for i in range(len(mat)): if mat[i][j] != 0: nova_mat += [mat[i]] mat = [x for x in mat if x not in nova_mat] return nova_mat + mat def gaussova_eliminacija(mat): n = min(len(mat), len(mat[0])) for j in range(n): if mat[j][j] != 0: for i in range(j + 1, len(mat)): mat[i] = razlika([mat[i]], mnozi_s_skalarjem([mat[j]], mat[i][j] / mat[j][j]))[0] return uredi_v_zgornjetrikotno(mat) def rang(mat): gauss = gaussova_eliminacija(mat) rang = 0 nicelna = [0 for i in range(len(mat[0]))] for i in range(len(mat)): if gauss[i] != nicelna: rang += 1 return rang
class CaseInsensitiveDict(dict): """ A dictionary in which the keys are case-insensitive. It is initialized the same way as a typical dict, but the values can be accessed without regard to key case. The value associated with key "Key" can also be accessed with "key" or "KEY" or "kEy". Parameters ---------- seq: iterable or mapping, optional The key-value pairs of the dictionary. Can either be a mapping object with (key, value) pairs, or an iterable of tuples of the form (key, value). **kwargs: keyword args, optional An alternative way of initializing the dictionary with key-value pairs. Example: CaseInsensitiveDict(one=1, two="two"). """ def __init__(self, seq=None, **kwargs): super().__init__(seq or {}, **kwargs) self.lowercase_dict = {} for key in self: self._register_key(key) def __getitem__(self, key: str): return super().__getitem__(self.lowercase_dict[key.lower()]) def get(self, key: str, default=None): """ Get the value for a given case-insensitive key. Parameters ---------- key: str The key to look up (possibly with a different casing). default: Any The result to return if the key is not present. Returns ------- Any The value associated with the case-insensitive version of `key`, or None if `key` is not present. """ if self.__contains__(key): return self.__getitem__(key) else: return default def __setitem__(self, key: str, value): self._register_key(key) super().__setitem__(key, value) def __contains__(self, key: str): return self.lowercase_dict.__contains__(key.lower()) def _register_key(self, key: str): """ Register a key to the dictionary. Check to make sure it doesn't already exist in a different case. Parameters ---------- key: str The key to register. """ prev = self.lowercase_dict.get(key.lower()) if prev is not None and prev != key: raise ValueError( "Key '{}' already exists in dict with different case: '{}'".format(key, prev)) self.lowercase_dict[key.lower()] = key
class Caseinsensitivedict(dict): """ A dictionary in which the keys are case-insensitive. It is initialized the same way as a typical dict, but the values can be accessed without regard to key case. The value associated with key "Key" can also be accessed with "key" or "KEY" or "kEy". Parameters ---------- seq: iterable or mapping, optional The key-value pairs of the dictionary. Can either be a mapping object with (key, value) pairs, or an iterable of tuples of the form (key, value). **kwargs: keyword args, optional An alternative way of initializing the dictionary with key-value pairs. Example: CaseInsensitiveDict(one=1, two="two"). """ def __init__(self, seq=None, **kwargs): super().__init__(seq or {}, **kwargs) self.lowercase_dict = {} for key in self: self._register_key(key) def __getitem__(self, key: str): return super().__getitem__(self.lowercase_dict[key.lower()]) def get(self, key: str, default=None): """ Get the value for a given case-insensitive key. Parameters ---------- key: str The key to look up (possibly with a different casing). default: Any The result to return if the key is not present. Returns ------- Any The value associated with the case-insensitive version of `key`, or None if `key` is not present. """ if self.__contains__(key): return self.__getitem__(key) else: return default def __setitem__(self, key: str, value): self._register_key(key) super().__setitem__(key, value) def __contains__(self, key: str): return self.lowercase_dict.__contains__(key.lower()) def _register_key(self, key: str): """ Register a key to the dictionary. Check to make sure it doesn't already exist in a different case. Parameters ---------- key: str The key to register. """ prev = self.lowercase_dict.get(key.lower()) if prev is not None and prev != key: raise value_error("Key '{}' already exists in dict with different case: '{}'".format(key, prev)) self.lowercase_dict[key.lower()] = key
# Testing configurations config = {} training_opt = {} training_opt['dataset'] = 'iNaturalist18' training_opt['log_dir'] = './logs/iNaturalist18' training_opt['num_classes'] = 8142 training_opt['batch_size'] = 64 training_opt['num_workers'] = 8 training_opt['num_epochs'] = 90 training_opt['display_step'] = 10 training_opt['feature_dim'] = 2048 training_opt['open_threshold'] = 0.1 training_opt['sampler'] = None#{'def_file': './data/ClassAwareSampler.py', 'num_samples_cls': 4, 'type': 'ClassAwareSampler'} training_opt['scheduler_params'] = {'step_size':int(training_opt['num_epochs']/3), 'gamma': 0.1} # every 10 epochs decrease lr by 0.1 config['training_opt'] = training_opt networks = {} feature_param = {'use_modulatedatt': False, 'use_fc': False, 'dropout': None, 'stage1_weights': False, 'dataset': training_opt['dataset']} feature_optim_param = {'lr': 0.05, 'momentum': 0.9, 'weight_decay': 0.0005} networks['feat_model'] = {'def_file': './models/ResNet50Feature.py', 'params': feature_param, 'optim_params': feature_optim_param, 'fix': False} classifier_param = {'in_dim': training_opt['feature_dim'], 'num_classes': training_opt['num_classes'], 'stage1_weights': False, 'dataset': training_opt['dataset']} classifier_optim_param = {'lr': 0.05, 'momentum': 0.9, 'weight_decay': 0.0005} networks['classifier'] = {'def_file': './models/DotProductClassifier.py', 'params': classifier_param, 'optim_params': classifier_optim_param} config['networks'] = networks criterions = {} perf_loss_param = {} criterions['PerformanceLoss'] = {'def_file': './loss/SoftmaxLoss.py', 'loss_params': perf_loss_param, 'optim_params': None, 'weight': 1.0} config['criterions'] = criterions memory = {} memory['centroids'] = False memory['init_centroids'] = False config['memory'] = memory
config = {} training_opt = {} training_opt['dataset'] = 'iNaturalist18' training_opt['log_dir'] = './logs/iNaturalist18' training_opt['num_classes'] = 8142 training_opt['batch_size'] = 64 training_opt['num_workers'] = 8 training_opt['num_epochs'] = 90 training_opt['display_step'] = 10 training_opt['feature_dim'] = 2048 training_opt['open_threshold'] = 0.1 training_opt['sampler'] = None training_opt['scheduler_params'] = {'step_size': int(training_opt['num_epochs'] / 3), 'gamma': 0.1} config['training_opt'] = training_opt networks = {} feature_param = {'use_modulatedatt': False, 'use_fc': False, 'dropout': None, 'stage1_weights': False, 'dataset': training_opt['dataset']} feature_optim_param = {'lr': 0.05, 'momentum': 0.9, 'weight_decay': 0.0005} networks['feat_model'] = {'def_file': './models/ResNet50Feature.py', 'params': feature_param, 'optim_params': feature_optim_param, 'fix': False} classifier_param = {'in_dim': training_opt['feature_dim'], 'num_classes': training_opt['num_classes'], 'stage1_weights': False, 'dataset': training_opt['dataset']} classifier_optim_param = {'lr': 0.05, 'momentum': 0.9, 'weight_decay': 0.0005} networks['classifier'] = {'def_file': './models/DotProductClassifier.py', 'params': classifier_param, 'optim_params': classifier_optim_param} config['networks'] = networks criterions = {} perf_loss_param = {} criterions['PerformanceLoss'] = {'def_file': './loss/SoftmaxLoss.py', 'loss_params': perf_loss_param, 'optim_params': None, 'weight': 1.0} config['criterions'] = criterions memory = {} memory['centroids'] = False memory['init_centroids'] = False config['memory'] = memory
#!/usr/bin/env python3 # This file is part of the kambpf project (https://github.com/zdule/part_ii_project). # It is file is offered under two licenses GPLv2 and Apache License Version 2. # For more information see the LICENSE file at the root of the project. # # Copyright 2020 Dusan Zivanovic first_dummy = """ noinline int kambpf_test_dummy_0(int a) { return a; } """ dummy_template = """ noinline int kambpf_test_dummy_$0(int a) { return kambpf_test_dummy_$1(a+1); } """ print(first_dummy) for i in range(1,5000): print(dummy_template.replace("$0",str(i)).replace("$1",str(i-1)))
first_dummy = '\nnoinline int kambpf_test_dummy_0(int a) {\n return a;\n}\n' dummy_template = '\nnoinline int kambpf_test_dummy_$0(int a) {\n return kambpf_test_dummy_$1(a+1);\n}\n' print(first_dummy) for i in range(1, 5000): print(dummy_template.replace('$0', str(i)).replace('$1', str(i - 1)))
# -*- coding: utf-8 -*- # # Copyright 2019-2021 BigML # # 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. """Options for BigMLer PCA """ def get_pca_options(defaults=None): """Adding arguments for the pca subcommand """ if defaults is None: defaults = {} options = { # Input fields to include in the PCA. '--pca-fields': { "action": 'store', "dest": 'pca_fields', "default": defaults.get('pca_fields', None), "help": ("Comma-separated list of input fields" " (predictors) to create the PCA.")}, # If a BigML PCA is provided, the script will # use it to generate projections '--pca': { 'action': 'store', 'dest': 'pca', 'default': defaults.get('pca', None), 'help': "BigML PCA Id."}, # The path to a file containing PCA ids. '--pcas': { 'action': 'store', 'dest': 'pcas', 'default': defaults.get('pcas', None), 'help': ("Path to a file containing pca/ids." " One PCA" " per line (e.g., " "pca/50a206a8035d0706dc000376" ").")}, # If a BigML json file containing a PCA # structure is provided, # the script will use it. '--pca-file': { 'action': 'store', 'dest': 'pca_file', 'default': defaults.get('pca_file', None), 'help': "BigML PCA JSON structure file."}, # Does not create a PCA just a dataset. '--no-pca': { 'action': 'store_true', 'dest': 'no_pca', 'default': defaults.get('no_pca', False), 'help': "Do not create a PCA."}, # The path to a file containing PCA attributes. '--pca-attributes': { 'action': 'store', 'dest': 'pca_attributes', 'default': defaults.get('pca_attributes', None), 'help': ("Path to a json file describing PCA" " attributes.")}, # The maximum number of components used to project '--max-components': { 'action': 'store', 'dest': 'max_components', 'type':int, 'default': defaults.get('max_components', None), 'help': ("Maximum number of components used as projections.")}, # The variance used as threshold in to generate the projection '--variance-threshold': { 'action': 'store', 'dest': 'variance_threshold', 'type': float, 'default': defaults.get('variance_threshold', None), 'help': ("Variance used as threshold to generate projections.")}, # Excludes the objective field of the dataset from the PCA input fields. '--exclude-objective': { 'action': 'store_true', 'dest': 'exclude_objective', 'default': defaults.get('exclude_objective', False), 'help': "Excludes the objective field from the PCA inputs."}, # The path to a file containing batch projection attributes. '--batch-projection-attributes': { 'action': 'store', 'dest': 'batch_projection_attributes', 'default': defaults.get('batch_projection_attributes', None), 'help': ("Path to a json file describing batch projection" " attributes.")}, # The path to a file containing projection attributes. '--projection-attributes': { 'action': 'store', 'dest': 'projection_attributes', 'default': defaults.get('projection_attributes', None), 'help': ("Path to a json file describing projection" " attributes.")}, # Projection header. If set, headers are added to the projection file. '--projection-header': { 'action': 'store_true', 'dest': 'projection_header', 'default': defaults.get('projection_header', False), 'help': "Headers are added to the projections file."}, # Projection fields. A comma-separated list of the fields that should # be included in the projections file. '--projection-fields': { 'action': 'store', 'dest': 'projection_fields', 'default': defaults.get('projection_fields', None), 'help': "Fields added to the projections file."}, # Create a PCA, not just a dataset. '--no-no-pca': { 'action': 'store_false', 'dest': 'no_pca', 'default': defaults.get('no_pca', False), 'help': "Create a PCA."}} return options
"""Options for BigMLer PCA """ def get_pca_options(defaults=None): """Adding arguments for the pca subcommand """ if defaults is None: defaults = {} options = {'--pca-fields': {'action': 'store', 'dest': 'pca_fields', 'default': defaults.get('pca_fields', None), 'help': 'Comma-separated list of input fields (predictors) to create the PCA.'}, '--pca': {'action': 'store', 'dest': 'pca', 'default': defaults.get('pca', None), 'help': 'BigML PCA Id.'}, '--pcas': {'action': 'store', 'dest': 'pcas', 'default': defaults.get('pcas', None), 'help': 'Path to a file containing pca/ids. One PCA per line (e.g., pca/50a206a8035d0706dc000376).'}, '--pca-file': {'action': 'store', 'dest': 'pca_file', 'default': defaults.get('pca_file', None), 'help': 'BigML PCA JSON structure file.'}, '--no-pca': {'action': 'store_true', 'dest': 'no_pca', 'default': defaults.get('no_pca', False), 'help': 'Do not create a PCA.'}, '--pca-attributes': {'action': 'store', 'dest': 'pca_attributes', 'default': defaults.get('pca_attributes', None), 'help': 'Path to a json file describing PCA attributes.'}, '--max-components': {'action': 'store', 'dest': 'max_components', 'type': int, 'default': defaults.get('max_components', None), 'help': 'Maximum number of components used as projections.'}, '--variance-threshold': {'action': 'store', 'dest': 'variance_threshold', 'type': float, 'default': defaults.get('variance_threshold', None), 'help': 'Variance used as threshold to generate projections.'}, '--exclude-objective': {'action': 'store_true', 'dest': 'exclude_objective', 'default': defaults.get('exclude_objective', False), 'help': 'Excludes the objective field from the PCA inputs.'}, '--batch-projection-attributes': {'action': 'store', 'dest': 'batch_projection_attributes', 'default': defaults.get('batch_projection_attributes', None), 'help': 'Path to a json file describing batch projection attributes.'}, '--projection-attributes': {'action': 'store', 'dest': 'projection_attributes', 'default': defaults.get('projection_attributes', None), 'help': 'Path to a json file describing projection attributes.'}, '--projection-header': {'action': 'store_true', 'dest': 'projection_header', 'default': defaults.get('projection_header', False), 'help': 'Headers are added to the projections file.'}, '--projection-fields': {'action': 'store', 'dest': 'projection_fields', 'default': defaults.get('projection_fields', None), 'help': 'Fields added to the projections file.'}, '--no-no-pca': {'action': 'store_false', 'dest': 'no_pca', 'default': defaults.get('no_pca', False), 'help': 'Create a PCA.'}} return options
TESTING = True POSTGRESQL_DATABASE_URI = "" URLS = 'app.urls'
testing = True postgresql_database_uri = '' urls = 'app.urls'
text = input() cipher = [] for char in text: new_char = chr(ord(char) + 3) cipher.append(new_char) print(''.join(cipher))
text = input() cipher = [] for char in text: new_char = chr(ord(char) + 3) cipher.append(new_char) print(''.join(cipher))
a, b, c = map(int, input().split()) if c - b <= 0: result = -1 else: result = a // (c - b) result += 1 print(result)
(a, b, c) = map(int, input().split()) if c - b <= 0: result = -1 else: result = a // (c - b) result += 1 print(result)
class ListControls: def com(self, comment="", **kwargs): """Places a comment in the output. APDL Command: /COM Parameters ---------- comment Comment string, up to 75 characters. Notes ----- The output from this command consists of the comment string. This command is similar to C*** except that the comment produced by C*** is more easily identified in the output. Parameter substitution within the comment occurs for every valid expression delimited by percent (%) signs. Enclosing such an expression in single quotes prevents parameter substitution. Another way to include a comment is to precede it with a ! character (on the same line). The ! may be placed anywhere on the line, and any input following it is ignored as a comment. No output is produced by such a comment, but the comment line is included on the log file. This is a convenient way to annotate the log file. This command is valid anywhere. """ command = "/COM,%s" % (str(comment)) if self.print_com and not self.mute and not kwargs.get("mute", False): print(command) return self.run(command, **kwargs) def golist(self, **kwargs): """Reactivates the suppressed data input listing. APDL Command: /GOLIST Notes ----- Reactivates printout of the data input listing suppressed with /NOLIST. This command is valid in any processor, but only within a batch run [/BATCH]. """ command = "/GOLIST," return self.run(command, **kwargs) def gopr(self, **kwargs): """Reactivates suppressed printout. APDL Command: /GOPR Notes ----- Reactivates printout suppressed with the /NOPR command. The /GO command has the same function except that it does not produce a command response from the program. This command is valid in any processor. """ command = "/GOPR," return self.run(command, **kwargs) def nolist(self, **kwargs): """Suppresses the data input listing. APDL Command: /NOLIST Notes ----- Printout is suppressed until a /GOLIST command is read or the end of the listing is encountered. This command is valid in any processor, but only within a batch run [/BATCH]. """ command = "/NOLIST," return self.run(command, **kwargs) def nopr(self, **kwargs): """Suppresses the expanded interpreted input data listing. APDL Command: /NOPR Notes ----- Suppresses printout of interpreted input data, including information labeled as "Notes." When this printout is not suppressed, the data input to the analysis is echoed to the output file in an expanded format. Printout is suppressed until a /GOPR or /GO command is read. Use of /NOPR is not recommended when the graphical user interface (GUI) is active. The GUI sometimes issues "hidden" /NOPR and /GOPR command sequences, which will countermand user-issued /NOPR commands, thus making the use of /NOPR in the GUI environment unpredictable. This command is valid in any processor. """ command = "/NOPR," return self.run(command, **kwargs)
class Listcontrols: def com(self, comment='', **kwargs): """Places a comment in the output. APDL Command: /COM Parameters ---------- comment Comment string, up to 75 characters. Notes ----- The output from this command consists of the comment string. This command is similar to C*** except that the comment produced by C*** is more easily identified in the output. Parameter substitution within the comment occurs for every valid expression delimited by percent (%) signs. Enclosing such an expression in single quotes prevents parameter substitution. Another way to include a comment is to precede it with a ! character (on the same line). The ! may be placed anywhere on the line, and any input following it is ignored as a comment. No output is produced by such a comment, but the comment line is included on the log file. This is a convenient way to annotate the log file. This command is valid anywhere. """ command = '/COM,%s' % str(comment) if self.print_com and (not self.mute) and (not kwargs.get('mute', False)): print(command) return self.run(command, **kwargs) def golist(self, **kwargs): """Reactivates the suppressed data input listing. APDL Command: /GOLIST Notes ----- Reactivates printout of the data input listing suppressed with /NOLIST. This command is valid in any processor, but only within a batch run [/BATCH]. """ command = '/GOLIST,' return self.run(command, **kwargs) def gopr(self, **kwargs): """Reactivates suppressed printout. APDL Command: /GOPR Notes ----- Reactivates printout suppressed with the /NOPR command. The /GO command has the same function except that it does not produce a command response from the program. This command is valid in any processor. """ command = '/GOPR,' return self.run(command, **kwargs) def nolist(self, **kwargs): """Suppresses the data input listing. APDL Command: /NOLIST Notes ----- Printout is suppressed until a /GOLIST command is read or the end of the listing is encountered. This command is valid in any processor, but only within a batch run [/BATCH]. """ command = '/NOLIST,' return self.run(command, **kwargs) def nopr(self, **kwargs): """Suppresses the expanded interpreted input data listing. APDL Command: /NOPR Notes ----- Suppresses printout of interpreted input data, including information labeled as "Notes." When this printout is not suppressed, the data input to the analysis is echoed to the output file in an expanded format. Printout is suppressed until a /GOPR or /GO command is read. Use of /NOPR is not recommended when the graphical user interface (GUI) is active. The GUI sometimes issues "hidden" /NOPR and /GOPR command sequences, which will countermand user-issued /NOPR commands, thus making the use of /NOPR in the GUI environment unpredictable. This command is valid in any processor. """ command = '/NOPR,' return self.run(command, **kwargs)
def checkPassword(data): return (data["password"][data["pos1"] - 1] == data["char"]) != (data["password"][data["pos2"] -1 ] == data["char"]) passwords = [] with open("./2/input.txt") as inputFile: for line in inputFile: tokens = line.split(" ") minMax = tokens[0].split("-") data = { "pos1": int(minMax[0]), "pos2": int(minMax[1]), "char": tokens[1][:-1], "password": tokens[2][:-1] } passwords.append(data) countOfValidPasswords = 0 for password in passwords: if checkPassword(password): countOfValidPasswords += 1 print("{} passwords are valid of {} total passwords".format(countOfValidPasswords, len(passwords)))
def check_password(data): return (data['password'][data['pos1'] - 1] == data['char']) != (data['password'][data['pos2'] - 1] == data['char']) passwords = [] with open('./2/input.txt') as input_file: for line in inputFile: tokens = line.split(' ') min_max = tokens[0].split('-') data = {'pos1': int(minMax[0]), 'pos2': int(minMax[1]), 'char': tokens[1][:-1], 'password': tokens[2][:-1]} passwords.append(data) count_of_valid_passwords = 0 for password in passwords: if check_password(password): count_of_valid_passwords += 1 print('{} passwords are valid of {} total passwords'.format(countOfValidPasswords, len(passwords)))
# Difficulty: Easy # Problem Statement: https://leetcode.com/problems/add-binary/ class Solution: def addBinary(self, a: str, b: str) -> str: return bin(int(a, 2) + int(b, 2))[2:]
class Solution: def add_binary(self, a: str, b: str) -> str: return bin(int(a, 2) + int(b, 2))[2:]
# -*- coding: utf-8 -*- """ Top-level package for Variational GCN """ __author__ = """anonymous due to blind submission to ICML 2020""" __email__ = '' __version__ = '0.1.0'
""" Top-level package for Variational GCN """ __author__ = 'anonymous due to blind submission to ICML 2020' __email__ = '' __version__ = '0.1.0'
# Het is so simpel als het toevoegen van een save commando aan het stuk # code die de chart daadwerkelijk genereert. In bovenstand voorbeeld dus: alt.vconcat(points, bars, data=data.seattle_weather.url, title="Seattle Weather: 2012-2015" ).save('Seattle.html') # De interactiviteit zit in je html file besloten!
alt.vconcat(points, bars, data=data.seattle_weather.url, title='Seattle Weather: 2012-2015').save('Seattle.html')
class Logedit: """ This object handles writing text outputs into a log file and to the screen as well. Class methods: -------------- init(logname, read=None): Creates a log instance into file logname. If read specified copies it's content into log. writelog(message): Prints message to terminal and to the log file. closelog: Closes an existing log file. writeclose(message): Prints message to terminal and to log, then closes the log file. Examples: --------- >>> from logedit import Logedit >>> message1 = 'This message will be logged and displayed.' >>> message2 = 'This message too.' >>> message3 = 'This one is Not going to delete previous lines.' >>> message4 = 'This one copies previous lines and keeps previous log, but saves to new log.' >>> message5 = 'This one deletes previous lines.' >>> logname = 'out.log' >>> logname2 = 'out2.log' >>> # Create and print lines to a log >>> log = Logedit(logname) >>> log.writelog(message1) This message will be logged and displayed. >>> log.writelog(message2) This message too. >>> log.closelog() >>> # Edit log without overiding previous lines >>> log = Logedit(logname, read=logname) >>> log.writelog(message3) This one is Not going to delete previous lines. >>> log.closelog() >>> # copy a pre-existing log on a new log, and edit it. >>> log = Logedit(logname2, read=logname) >>> log.writelog(message4) This one copies previous lines and keeps previous log, but saves to new log. >>> log.closelog() >>> # overite a pre-existing log >>> log = Logedit(logname) >>> log.writelog(message5) This one deletes previous lines. >>> log.closelog() >>> # See the output files: 'out.log' and 'out2.log' to see the results. Revisions --------- 2010-07-10 patricio Writen by Patricio Cubillos. [email protected] 2010-11-24 patricio logedit converted to a class. """ def __init__(self, logname, read=None): """ Creates a new log file with name logname. If a logfile is specified in read, copies the content from that log. Parameters: ----------- logname: String The name of the file where to save the log. read: String Name of an existing logfile. If specified, its content will be written to the log. """ # Read from previous log content = [] if read != None: try: old = open(read, 'r') content = old.readlines() old.close() except: pass # Initiate log self.log = open(logname, 'w') # Append content if there is something if content != []: self.log.writelines(content) def writelog(self, message, mute=False, end='\n'): """ Prints message in the terminal and stores it in the log file. """ # print to screen: if not mute: print(message, end=end, flush=True) # print to file: print(message, file=self.log) def closelog(self): """ Closes an existing log file. """ self.log.close() def writeclose(self, message, mute=False, end='\n'): """ Print message in terminal and log, then close log. """ self.writelog(message, mute, end) self.closelog()
class Logedit: """ This object handles writing text outputs into a log file and to the screen as well. Class methods: -------------- init(logname, read=None): Creates a log instance into file logname. If read specified copies it's content into log. writelog(message): Prints message to terminal and to the log file. closelog: Closes an existing log file. writeclose(message): Prints message to terminal and to log, then closes the log file. Examples: --------- >>> from logedit import Logedit >>> message1 = 'This message will be logged and displayed.' >>> message2 = 'This message too.' >>> message3 = 'This one is Not going to delete previous lines.' >>> message4 = 'This one copies previous lines and keeps previous log, but saves to new log.' >>> message5 = 'This one deletes previous lines.' >>> logname = 'out.log' >>> logname2 = 'out2.log' >>> # Create and print lines to a log >>> log = Logedit(logname) >>> log.writelog(message1) This message will be logged and displayed. >>> log.writelog(message2) This message too. >>> log.closelog() >>> # Edit log without overiding previous lines >>> log = Logedit(logname, read=logname) >>> log.writelog(message3) This one is Not going to delete previous lines. >>> log.closelog() >>> # copy a pre-existing log on a new log, and edit it. >>> log = Logedit(logname2, read=logname) >>> log.writelog(message4) This one copies previous lines and keeps previous log, but saves to new log. >>> log.closelog() >>> # overite a pre-existing log >>> log = Logedit(logname) >>> log.writelog(message5) This one deletes previous lines. >>> log.closelog() >>> # See the output files: 'out.log' and 'out2.log' to see the results. Revisions --------- 2010-07-10 patricio Writen by Patricio Cubillos. [email protected] 2010-11-24 patricio logedit converted to a class. """ def __init__(self, logname, read=None): """ Creates a new log file with name logname. If a logfile is specified in read, copies the content from that log. Parameters: ----------- logname: String The name of the file where to save the log. read: String Name of an existing logfile. If specified, its content will be written to the log. """ content = [] if read != None: try: old = open(read, 'r') content = old.readlines() old.close() except: pass self.log = open(logname, 'w') if content != []: self.log.writelines(content) def writelog(self, message, mute=False, end='\n'): """ Prints message in the terminal and stores it in the log file. """ if not mute: print(message, end=end, flush=True) print(message, file=self.log) def closelog(self): """ Closes an existing log file. """ self.log.close() def writeclose(self, message, mute=False, end='\n'): """ Print message in terminal and log, then close log. """ self.writelog(message, mute, end) self.closelog()
test = { 'name': 'q5_3', 'points': 1, 'suites': [ { 'cases': [ { 'code': '>>> # The statistic should be between 0 and 13 face cards for a sample size of 13;\n' '>>> num_face = deck_simulation_and_statistic(13, deck_model_probabilities);\n' '>>> 0 <= num_face <= 13\n' 'True', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
test = {'name': 'q5_3', 'points': 1, 'suites': [{'cases': [{'code': '>>> # The statistic should be between 0 and 13 face cards for a sample size of 13;\n>>> num_face = deck_simulation_and_statistic(13, deck_model_probabilities);\n>>> 0 <= num_face <= 13\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
pkg_dnf = { 'collectd': {}, } svc_systemd = { 'collectd': { 'needs': ['pkg_dnf:collectd'], }, } files = { '/etc/collectd.conf': { 'mode': '0600', 'content_type': 'mako', 'context': { 'collectd': node.metadata.get('collectd', {}), }, 'needs': ['pkg_dnf:collectd'], 'triggers': ['svc_systemd:collectd:restart'], }, '/etc/collectd.d/nut.conf': { 'delete': True, 'needs': ['pkg_dnf:collectd'], }, } if node.metadata.get('collectd', {}).get('client'): files['/etc/collectd.d/client.conf'] = { 'mode': '0600', 'content_type': 'mako', 'context': { 'client': node.metadata.get('collectd', {}).get('client', {}), }, 'needs': ['pkg_dnf:collectd'], 'triggers': ['svc_systemd:collectd:restart'], }
pkg_dnf = {'collectd': {}} svc_systemd = {'collectd': {'needs': ['pkg_dnf:collectd']}} files = {'/etc/collectd.conf': {'mode': '0600', 'content_type': 'mako', 'context': {'collectd': node.metadata.get('collectd', {})}, 'needs': ['pkg_dnf:collectd'], 'triggers': ['svc_systemd:collectd:restart']}, '/etc/collectd.d/nut.conf': {'delete': True, 'needs': ['pkg_dnf:collectd']}} if node.metadata.get('collectd', {}).get('client'): files['/etc/collectd.d/client.conf'] = {'mode': '0600', 'content_type': 'mako', 'context': {'client': node.metadata.get('collectd', {}).get('client', {})}, 'needs': ['pkg_dnf:collectd'], 'triggers': ['svc_systemd:collectd:restart']}
class Aggrhapolicy(basestring): """ sfo|cfo Possible values: <ul> <li> "cfo" , <li> "sfo" </ul> """ @staticmethod def get_api_name(): return "aggrhapolicy"
class Aggrhapolicy(basestring): """ sfo|cfo Possible values: <ul> <li> "cfo" , <li> "sfo" </ul> """ @staticmethod def get_api_name(): return 'aggrhapolicy'
"""3. Extracting video features from pre-trained models ======================================================= Feature extraction is a very useful tool when you don't have large annotated dataset or don't have the computing resources to train a model from scratch for your use case. It's also useful to visualize what the model have learned. In this tutorial, we provide a simple unified solution. The only thing you need to prepare is a text file containing the information of your videos (e.g., the path to your videos), we will take care of the rest. You can extract strong video features from many popular pre-trained models in the GluonCV video model zoo using a single command line. .. note:: Feel free to skip the tutorial because the feature extraction script is self-complete and ready to launch. :download:`Download Full Python Script: feat_extract_pytorch.py<../../../scripts/action-recognition/feat_extract_pytorch.py>` Please checkout the `model_zoo <../model_zoo/index.html#action_recognition>`_ to select your preferred pretrained model. ``python feat_extract_pytorch.py --config-file CONFIG`` """ ###################################################################### # Prepare Data # ------------ # # Your data can be stored in any hierarchy. # Just use the format we adopt for training models in the previous tutorial and save the data annotation file as ``video.txt``. # :: # # /home/ubuntu/your_data/video_001.mp4 200 0 # /home/ubuntu/your_data/video_001.mp4 300 1 # /home/ubuntu/your_data/video_002.mp4 100 2 # /home/ubuntu/your_data/video_003.mp4 400 2 # /home/ubuntu/your_data/video_004.mp4 200 1 # ...... # /home/ubuntu/your_data/video_100.mp4.100 3 # # Each line has three things, the path to each video, the number of video frames and the video label. # However, the second and third things are not gonna used in the code, they are just a placeholder. # So you can put any postive number in these two places. # # Note that, at this moment, we only support extracting features from videos directly. ###################################################################### # Once you prepare the ``video.txt``, you can start extracting feature by: # # :: # # python feat_extract_pytorch.py --config-file ./scripts/action-recognition/configuration/i3d_resnet50_v1_feat.yaml ###################################################################### # The extracted features will be saved to a directory defined in the config file. Each video will have one feature file. # For example, ``video_001.mp4`` will have a feature named ``i3d_resnet50_v1_kinetics400_video_001_feat.npy``. # The feature is extracted from the center of the video by using a 32-frames clip. ###################################################################### # There are many other options and other models you can choose, # e.g., `resnet50_v1b_feat.yaml <https://raw.githubusercontent.com/dmlc/gluon-cv/master/scripts/action-recognition/configuration/resnet50_v1b_feat.yaml>`_, # `slowfast_4x16_resnet50_feat.yaml <https://raw.githubusercontent.com/dmlc/gluon-cv/master/scripts/action-recognition/configuration/slowfast_4x16_resnet50_feat.yaml>`_, # `tpn_resnet50_f32s2_feat.yaml <https://raw.githubusercontent.com/dmlc/gluon-cv/master/scripts/action-recognition/configuration/tpn_resnet50_f32s2_feat.yaml>`_, # `r2plus1d_v1_resnet50_feat.yaml <https://raw.githubusercontent.com/dmlc/gluon-cv/master/scripts/action-recognition/configuration/r2plus1d_v1_resnet50_feat.yaml>`_, # `i3d_slow_resnet50_f32s2_feat.yaml <https://raw.githubusercontent.com/dmlc/gluon-cv/master/scripts/action-recognition/configuration/i3d_slow_resnet50_f32s2_feat.yaml>`_. # Try extracting features from these SOTA video models on your own dataset and see which one performs better.
"""3. Extracting video features from pre-trained models ======================================================= Feature extraction is a very useful tool when you don't have large annotated dataset or don't have the computing resources to train a model from scratch for your use case. It's also useful to visualize what the model have learned. In this tutorial, we provide a simple unified solution. The only thing you need to prepare is a text file containing the information of your videos (e.g., the path to your videos), we will take care of the rest. You can extract strong video features from many popular pre-trained models in the GluonCV video model zoo using a single command line. .. note:: Feel free to skip the tutorial because the feature extraction script is self-complete and ready to launch. :download:`Download Full Python Script: feat_extract_pytorch.py<../../../scripts/action-recognition/feat_extract_pytorch.py>` Please checkout the `model_zoo <../model_zoo/index.html#action_recognition>`_ to select your preferred pretrained model. ``python feat_extract_pytorch.py --config-file CONFIG`` """