diff --git a/.gitignore b/.gitignore index 72364f9..013ea53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,89 +1,11 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# IPython Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# dotenv -.env - -# virtualenv -venv/ -ENV/ - -# Spyder project settings -.spyderproject - -# Rope project settings -.ropeproject +*.pyc +cloudshell/networking/ericsson/ipos/test_ipos.py + +dist +cloudshell_networking_ericsson_ipos.egg-info/ +Ericsson_IPOS_Shell_Package/Ericsson-IPOS-Shell.zip +cloudshell/networking/ericsson/ipos/autoload/test.py +cloudshell_networking_ericsson_ipos_extended.egg-info +Ericsson_IPOS_Shell_Extended_Package.zip +cloudshell/tests/networking/ericsson/autoload/tests_ericsson_ext_ipos_autoload_unit_tests.py +cloudshell/networking/ericsson/extended/ipos/run_ipos.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5f16bec --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: python +python: +- '2.7' + +before_install: +- pip install ecdsa==0.13 +- pip install Inject==3.3.1 +- pip install ipcalc==1.1.3 +- pip install jsonpickle==0.9.3 +- pip install linecache2==1.0.0 +- pip install paramiko==1.15.2 +- pip install ply==3.8 +- pip install pyasn1==0.1.9 +- pip install pycrypto==2.6.1 +- pip install pysmi==0.0.6 +- pip install pysnmp==4.3.1 +- pip install traceback2==1.4.0 +- pip install -r test_requirements.txt -i https://testpypi.python.org/pypi + +install: + - python setup.py install + +script: python setup.py sdist --format zip \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/Categories/categories.xml b/Ericsson_IPOS_Shell_Extended_Package/Categories/categories.xml new file mode 100644 index 0000000..4d6c6ec --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/Categories/categories.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/Configuration/shellconfig.xml b/Ericsson_IPOS_Shell_Extended_Package/Configuration/shellconfig.xml new file mode 100644 index 0000000..00414be --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/Configuration/shellconfig.xml @@ -0,0 +1,40 @@ + + + + + The networking Shell template will create a resource of this type in CloudShell. Once the Router is modeled correctly in CloudShell it will be possible to use it in Sandboxes and for connectivity. + + Discovers the device structure and populate its attributes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/DataModel/datamodel.xml b/Ericsson_IPOS_Shell_Extended_Package/DataModel/datamodel.xml new file mode 100644 index 0000000..aaefa6b --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/DataModel/datamodel.xml @@ -0,0 +1,709 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + v1 + v2c + v3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Ericsson IPOS Extended Driver + + + + + + + + + + + + + + + + + + + + + + + + + Ericsson IPOS Router + + + + + + + + + + + + + + + + + + + + + + + + + ge-40-port + 10ge-10-port + 1-10ge-20-4-port + 40-100ge-2-port + 1-10ge-20-port + 10-100ge-2-2-port + 1-10ge-40-port + 1-100ge-24-2-port + ssc1 + ssc1-v2 + ssc2-a + ssc3 + sw + sw2 + alsw + alswt + alsw2 + rp + rpsw + rpsw-v2 + rpsw2 + + + + + + + + + + + Generic Chassis + + + + + + + + + + + + + + + + + + Generic Module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Chassis + Generic Module + PFE + Generic Sub Module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Chassis + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ericsson IPOS Router + + + + + + + + + + + \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/Generic Ericsson IPOS Extended Driver.zip b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/Generic Ericsson IPOS Extended Driver.zip new file mode 100644 index 0000000..4c02c77 Binary files /dev/null and b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/Generic Ericsson IPOS Extended Driver.zip differ diff --git a/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/drivermetadata.xml b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/drivermetadata.xml new file mode 100644 index 0000000..bfd5845 --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/drivermetadata.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/ericsson_ipos_extended_resource_driver.py b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/ericsson_ipos_extended_resource_driver.py new file mode 100644 index 0000000..36dbbbb --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/ericsson_ipos_extended_resource_driver.py @@ -0,0 +1,195 @@ +from cloudshell.networking.ericsson.ericsson_configuration_operations import EricssonConfigurationOperations +from cloudshell.networking.ericsson.ericsson_connectivity_operations import EricssonConnectivityOperations +from cloudshell.networking.ericsson.ericsson_firmware_operations import EricssonFirmwareOperations +from cloudshell.networking.ericsson.ericsson_run_command_operations import EricssonRunCommandOperations +from cloudshell.networking.ericsson.ericsson_state_operations import EricssonStateOperations +from cloudshell.networking.ericsson.extended.ipos.autoload.ericsson_extended_ipos_snmp_autoload import EricssonExtendedIPOSSNMPAutoload +from cloudshell.networking.networking_resource_driver_interface import NetworkingResourceDriverInterface +from cloudshell.shell.core.context_utils import context_from_args +from cloudshell.shell.core.driver_bootstrap import DriverBootstrap +from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface +from cloudshell.shell.core.driver_utils import GlobalLock + +import cloudshell.networking.ericsson.extended.ipos.ericsson_extended_ipos_configuration as driver_config + + +class EricssonIPOSExtendedResourceDriver(ResourceDriverInterface, NetworkingResourceDriverInterface, GlobalLock): + def __init__(self): + super(EricssonIPOSExtendedResourceDriver, self).__init__() + bootstrap = DriverBootstrap() + bootstrap.add_config(driver_config) + bootstrap.initialize() + + @context_from_args + def initialize(self, context): + """Initialize method + :type context: cloudshell.shell.core.context.driver_context.InitCommandContext + """ + + return 'Finished initializing' + + def cleanup(self): + pass + + @context_from_args + def ApplyConnectivityChanges(self, context, request): + connectivity_operations = EricssonConnectivityOperations() + connectivity_operations.logger.info('Start applying connectivity changes, request is: {0}'.format(str(request))) + response = connectivity_operations.apply_connectivity_changes(request) + connectivity_operations.logger.info('Finished applying connectivity changes, responce is: {0}'.format(str( + response))) + connectivity_operations.logger.info('Apply Connectivity changes completed') + return response + + @GlobalLock.lock + @context_from_args + def restore(self, context, path, configuration_type='running', restore_method='override', vrf_management_name=None): + """Restore selected file to the provided destination + + :param path: source config file + :param configuration_type: running or startup configs + :param restore_method: append or override methods + :param vrf_management_name: VRF management Name + """ + + configuration_operations = EricssonConfigurationOperations() + response = configuration_operations.restore(path=path, restore_method=restore_method, + configuration_type=configuration_type, + vrf_management_name=vrf_management_name) + configuration_operations.logger.info('Restore completed') + configuration_operations.logger.info(response) + + @context_from_args + def save(self, context, folder_path, configuration_type, vrf_management_name=None): + """Save selected file to the provided destination + + :param configuration_type: source file, which will be saved + :param folder_path: destination path where file will be saved + :param vrf_management_name: VRF management Name + """ + + configuration_operations = EricssonConfigurationOperations() + response = configuration_operations.save(folder_path, configuration_type, vrf_management_name) + configuration_operations.logger.info('Save completed') + return response + + @context_from_args + def orchestration_save(self, context, mode="shallow", custom_params=None): + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Orchestration save started') + response = configuration_operations.orchestration_save(mode=mode, custom_params=custom_params) + configuration_operations.logger.info('Orchestration save completed') + return response + + @context_from_args + def orchestration_restore(self, context, saved_artifact_info, custom_params=None): + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Orchestration restore started') + configuration_operations.orchestration_restore(saved_artifact_info=saved_artifact_info, + custom_params=custom_params) + configuration_operations.logger.info('Orchestration restore completed') + + @context_from_args + def get_inventory(self, context): + """Return device structure with all standard attributes + + :return: response + :rtype: string + """ + + autoload_operations = EricssonExtendedIPOSSNMPAutoload() + autoload_operations.logger.info('Autoload started') + response = autoload_operations.discover() + autoload_operations.logger.info('Autoload completed') + return response + + @GlobalLock.lock + @context_from_args + def load_firmware(self, context, path, vrf_management_name=None): + """Upload and updates firmware on the resource + + :param path: full path to firmware file, i.e. tftp://10.10.10.1/firmware.tar + :param vrf_management_name: VRF management Name + :return: result + :rtype: string + """ + + firmware_operations = EricssonFirmwareOperations() + response = firmware_operations.load_firmware(path=path, vrf_management_name=vrf_management_name) + firmware_operations.logger.info(response) + + @context_from_args + def run_custom_command(self, context, custom_command): + """Send custom command + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + response = send_command_operations.run_custom_command(command=custom_command) + return response + + @context_from_args + def health_check(self, context): + """Performs device health check + + """ + + state_operations = EricssonStateOperations() + return state_operations.health_check() + + @context_from_args + def run_custom_config_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + result_str = send_command_operations.run_custom_config_command(command=custom_command) + return result_str + + @GlobalLock.lock + @context_from_args + def update_firmware(self, context, remote_host, file_path): + """Upload and updates firmware on the resource + + :param remote_host: path to firmware file location on ftp or tftp server + :param file_path: firmware file name + :return: result + :rtype: string + """ + + firmware_operations = EricssonFirmwareOperations() + response = firmware_operations.load_firmware(path=remote_host) + firmware_operations.logger.info(response) + + @context_from_args + def send_custom_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + response = send_command_operations.run_custom_command(command=custom_command) + return response + + @context_from_args + def send_custom_config_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + result_str = send_command_operations.run_custom_config_command(command=custom_command) + return result_str + + @context_from_args + def shutdown(self, context): + pass diff --git a/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/requirements.txt b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/requirements.txt new file mode 100644 index 0000000..094b19a --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/Resource Drivers - Python/Generic Ericsson IPOS Driver/requirements.txt @@ -0,0 +1 @@ +cloudshell-networking-ericsson-ipos-extended>=1.0,<1.1 \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/metadata.xml b/Ericsson_IPOS_Shell_Extended_Package/metadata.xml new file mode 100644 index 0000000..423dafd --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/metadata.xml @@ -0,0 +1,6 @@ + + + 27/12/2015 10:39:40 + 6.4.0 + CloudShellPackage + \ No newline at end of file diff --git a/Ericsson_IPOS_Shell_Extended_Package/version.txt b/Ericsson_IPOS_Shell_Extended_Package/version.txt new file mode 100644 index 0000000..56fea8a --- /dev/null +++ b/Ericsson_IPOS_Shell_Extended_Package/version.txt @@ -0,0 +1 @@ +3.0.0 \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/.gitignore b/ericsson_ipos_extended_shell/.gitignore new file mode 100644 index 0000000..1e1a44c --- /dev/null +++ b/ericsson_ipos_extended_shell/.gitignore @@ -0,0 +1,60 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ +cloudshell_config.yml diff --git a/ericsson_ipos_extended_shell/datamodel/datamodel.xml b/ericsson_ipos_extended_shell/datamodel/datamodel.xml new file mode 100644 index 0000000..e918a69 --- /dev/null +++ b/ericsson_ipos_extended_shell/datamodel/datamodel.xml @@ -0,0 +1,578 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ericsson IPOS Router + + + + + + + + + + + + + + + + + + + + + + + + + ge-40-port + 10ge-10-port + 1-10ge-20-4-port + 40-100ge-2-port + 1-10ge-20-port + 10-100ge-2-2-port + 1-10ge-40-port + 1-100ge-24-2-port + ssc1 + ssc1-v2 + ssc2-a + ssc3 + sw + sw2 + alsw + alswt + alsw2 + rp + rpsw + rpsw-v2 + rpsw2 + + + + + + + + + + + Generic Chassis + + + + + + + + + + + + + + + + + + Generic Module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Chassis + Generic Module + PFE + Generic Sub Module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Module + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Chassis + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ericsson IPOS Router + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/datamodel/metadata.xml b/ericsson_ipos_extended_shell/datamodel/metadata.xml new file mode 100644 index 0000000..dc55ce7 --- /dev/null +++ b/ericsson_ipos_extended_shell/datamodel/metadata.xml @@ -0,0 +1,6 @@ + + + 2016-1-22 + 7.0 + CloudShellPackage + \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/datamodel/shell_model.xml b/ericsson_ipos_extended_shell/datamodel/shell_model.xml new file mode 100644 index 0000000..0b78e55 --- /dev/null +++ b/ericsson_ipos_extended_shell/datamodel/shell_model.xml @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + v1 + v2c + v3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic Ericsson IPOS Extended Driver + + + + + + diff --git a/ericsson_ipos_extended_shell/datamodel/shellconfig.xml b/ericsson_ipos_extended_shell/datamodel/shellconfig.xml new file mode 100644 index 0000000..fb93b4c --- /dev/null +++ b/ericsson_ipos_extended_shell/datamodel/shellconfig.xml @@ -0,0 +1,40 @@ + + + + + The networking Shell template will create a resource of this type in CloudShell. Once the Router is modeled correctly in CloudShell it will be possible to use it in Sandboxes and for connectivity. + + Discovers the device structure and populate its attributes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/deployment.xml b/ericsson_ipos_extended_shell/deployment.xml new file mode 100644 index 0000000..dbc8412 --- /dev/null +++ b/ericsson_ipos_extended_shell/deployment.xml @@ -0,0 +1,53 @@ + + + + + localhost + + + 8029 + + + YOUR_USERNAME + YOUR_PASSWORD + Global + + + dont_upload_me.xml + + + + + + + + + + src + + + EricssonIposExtendedShellDriver + + + + + + + \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/docs/readme.rst b/ericsson_ipos_extended_shell/docs/readme.rst new file mode 100644 index 0000000..4dc0eb5 --- /dev/null +++ b/ericsson_ipos_extended_shell/docs/readme.rst @@ -0,0 +1,3 @@ +.. _readme: + +.. include:: ../README.rst diff --git a/ericsson_ipos_extended_shell/readme.rst b/ericsson_ipos_extended_shell/readme.rst new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ericsson_ipos_extended_shell/readme.rst @@ -0,0 +1 @@ + diff --git a/ericsson_ipos_extended_shell/shell.yml b/ericsson_ipos_extended_shell/shell.yml new file mode 100644 index 0000000..7ee14c4 --- /dev/null +++ b/ericsson_ipos_extended_shell/shell.yml @@ -0,0 +1,8 @@ +shell: + name: Ericsson-IPOS-Extended-Shell + author: Anonymous + email: info@quali.com + description: Describe the purpose of your CloudShell shell + version: 0.1.0 + driver_name: EricssonIposExtendedShellDriver + networking_standard_version: 4.0.1 \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/src/drivermetadata.xml b/ericsson_ipos_extended_shell/src/drivermetadata.xml new file mode 100644 index 0000000..4e15f1e --- /dev/null +++ b/ericsson_ipos_extended_shell/src/drivermetadata.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/src/ericsson_ipos_extended_resource_driver.py b/ericsson_ipos_extended_shell/src/ericsson_ipos_extended_resource_driver.py new file mode 100644 index 0000000..38e5292 --- /dev/null +++ b/ericsson_ipos_extended_shell/src/ericsson_ipos_extended_resource_driver.py @@ -0,0 +1,207 @@ +from cloudshell.networking.ericsson.ericsson_configuration_operations import EricssonConfigurationOperations +from cloudshell.networking.ericsson.ericsson_connectivity_operations import EricssonConnectivityOperations +from cloudshell.networking.ericsson.ericsson_firmware_operations import EricssonFirmwareOperations +from cloudshell.networking.ericsson.ericsson_run_command_operations import EricssonRunCommandOperations +from cloudshell.networking.ericsson.ericsson_state_operations import EricssonStateOperations +from cloudshell.networking.ericsson.extended.ipos.autoload.ericsson_extended_ipos_snmp_autoload import EricssonExtendedIPOSSNMPAutoload +from cloudshell.networking.networking_resource_driver_interface import NetworkingResourceDriverInterface +from cloudshell.shell.core.context_utils import context_from_args +from cloudshell.shell.core.driver_bootstrap import DriverBootstrap +from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface +from cloudshell.shell.core.driver_utils import GlobalLock + +import cloudshell.networking.ericsson.extended.ipos.ericsson_extended_ipos_configuration as driver_config + + +class EricssonIPOSExtendedResourceDriver(ResourceDriverInterface, NetworkingResourceDriverInterface, GlobalLock): + def __init__(self): + super(EricssonIPOSExtendedResourceDriver, self).__init__() + bootstrap = DriverBootstrap() + bootstrap.add_config(driver_config) + bootstrap.initialize() + + @context_from_args + def initialize(self, context): + """Initialize method + :type context: cloudshell.shell.core.context.driver_context.InitCommandContext + """ + + return 'Finished initializing' + + def cleanup(self): + pass + + @context_from_args + def ApplyConnectivityChanges(self, context, request): + connectivity_operations = EricssonConnectivityOperations() + connectivity_operations.logger.info('Start applying connectivity changes, request is: {0}'.format(str(request))) + response = connectivity_operations.apply_connectivity_changes(request) + connectivity_operations.logger.info('Finished applying connectivity changes, responce is: {0}'.format(str( + response))) + connectivity_operations.logger.info('Apply Connectivity changes completed') + return response + + @GlobalLock.lock + @context_from_args + def restore(self, context, path, configuration_type='running', restore_method='override', vrf_management_name=None): + """Restore selected file to the provided destination + + :param path: source config file + :param configuration_type: running or startup configs + :param restore_method: append or override methods + :param vrf_management_name: VRF management Name + """ + + configuration_operations = EricssonConfigurationOperations() + response = configuration_operations.restore(path=path, restore_method=restore_method, + configuration_type=configuration_type, + vrf_management_name=vrf_management_name) + configuration_operations.logger.info('Restore completed') + configuration_operations.logger.info(response) + + @context_from_args + def save(self, context, folder_path, configuration_type, vrf_management_name=None): + """Save selected file to the provided destination + + :param configuration_type: source file, which will be saved + :param folder_path: destination path where file will be saved + :param vrf_management_name: VRF management Name + """ + + configuration_operations = EricssonConfigurationOperations() + response = configuration_operations.save(folder_path, configuration_type, vrf_management_name) + configuration_operations.logger.info('Save completed') + return response + + @GlobalLock.lock + @context_from_args + def reboot(self, context): + """Reboot device + + """ + + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Reboot started') + configuration_operations.reload() + configuration_operations.logger.info('Reboot completed') + + @context_from_args + def orchestration_save(self, context, mode="shallow", custom_params=None): + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Orchestration save started') + response = configuration_operations.orchestration_save(mode=mode, custom_params=custom_params) + configuration_operations.logger.info('Orchestration save completed') + return response + + @context_from_args + def orchestration_restore(self, context, saved_artifact_info, custom_params=None): + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Orchestration restore started') + configuration_operations.orchestration_restore(saved_artifact_info=saved_artifact_info, + custom_params=custom_params) + configuration_operations.logger.info('Orchestration restore completed') + + @context_from_args + def get_inventory(self, context): + """Return device structure with all standard attributes + + :return: response + :rtype: string + """ + + autoload_operations = EricssonExtendedIPOSSNMPAutoload() + autoload_operations.logger.info('Autoload started') + response = autoload_operations.discover() + autoload_operations.logger.info('Autoload completed') + return response + + @GlobalLock.lock + @context_from_args + def load_firmware(self, context, path, vrf_management_name=None): + """Upload and updates firmware on the resource + + :param path: full path to firmware file, i.e. tftp://10.10.10.1/firmware.tar + :param vrf_management_name: VRF management Name + :return: result + :rtype: string + """ + + firmware_operations = EricssonFirmwareOperations() + response = firmware_operations.load_firmware(path=path, vrf_management_name=vrf_management_name) + firmware_operations.logger.info(response) + + @context_from_args + def run_custom_command(self, context, custom_command): + """Send custom command + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + response = send_command_operations.run_custom_command(command=custom_command) + return response + + @context_from_args + def health_check(self, context): + """Performs device health check + + """ + + state_operations = EricssonStateOperations() + return state_operations.health_check() + + @context_from_args + def run_custom_config_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + result_str = send_command_operations.run_custom_config_command(command=custom_command) + return result_str + + @GlobalLock.lock + @context_from_args + def update_firmware(self, context, remote_host, file_path): + """Upload and updates firmware on the resource + + :param remote_host: path to firmware file location on ftp or tftp server + :param file_path: firmware file name + :return: result + :rtype: string + """ + + firmware_operations = EricssonFirmwareOperations() + response = firmware_operations.load_firmware(path=remote_host) + firmware_operations.logger.info(response) + + @context_from_args + def send_custom_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + response = send_command_operations.run_custom_command(command=custom_command) + return response + + @context_from_args + def send_custom_config_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + result_str = send_command_operations.run_custom_config_command(command=custom_command) + return result_str + + @context_from_args + def shutdown(self, context): + pass diff --git a/ericsson_ipos_extended_shell/src/requirements.txt b/ericsson_ipos_extended_shell/src/requirements.txt new file mode 100644 index 0000000..094b19a --- /dev/null +++ b/ericsson_ipos_extended_shell/src/requirements.txt @@ -0,0 +1 @@ +cloudshell-networking-ericsson-ipos-extended>=1.0,<1.1 \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/test_requirements.txt b/ericsson_ipos_extended_shell/test_requirements.txt new file mode 100644 index 0000000..7d963ba --- /dev/null +++ b/ericsson_ipos_extended_shell/test_requirements.txt @@ -0,0 +1,7 @@ +nose +coverage +unittest2 +mock +teamcity-messages +jsonpickle +nose-exclude \ No newline at end of file diff --git a/ericsson_ipos_extended_shell/tests/__init__.py b/ericsson_ipos_extended_shell/tests/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/ericsson_ipos_extended_shell/tests/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/ericsson_ipos_extended_shell/tests/test_ericsson_ipos_extended_shell.py b/ericsson_ipos_extended_shell/tests/test_ericsson_ipos_extended_shell.py new file mode 100644 index 0000000..7b6ed12 --- /dev/null +++ b/ericsson_ipos_extended_shell/tests/test_ericsson_ipos_extended_shell.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +""" +Tests for `EricssonIposExtendedShellDriver` +""" + +import unittest + +from driver import EricssonIposExtendedShellDriver + + +class TestEricssonIposExtendedShellDriver(unittest.TestCase): + + def setUp(self): + pass + + def tearDown(self): + pass + + def test_000_something(self): + pass + + +if __name__ == '__main__': + import sys + sys.exit(unittest.main()) diff --git a/ericsson_ipos_extended_shell/version.txt b/ericsson_ipos_extended_shell/version.txt new file mode 100644 index 0000000..afaf360 --- /dev/null +++ b/ericsson_ipos_extended_shell/version.txt @@ -0,0 +1 @@ +1.0.0 \ No newline at end of file diff --git a/package/LICENSE.htm b/package/LICENSE.htm new file mode 100644 index 0000000..f0d1b76 --- /dev/null +++ b/package/LICENSE.htm @@ -0,0 +1,1576 @@ + + + + + + + + + + + + + + + + + + + + + + + + cloudshell-core/LICENSE at 6.4 · QualiSystems/cloudshell-core + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Skip to content + + + + + + + + + + + + + + +
+ +
+
+ + +
+
+
+ +
+
+ + + +
    + +
  • +
    + +
    + + + + Unwatch + + + + +
    + +
    +
    +
    +
  • + +
  • + +
    + +
    + + +
    +
    + + +
    + +
  • + +
  • + + + Fork + + + + + +
  • +
+ +

+ + /cloudshell-core + + + + + +

+ +
+ +
+ +
+
+ + + + + + + +
+ +
+ + + +
+ +
+ + Find file + + +
+ +
+ + +
+ + + a2e6e03 + + + + + + + + +
+ +
+
+
+ +
+ Raw + Blame + History +
+ + + + + +
+ +
+ +
+ +
+ 202 lines (169 sloc) + + 11.1 KB +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
1. Definitions.
+
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
+
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
+
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
+
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
+
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
+
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
+
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
+
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
+
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
+
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
+
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
+
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
+
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
+
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
+
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
+
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
+
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
+
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
+
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
+
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
+
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
+
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
+
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
+
END OF TERMS AND CONDITIONS
+
APPENDIX: How to apply the Apache License to your work.
+
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
+
Copyright {yyyy} {name of copyright owner}
+
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.
+ +
+ +
+ +Jump to Line + + +
+ +
+ + +
+
+ +
+ + + + + + + + + +
+ + + Something went wrong with that request. Please try again. +
+ + + + + + + + + + + + + + diff --git a/package/MANIFEST.in b/package/MANIFEST.in new file mode 100644 index 0000000..9b1e748 --- /dev/null +++ b/package/MANIFEST.in @@ -0,0 +1,3 @@ +include *.txt +global-include *.ini +global-include *.json diff --git a/package/README.md b/package/README.md new file mode 100644 index 0000000..1f7d2a6 --- /dev/null +++ b/package/README.md @@ -0,0 +1,6 @@ +# Ericsson IPOS Shell +This Shell supports all Ericsson networking devices that run IPOS operating system. + +A CloudShell Shell implements integration of a device model, application or other technology with CloudShell. A Shell consists of a data-model that defines how the device and its properties are modeled in CloudShell along with an automation that enables interaction with the device via CloudShell. + +This Shell provides you with connectivity and management capabilities such as save and restore configurations, structure autoload functionality, upgrading firmware etc. diff --git a/package/README.txt b/package/README.txt new file mode 100644 index 0000000..96f2920 --- /dev/null +++ b/package/README.txt @@ -0,0 +1 @@ +CloudShell networking Ericsson IPOS specific package powered by QualiSystems \ No newline at end of file diff --git a/package/cloudshell/__init__.py b/package/cloudshell/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/networking/__init__.py b/package/cloudshell/networking/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/networking/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/networking/ericsson/__init__.py b/package/cloudshell/networking/ericsson/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/networking/ericsson/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/networking/ericsson/extended/__init__.py b/package/cloudshell/networking/ericsson/extended/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/__init__.py b/package/cloudshell/networking/ericsson/extended/ipos/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/__init__.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/ericsson_ext_ipos_autoload_config.json b/package/cloudshell/networking/ericsson/extended/ipos/autoload/ericsson_ext_ipos_autoload_config.json new file mode 100644 index 0000000..58c8eaa --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/ericsson_ext_ipos_autoload_config.json @@ -0,0 +1,109 @@ +{ + "1.3.6.1.4.1.193.218.6.9.204" : { + "linecard_model" : "ge-40-port", + "pfe_0" : { + "1GE_ports" : [ + "1-40" + ] + } + }, + "1.3.6.1.4.1.193.218.6.9.205" : { + "linecard_model" : "10ge-10-port", + "pfe_0" : { + "10GE_ports" : [ + "1-10" + ] + } + }, + "1.3.6.1.4.1.193.218.6.9.211" : { + "linecard_model" : "1-10ge-20-4-port", + "pfe_0" : { + "1GE_ports" : [ + "1-10" + ], + "10GE_ports" : [ + "21", + "23" + ] + }, + "pfe_1" : { + "1GE_ports" : [ + "11-20" + ], + "10GE_ports" : [ + "22", + "24" + ] + } + }, + "1.3.6.1.4.1.193.218.6.9.252" : { + "linecard_model" : "1-100ge-24-2-port", + "pfe_0" : { + "1GE_ports" : [ + "1-24" + ], + "100GE_ports" : [ + "23", + "24" + ] + } + }, + "1.3.6.1.4.1.193.218.6.9.210" : { + "linecard_model" : "40-100ge-2-port", + "pfe_0" : { + "40GE_ports" : [ + "1", "2" + ], + "100GE_ports" : ["1"] + } + }, + "1.3.6.1.4.1.193.218.6.9.209" : { + "linecard_model" : "1-10ge-20-port", + "pfe_0" : { + "1GE_ports" : [ + "1-10" + ], + "10GE_ports" : [ + "1-10" + ] + }, + "pfe_1" : { + "1GE_ports" : [ + "11-20" + ], + "10GE_ports" : [ + "11-20" + ] + } + }, + "1.3.6.1.4.1.193.218.6.9.218" : { + "linecard_model" : "10-100ge-2-2-port", + "pfe_0" : { + "10GE_ports" : ["1"], + "100GE_ports" : ["3", "5"] + }, + "pfe_1" : { + "10GE_ports" : ["2"], + "100GE_ports" : ["4"] + } + }, + "1.3.6.1.4.1.193.218.6.9.215" : { + "linecard_model" : "1-10ge-40-port", + "pfe_0" : { + "1GE_ports" : [ + "1-20" + ], + "10GE_ports" : [ + "1-20" + ] + }, + "pfe_1" : { + "1GE_ports" : [ + "21-40" + ], + "10GE_ports" : [ + "21-40" + ] + } + } +} \ No newline at end of file diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/ericsson_extended_ipos_snmp_autoload.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/ericsson_extended_ipos_snmp_autoload.py new file mode 100644 index 0000000..de6cc01 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/ericsson_extended_ipos_snmp_autoload.py @@ -0,0 +1,105 @@ +import json +import os +import time + +import inject + +from cloudshell.configuration.cloudshell_cli_binding_keys import CLI_SERVICE +from cloudshell.networking.ericsson.extended.ericsson_extended_snmp_autoload import EricssonExtendedSNMPAutoload +from cloudshell.shell.core.context_utils import get_attribute_by_name + + +class EricssonExtendedIPOSSNMPAutoload(EricssonExtendedSNMPAutoload): + def __init__(self, snmp_handler=None, logger=None, supported_os=None, cli=None, snmp_community=None): + """Basic init with injected snmp handler and logger + + :param snmp_handler: + :param logger: + :return: + """ + super(EricssonExtendedIPOSSNMPAutoload, self).__init__(snmp_handler, logger, supported_os) + self.port_ethernet_vendor_type_pattern = r'port.*\d+ge|\S+.1.193.218.6.10.251|\S+Port.251' + self._cli = cli + self.snmp_view = 'qualiview' + self.snmp_community = snmp_community + self._enable_snmp = True + self._disable_snmp = False + self.vendor_type_exclusion_pattern = ['port.*mgmt'] + self.interface_mapping_key = 'eriRouterIpBindIfIndex' + self.interface_mapping_mib = 'ERICSSON-ROUTER-IP-BIND-MIB' + self.load_mib_list = ['ERICSSON-ROUTER-PRODUCT-MIB'] + self._load_configuration() + if not self.snmp_community: + self.snmp_community = get_attribute_by_name('SNMP Read Community') or 'qualicommunity' + + def load_ericsson_mib(self): + local_path = os.path.dirname(__file__) + mib_path = os.path.abspath(os.path.join(local_path, '', 'mib')) + + self.snmp.update_mib_sources(mib_path) + + def _load_configuration(self): + local_path = os.path.dirname(__file__) + self.configuration_file_path = os.path.abspath(os.path.join(local_path, '', + 'ericsson_ext_ipos_autoload_config.json')) + str_config = open(self.configuration_file_path, 'r').read() + self.configuration = json.loads(str_config) + + @property + def cli(self): + if self._cli is None: + self._cli = inject.instance(CLI_SERVICE) + return self._cli + + def discover(self): + try: + self._enable_snmp = (get_attribute_by_name('Enable SNMP') or 'true').lower() == 'true' + self._disable_snmp = (get_attribute_by_name('Disable SNMP') or 'false').lower() == 'true' + except: + pass + + if self._enable_snmp: + self.enable_snmp() + try: + result = self.get_autoload_details() + except Exception as e: + self.logger.error('Autoload failed: {0}'.format(e.message)) + raise Exception('EricssonGenericSNMPAutoload', e.message) + finally: + if self._disable_snmp: + self.disable_snmp() + return result + + def enable_snmp(self): + snmp_service_enabled = 'not supported' not in self.cli.send_command('show service | include snmp').lower() + existing_snmp_server = 'snmp server is not running' not in self.cli.send_command('show snmp server').lower() + existing_snmp_view = self.snmp_view in self.cli.send_command('show snmp view').lower() + existing_snmp_community = self.snmp_community in self.cli.send_command('show snmp communities').lower() + + if not snmp_service_enabled: + self.cli.send_config_command('context local') + self.cli.send_config_command('service snmp server') + self.cli.send_config_command('end') + + if not existing_snmp_server: + self.cli.send_config_command('snmp server enhance ifmib') + + if not existing_snmp_view: + self.cli.send_config_command('snmp view {0} internet included'.format(self.snmp_view)) + if existing_snmp_community: + self.cli.send_config_command('no snmp community {0}'.format(self.snmp_community)) + existing_snmp_community = False + + if not existing_snmp_community: + self.cli.send_config_command('snmp community {0} all-contexts view qualiview read-only'.format( + self.snmp_community)) + self.cli.commit() + + def disable_snmp(self): + time.sleep(5) + self.cli.send_config_command('no snmp community {0}'.format(self.snmp_community)) + self.cli.send_config_command('no snmp view {0}'.format(self.snmp_view)) + self.cli.send_config_command('no snmp server') + self.cli.send_config_command('context local') + self.cli.send_config_command('default service snmp server') + self.cli.send_config_command('end') diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-IP-BIND-MIB.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-IP-BIND-MIB.py new file mode 100644 index 0000000..2b14591 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-IP-BIND-MIB.py @@ -0,0 +1,33 @@ +# +# PySNMP MIB module ERICSSON-ROUTER-IP-BIND-MIB (http://pysnmp.sf.net) +# ASN.1 source file://\usr\share\snmp\ERICSSON-ROUTER-IP-BIND-MIB.my +# Produced by pysmi-0.0.6 at Wed Aug 03 17:53:30 2016 +# On host ? platform ? version ? by user ? +# Using Python version 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] +# +( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") +( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") +( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") +( eriRouterMgmt, ) = mibBuilder.importSymbols("ERICSSON-ROUTER-SMI", "eriRouterMgmt") +( EriRouterCircuitHandle, ) = mibBuilder.importSymbols("ERICSSON-ROUTER-TC", "EriRouterCircuitHandle") +( ifIndex, InterfaceIndexOrZero, ) = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndexOrZero") +( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") +( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") +( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "Bits", "Counter32") +( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") +eriRouterIpBindMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 193, 218, 2, 26)).setRevisions(("2015-01-14 18:00", "2011-01-19 18:00", "2002-08-20 12:00",)) +eriRouterIpBindMibNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 0)) +eriRouterIpBindMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1)) +eriRouterIpBindMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 2)) +eriRouterIpBindTable = MibTable((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1), ) +eriRouterIpBindEntry = MibTableRow((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "ERICSSON-ROUTER-IP-BIND-MIB", "eriRouterIpBindCircuitHandle")) +eriRouterIpBindCircuitHandle = MibTableColumn((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1, 1, 1), EriRouterCircuitHandle()) +eriRouterIpBindIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1, 1, 2), InterfaceIndexOrZero()).setMaxAccess("readonly") +eriRouterIpBindHierarchicalIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1, 1, 3), InterfaceIndexOrZero()).setMaxAccess("readonly") +eriRouterIpBindCircuitDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,192))).setMaxAccess("readonly") +eriRouterIpBindContextName = MibTableColumn((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 1, 1, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,63))).setMaxAccess("readonly") +eriRouterIpBindCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 2, 1)) +eriRouterIpBindGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 2, 2)) +eriRouterIpBindCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 2, 1, 1)).setObjects(*(("ERICSSON-ROUTER-IP-BIND-MIB", "eriRouterIpBindDisplayGroup"),)) +eriRouterIpBindDisplayGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 193, 218, 2, 26, 2, 2, 1)).setObjects(*(("ERICSSON-ROUTER-IP-BIND-MIB", "eriRouterIpBindIfIndex"), ("ERICSSON-ROUTER-IP-BIND-MIB", "eriRouterIpBindHierarchicalIfIndex"), ("ERICSSON-ROUTER-IP-BIND-MIB", "eriRouterIpBindCircuitDescr"), ("ERICSSON-ROUTER-IP-BIND-MIB", "eriRouterIpBindContextName"),)) +mibBuilder.exportSymbols("ERICSSON-ROUTER-IP-BIND-MIB", eriRouterIpBindMibConformance=eriRouterIpBindMibConformance, eriRouterIpBindDisplayGroup=eriRouterIpBindDisplayGroup, eriRouterIpBindTable=eriRouterIpBindTable, eriRouterIpBindGroups=eriRouterIpBindGroups, PYSNMP_MODULE_ID=eriRouterIpBindMib, eriRouterIpBindMibNotifications=eriRouterIpBindMibNotifications, eriRouterIpBindIfIndex=eriRouterIpBindIfIndex, eriRouterIpBindMibObjects=eriRouterIpBindMibObjects, eriRouterIpBindContextName=eriRouterIpBindContextName, eriRouterIpBindMib=eriRouterIpBindMib, eriRouterIpBindCircuitDescr=eriRouterIpBindCircuitDescr, eriRouterIpBindCompliances=eriRouterIpBindCompliances, eriRouterIpBindEntry=eriRouterIpBindEntry, eriRouterIpBindCircuitHandle=eriRouterIpBindCircuitHandle, eriRouterIpBindCompliance=eriRouterIpBindCompliance, eriRouterIpBindHierarchicalIfIndex=eriRouterIpBindHierarchicalIfIndex) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-PRODUCT-MIB.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-PRODUCT-MIB.py new file mode 100644 index 0000000..73389ed --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-PRODUCT-MIB.py @@ -0,0 +1,670 @@ +# +# PySNMP MIB module ERICSSON-ROUTER-PRODUCT-MIB (http://pysnmp.sf.net) +# ASN.1 source file://C:\MIBS\text_mibs\ERICSSON-ROUTER-PRODUCT-MIB.my +# Produced by pysmi-0.0.6 at Tue Dec 20 11:45:36 2016 +# On host ? platform ? version ? by user ? +# Using Python version 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] +# +(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", + "OctetString") +(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") +(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, + ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", + "ConstraintsIntersection", "ValueSizeConstraint", + "ValueRangeConstraint") +(eriRouterProducts, eriRouterEntities, eriRouterModules,) = mibBuilder.importSymbols("ERICSSON-ROUTER-SMI", + "eriRouterProducts", + "eriRouterEntities", + "eriRouterModules") +(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", + "ModuleCompliance") +(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, + Counter64, Unsigned32, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits, Counter32,) = mibBuilder.importSymbols( + "SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", + "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "ModuleIdentity", + "ObjectIdentity", "Bits", "Counter32") +(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") +eriRouterProductMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 193, 218, 5, 1)).setRevisions(("2015-08-25 18:00", + "2015-01-14 18:00", + "2014-09-22 18:00", + "2013-10-17 18:00", + "2013-09-16 18:00", + "2013-06-19 18:00", + "2013-04-18 18:00", + "2013-01-14 18:00", + "2012-06-25 18:00", + "2012-03-19 18:00", + "2012-02-10 18:00", + "2011-06-02 18:00", + "2011-01-19 18:00", + "2010-10-01 00:00", + "2010-08-27 00:00", + "2010-04-01 00:00", + "2010-01-27 00:00", + "2009-10-05 00:00", + "2009-09-24 00:00", + "2009-09-13 00:00", + "2009-09-10 00:00", + "2009-07-16 00:00", + "2009-02-04 00:00", + "2009-01-20 00:00", + "2008-09-23 00:00", + "2008-07-02 00:00", + "2008-05-20 00:00", + "2008-05-08 00:00", + "2007-09-20 00:00", + "2007-08-08 00:00", + "2007-05-09 00:00", + "2007-02-28 00:00", + "2007-02-14 00:00", + "2007-02-05 00:00", + "2005-12-27 00:00", + "2005-03-01 00:00", + "2004-11-05 00:00", + "2004-05-11 00:00", + "2003-09-25 00:00", + "2003-07-24 00:00", + "2003-05-19 17:00", + "2003-05-05 00:00", + "2003-03-25 00:00", + "2002-06-13 00:00", + "2002-06-06 00:00", + "2001-12-12 00:00", + "2001-09-26 17:00", + "2001-07-25 10:00", + "2001-05-15 15:07", + "2001-05-04 16:42", + "2001-02-13 18:57", + "2001-02-13 10:07", + "2001-02-01 17:07", + "2001-01-05 18:34", + "2000-12-28 17:04", + "2000-11-15 17:04", + "2000-11-02 14:54", + "2000-10-25 15:23", + "2000-10-20 17:30", + "2000-09-26 13:30", + "2000-09-25 11:20", + "2000-07-19 15:44", + "2000-07-06 21:50", + "2000-06-16 17:00", + "2000-06-13 17:00", + "2000-05-18 00:00", + "1999-07-08 17:12", + "1998-08-05 19:00",)) +eriRouterSMS1000 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 1)) +eriRouterSMS500 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 2)) +eriRouterSMS1800 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 3)) +eriRouterSMS10000 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 4)) +eriRouterSmartEdge800 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 10)) +eriRouterSmartEdge400 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 11)) +eriRouterSmartEdge100 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 12)) +eriRouterSmartEdge1200 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 13)) +eriRouterSM480 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 14)) +eriRouterSmartEdge600 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 15)) +eriRouterSM240 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 16)) +eriRouterSSR8020 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 17)) +eriRouterSSR8010 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 18)) +eriRouterSSR8004 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 19)) +eriRouterSP415 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 20)) +eriRouterSP420 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 21)) +eriRouterIposRefChassis = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 22)) +eriRouterIposRefPizza = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 23)) +eriRouterSSR8801 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1, 30)) +eriRouterEntityTypeOther = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 1)) +eriRouterEntityTypeUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 2)) +eriRouterEntityTypeChassis = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3)) +eriRouterEntChassisSMS1000 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 1)) +eriRouterEntChassisSMS500 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 2)) +eriRouterEntChassisSMS1800 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 3)) +eriRouterEntChassisSMS10000 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 4)) +eriRouterEntChassisSE800 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 6)) +eriRouterEntChassisSE400 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 7)) +eriRouterEntChassisSE100 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 8)) +eriRouterEntChassisSE1200 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 9)) +eriRouterEntChassisSM480 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 10)) +eriRouterEntChassisSE600 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 11)) +eriRouterEntChassisSM240 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 12)) +eriRouterEntChassisSE1200H = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 13)) +eriRouterEntChassisSSR8020 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 14)) +eriRouterEntChassisSSR8010 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 15)) +eriRouterEntChassisSSR8004 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 16)) +eriRouterEntChassisSP415 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 17)) +eriRouterEntChassisSP420 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 3, 18)) +eriRouterEntityTypeBackplane = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4)) +eriRouterEntBackplaneSMS1000Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 1)) +eriRouterEntBackplaneSMS1000Power = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 2)) +eriRouterEntBackplaneSMS500Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 3)) +eriRouterEntBackplaneSMS500Power = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 4)) +eriRouterEntBackplaneSMS1800Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 5)) +eriRouterEntBackplaneSMS1800Power = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 6)) +eriRouterEntBackplaneSMS10000Midplane = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 7)) +eriRouterEntBackplaneSE800Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 10)) +eriRouterEntBackplaneSE400Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 11)) +eriRouterEntBackplaneSE100Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 12)) +eriRouterEntBackplaneSE1200Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 13)) +eriRouterEntBackplaneSM480Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 14)) +eriRouterEntBackplaneSE600Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 15)) +eriRouterEntBackplaneSM240Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 16)) +eriRouterEntBackplaneSE1200HData = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 17)) +eriRouterEntBackplaneSSR8020Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 18)) +eriRouterEntBackplaneSSR8010Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 19)) +eriRouterEntBackplaneSSR8004Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 20)) +eriRouterEntBackplaneSP415Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 21)) +eriRouterEntBackplaneSP420Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 4, 22)) +eriRouterEntityTypeContainer = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5)) +eriRouterEntContainerSMS1000Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 1)) +eriRouterEntContainerSMS1000Power = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 2)) +eriRouterEntContainerSMS500Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 3)) +eriRouterEntContainerSMS500Power = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 4)) +eriRouterEntContainerSMS1800Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 5)) +eriRouterEntContainerSMS1800Power = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 6)) +eriRouterEntContainerSMS10000Fabric = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 7)) +eriRouterEntContainerSMS10000Timing = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 8)) +eriRouterEntContainerSMS10000SMCM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 9)) +eriRouterEntContainerSMS10000IO = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 10)) +eriRouterEntContainerSE800Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 14)) +eriRouterEntContainerSE400Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 15)) +eriRouterEntContainerSE100Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 16)) +eriRouterEntContainerSE100Carrier = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 17)) +eriRouterEntContainerSE1200Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 18)) +eriRouterEntContainerSM480Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 19)) +eriRouterEntContainerSE600Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 20)) +eriRouterEntContainerSM240Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 21)) +eriRouterEntContainerSE1200HData = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 22)) +eriRouterEntContainerSSR8020FanTray = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 23)) +eriRouterEntContainerSSR8020PowerModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 24)) +eriRouterEntContainerSSR8020Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 25)) +eriRouterEntContainerSSR8010FanTray = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 26)) +eriRouterEntContainerSSR8010PowerModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 27)) +eriRouterEntContainerSSR8010Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 28)) +eriRouterEntContainerSSR8004FanTray = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 29)) +eriRouterEntContainerSSR8004PowerModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 30)) +eriRouterEntContainerSSR8004Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 31)) +eriRouterEntContainerSPSC1FanTray = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 32)) +eriRouterEntContainerSPSC1PowerModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 33)) +eriRouterEntContainerSPSC1Data = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 5, 34)) +eriRouterEntityTypePowerSupply = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6)) +eriRouterEntPowerSupplyUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 1)) +eriRouterEntPowerSupplySMS1000AC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 2)) +eriRouterEntPowerSupplySMS1000DC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 3)) +eriRouterEntPowerSupplySMS500AC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 4)) +eriRouterEntPowerSupplySMS500DC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 5)) +eriRouterEntPowerSupplySMS1800AC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 6)) +eriRouterEntPowerSupplySMS1800DC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 7)) +eriRouterEntPowerModuleSSR = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 10)) +eriRouterEntPowerModuleSPSC1AC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 11)) +eriRouterEntPowerModuleSPSC1DC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 6, 12)) +eriRouterEntityTypeFan = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7)) +eriRouterEntFanSE800 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 1)) +eriRouterEntFanSE400 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 2)) +eriRouterEntFanSE1200 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 3)) +eriRouterEntFanSM480 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 4)) +eriRouterEntFanSE600 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 5)) +eriRouterEntFanSM240 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 6)) +eriRouterEntFanSE1200H = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 7)) +eriRouterEntFanTraySSR = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 8)) +eriRouterEntFanTraySPSC1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 9)) +eriRouterEntFanTrayAlarmIOSPSC1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 7, 10)) +eriRouterEntityTypeSensor = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 8)) +eriRouterEntSensorAlarmSE400 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 8, 1)) +eriRouterEntSensorAlarmSE600 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 8, 2)) +eriRouterEntSensorAlarmSM240 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 8, 3)) +eriRouterEntityTypeModule = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9)) +eriRouterEntModuleUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 1)) +eriRouterEntModuleSMSCE1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 16)) +eriRouterEntModuleSMSCE2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 17)) +eriRouterEntModuleSMSCE3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 18)) +eriRouterEntModuleSMSFE1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 10)) +eriRouterEntModuleSMSFE2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 12)) +eriRouterEntModuleSMSFE3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 35)) +eriRouterEntModuleSMSXFE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 40)) +eriRouterEntModuleSMSFABRIC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 29)) +eriRouterEntModuleSMSTIMING = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 31)) +eriRouterEntModuleSMSCM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 30)) +eriRouterEntModuleSMSSM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 32)) +eriRouterEntModuleSMSEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 6)) +eriRouterEntModuleSMSGIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 26)) +eriRouterEntModuleSMSAIMDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 4)) +eriRouterEntModuleSMSPIME3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 8)) +eriRouterEntModuleSMSPIME1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 22)) +eriRouterEntModuleSMSAIME3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 5)) +eriRouterEntModuleSMSAIME1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 23)) +eriRouterEntModuleSMSAIMT1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 20)) +eriRouterEntModuleSMSAIMOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 3)) +eriRouterEntModuleSMSAIMOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 27)) +eriRouterEntModuleSMSPOSOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 24)) +eriRouterEntModuleSMSPOSOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 25)) +eriRouterEntModuleSMSIPSEC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 28)) +eriRouterEntModuleSMSPIMDS1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 14)) +eriRouterEntModuleSMSPIMDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 7)) +eriRouterEntModuleSMSPIMCDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 15)) +eriRouterEntModuleSMSPIMHSSI = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 9)) +eriRouterEntModuleSEXC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 41)) +eriRouterEntModuleSEEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 42)) +eriRouterEntModuleSEGIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 43)) +eriRouterEntModuleSEPOSOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 44)) +eriRouterEntModuleSEPOSOC48 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 45)) +eriRouterEntModuleSEPOSOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 46)) +eriRouterEntModuleSECHOC12DS1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 47)) +eriRouterEntModuleSECHOC12DS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 48)) +eriRouterEntModuleSEAIMOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 49)) +eriRouterEntModuleSEAIMOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 50)) +eriRouterEntModuleSECHDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 51)) +eriRouterEntModuleSEDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 52)) +eriRouterEntModuleSEAIMDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 53)) +eriRouterEntModuleSECHSTM1E1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 54)) +eriRouterEntModuleSEE1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 55)) +eriRouterEntModuleSEXC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 56)) +eriRouterEntModuleSEE3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 57)) +eriRouterEntModuleSEAIMOC12E = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 58)) +eriRouterEntModuleSEGIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 59)) +eriRouterEntModuleSE10GIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 60)) +eriRouterEntModuleSE100XC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 61)) +eriRouterEntModuleSE100EMIC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 62)) +eriRouterEntModuleSE100FXMIC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 63)) +eriRouterEntModuleSE100GERJMIC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 64)) +eriRouterEntModuleSE100GEFXMIC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 65)) +eriRouterEntModuleSEXC4 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 66)) +eriRouterEntModuleSE100AIMOC3MIC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 67)) +eriRouterEntModuleSEASE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 68)) +eriRouterEntModuleSEFE60GE2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 69)) +eriRouterEntModuleSEPOSOC192 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 70)) +eriRouterEntModuleSE5PortGIGE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 71)) +eriRouterEntModuleSE20PortGIGE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 72)) +eriRouterEntModuleSE4Port10GIGE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 73)) +eriRouterEntModuleSE10GIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 74)) +eriRouterEntModuleSESSE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 75)) +eriRouterEntModuleSE10PortGIGEDDR2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 76)) +eriRouterEntModuleSE4PortOC48 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 77)) +eriRouterEntModuleSE8PortOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 78)) +eriRouterEntModuleSE8OR2PORTCHOC3OC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 79)) +eriRouterEntModuleSEASE2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 80)) +eriRouterEntModuleSE1Port10GEOC192 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 81)) +eriRouterEntModuleSEPos8xOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 82)) +eriRouterEntModuleSEPos4xOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 83)) +eriRouterEntModuleSEAtm2xOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 84)) +eriRouterEntModuleSM10GIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 101)) +eriRouterEntModuleSMRP2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 102)) +eriRouterEntModuleSMGIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 104)) +eriRouterEntModuleSMGIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 105)) +eriRouterEntModuleSM10GIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 106)) +eriRouterEntModuleSMFE60GE2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 107)) +eriRouterEntModuleSM20PortGIGE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 108)) +eriRouterEntModuleSM4Port10GIGE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 109)) +eriRouterEntModuleSM10PortGIGEDDR2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 110)) +eriRouterEntModuleSM1Port10GEOC192 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 111)) +eriRouterEntModuleSM8OR2PORTCHOC3OC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 112)) +eriRouterEntModuleSSRALSW = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 201)) +eriRouterEntModuleSSRRPSW = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 202)) +eriRouterEntModuleSSRSW = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 203)) +eriRouterEntModuleSSR40Port1GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 204)) +eriRouterEntModuleSSR10Port10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 205)) +eriRouterEntModuleSSC1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 207)) +eriRouterEntModuleSSC2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 208)) +eriRouterEntModuleSSR20Port1GEor10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 209)) +eriRouterEntModuleSSR2Port40GEor100GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 210)) +eriRouterEntModuleSSR20Port1GEor4Port10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 211)) +eriRouterEntModuleSPSC1SC = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 212)) +eriRouterEntModuleSPSC11Port10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 213)) +eriRouterEntModuleSPSC18PortCES = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 214)) +eriRouterEntModuleSPSC116Port1GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 215)) +eriRouterEntModuleSPSC120and2Port1and10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 216)) +eriRouterEntModuleSSR20PortOC3orOC12orOC48orOC192 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 9, 217)) +eriRouterEntityTypePort = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10)) +eriRouterEntPortUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 1)) +eriRouterEntPortSMSCE1MGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 16)) +eriRouterEntPortSMSCE2MGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 17)) +eriRouterEntPortSMSCE3MGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 18)) +eriRouterEntPortSMSEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 6)) +eriRouterEntPortSMSGIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 26)) +eriRouterEntPortSMSAIMDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 4)) +eriRouterEntPortSMSPIME3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 8)) +eriRouterEntPortSMSPIME1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 22)) +eriRouterEntPortSMSAIME3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 5)) +eriRouterEntPortSMSAIME1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 23)) +eriRouterEntPortSMSAIMT1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 20)) +eriRouterEntPortSMSAIMOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 3)) +eriRouterEntPortSMSAIMOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 27)) +eriRouterEntPortSMSPOSOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 24)) +eriRouterEntPortSMSPOSOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 25)) +eriRouterEntPortSMSPIMDS1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 14)) +eriRouterEntPortSMSPIMDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 7)) +eriRouterEntPortSMSPIMCDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 15)) +eriRouterEntPortSMSPIMHSSI = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 9)) +eriRouterEntPortSEXCMGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 41)) +eriRouterEntPortSEEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 42)) +eriRouterEntPortSEGIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 43)) +eriRouterEntPortSEPOSOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 44)) +eriRouterEntPortSEPOSOC48 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 45)) +eriRouterEntPortSEPOSOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 46)) +eriRouterEntPortSECHOC12DS1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 47)) +eriRouterEntPortSECHOC12DS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 48)) +eriRouterEntPortSEAIMOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 49)) +eriRouterEntPortSEAIMOC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 50)) +eriRouterEntPortSECHDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 51)) +eriRouterEntPortSEDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 52)) +eriRouterEntPortSEAIMDS3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 53)) +eriRouterEntPortSECHSTM1E1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 54)) +eriRouterEntPortSEE1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 55)) +eriRouterEntPortSEXC3MGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 56)) +eriRouterEntPortSEE3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 57)) +eriRouterEntPortSEAIMOC12E = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 58)) +eriRouterEntPortSEGIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 59)) +eriRouterEntPortSE10GIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 60)) +eriRouterEntPortSE100XCMGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 61)) +eriRouterEntPortSE100EIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 62)) +eriRouterEntPortSE100FXIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 63)) +eriRouterEntPortSE100GERJIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 64)) +eriRouterEntPortSE100GEFXIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 65)) +eriRouterEntPortSEXC4MGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 66)) +eriRouterEntPortSE100AIMOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 67)) +eriRouterEntPortSEPOSOC192 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 68)) +eriRouterEntPortSE10GIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 69)) +eriRouterEntPortSECHOC3OC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 70)) +eriRouterEntPortSECHOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 71)) +eriRouterEntPortSM10GIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 101)) +eriRouterEntPortSMRPMGMT = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 103)) +eriRouterEntPortSMGIGEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 104)) +eriRouterEntPortSMGIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 105)) +eriRouterEntPortSM10GIGETM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 106)) +eriRouterEntPortSMEIM = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 107)) +eriRouterEntPortSMCHOC3OC12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 108)) +eriRouterEntPortSMCHOC3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 109)) +eriRouterEntPortSSR1GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 201)) +eriRouterEntPortSSR10GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 202)) +eriRouterEntPortSSRRPSWMgmt = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 203)) +eriRouterEntPortSSR100GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 204)) +eriRouterEntPortSSR40GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 205)) +eriRouterEntPortSSR40GEor100GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 206)) +eriRouterEntPortSPSC11GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 207)) +eriRouterEntPortSPSC110GE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 208)) +eriRouterEntPortSPSC1SCMgmt = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 209)) +eriRouterEntPortSPSC1AlarmIn = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 210)) +eriRouterEntPortSPSC1AlarmOut = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 211)) +eriRouterEntPortSSR20POSOCorOC12orOC48orOC192 = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 10, 212)) +eriRouterEntityTypeStack = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 11)) +eriRouterEntityTypeCPU = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 12)) +eriRouterEntCpuUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 12, 1)) +eriRouterEntCpuOcteon = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 12, 2)) +eriRouterEntityTypeDisk = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 13)) +eriRouterEntDiskUnknown = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 13, 1)) +eriRouterEntDiskSSE = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 13, 2)) +eriRouterEntityTypeMemory = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6, 14)) +mibBuilder.exportSymbols("ERICSSON-ROUTER-PRODUCT-MIB", eriRouterEntPortSMSAIME3=eriRouterEntPortSMSAIME3, + eriRouterEntModuleSE100FXMIC=eriRouterEntModuleSE100FXMIC, + eriRouterEntModuleSM20PortGIGE=eriRouterEntModuleSM20PortGIGE, + eriRouterEntPortSMSAIMDS3=eriRouterEntPortSMSAIMDS3, + eriRouterEntContainerSMS10000Fabric=eriRouterEntContainerSMS10000Fabric, + eriRouterEntPortSEE1=eriRouterEntPortSEE1, eriRouterEntFanSM480=eriRouterEntFanSM480, + eriRouterEntFanSE600=eriRouterEntFanSE600, + eriRouterEntPortSPSC1SCMgmt=eriRouterEntPortSPSC1SCMgmt, + eriRouterEntityTypeFan=eriRouterEntityTypeFan, eriRouterEntFanSE1200=eriRouterEntFanSE1200, + eriRouterEntModuleSMSEIM=eriRouterEntModuleSMSEIM, + eriRouterEntContainerSE800Data=eriRouterEntContainerSE800Data, + eriRouterEntPortSMSPIMDS1=eriRouterEntPortSMSPIMDS1, + eriRouterSmartEdge1200=eriRouterSmartEdge1200, + eriRouterEntPortSECHSTM1E1=eriRouterEntPortSECHSTM1E1, eriRouterSMS1000=eriRouterSMS1000, + eriRouterEntModuleSEPos4xOC12=eriRouterEntModuleSEPos4xOC12, + eriRouterEntChassisSP420=eriRouterEntChassisSP420, + eriRouterEntBackplaneSMS1800Power=eriRouterEntBackplaneSMS1800Power, + eriRouterEntModuleSEXC3=eriRouterEntModuleSEXC3, + eriRouterEntChassisSE1200H=eriRouterEntChassisSE1200H, + eriRouterEntModuleSSRALSW=eriRouterEntModuleSSRALSW, + eriRouterEntPortSMSCE2MGMT=eriRouterEntPortSMSCE2MGMT, + eriRouterEntityTypeSensor=eriRouterEntityTypeSensor, + eriRouterEntPortSEGIGETM=eriRouterEntPortSEGIGETM, + eriRouterEntModuleSMSIPSEC=eriRouterEntModuleSMSIPSEC, + eriRouterEntBackplaneSP420Data=eriRouterEntBackplaneSP420Data, + eriRouterEntPortSMSPIMHSSI=eriRouterEntPortSMSPIMHSSI, + eriRouterEntityTypeContainer=eriRouterEntityTypeContainer, + eriRouterEntModuleSM8OR2PORTCHOC3OC12=eriRouterEntModuleSM8OR2PORTCHOC3OC12, + eriRouterEntPortUnknown=eriRouterEntPortUnknown, + eriRouterEntModuleSEAIMOC12=eriRouterEntModuleSEAIMOC12, + eriRouterEntChassisSM240=eriRouterEntChassisSM240, + eriRouterEntPortSPSC1AlarmIn=eriRouterEntPortSPSC1AlarmIn, + eriRouterEntModuleSEE1=eriRouterEntModuleSEE1, eriRouterEntPortSEE3=eriRouterEntPortSEE3, + eriRouterEntModuleSMRP2=eriRouterEntModuleSMRP2, + eriRouterEntContainerSE100Carrier=eriRouterEntContainerSE100Carrier, + eriRouterEntModuleSM10GIGEIM=eriRouterEntModuleSM10GIGEIM, + eriRouterEntChassisSE100=eriRouterEntChassisSE100, + eriRouterEntContainerSSR8010PowerModule=eriRouterEntContainerSSR8010PowerModule, + eriRouterEntModuleSMSAIME3=eriRouterEntModuleSMSAIME3, + eriRouterEntPortSEPOSOC12=eriRouterEntPortSEPOSOC12, + eriRouterEntModuleSEPos8xOC3=eriRouterEntModuleSEPos8xOC3, eriRouterSMS10000=eriRouterSMS10000, + eriRouterEntModuleSEXC4=eriRouterEntModuleSEXC4, + eriRouterEntPortSMSPOSOC12=eriRouterEntPortSMSPOSOC12, + eriRouterEntFanTrayAlarmIOSPSC1=eriRouterEntFanTrayAlarmIOSPSC1, + eriRouterEntContainerSSR8020Data=eriRouterEntContainerSSR8020Data, + eriRouterEntPortSM10GIGEIM=eriRouterEntPortSM10GIGEIM, + eriRouterEntPortSEAIMOC12=eriRouterEntPortSEAIMOC12, + eriRouterEntBackplaneSE800Data=eriRouterEntBackplaneSE800Data, + eriRouterEntityTypeStack=eriRouterEntityTypeStack, + eriRouterEntModuleSMSCE3=eriRouterEntModuleSMSCE3, + eriRouterEntityTypePowerSupply=eriRouterEntityTypePowerSupply, + eriRouterEntPortSSR40GEor100GE=eriRouterEntPortSSR40GEor100GE, + eriRouterEntModuleSPSC18PortCES=eriRouterEntModuleSPSC18PortCES, + eriRouterEntModuleSMSFE1=eriRouterEntModuleSMSFE1, + eriRouterEntPowerSupplySMS1800DC=eriRouterEntPowerSupplySMS1800DC, + eriRouterEntModuleSMSSM=eriRouterEntModuleSMSSM, + eriRouterEntPowerSupplySMS1000AC=eriRouterEntPowerSupplySMS1000AC, + eriRouterEntBackplaneSSR8004Data=eriRouterEntBackplaneSSR8004Data, + eriRouterEntContainerSMS1000Data=eriRouterEntContainerSMS1000Data, + eriRouterEntBackplaneSMS1000Power=eriRouterEntBackplaneSMS1000Power, + eriRouterEntityTypeModule=eriRouterEntityTypeModule, + eriRouterEntPortSSRRPSWMgmt=eriRouterEntPortSSRRPSWMgmt, + eriRouterEntCpuUnknown=eriRouterEntCpuUnknown, + eriRouterEntBackplaneSM240Data=eriRouterEntBackplaneSM240Data, + eriRouterEntContainerSE1200Data=eriRouterEntContainerSE1200Data, + eriRouterEntContainerSPSC1FanTray=eriRouterEntContainerSPSC1FanTray, + eriRouterEntContainerSE400Data=eriRouterEntContainerSE400Data, + eriRouterEntModuleSEPOSOC48=eriRouterEntModuleSEPOSOC48, + eriRouterEntModuleSMSXFE=eriRouterEntModuleSMSXFE, + eriRouterEntModuleSEAIMOC3=eriRouterEntModuleSEAIMOC3, + eriRouterEntModuleSMSPIMHSSI=eriRouterEntModuleSMSPIMHSSI, + eriRouterEntPortSMSAIME1=eriRouterEntPortSMSAIME1, + eriRouterEntPortSEXC4MGMT=eriRouterEntPortSEXC4MGMT, + eriRouterEntBackplaneSE400Data=eriRouterEntBackplaneSE400Data, + eriRouterEntModuleSMGIGEIM=eriRouterEntModuleSMGIGEIM, + eriRouterEntModuleSMSAIMDS3=eriRouterEntModuleSMSAIMDS3, + eriRouterIposRefChassis=eriRouterIposRefChassis, + eriRouterEntModuleSMSPIMCDS3=eriRouterEntModuleSMSPIMCDS3, eriRouterSMS1800=eriRouterSMS1800, + eriRouterEntContainerSMS1800Power=eriRouterEntContainerSMS1800Power, + eriRouterEntPortSMSAIMT1=eriRouterEntPortSMSAIMT1, eriRouterSmartEdge800=eriRouterSmartEdge800, + eriRouterEntFanSE400=eriRouterEntFanSE400, + eriRouterEntModuleSE4PortOC48=eriRouterEntModuleSE4PortOC48, + eriRouterEntContainerSPSC1PowerModule=eriRouterEntContainerSPSC1PowerModule, + eriRouterEntPortSECHOC3=eriRouterEntPortSECHOC3, + eriRouterEntPortSE100AIMOC3=eriRouterEntPortSE100AIMOC3, + eriRouterEntPortSSR1GE=eriRouterEntPortSSR1GE, + eriRouterEntModuleSMSAIMOC12=eriRouterEntModuleSMSAIMOC12, + eriRouterEntFanSE800=eriRouterEntFanSE800, + eriRouterEntPortSECHOC12DS1=eriRouterEntPortSECHOC12DS1, + eriRouterEntBackplaneSM480Data=eriRouterEntBackplaneSM480Data, + eriRouterEntDiskSSE=eriRouterEntDiskSSE, eriRouterEntModuleUnknown=eriRouterEntModuleUnknown, + eriRouterEntModuleSMGIGETM=eriRouterEntModuleSMGIGETM, + eriRouterEntPortSMCHOC3OC12=eriRouterEntPortSMCHOC3OC12, + eriRouterSmartEdge100=eriRouterSmartEdge100, + eriRouterEntPowerSupplySMS500DC=eriRouterEntPowerSupplySMS500DC, + eriRouterEntModuleSEAIMDS3=eriRouterEntModuleSEAIMDS3, + eriRouterEntPortSMSAIMOC12=eriRouterEntPortSMSAIMOC12, + eriRouterEntModuleSECHDS3=eriRouterEntModuleSECHDS3, + eriRouterEntContainerSM240Data=eriRouterEntContainerSM240Data, + eriRouterEntPortSE100GEFXIM=eriRouterEntPortSE100GEFXIM, + eriRouterSmartEdge600=eriRouterSmartEdge600, eriRouterEntPortSECHDS3=eriRouterEntPortSECHDS3, + eriRouterEntPortSEEIM=eriRouterEntPortSEEIM, eriRouterEntChassisSE800=eriRouterEntChassisSE800, + eriRouterEntPortSE10GIGETM=eriRouterEntPortSE10GIGETM, + eriRouterEntPortSE100FXIM=eriRouterEntPortSE100FXIM, + eriRouterEntChassisSM480=eriRouterEntChassisSM480, + eriRouterEntModuleSMSPIME1=eriRouterEntModuleSMSPIME1, + eriRouterEntityTypeDisk=eriRouterEntityTypeDisk, + eriRouterEntContainerSSR8010Data=eriRouterEntContainerSSR8010Data, + eriRouterSMS500=eriRouterSMS500, eriRouterEntPortSEPOSOC192=eriRouterEntPortSEPOSOC192, + eriRouterEntModuleSE8PortOC3=eriRouterEntModuleSE8PortOC3, + eriRouterEntModuleSEPOSOC12=eriRouterEntModuleSEPOSOC12, + eriRouterEntPortSM10GIGETM=eriRouterEntPortSM10GIGETM, eriRouterProductMIB=eriRouterProductMIB, + eriRouterEntBackplaneSMS1800Data=eriRouterEntBackplaneSMS1800Data, + eriRouterEntPortSMCHOC3=eriRouterEntPortSMCHOC3, + eriRouterEntBackplaneSP415Data=eriRouterEntBackplaneSP415Data, + eriRouterEntContainerSMS1000Power=eriRouterEntContainerSMS1000Power, + eriRouterEntityTypeOther=eriRouterEntityTypeOther, + eriRouterEntFanTraySPSC1=eriRouterEntFanTraySPSC1, + eriRouterEntPowerModuleSPSC1DC=eriRouterEntPowerModuleSPSC1DC, + eriRouterEntModuleSMSPOSOC3=eriRouterEntModuleSMSPOSOC3, eriRouterSM240=eriRouterSM240, + eriRouterEntModuleSPSC120and2Port1and10GE=eriRouterEntModuleSPSC120and2Port1and10GE, + eriRouterEntModuleSPSC116Port1GE=eriRouterEntModuleSPSC116Port1GE, + eriRouterEntModuleSSR20Port1GEor10GE=eriRouterEntModuleSSR20Port1GEor10GE, + eriRouterEntBackplaneSE1200HData=eriRouterEntBackplaneSE1200HData, + eriRouterEntContainerSSR8010FanTray=eriRouterEntContainerSSR8010FanTray, + eriRouterEntPortSEAIMOC3=eriRouterEntPortSEAIMOC3, + eriRouterEntPortSMSCE1MGMT=eriRouterEntPortSMSCE1MGMT, + eriRouterEntPortSE100EIM=eriRouterEntPortSE100EIM, + eriRouterEntModuleSECHOC12DS1=eriRouterEntModuleSECHOC12DS1, + eriRouterEntPortSEAIMDS3=eriRouterEntPortSEAIMDS3, + eriRouterEntChassisSSR8004=eriRouterEntChassisSSR8004, + eriRouterEntChassisSE400=eriRouterEntChassisSE400, + eriRouterEntSensorAlarmSM240=eriRouterEntSensorAlarmSM240, + eriRouterEntPowerSupplySMS1000DC=eriRouterEntPowerSupplySMS1000DC, + eriRouterEntModuleSEPOSOC192=eriRouterEntModuleSEPOSOC192, + eriRouterEntContainerSSR8020PowerModule=eriRouterEntContainerSSR8020PowerModule, + eriRouterEntModuleSE100EMIC=eriRouterEntModuleSE100EMIC, + eriRouterEntModuleSM4Port10GIGE=eriRouterEntModuleSM4Port10GIGE, + eriRouterEntPortSMSPOSOC3=eriRouterEntPortSMSPOSOC3, + eriRouterEntSensorAlarmSE600=eriRouterEntSensorAlarmSE600, + eriRouterEntityTypeChassis=eriRouterEntityTypeChassis, + eriRouterEntModuleSE100AIMOC3MIC=eriRouterEntModuleSE100AIMOC3MIC, + eriRouterEntModuleSM1Port10GEOC192=eriRouterEntModuleSM1Port10GEOC192, + eriRouterEntContainerSSR8020FanTray=eriRouterEntContainerSSR8020FanTray, + eriRouterEntSensorAlarmSE400=eriRouterEntSensorAlarmSE400, eriRouterSP420=eriRouterSP420, + eriRouterEntModuleSE4Port10GIGE=eriRouterEntModuleSE4Port10GIGE, + eriRouterEntModuleSSC2=eriRouterEntModuleSSC2, + eriRouterEntChassisSE1200=eriRouterEntChassisSE1200, + eriRouterEntPowerModuleSPSC1AC=eriRouterEntPowerModuleSPSC1AC, + eriRouterEntModuleSE100GERJMIC=eriRouterEntModuleSE100GERJMIC, + eriRouterEntPortSMSEIM=eriRouterEntPortSMSEIM, + eriRouterEntPortSE10GIGEIM=eriRouterEntPortSE10GIGEIM, + eriRouterEntBackplaneSMS500Power=eriRouterEntBackplaneSMS500Power, + eriRouterEntPortSPSC1AlarmOut=eriRouterEntPortSPSC1AlarmOut, + eriRouterEntModuleSEASE=eriRouterEntModuleSEASE, + eriRouterEntPortSEAIMOC12E=eriRouterEntPortSEAIMOC12E, + eriRouterEntModuleSMSFABRIC=eriRouterEntModuleSMSFABRIC, + eriRouterEntDiskUnknown=eriRouterEntDiskUnknown, + eriRouterEntModuleSSR2Port40GEor100GE=eriRouterEntModuleSSR2Port40GEor100GE, + eriRouterEntPowerSupplySMS500AC=eriRouterEntPowerSupplySMS500AC, eriRouterSM480=eriRouterSM480, + eriRouterEntModuleSEAtm2xOC12=eriRouterEntModuleSEAtm2xOC12, + eriRouterEntBackplaneSMS1000Data=eriRouterEntBackplaneSMS1000Data, + eriRouterEntModuleSMSPIMDS1=eriRouterEntModuleSMSPIMDS1, + eriRouterEntModuleSMSFE2=eriRouterEntModuleSMSFE2, + eriRouterEntPortSEPOSOC48=eriRouterEntPortSEPOSOC48, + eriRouterEntPortSSR40GE=eriRouterEntPortSSR40GE, + eriRouterEntContainerSSR8004PowerModule=eriRouterEntContainerSSR8004PowerModule, + eriRouterEntPortSE100XCMGMT=eriRouterEntPortSE100XCMGMT, + eriRouterEntModuleSMSAIMOC3=eriRouterEntModuleSMSAIMOC3, + eriRouterEntContainerSM480Data=eriRouterEntContainerSM480Data, + eriRouterEntPowerSupplyUnknown=eriRouterEntPowerSupplyUnknown, + eriRouterEntityTypeMemory=eriRouterEntityTypeMemory, + eriRouterEntContainerSMS10000IO=eriRouterEntContainerSMS10000IO, + eriRouterEntModuleSSR20Port1GEor4Port10GE=eriRouterEntModuleSSR20Port1GEor4Port10GE, + eriRouterEntityTypeBackplane=eriRouterEntityTypeBackplane, + eriRouterSmartEdge400=eriRouterSmartEdge400, eriRouterEntPortSEGIGEIM=eriRouterEntPortSEGIGEIM, + eriRouterEntModuleSMSFE3=eriRouterEntModuleSMSFE3, + eriRouterEntBackplaneSMS500Data=eriRouterEntBackplaneSMS500Data, + eriRouterEntModuleSSC1=eriRouterEntModuleSSC1, + eriRouterEntModuleSE10GIGETM=eriRouterEntModuleSE10GIGETM, + eriRouterEntContainerSMS500Data=eriRouterEntContainerSMS500Data, + eriRouterEntModuleSMSGIGEIM=eriRouterEntModuleSMSGIGEIM, + eriRouterEntContainerSSR8004Data=eriRouterEntContainerSSR8004Data, + eriRouterEntModuleSEEIM=eriRouterEntModuleSEEIM, + eriRouterEntityTypeUnknown=eriRouterEntityTypeUnknown, + eriRouterEntModuleSEPOSOC3=eriRouterEntModuleSEPOSOC3, + eriRouterEntBackplaneSSR8010Data=eriRouterEntBackplaneSSR8010Data, + eriRouterEntPortSMGIGEIM=eriRouterEntPortSMGIGEIM, + eriRouterEntChassisSSR8010=eriRouterEntChassisSSR8010, + eriRouterEntPortSECHOC12DS3=eriRouterEntPortSECHOC12DS3, eriRouterSSR8010=eriRouterSSR8010, + eriRouterEntModuleSMSCE1=eriRouterEntModuleSMSCE1, + eriRouterEntModuleSSR20PortOC3orOC12orOC48orOC192=eriRouterEntModuleSSR20PortOC3orOC12orOC48orOC192, + eriRouterEntModuleSECHOC12DS3=eriRouterEntModuleSECHOC12DS3, + eriRouterEntContainerSPSC1Data=eriRouterEntContainerSPSC1Data, + eriRouterEntModuleSMSCM=eriRouterEntModuleSMSCM, eriRouterEntPortSMEIM=eriRouterEntPortSMEIM, + eriRouterEntModuleSEXC=eriRouterEntModuleSEXC, + eriRouterEntModuleSECHSTM1E1=eriRouterEntModuleSECHSTM1E1, + eriRouterEntPowerSupplySMS1800AC=eriRouterEntPowerSupplySMS1800AC, + eriRouterEntContainerSMS1800Data=eriRouterEntContainerSMS1800Data, + eriRouterEntModuleSMSAIME1=eriRouterEntModuleSMSAIME1, + eriRouterEntPortSMSAIMOC3=eriRouterEntPortSMSAIMOC3, + eriRouterEntPortSMSPIME1=eriRouterEntPortSMSPIME1, + eriRouterEntContainerSSR8004FanTray=eriRouterEntContainerSSR8004FanTray, + eriRouterEntPowerModuleSSR=eriRouterEntPowerModuleSSR, + eriRouterEntCpuOcteon=eriRouterEntCpuOcteon, + eriRouterEntPortSMSCE3MGMT=eriRouterEntPortSMSCE3MGMT, + eriRouterEntModuleSMSPIMDS3=eriRouterEntModuleSMSPIMDS3, + eriRouterEntModuleSEFE60GE2=eriRouterEntModuleSEFE60GE2, + eriRouterIposRefPizza=eriRouterIposRefPizza, + eriRouterEntModuleSE5PortGIGE=eriRouterEntModuleSE5PortGIGE, + eriRouterEntContainerSE100Data=eriRouterEntContainerSE100Data, + eriRouterEntityTypeCPU=eriRouterEntityTypeCPU, + eriRouterEntChassisSMS10000=eriRouterEntChassisSMS10000, + eriRouterEntModuleSMSCE2=eriRouterEntModuleSMSCE2, + eriRouterEntModuleSSRSW=eriRouterEntModuleSSRSW, + eriRouterEntPortSEPOSOC3=eriRouterEntPortSEPOSOC3, + eriRouterEntModuleSEAIMOC12E=eriRouterEntModuleSEAIMOC12E, + eriRouterEntContainerSMS10000Timing=eriRouterEntContainerSMS10000Timing, + eriRouterEntModuleSM10PortGIGEDDR2=eriRouterEntModuleSM10PortGIGEDDR2, + eriRouterEntModuleSE10PortGIGEDDR2=eriRouterEntModuleSE10PortGIGEDDR2, + eriRouterEntPortSPSC11GE=eriRouterEntPortSPSC11GE, + eriRouterEntModuleSM10GIGETM=eriRouterEntModuleSM10GIGETM, + eriRouterEntModuleSESSE=eriRouterEntModuleSESSE, + eriRouterEntModuleSE10GIGEIM=eriRouterEntModuleSE10GIGEIM, + eriRouterEntPortSMSPIME3=eriRouterEntPortSMSPIME3, + eriRouterEntFanTraySSR=eriRouterEntFanTraySSR, + eriRouterEntModuleSE100GEFXMIC=eriRouterEntModuleSE100GEFXMIC, + eriRouterEntPortSMGIGETM=eriRouterEntPortSMGIGETM, + eriRouterEntPortSMSPIMDS3=eriRouterEntPortSMSPIMDS3, + eriRouterEntModuleSMSPIME3=eriRouterEntModuleSMSPIME3, + eriRouterEntPortSE100GERJIM=eriRouterEntPortSE100GERJIM, + eriRouterEntBackplaneSE1200Data=eriRouterEntBackplaneSE1200Data, + eriRouterEntPortSPSC110GE=eriRouterEntPortSPSC110GE, + eriRouterEntChassisSMS500=eriRouterEntChassisSMS500, + eriRouterEntPortSECHOC3OC12=eriRouterEntPortSECHOC3OC12, + eriRouterEntBackplaneSSR8020Data=eriRouterEntBackplaneSSR8020Data) +mibBuilder.exportSymbols("ERICSSON-ROUTER-PRODUCT-MIB", eriRouterEntPortSSR100GE=eriRouterEntPortSSR100GE, + eriRouterEntBackplaneSE600Data=eriRouterEntBackplaneSE600Data, + eriRouterSSR8801=eriRouterSSR8801, + eriRouterEntContainerSMS10000SMCM=eriRouterEntContainerSMS10000SMCM, + PYSNMP_MODULE_ID=eriRouterProductMIB, eriRouterEntPortSMSPIMCDS3=eriRouterEntPortSMSPIMCDS3, + eriRouterEntChassisSMS1000=eriRouterEntChassisSMS1000, eriRouterSSR8004=eriRouterSSR8004, + eriRouterEntContainerSMS500Power=eriRouterEntContainerSMS500Power, + eriRouterEntityTypePort=eriRouterEntityTypePort, + eriRouterEntModuleSE1Port10GEOC192=eriRouterEntModuleSE1Port10GEOC192, + eriRouterEntPortSSR20POSOCorOC12orOC48orOC192=eriRouterEntPortSSR20POSOCorOC12orOC48orOC192, + eriRouterSSR8020=eriRouterSSR8020, eriRouterEntModuleSE100XC=eriRouterEntModuleSE100XC, + eriRouterSP415=eriRouterSP415, eriRouterEntModuleSMSAIMT1=eriRouterEntModuleSMSAIMT1, + eriRouterEntModuleSSRRPSW=eriRouterEntModuleSSRRPSW, + eriRouterEntChassisSSR8020=eriRouterEntChassisSSR8020, + eriRouterEntContainerSE1200HData=eriRouterEntContainerSE1200HData, + eriRouterEntContainerSE600Data=eriRouterEntContainerSE600Data, + eriRouterEntModuleSMFE60GE2=eriRouterEntModuleSMFE60GE2, + eriRouterEntPortSEXCMGMT=eriRouterEntPortSEXCMGMT, + eriRouterEntPortSSR10GE=eriRouterEntPortSSR10GE, + eriRouterEntChassisSE600=eriRouterEntChassisSE600, + eriRouterEntPortSMRPMGMT=eriRouterEntPortSMRPMGMT, + eriRouterEntBackplaneSMS10000Midplane=eriRouterEntBackplaneSMS10000Midplane, + eriRouterEntPortSEXC3MGMT=eriRouterEntPortSEXC3MGMT, + eriRouterEntModuleSPSC11Port10GE=eriRouterEntModuleSPSC11Port10GE, + eriRouterEntModuleSEDS3=eriRouterEntModuleSEDS3, + eriRouterEntModuleSSR40Port1GE=eriRouterEntModuleSSR40Port1GE, + eriRouterEntModuleSPSC1SC=eriRouterEntModuleSPSC1SC, + eriRouterEntModuleSEASE2=eriRouterEntModuleSEASE2, + eriRouterEntPortSMSGIGEIM=eriRouterEntPortSMSGIGEIM, eriRouterEntFanSM240=eriRouterEntFanSM240, + eriRouterEntModuleSE8OR2PORTCHOC3OC12=eriRouterEntModuleSE8OR2PORTCHOC3OC12, + eriRouterEntBackplaneSE100Data=eriRouterEntBackplaneSE100Data, + eriRouterEntModuleSSR10Port10GE=eriRouterEntModuleSSR10Port10GE, + eriRouterEntModuleSE20PortGIGE=eriRouterEntModuleSE20PortGIGE, + eriRouterEntModuleSMSTIMING=eriRouterEntModuleSMSTIMING, + eriRouterEntModuleSEGIGETM=eriRouterEntModuleSEGIGETM, + eriRouterEntModuleSMSPOSOC12=eriRouterEntModuleSMSPOSOC12, + eriRouterEntModuleSEE3=eriRouterEntModuleSEE3, + eriRouterEntModuleSEGIGEIM=eriRouterEntModuleSEGIGEIM, + eriRouterEntPortSEDS3=eriRouterEntPortSEDS3, eriRouterEntFanSE1200H=eriRouterEntFanSE1200H, + eriRouterEntChassisSMS1800=eriRouterEntChassisSMS1800, + eriRouterEntChassisSP415=eriRouterEntChassisSP415) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-SMI.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-SMI.py new file mode 100644 index 0000000..493e091 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-SMI.py @@ -0,0 +1,37 @@ +# +# PySNMP MIB module ERICSSON-ROUTER-SMI (http://pysnmp.sf.net) +# ASN.1 source file://C:\MIBS\text_mibs\ERICSSON-ROUTER-SMI.my +# Produced by pysmi-0.0.6 at Tue Dec 20 11:45:36 2016 +# On host ? platform ? version ? by user ? +# Using Python version 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] +# +(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", + "OctetString") +(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") +(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, + ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", + "ConstraintsIntersection", "ValueSizeConstraint", + "ValueRangeConstraint") +(ericsson,) = mibBuilder.importSymbols("ERICSSON-TOP-MIB", "ericsson") +(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", + "ModuleCompliance") +(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, + Counter64, Unsigned32, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits, Counter32,) = mibBuilder.importSymbols( + "SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", + "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "ModuleIdentity", + "ObjectIdentity", "Bits", "Counter32") +(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") +eriRouterSMI = ModuleIdentity((1, 3, 6, 1, 4, 1, 193, 218)).setRevisions( + ("2015-01-14 18:00", "2011-01-19 18:00", "2002-06-06 00:00", "2001-06-27 00:00", "1998-04-18 23:00",)) +eriRouterProducts = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 1)) +eriRouterMgmt = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 2)) +eriRouterExperiment = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 3)) +eriRouterCapabilities = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 4)) +eriRouterModules = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 5)) +eriRouterEntities = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 6)) +eriRouterInternal = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 218, 7)) +mibBuilder.exportSymbols("ERICSSON-ROUTER-SMI", eriRouterMgmt=eriRouterMgmt, eriRouterSMI=eriRouterSMI, + eriRouterEntities=eriRouterEntities, eriRouterExperiment=eriRouterExperiment, + eriRouterProducts=eriRouterProducts, eriRouterCapabilities=eriRouterCapabilities, + PYSNMP_MODULE_ID=eriRouterSMI, eriRouterModules=eriRouterModules, + eriRouterInternal=eriRouterInternal) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-TC.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-TC.py new file mode 100644 index 0000000..321056a --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-ROUTER-TC.py @@ -0,0 +1,54 @@ +# +# PySNMP MIB module ERICSSON-ROUTER-TC (http://pysnmp.sf.net) +# ASN.1 source file://\usr\share\snmp\ERICSSON-ROUTER-TC.my +# Produced by pysmi-0.0.6 at Wed Aug 03 17:53:30 2016 +# On host ? platform ? version ? by user ? +# Using Python version 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] +# +( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") +( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") +( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint") +( eriRouterModules, ) = mibBuilder.importSymbols("ERICSSON-ROUTER-SMI", "eriRouterModules") +( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") +( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "Bits", "Counter32") +( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") +eriRouterTC = ModuleIdentity((1, 3, 6, 1, 4, 1, 193, 218, 5, 2)).setRevisions(("2015-01-14 18:00", "2014-07-19 17:00", "2011-01-19 18:00", "2009-10-20 17:00", "2004-06-19 17:00", "2003-03-17 17:00", "2002-11-11 00:00", "2002-06-26 00:00", "2000-07-14 00:00",)) +class EriRouterCircuitHandle(OctetString, TextualConvention): + displayHint = '1d:1d:2x-2x-2x' + subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(8,8) + fixedLength = 8 + +class EriRouterKBytes(Integer32, TextualConvention): + displayHint = 'd' + subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(0,2147483647) + +class EriRouterPercentage(Integer32, TextualConvention): + displayHint = 'd%' + subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(0,100) + +class EriRouterSlot(Unsigned32, TextualConvention): + displayHint = 'd' + subtypeSpec = Unsigned32.subtypeSpec+ValueRangeConstraint(0,255) + +class EriRouterPort(Unsigned32, TextualConvention): + displayHint = 'd' + subtypeSpec = Unsigned32.subtypeSpec+ValueRangeConstraint(0,255) + +class EriRouterVidOrUntagged(Integer32, TextualConvention): + displayHint = 'd' + subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(1,4096) + +class EriRouterPortMediumType(Integer32, TextualConvention): + subtypeSpec = Integer32.subtypeSpec+SingleValueConstraint(0, 11, 12, 13, 14,) + namedValues = NamedValues(("unknown", 0), ("dsl", 11), ("cable", 12), ("wireless", 13), ("satellite", 14),) + +class EriRouterUnsigned64(OctetString, TextualConvention): + displayHint = '8d' + subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(8,8) + fixedLength = 8 + +class EriRouterSubscriberState(Integer32, TextualConvention): + subtypeSpec = Integer32.subtypeSpec+SingleValueConstraint(9, 13,) + namedValues = NamedValues(("up", 9), ("standby-up", 13),) + +mibBuilder.exportSymbols("ERICSSON-ROUTER-TC", EriRouterVidOrUntagged=EriRouterVidOrUntagged, EriRouterUnsigned64=EriRouterUnsigned64, EriRouterPortMediumType=EriRouterPortMediumType, EriRouterCircuitHandle=EriRouterCircuitHandle, EriRouterSubscriberState=EriRouterSubscriberState, eriRouterTC=eriRouterTC, EriRouterPort=EriRouterPort, EriRouterSlot=EriRouterSlot, EriRouterPercentage=EriRouterPercentage, PYSNMP_MODULE_ID=eriRouterTC, EriRouterKBytes=EriRouterKBytes) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-TOP-MIB.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-TOP-MIB.py new file mode 100644 index 0000000..3a5efa7 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/ERICSSON-TOP-MIB.py @@ -0,0 +1,27 @@ +# +# PySNMP MIB module ERICSSON-TOP-MIB (http://pysnmp.sf.net) +# ASN.1 source file://C:\MIBS\text_mibs\ERICSSON-TOP-MIB.my +# Produced by pysmi-0.0.6 at Tue Dec 20 11:45:36 2016 +# On host ? platform ? version ? by user ? +# Using Python version 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] +# +(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", + "OctetString") +(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") +(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, + ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", + "ConstraintsIntersection", "ValueSizeConstraint", + "ValueRangeConstraint") +(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", + "ModuleCompliance") +(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, + Counter64, Unsigned32, enterprises, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits, + Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", + "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", + "Counter64", "Unsigned32", "enterprises", "iso", "Gauge32", "ModuleIdentity", + "ObjectIdentity", "Bits", "Counter32") +(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") +ericsson = ModuleIdentity((1, 3, 6, 1, 4, 1, 193)).setRevisions(("2008-10-17 00:00", "2002-05-28 00:00",)) +ericssonModules = ObjectIdentity((1, 3, 6, 1, 4, 1, 193, 183)) +mibBuilder.exportSymbols("ERICSSON-TOP-MIB", PYSNMP_MODULE_ID=ericsson, ericssonModules=ericssonModules, + ericsson=ericsson) diff --git a/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/__init__.py b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/__init__.py new file mode 100644 index 0000000..7d28c43 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/autoload/mib/__init__.py @@ -0,0 +1 @@ +__author__ = 'CoYe' diff --git a/package/cloudshell/networking/ericsson/extended/ipos/ericsson_extended_ipos_configuration.py b/package/cloudshell/networking/ericsson/extended/ipos/ericsson_extended_ipos_configuration.py new file mode 100644 index 0000000..2cf2c96 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/ericsson_extended_ipos_configuration.py @@ -0,0 +1,43 @@ +import re + +from cloudshell.shell.core.context_utils import get_decrypted_password_by_attribute_name_wrapper +from cloudshell.shell.core.dependency_injection.context_based_logger import get_logger_with_thread_id + +DEFAULT_PROMPT = '\].*[>#]\s*$' +ENABLE_PROMPT = '#\s*$' +CONFIG_MODE_PROMPT = '\(config.*\)#\s*$' + + +def send_default_actions(session): + """Send default commands to configure/clear session outputs + :return: + """ + + enter_enable_mode(session=session) + session.hardware_expect('terminal length 0', ENABLE_PROMPT) + + +ENTER_CONFIG_MODE_PROMPT_COMMAND = 'configure' +EXIT_CONFIG_MODE_PROMPT_COMMAND = 'exit' +COMMIT_COMMAND = 'commit' +DEFAULT_ACTIONS = send_default_actions +SUPPORTED_OS = ["IP[ -]?OS"] +AUTHENTICATION_ERROR_PATTERN = r'[Ll]ogin\s*[Ii]ncorrect|' + \ + '[Bb]ad\s*([Pp]assword(s)?|[Ss]ecret(s)?|[Ff]ailed\s*(to)?\s*[Aa]uthenticate' +ERROR_MAP = {'Database.*Lock.*': 'Database locked out, please try again.'} + + +def enter_enable_mode(session): + result = session.hardware_expect('', re_string=DEFAULT_PROMPT) + if not re.search(ENABLE_PROMPT, result): + session.hardware_expect('enable', re_string=DEFAULT_PROMPT, + expect_map={'[Pp]assword': lambda session: session.send_line( + get_decrypted_password_by_attribute_name_wrapper('Enable Password')())}) + result = session.hardware_expect('', re_string=DEFAULT_PROMPT) + if not re.search(ENABLE_PROMPT, result): + raise Exception('enter_enable_mode', 'Enable password is incorrect') + + +GET_LOGGER_FUNCTION = get_logger_with_thread_id +POOL_TIMEOUT = 300 +HE_MAX_LOOP_RETRIES = 0 diff --git a/package/cloudshell/networking/ericsson/extended/ipos/ericsson_extended_ipos_resource_driver.py b/package/cloudshell/networking/ericsson/extended/ipos/ericsson_extended_ipos_resource_driver.py new file mode 100644 index 0000000..36dbbbb --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/ericsson_extended_ipos_resource_driver.py @@ -0,0 +1,195 @@ +from cloudshell.networking.ericsson.ericsson_configuration_operations import EricssonConfigurationOperations +from cloudshell.networking.ericsson.ericsson_connectivity_operations import EricssonConnectivityOperations +from cloudshell.networking.ericsson.ericsson_firmware_operations import EricssonFirmwareOperations +from cloudshell.networking.ericsson.ericsson_run_command_operations import EricssonRunCommandOperations +from cloudshell.networking.ericsson.ericsson_state_operations import EricssonStateOperations +from cloudshell.networking.ericsson.extended.ipos.autoload.ericsson_extended_ipos_snmp_autoload import EricssonExtendedIPOSSNMPAutoload +from cloudshell.networking.networking_resource_driver_interface import NetworkingResourceDriverInterface +from cloudshell.shell.core.context_utils import context_from_args +from cloudshell.shell.core.driver_bootstrap import DriverBootstrap +from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface +from cloudshell.shell.core.driver_utils import GlobalLock + +import cloudshell.networking.ericsson.extended.ipos.ericsson_extended_ipos_configuration as driver_config + + +class EricssonIPOSExtendedResourceDriver(ResourceDriverInterface, NetworkingResourceDriverInterface, GlobalLock): + def __init__(self): + super(EricssonIPOSExtendedResourceDriver, self).__init__() + bootstrap = DriverBootstrap() + bootstrap.add_config(driver_config) + bootstrap.initialize() + + @context_from_args + def initialize(self, context): + """Initialize method + :type context: cloudshell.shell.core.context.driver_context.InitCommandContext + """ + + return 'Finished initializing' + + def cleanup(self): + pass + + @context_from_args + def ApplyConnectivityChanges(self, context, request): + connectivity_operations = EricssonConnectivityOperations() + connectivity_operations.logger.info('Start applying connectivity changes, request is: {0}'.format(str(request))) + response = connectivity_operations.apply_connectivity_changes(request) + connectivity_operations.logger.info('Finished applying connectivity changes, responce is: {0}'.format(str( + response))) + connectivity_operations.logger.info('Apply Connectivity changes completed') + return response + + @GlobalLock.lock + @context_from_args + def restore(self, context, path, configuration_type='running', restore_method='override', vrf_management_name=None): + """Restore selected file to the provided destination + + :param path: source config file + :param configuration_type: running or startup configs + :param restore_method: append or override methods + :param vrf_management_name: VRF management Name + """ + + configuration_operations = EricssonConfigurationOperations() + response = configuration_operations.restore(path=path, restore_method=restore_method, + configuration_type=configuration_type, + vrf_management_name=vrf_management_name) + configuration_operations.logger.info('Restore completed') + configuration_operations.logger.info(response) + + @context_from_args + def save(self, context, folder_path, configuration_type, vrf_management_name=None): + """Save selected file to the provided destination + + :param configuration_type: source file, which will be saved + :param folder_path: destination path where file will be saved + :param vrf_management_name: VRF management Name + """ + + configuration_operations = EricssonConfigurationOperations() + response = configuration_operations.save(folder_path, configuration_type, vrf_management_name) + configuration_operations.logger.info('Save completed') + return response + + @context_from_args + def orchestration_save(self, context, mode="shallow", custom_params=None): + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Orchestration save started') + response = configuration_operations.orchestration_save(mode=mode, custom_params=custom_params) + configuration_operations.logger.info('Orchestration save completed') + return response + + @context_from_args + def orchestration_restore(self, context, saved_artifact_info, custom_params=None): + configuration_operations = EricssonConfigurationOperations() + configuration_operations.logger.info('Orchestration restore started') + configuration_operations.orchestration_restore(saved_artifact_info=saved_artifact_info, + custom_params=custom_params) + configuration_operations.logger.info('Orchestration restore completed') + + @context_from_args + def get_inventory(self, context): + """Return device structure with all standard attributes + + :return: response + :rtype: string + """ + + autoload_operations = EricssonExtendedIPOSSNMPAutoload() + autoload_operations.logger.info('Autoload started') + response = autoload_operations.discover() + autoload_operations.logger.info('Autoload completed') + return response + + @GlobalLock.lock + @context_from_args + def load_firmware(self, context, path, vrf_management_name=None): + """Upload and updates firmware on the resource + + :param path: full path to firmware file, i.e. tftp://10.10.10.1/firmware.tar + :param vrf_management_name: VRF management Name + :return: result + :rtype: string + """ + + firmware_operations = EricssonFirmwareOperations() + response = firmware_operations.load_firmware(path=path, vrf_management_name=vrf_management_name) + firmware_operations.logger.info(response) + + @context_from_args + def run_custom_command(self, context, custom_command): + """Send custom command + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + response = send_command_operations.run_custom_command(command=custom_command) + return response + + @context_from_args + def health_check(self, context): + """Performs device health check + + """ + + state_operations = EricssonStateOperations() + return state_operations.health_check() + + @context_from_args + def run_custom_config_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + result_str = send_command_operations.run_custom_config_command(command=custom_command) + return result_str + + @GlobalLock.lock + @context_from_args + def update_firmware(self, context, remote_host, file_path): + """Upload and updates firmware on the resource + + :param remote_host: path to firmware file location on ftp or tftp server + :param file_path: firmware file name + :return: result + :rtype: string + """ + + firmware_operations = EricssonFirmwareOperations() + response = firmware_operations.load_firmware(path=remote_host) + firmware_operations.logger.info(response) + + @context_from_args + def send_custom_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + response = send_command_operations.run_custom_command(command=custom_command) + return response + + @context_from_args + def send_custom_config_command(self, context, custom_command): + """Send custom command in configuration mode + + :return: result + :rtype: string + """ + + send_command_operations = EricssonRunCommandOperations() + result_str = send_command_operations.run_custom_config_command(command=custom_command) + return result_str + + @context_from_args + def shutdown(self, context): + pass diff --git a/package/cloudshell/networking/ericsson/extended/ipos/run_ipos.py b/package/cloudshell/networking/ericsson/extended/ipos/run_ipos.py new file mode 100644 index 0000000..29ecee1 --- /dev/null +++ b/package/cloudshell/networking/ericsson/extended/ipos/run_ipos.py @@ -0,0 +1,29 @@ +from threading import Thread +import time +from cloudshell.networking.ericsson.extended.ipos.ericsson_extended_ipos_resource_driver import \ + EricssonIPOSExtendedResourceDriver +from cloudshell.shell.core.context import ResourceCommandContext, ResourceContextDetails, ReservationContextDetails + +tt = EricssonIPOSExtendedResourceDriver() + +context = ResourceCommandContext() +context.resource = ResourceContextDetails() +context.resource.name = 'dsada' +context.reservation = ReservationContextDetails() +context.reservation.reservation_id = 'c3b410cb-70bd-4437-ae32-15ea17c33a74' +context.resource.attributes = dict() +context.resource.attributes['User'] = 'root' +context.resource.attributes['SNMP Version'] = '2' +context.resource.attributes['SNMP Read Community'] = 'public' +context.resource.attributes['Password'] = 'P0G8gOpDHL0c52ROLdsaVQ==' # 'NuCpFxP8cJMCic8ePJokug==' +context.resource.attributes['Enable Password'] = 'NuCpFxP8cJMCic8ePJokug==' +context.resource.attributes['Enable SNMP'] = 'False' +context.resource.attributes['Disable SNMP'] = 'False' +context.resource.attributes['CLI Connection Type'] = 'ssh' +context.resource.attributes['VRF Management Name'] = '' +context.resource.attributes['Sessions Concurrency Limit'] = '1' +context.resource.attributes['CLI TCP Port'] = '0' +context.resource.address = '192.168.73.70' +context.resource.name = '2950' + +Thread(target=tt.get_inventory, args=(context, )).start() diff --git a/package/cloudshell/tests/__init__.py b/package/cloudshell/tests/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/tests/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/tests/networking/__init__.py b/package/cloudshell/tests/networking/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/tests/networking/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/tests/networking/ericsson/__init__.py b/package/cloudshell/tests/networking/ericsson/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/tests/networking/ericsson/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/tests/networking/ericsson/autoload/__init__.py b/package/cloudshell/tests/networking/ericsson/autoload/__init__.py new file mode 100644 index 0000000..3ad9513 --- /dev/null +++ b/package/cloudshell/tests/networking/ericsson/autoload/__init__.py @@ -0,0 +1,2 @@ +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) diff --git a/package/cloudshell/tests/networking/ericsson/autoload/tests_ericsson_ext_ipos_autoload_unit_tests.py b/package/cloudshell/tests/networking/ericsson/autoload/tests_ericsson_ext_ipos_autoload_unit_tests.py new file mode 100644 index 0000000..6d64211 --- /dev/null +++ b/package/cloudshell/tests/networking/ericsson/autoload/tests_ericsson_ext_ipos_autoload_unit_tests.py @@ -0,0 +1,98 @@ +from unittest import TestCase +from cloudshell.networking.ericsson.extended.ipos.autoload.ericsson_extended_ipos_snmp_autoload import \ + EricssonExtendedIPOSSNMPAutoload + +from cloudshell.snmp.quali_snmp import QualiSnmp +from mock import MagicMock +from cloudshell.core.logger.qs_logger import get_qs_logger + + +class TestEricssonIPOSAutoload(TestCase): + def _check_relative_path(self, resources): + relative_path = [] + for resource in resources: + if resource.relative_address in relative_path: + return False + else: + relative_path.append(resource.relative_address) + return True + + def test_is_loads_SSR8020_correctly(self): + print '-----------SSR80020------------' + ip = '192.168.73.50' + community = 'public' + logger = get_qs_logger(log_file_prefix=ip) + cli = MagicMock() + snmp = QualiSnmp(ip=ip, snmp_community=community, logger=logger) + handler = EricssonExtendedIPOSSNMPAutoload(snmp_handler=snmp, cli=cli, logger=logger, + supported_os=["IP[ -]?OS"], + snmp_community=community) + result = handler.discover() + self.assertIsNotNone(result) + self.assertIsNotNone(result.resources) + self.assertIsNotNone(result.attributes) + chassis = [resource for resource in result.resources if 'Chassis' in resource.name] + modules = [resource for resource in result.resources if resource.model == 'Generic Module'] + ports = [resource for resource in result.resources if resource.model == 'Generic Port'] + port_channels = [resource for resource in result.resources if resource.model == 'Generic Port Channel'] + power_ports = [resource for resource in result.resources if resource.model == 'Generic Power Port'] + sub_modules = [resource for resource in result.resources if 'Sub Module' in resource.name] + trash_chrs = [attribute for attribute in result.attributes if type(attribute.attribute_value) is str and + '\\s' in attribute.attribute_value] + if len(trash_chrs) > 0: + for char in trash_chrs: + print char.relative_address + ': ' + char.attribute_name + ' = ' + char.attribute_value + self.assertTrue(len(chassis) == 1) + self.assertTrue(len(ports) == 62) + # self.assertTrue(len(modules) == 2) + self.assertTrue(len(sub_modules) == 0) + self.assertTrue(len(port_channels) == 0) + self.assertTrue(len(power_ports) == 4) + self.assertFalse(len(trash_chrs) > 0) + self.assertTrue(self._check_relative_path(result.resources)) + print len(chassis) + print len(ports) + print len(modules) + print len(sub_modules) + print len(port_channels) + print str(len(power_ports)) + '\n' + + def test_is_loads_NightHawk_correctly(self): + print '-----------NightHawk------------' + ip = '192.168.73.51' + community = 'public' + logger = get_qs_logger(log_file_prefix=ip) + cli = MagicMock() + snmp = QualiSnmp(ip=ip, snmp_community=community, logger=logger) + handler = EricssonExtendedIPOSSNMPAutoload(snmp_handler=snmp, cli=cli, logger=logger, + supported_os=["IP[ -]?OS"], + snmp_community=community) + result = handler.discover() + self.assertIsNotNone(result) + self.assertIsNotNone(result.resources) + self.assertIsNotNone(result.attributes) + chassis = [resource for resource in result.resources if 'Chassis' in resource.name] + modules = [resource for resource in result.resources if resource.model == 'Generic Module'] + ports = [resource for resource in result.resources if resource.model == 'Generic Port'] + port_channels = [resource for resource in result.resources if resource.model == 'Generic Port Channel'] + power_ports = [resource for resource in result.resources if resource.model == 'Generic Power Port'] + sub_modules = [resource for resource in result.resources if 'Sub Module' in resource.name] + trash_chrs = [attribute for attribute in result.attributes if type(attribute.attribute_value) is str and + '\\s' in attribute.attribute_value] + if len(trash_chrs) > 0: + for char in trash_chrs: + print char.relative_address + ': ' + char.attribute_name + ' = ' + char.attribute_value + self.assertTrue(len(chassis) == 1) + self.assertTrue(len(ports) == 24) + #self.assertTrue(len(modules) == 1) + self.assertTrue(len(sub_modules) == 0) + self.assertTrue(len(port_channels) == 0) + self.assertTrue(len(power_ports) == 1) + self.assertFalse(len(trash_chrs) > 0) + self.assertTrue(self._check_relative_path(result.resources)) + print len(chassis) + print len(ports) + print len(modules) + print len(sub_modules) + print len(port_channels) + print str(len(power_ports)) + '\n' diff --git a/package/requirements.txt b/package/requirements.txt new file mode 100644 index 0000000..7506029 --- /dev/null +++ b/package/requirements.txt @@ -0,0 +1,5 @@ +cloudshell-networking-ericsson-extended>=1.0,<1.1 +cloudshell-cli>=2.1,<2.2 +cloudshell-snmp>=2.1,<2.2 +cloudshell-automation-api>=7.0,<7.1 +inject==3.3.1 \ No newline at end of file diff --git a/package/setup.py b/package/setup.py new file mode 100644 index 0000000..b8ca54f --- /dev/null +++ b/package/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages +import os + +with open(os.path.join('version.txt')) as version_file: + version_from_file = version_file.read().strip() + +with open('requirements.txt') as f_required: + required = f_required.read().splitlines() + +with open('test_requirements.txt') as f_tests: + required_for_tests = f_tests.read().splitlines() + +setup( + name='cloudshell-networking-ericsson-ipos-extended', + url='http://www.qualisystems.com/', + author='QualiSystems', + author_email='info@qualisystems.com', + packages=find_packages(), + install_requires=required, + tests_require=required_for_tests, + version=version_from_file, + description='QualiSystems networking Ericsson IPOS extended Package', + include_package_data = True +) \ No newline at end of file diff --git a/package/test_requirements.txt b/package/test_requirements.txt new file mode 100644 index 0000000..123f6bc --- /dev/null +++ b/package/test_requirements.txt @@ -0,0 +1,3 @@ +cloudshell-networking-ericsson>=1.0,<1.1 +cloudshell-snmp>=2.1,<2.2 +cloudshell-cli>=2.1,<2.2 \ No newline at end of file diff --git a/package/version.txt b/package/version.txt new file mode 100644 index 0000000..afaf360 --- /dev/null +++ b/package/version.txt @@ -0,0 +1 @@ +1.0.0 \ No newline at end of file