From 456f7362986abd2ec43510f512b7ccca706ac35b Mon Sep 17 00:00:00 2001 From: Mircea Ulinic Date: Fri, 15 May 2020 10:38:40 +0100 Subject: [PATCH] Prepare release 3.0.1 (#1203) * Bugfix/ios get interfaces counters mgmt0 (#1201) * IOS: fix get_interfaces_counters when interface = canonical Fixes #1200 mgmt0 interface is not translated to it's canonical name on the 'show interface' command. Thix fix attempt to use the expected Canonical name first and fallback to the interface name in case of a KeyError is raised * Add test * Make black happy ! * Version 3.0.1 (#1202) * Junos: close configuration in case configure_private is set to avoid configure session to stay forever. (#1199) This is done in commit_config and discard_config functions. Co-authored-by: Mircea Ulinic * Bugfix/ios get optics input na (#1206) * IOS: fix get_optics when input is N/A Extend the current check to ouput value to the input value. Input value could also be N/A Fixes #1205 * Add test * Bugfix/ios get optics support vss (#1208) * IOS: support get_optics on VSS Setup Introduce a new class function: _is_vss If the current swith is a VSS setup, run the following commands an parse the output:: show interfaces transceiver switch 1 show interfaces transceiver switch 2 * Add test * Make black happy * Bump pytest from 5.4.1 to 5.4.2 (#1204) Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.1 to 5.4.2. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/5.4.1...5.4.2) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Mircea Ulinic * Update README.md and setup.py so branch has some differences (#1209) * Fix cmd_verify and null character on NX-OS (#1214) * Bump ddt from 1.3.1 to 1.4.1 (#1219) Bumps [ddt](https://github.com/datadriventests/ddt) from 1.3.1 to 1.4.1. - [Release notes](https://github.com/datadriventests/ddt/releases) - [Commits](https://github.com/datadriventests/ddt/compare/1.3.1...1.4.1) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * Add eos_fn0039_config optional arg to toggle FN 0039 on config commands (#1212) Co-authored-by: Kirk Byers Co-authored-by: Exane Server Team Co-authored-by: spinoshi Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Kirk Byers --- README.md | 6 +- docs/support/index.rst | 7 + napalm/eos/eos.py | 9 +- napalm/eos/pyeapi_syntax_wrapper.py | 12 +- napalm/ios/ios.py | 54 +- napalm/junos/junos.py | 4 + napalm/nxos_ssh/nxos_ssh.py | 6 +- requirements-dev.txt | 4 +- setup.py | 7 +- test/eos/test_heredoc.py | 12 +- .../expected_result.json | 16 + .../show_interface_summary.txt | 12 + .../no_canonical_for_mgmt/show_interfaces.txt | 31 + .../expected_result.json | 669 ++++++++++++++++++ .../show_interfaces_transceiver.txt | 34 + .../vss_setup/expected_result.json | 1 + .../vss_setup/show_interfaces_transceiver.txt | 1 + .../show_interfaces_transceiver_switch_1.txt | 86 +++ .../show_interfaces_transceiver_switch_2.txt | 85 +++ .../vss_setup/show_switch_virtual.txt | 7 + 20 files changed, 1038 insertions(+), 25 deletions(-) create mode 100644 test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/expected_result.json create mode 100644 test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interface_summary.txt create mode 100644 test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interfaces.txt create mode 100644 test/ios/mocked_data/test_get_optics/interface_shutdown_v2/expected_result.json create mode 100644 test/ios/mocked_data/test_get_optics/interface_shutdown_v2/show_interfaces_transceiver.txt create mode 100644 test/ios/mocked_data/test_get_optics/vss_setup/expected_result.json create mode 100644 test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver.txt create mode 100644 test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_1.txt create mode 100644 test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_2.txt create mode 100644 test/ios/mocked_data/test_get_optics/vss_setup/show_switch_virtual.txt diff --git a/README.md b/README.md index acd9f0ca7..727d3d57b 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,8 @@ Podcasts Authors ======= * David Barroso ([dbarrosop@dravetech.com](mailto:dbarrosop@dravetech.com)) + * Mircea Ulinic ([ping@mirceaulinic.net](mailto:ping@mirceaulinic.net)) + * Kirk Byers ([ktbyers@twb-tech.com](mailto:ktbyers@twb-tech.com)) * Elisa Jasinska ([elisa@bigwaveit.org](mailto:elisa@bigwaveit.org)) * Many others, check the [contributors](https://github.com/napalm-automation/napalm/graphs/contributors) page for details. @@ -136,7 +138,9 @@ Authors Thanks ====== -This project was founded by David Barroso as part of [Spotify][spotify] and Elisa Jasinska as part of [BigWave IT][bigwave]. Originally it was hosted by the [Spotify][spotify] organization but due to the many contributions received by third parties we agreed creating a dedicated organization for NAPALM and give a big thanks to [Spotify][spotify] for the support. +This project is maintained by David Barroso, Mircea Ulinic, and Kirk Byers and a set of other contributors. + +Originally it was hosted by the [Spotify][spotify] organization but due to the many contributions received by third parties we agreed creating a dedicated organization for NAPALM and give a big thanks to [Spotify][spotify] for the support. [spotify]: http://www.spotify.com [bigwave]: http://bigwaveit.org/ diff --git a/docs/support/index.rst b/docs/support/index.rst index 214c0fd42..d1c1726a7 100644 --- a/docs/support/index.rst +++ b/docs/support/index.rst @@ -133,6 +133,13 @@ ____________________________________ * :code:`transport` (eos, ios, nxos) - Protocol to connect with (see `The transport argument`_ for more information). * :code:`use_keys` (ios, iosxr, nxos_ssh) - Paramiko argument, enable searching for discoverable private key files in ``~/.ssh/`` (default: ``False``). * :code:`eos_autoComplete` (eos) - Allows to set `autoComplete` when running commands. (default: ``None`` equivalent to ``False``) +* :code:`eos_fn0039_config` (eos) - Transform old style configuration to the new + style, available beginning with EOS release 4.23.0, as per FN 0039. Beware + that enabling this option will change the configuration you're loading + through NAPALM. Default: ``False`` (won't change your configuration + commands). + + .. versionadded:: 3.0.1 The transport argument ______________________ diff --git a/napalm/eos/eos.py b/napalm/eos/eos.py index bc3e3ff1d..93128ca2c 100644 --- a/napalm/eos/eos.py +++ b/napalm/eos/eos.py @@ -129,6 +129,7 @@ def _process_optional_args(self, optional_args): transport = optional_args.get( "transport", optional_args.get("eos_transport", "https") ) + self.fn0039_config = optional_args.pop("eos_fn0039_config", False) try: self.transport_class = pyeapi.client.TRANSPORTS[transport] except KeyError: @@ -285,9 +286,13 @@ def _load_config(self, filename=None, config=None, replace=True): try: if self.eos_autoComplete is not None: - self.device.run_commands(commands, autoComplete=self.eos_autoComplete) + self.device.run_commands( + commands, + autoComplete=self.eos_autoComplete, + fn0039_transform=self.fn0039_config, + ) else: - self.device.run_commands(commands) + self.device.run_commands(commands, fn0039_transform=self.fn0039_config) except pyeapi.eapilib.CommandError as e: self.discard_config() msg = str(e) diff --git a/napalm/eos/pyeapi_syntax_wrapper.py b/napalm/eos/pyeapi_syntax_wrapper.py index 695282860..246b185c9 100644 --- a/napalm/eos/pyeapi_syntax_wrapper.py +++ b/napalm/eos/pyeapi_syntax_wrapper.py @@ -32,9 +32,11 @@ def run_commands(self, commands, **kwargs): :param kwargs: other args :return: list of outputs """ - if isinstance(commands, str): - new_commands = [cli_convert(commands, self.cli_version)] - else: - new_commands = [cli_convert(cmd, self.cli_version) for cmd in commands] + fn0039_transform = kwargs.pop("fn0039_transform", True) + if fn0039_transform: + if isinstance(commands, str): + commands = [cli_convert(commands, self.cli_version)] + else: + commands = [cli_convert(cmd, self.cli_version) for cmd in commands] - return super(Node, self).run_commands(new_commands, **kwargs) + return super(Node, self).run_commands(commands, **kwargs) diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py index e3df61216..0992eaf43 100644 --- a/napalm/ios/ios.py +++ b/napalm/ios/ios.py @@ -753,21 +753,46 @@ def _send_command_postprocess(output): output = re.sub(r"^Time source is .*$", "", output, flags=re.M) return output.strip() + def _is_vss(self): + """ + Returns True if a Virtual Switching System (VSS) is setup + """ + vss_re = re.compile("Switch mode[ ]+: Virtual Switch", re.M) + command = "show switch virtual" + output = self._send_command(command) + + return bool(vss_re.search(output)) + def get_optics(self): command = "show interfaces transceiver" output = self._send_command(command) + is_vss = False # Check if router supports the command if "% Invalid input" in output: return {} + elif "% Incomplete command" in output: + if self._is_vss(): + is_vss = True + command1 = "show interfaces transceiver switch 1" + command2 = "show interfaces transceiver switch 2" + output1 = self._send_command(command1) + output2 = self._send_command(command2) # Formatting data into return data structure optics_detail = {} - try: - split_output = re.split(r"^---------.*$", output, flags=re.M)[1] - except IndexError: - return {} + if is_vss: + try: + split_output = re.split(r"^---------.*$", output1, flags=re.M)[1] + split_output += re.split(r"^---------.*$", output2, flags=re.M)[1] + except IndexError: + return {} + else: + try: + split_output = re.split(r"^---------.*$", output, flags=re.M)[1] + except IndexError: + return {} split_output = split_output.strip() @@ -786,12 +811,17 @@ def get_optics(self): port_detail = {"physical_channels": {"channel": []}} - # If interface is shutdown it returns "N/A" as output power. + # If interface is shutdown it returns "N/A" as output power + # or "N/A" as input power # Converting that to -100.0 float try: float(output_power) except ValueError: output_power = -100.0 + try: + float(input_power) + except ValueError: + input_power = -100.0 # Defaulting avg, min, max values to -100.0 since device does not # return these values @@ -2129,9 +2159,17 @@ def get_interfaces_counters(self): ) match = re.search(regex, line) if match: - interface = canonical_interface_name(interface) - counters[interface]["rx_discards"] = int(match.group("IQD")) - counters[interface]["tx_discards"] = int(match.group("OQD")) + can_interface = canonical_interface_name(interface) + try: + counters[can_interface]["rx_discards"] = int( + match.group("IQD") + ) + counters[can_interface]["tx_discards"] = int( + match.group("OQD") + ) + except KeyError: + counters[interface]["rx_discards"] = int(match.group("IQD")) + counters[interface]["tx_discards"] = int(match.group("OQD")) return counters diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py index 48cb81e3a..a8ce51b98 100644 --- a/napalm/junos/junos.py +++ b/napalm/junos/junos.py @@ -283,12 +283,16 @@ def commit_config(self, message=""): self.device.cu.commit(ignore_warning=self.ignore_warning, **commit_args) if not self.lock_disable and not self.session_config_lock: self._unlock() + if self.config_private: + self.device.rpc.close_configuration() def discard_config(self): """Discard changes (rollback 0).""" self.device.cu.rollback(rb_id=0) if not self.lock_disable and not self.session_config_lock: self._unlock() + if self.config_private: + self.device.rpc.close_configuration() def rollback(self): """Rollback to previous commit.""" diff --git a/napalm/nxos_ssh/nxos_ssh.py b/napalm/nxos_ssh/nxos_ssh.py index 1dece3e19..89303009c 100644 --- a/napalm/nxos_ssh/nxos_ssh.py +++ b/napalm/nxos_ssh/nxos_ssh.py @@ -438,13 +438,13 @@ def open(self): def close(self): self._netmiko_close() - def _send_command(self, command, raw_text=False): + def _send_command(self, command, raw_text=False, cmd_verify=True): """ Wrapper for Netmiko's send_command method. raw_text argument is not used and is for code sharing with NX-API. """ - return self.device.send_command(command) + return self.device.send_command(command, cmd_verify=cmd_verify) def _send_command_list(self, commands, expect_string=None): """Wrapper for Netmiko's send_command method (for list of commands.""" @@ -506,7 +506,7 @@ def is_alive(self): return {"is_alive": False} else: # Try sending ASCII null byte to maintain the connection alive - self._send_command(null) + self._send_command(null, cmd_verify=False) except (socket.error, EOFError): # If unable to send, we can tell for sure that the connection is unusable, # hence return False. diff --git a/requirements-dev.txt b/requirements-dev.txt index 1cfd82ad9..0b03061ce 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,8 +1,8 @@ black==19.10b0 coveralls==2.0.0 -ddt==1.3.1 +ddt==1.4.1 flake8-import-order==0.18.1 -pytest==5.4.1 +pytest==5.4.2 pytest-cov==2.8.1 pytest-json==0.4.0 pytest-pythonpath==0.7.3 diff --git a/setup.py b/setup.py index 1cb54dcd4..bdd042cce 100644 --- a/setup.py +++ b/setup.py @@ -4,17 +4,22 @@ with open("requirements.txt", "r") as fs: reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))] +with open("README.md", "r") as fs: + long_description = fs.read() + __author__ = "David Barroso " setup( name="napalm", - version="3.0.0", + version="3.0.1", packages=find_packages(exclude=("test*",)), test_suite="test_base", author="David Barroso, Kirk Byers, Mircea Ulinic", author_email="dbarrosop@dravetech.com, ping@mirceaulinic.net, ktbyers@twb-tech.com", description="Network Automation and Programmability Abstraction Layer with Multivendor support", + long_description=long_description, + long_description_content_type="text/markdown", classifiers=[ "Topic :: Utilities", "Programming Language :: Python", diff --git a/test/eos/test_heredoc.py b/test/eos/test_heredoc.py index 7ffd1bfb6..df9e48012 100644 --- a/test/eos/test_heredoc.py +++ b/test/eos/test_heredoc.py @@ -57,7 +57,9 @@ def test_heredoc(self): "idle-timeout 15", ] - self.device.device.run_commands.assert_called_with(expected_result) + self.device.device.run_commands.assert_called_with( + expected_result, fn0039_transform=False + ) def test_mode_comment(self): raw_config = dedent( @@ -108,7 +110,9 @@ def test_mode_comment(self): "permit host 192.0.2.3", ] - self.device.device.run_commands.assert_called_with(expected_result) + self.device.device.run_commands.assert_called_with( + expected_result, fn0039_transform=False + ) def test_heredoc_with_bangs(self): @@ -145,4 +149,6 @@ def test_heredoc_with_bangs(self): "idle-timeout 15", ] - self.device.device.run_commands.assert_called_with(expected_result) + self.device.device.run_commands.assert_called_with( + expected_result, fn0039_transform=False + ) diff --git a/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/expected_result.json b/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/expected_result.json new file mode 100644 index 000000000..e28842c79 --- /dev/null +++ b/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/expected_result.json @@ -0,0 +1,16 @@ +{ + "mgmt0": { + "rx_unicast_packets": 10039584, + "rx_octets": 860372462, + "rx_broadcast_packets": 10025891, + "rx_multicast_packets": 6, + "rx_errors": 0, + "rx_discards": 0, + "tx_unicast_packets": 309048, + "tx_octets": 110610635, + "tx_broadcast_packets": -1, + "tx_multicast_packets": -1, + "tx_errors": 0, + "tx_discards": 0 + } +} diff --git a/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interface_summary.txt b/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interface_summary.txt new file mode 100644 index 000000000..c1b5b14ea --- /dev/null +++ b/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interface_summary.txt @@ -0,0 +1,12 @@ + + + *: interface is up + IHQ: pkts in input hold queue IQD: pkts dropped from input queue + OHQ: pkts in output hold queue OQD: pkts dropped from output queue + RXBS: rx rate (bits/sec) RXPS: rx rate (pkts/sec) + TXBS: tx rate (bits/sec) TXPS: tx rate (pkts/sec) + TRTL: throttle count + + Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL +----------------------------------------------------------------------------------------------------------------- +* mgmt0 0 0 0 0 0 1 0 0 0 \ No newline at end of file diff --git a/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interfaces.txt b/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interfaces.txt new file mode 100644 index 000000000..056d12689 --- /dev/null +++ b/test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/show_interfaces.txt @@ -0,0 +1,31 @@ +mgmt0 is up, line protocol is up (connected) + Hardware is I82580 MGMT, address is 0008.e3ff.fd68 (bia 0008.e3ff.fd68) + Internet address is 10.211.127.1/24 + MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, + reliability 255/255, txload 1/255, rxload 1/255 + Encapsulation ARPA, loopback not set + Keepalive not supported + Full-duplex, 1000Mb/s + Media-type configured as RJ45 connector + input flow-control is off, output flow-control is unsupported + Clock mode is auto + ARP type: ARPA, ARP Timeout 04:00:00 + Last input 00:00:01, output never, output hang never + Last clearing of "show interface" counters 23w5d + Input queue: 0/1000/0/0 (size/max/drops/flushes); Total output drops: 0 + Queueing strategy: fifo + Output queue: 0/40 (size/max) + 5 minute input rate 0 bits/sec, 0 packets/sec + 5 minute output rate 0 bits/sec, 0 packets/sec + 10039584 packets input, 860372462 bytes, 0 no buffer + Received 10025891 broadcasts (416 IP multicasts) + 0 runts, 0 giants, 0 throttles + 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored + 0 watchdog, 0 multicast, 0 pause input + 0 input packets with dribble condition detected + 309048 packets output, 110610635 bytes, 0 underruns + 0 output errors, 0 collisions, 25 interface resets + 0 unknown protocol drops + 0 babbles, 0 late collision, 0 deferred + 0 lost carrier, 0 no carrier, 0 pause output + 0 output buffer failures, 0 output buffers swapped out \ No newline at end of file diff --git a/test/ios/mocked_data/test_get_optics/interface_shutdown_v2/expected_result.json b/test/ios/mocked_data/test_get_optics/interface_shutdown_v2/expected_result.json new file mode 100644 index 000000000..701dfa104 --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/interface_shutdown_v2/expected_result.json @@ -0,0 +1,669 @@ +{ + "TenGigabitEthernet3/2": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -1.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 38.1, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "GigabitEthernet5/6": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -4.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 10.7, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "GigabitEthernet5/12": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -5.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 10.6, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "GigabitEthernet5/17": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -5.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 17.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "GigabitEthernet5/31": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -6.2, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 15.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "GigabitEthernet5/45": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -100.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 0.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "GigabitEthernet5/47": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -6.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 12.2, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/2": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 8.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/10": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.3, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 5.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/12": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -1.8, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 42.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/14": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -1.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 39.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/16": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -1.7, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 39.4, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/17": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -3.3, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 5.6, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/19": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.6, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 8.1, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/20": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 6.7, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/21": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 8.4, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/22": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.4, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 6.3, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/23": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -1.7, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 8.0, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/24": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.2, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 8.4, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/25": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.2, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 5.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/27": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -2.5, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 7.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "TenGigabitEthernet7/29": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": -1.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 8.2, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + }, + "FortyGigabitEthernet7/33": { + "physical_channels": { + "channel": [ + { + "index": 0, + "state": { + "input_power": { + "instant": 0.9, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "output_power": { + "instant": 36.6, + "avg": -100.0, + "min": -100.0, + "max": -100.0 + }, + "laser_bias_current": { + "instant": 0.0, + "avg": 0.0, + "min": 0.0, + "max": 0.0 + } + } + } + ] + } + } +} diff --git a/test/ios/mocked_data/test_get_optics/interface_shutdown_v2/show_interfaces_transceiver.txt b/test/ios/mocked_data/test_get_optics/interface_shutdown_v2/show_interfaces_transceiver.txt new file mode 100644 index 000000000..468c661ab --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/interface_shutdown_v2/show_interfaces_transceiver.txt @@ -0,0 +1,34 @@ +Alarms applicable when thresholds or values are not N/A. +If device is externally calibrated, only calibrated values are printed. +++ : high alarm, + : high warning, - : low warning, -- : low alarm. +NA or N/A: not applicable, Tx: transmit, Rx: receive. +mA: milliamperes, dBm: decibels (milliwatts). + + Optical Optical + Temperature Voltage Current Tx Power Rx Power +Port (Celsius) (Volts) (mA) (dBm) (dBm) +---------- ----------- ------- -------- -------- -------- +Te3/2 26.5 3.30 38.1 -1.9 -26.8 -- +Gi5/6 37.4 3.37 10.7 -4.9 -35.2 - +Gi5/12 40.0 3.35 10.6 -5.0 -4.6 +Gi5/17 31.5 3.31 17.0 -5.5 -8.6 +Gi5/31 43.0 3.20 15.5 -6.2 -9.2 +Gi5/45 23.8 3.30 0.0 N/A N/A -- +Gi5/47 34.2 3.30 12.2 -6.0 -40.0 +Te7/2 33.2 3.28 8.0 -2.0 -3.5 +Te7/10 35.1 3.28 5.9 -2.3 -3.8 +Te7/12 38.8 3.27 42.0 -1.8 -1.9 +Te7/14 38.2 3.30 39.5 -1.9 -4.8 +Te7/16 34.0 3.31 39.4 -1.7 -8.0 +Te7/17 34.8 3.15 5.6 -3.3 -4.8 +Te7/19 36.5 3.29 8.1 -2.6 -3.7 +Te7/20 34.4 3.30 6.7 -2.5 -3.0 +Te7/21 28.7 3.23 8.4 -2.5 -2.0 +Te7/22 34.7 3.29 6.3 -2.4 -3.0 +Te7/23 37.2 3.30 8.0 -1.7 -2.8 +Te7/24 31.9 3.24 8.4 -2.2 -2.6 +Te7/25 26.7 3.28 5.5 -2.2 -3.8 +Te7/27 30.1 3.30 7.9 -2.5 -2.7 +Te7/29 27.5 3.22 8.2 -1.9 -2.1 +Fo7/33 34.1 3.23 36.6 0.9 -2.8 + diff --git a/test/ios/mocked_data/test_get_optics/vss_setup/expected_result.json b/test/ios/mocked_data/test_get_optics/vss_setup/expected_result.json new file mode 100644 index 000000000..85b52507e --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/vss_setup/expected_result.json @@ -0,0 +1 @@ +{"TenGigabitEthernet1/1/1": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/3": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/9": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/11": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/13": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/1/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/1": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/3": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/9": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/11": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/13": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/2/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/3/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 8.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/3/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/3/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 8.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/3/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/3/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/3/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/1": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/3": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 4.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/9": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/11": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/15": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/5/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -1.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 20.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -1.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/17": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/18": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/19": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/20": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/21": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/22": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/23": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/24": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/25": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/26": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/27": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/28": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/29": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 8.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/30": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/31": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet1/7/32": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -1.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/1": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 8.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/9": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/11": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/13": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/1/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/1": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/3": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/9": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/11": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/13": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/15": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 0.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/2/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/3/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/3/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/3/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/3/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/3/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/3/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/3": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 11.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/5": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/7": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/9": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/11": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/13": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/15": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/5/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -100.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/2": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/4": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/6": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/8": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/10": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/12": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/14": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/16": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 5.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/17": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/18": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/19": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/20": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/21": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/22": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/23": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/24": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/25": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.0, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/26": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -1.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.4, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/27": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.3, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/28": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -1.7, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/29": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.1, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.8, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/30": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.6, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.9, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/31": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.2, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 6.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}, "TenGigabitEthernet2/7/32": {"physical_channels": {"channel": [{"index": 0, "state": {"input_power": {"instant": -2.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "output_power": {"instant": 7.5, "avg": -100.0, "min": -100.0, "max": -100.0}, "laser_bias_current": {"instant": 0.0, "avg": 0.0, "min": 0.0, "max": 0.0}}}]}}} diff --git a/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver.txt b/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver.txt new file mode 100644 index 000000000..90e7a214a --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver.txt @@ -0,0 +1 @@ +% Incomplete command. diff --git a/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_1.txt b/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_1.txt new file mode 100644 index 000000000..9ff5a33d6 --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_1.txt @@ -0,0 +1,86 @@ +Transceiver monitoring is disabled for all interfaces. + +Alarms applicable when thresholds or values are not N/A. +If device is externally calibrated, only calibrated values are printed. +++ : high alarm, + : high warning, - : low warning, -- : low alarm. +NA or N/A: not applicable, Tx: transmit, Rx: receive. +mA: milliamperes, dBm: decibels (milliwatts). + + Optical Optical + Temperature Voltage Current Tx Power Rx Power +Port (Celsius) (Volts) (mA) (dBm) (dBm) +---------- ----------- ------- -------- -------- -------- +Te1/1/1 26.1 N/A 6.2 -- -2.7 -28.8 -- +Te1/1/2 25.8 N/A 6.1 -- -2.7 -40.0 +Te1/1/3 24.1 N/A 0.0 N/A N/A -- +Te1/1/4 25.1 N/A 0.0 N/A N/A -- +Te1/1/5 26.5 N/A 6.0 -- -2.6 -40.0 +Te1/1/6 24.3 N/A 0.0 N/A N/A +Te1/1/7 27.9 N/A 6.7 -- -2.6 -40.0 +Te1/1/8 27.7 N/A 6.6 -- -2.7 -3.3 +Te1/1/9 28.0 N/A 7.5 -- -2.0 -2.7 +Te1/1/10 23.9 N/A 0.0 N/A N/A +Te1/1/11 28.5 N/A 6.2 -- -2.7 -3.3 +Te1/1/12 27.7 N/A 6.0 -- -2.6 -2.7 +Te1/1/13 26.0 N/A 7.6 -- -2.2 -29.6 -- +Te1/1/14 27.5 N/A 7.8 -- -2.6 -5.6 +Te1/1/16 25.6 N/A 5.5 -- -3.4 -2.2 +Te1/2/1 27.4 N/A 6.4 -- -2.6 -29.2 -- +Te1/2/2 27.1 N/A 6.4 -- -2.6 -26.6 -- +Te1/2/3 30.0 N/A 7.8 -- -2.0 -2.5 +Te1/2/4 26.3 N/A 5.4 -- -2.6 -40.0 +Te1/2/5 28.9 N/A 6.3 -- -2.7 -40.0 +Te1/2/6 24.6 N/A 0.0 N/A N/A +Te1/2/7 28.0 N/A 7.6 -- -2.0 -34.0 -- +Te1/2/8 28.3 N/A 6.6 -- -2.7 -2.6 +Te1/2/9 24.0 N/A 0.0 N/A N/A -- +Te1/2/10 26.5 N/A 6.1 -- -2.7 -40.0 +Te1/2/11 27.0 N/A 6.9 -- -2.7 -4.7 +Te1/2/12 28.2 N/A 7.8 -- -2.0 -3.3 +Te1/2/13 26.0 N/A 7.6 -- -2.5 -31.5 -- +Te1/2/14 23.0 N/A 0.1 N/A N/A -- +Te1/2/16 26.3 N/A 5.7 -- -2.8 -3.2 +Te1/3/2 28.7 3.25 8.3 -2.1 -2.9 +Te1/3/4 32.2 3.30 7.0 -2.3 -3.6 +Te1/3/5 31.3 3.29 8.0 -2.1 -2.7 +Te1/3/6 30.7 3.30 6.7 -2.5 -2.9 +Te1/3/7 29.1 3.30 6.5 -2.1 -2.5 +Te1/3/8 30.7 3.30 6.5 -2.0 -2.9 +Te1/5/1 27.0 N/A 6.3 -- -2.5 -17.1 -- +Te1/5/3 27.7 N/A 6.2 -- -2.6 -4.6 +Te1/5/4 27.5 N/A 6.2 -- -2.7 -23.3 -- +Te1/5/5 27.4 N/A 6.3 -- -2.5 -40.0 +Te1/5/6 24.9 N/A 4.7 -- -4.1 -40.0 +Te1/5/7 26.2 N/A 5.9 -- -2.6 -40.0 +Te1/5/9 25.9 N/A 6.6 -- -2.7 -2.4 +Te1/5/10 28.9 N/A 7.6 -- -2.1 -3.7 +Te1/5/11 26.1 N/A 6.1 -- -2.5 -4.8 +Te1/5/12 28.1 N/A 6.1 -- -2.8 -25.7 -- +Te1/5/14 26.2 N/A 6.6 -- -2.7 -26.4 -- +Te1/5/15 28.0 N/A 7.7 -- -2.2 -40.0 +Te1/5/16 27.3 N/A 7.9 -- -2.1 -9.0 +Te1/7/2 36.0 3.28 6.2 -2.5 -3.2 +Te1/7/4 36.8 3.28 6.1 -2.2 -2.7 +Te1/7/6 33.1 3.27 6.2 -2.0 -2.6 +Te1/7/8 34.1 3.28 6.0 -2.5 -2.9 +Te1/7/10 39.8 3.30 20.9 -1.7 -4.9 +Te1/7/12 34.2 3.29 6.0 -2.2 -2.7 +Te1/7/14 35.2 3.27 6.1 -2.2 -2.7 +Te1/7/16 34.3 3.27 6.5 -1.9 -2.7 +Te1/7/17 32.9 3.30 6.1 -2.6 -8.8 +Te1/7/18 34.3 3.31 6.4 -2.4 -2.0 +Te1/7/19 36.4 3.29 5.3 -2.5 -2.7 +Te1/7/20 35.8 3.29 5.8 -2.3 -3.4 +Te1/7/21 33.0 3.26 6.0 -2.3 -2.7 +Te1/7/22 33.7 3.26 6.2 -2.0 -2.0 +Te1/7/23 32.5 3.29 7.0 -2.5 -2.7 +Te1/7/24 37.5 3.17 5.5 -2.5 -4.1 +Te1/7/25 34.9 3.30 7.9 -2.0 -1.8 +Te1/7/26 32.3 3.31 6.4 -2.7 -2.8 +Te1/7/27 34.3 3.29 6.0 -2.2 -2.6 +Te1/7/28 31.2 3.27 6.1 -2.6 -2.1 +Te1/7/29 28.7 3.22 8.4 -2.2 -2.0 +Te1/7/30 33.9 3.30 7.9 -2.0 -2.0 +Te1/7/31 30.8 3.28 6.9 -2.3 -3.2 +Te1/7/32 36.5 3.28 7.8 -1.9 -3.4 + diff --git a/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_2.txt b/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_2.txt new file mode 100644 index 000000000..6f0f54df4 --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/vss_setup/show_interfaces_transceiver_switch_2.txt @@ -0,0 +1,85 @@ + +Transceiver monitoring is disabled for all interfaces. + +Alarms applicable when thresholds or values are not N/A. +If device is externally calibrated, only calibrated values are printed. +++ : high alarm, + : high warning, - : low warning, -- : low alarm. +NA or N/A: not applicable, Tx: transmit, Rx: receive. +mA: milliamperes, dBm: decibels (milliwatts). + + Optical Optical + Temperature Voltage Current Tx Power Rx Power +Port (Celsius) (Volts) (mA) (dBm) (dBm) +---------- ----------- ------- -------- -------- -------- +Te2/1/1 28.5 N/A 5.6 -- -2.7 -24.1 -- +Te2/1/2 28.0 N/A 6.2 -- -2.6 -40.0 +Te2/1/4 27.2 N/A 6.9 -- -2.6 -26.0 -- +Te2/1/5 28.5 N/A 5.6 -- -2.6 -40.0 +Te2/1/8 27.2 N/A 8.0 -- -2.1 -3.9 +Te2/1/9 29.6 N/A 5.5 -- -3.5 -2.1 +Te2/1/10 26.0 N/A 0.0 N/A N/A +Te2/1/11 28.6 N/A 6.7 -- -2.7 -3.1 +Te2/1/12 29.2 N/A 6.2 -- -2.6 -4.0 +Te2/1/13 28.0 N/A 6.4 -- -2.7 -23.3 -- +Te2/1/14 29.4 N/A 6.8 -- -2.6 -3.4 +Te2/1/16 29.4 N/A 5.8 -- -2.8 -4.7 +Te2/2/1 29.4 N/A 5.9 -- -2.7 -40.0 +Te2/2/2 28.1 N/A 5.7 -- -2.6 -35.2 -- +Te2/2/3 29.3 N/A 7.3 -- -2.0 -3.5 +Te2/2/5 29.0 N/A 5.9 -- -2.7 -40.0 +Te2/2/6 25.4 N/A 0.0 N/A N/A +Te2/2/7 27.0 N/A 7.5 -- -2.2 -40.0 +Te2/2/8 25.3 N/A 5.5 -- -2.7 -3.0 +Te2/2/9 25.0 N/A 0.0 N/A N/A +Te2/2/11 30.0 N/A 5.8 -- -2.7 -4.3 +Te2/2/12 36.6 N/A 6.3 -- -2.6 -3.2 +Te2/2/13 30.1 N/A 5.4 -- -2.8 -40.0 +Te2/2/14 27.1 N/A 0.0 N/A N/A +Te2/2/15 27.2 N/A 0.0 N/A N/A +Te2/2/16 31.1 N/A 6.0 -- -2.7 -3.8 +Te2/3/2 24.0 3.21 7.9 -2.5 -40.0 -- +Te2/3/4 35.1 3.29 7.7 -2.0 -2.7 +Te2/3/5 35.4 3.29 7.5 -2.3 -2.6 +Te2/3/6 33.2 3.26 6.6 -2.5 -3.2 +Te2/3/7 31.5 3.28 5.9 -2.3 -3.3 +Te2/3/8 32.8 3.25 6.0 -2.5 -8.0 +Te2/5/2 31.4 N/A 6.6 -- -2.6 -27.2 -- +Te2/5/3 44.8 N/A 11.3 -- -2.8 -3.8 +Te2/5/4 32.6 N/A 5.8 -- -2.8 -40.0 +Te2/5/5 34.1 N/A 6.6 -- -2.7 -40.0 +Te2/5/6 32.8 N/A 6.9 -- -2.6 -40.0 +Te2/5/7 34.0 N/A 6.4 -- -2.7 -24.5 -- +Te2/5/8 33.7 N/A 6.6 -- -2.6 -30.4 -- +Te2/5/9 31.9 N/A 6.5 -- -2.5 -2.6 +Te2/5/10 33.6 N/A 7.8 -- -2.1 -2.8 +Te2/5/11 32.4 N/A 6.0 -- -2.7 -3.1 +Te2/5/12 31.2 N/A 6.5 -- -2.5 -30.4 -- +Te2/5/13 32.2 N/A 6.1 -- -2.6 -40.0 +Te2/5/14 30.4 N/A 5.4 -- -2.7 -40.0 +Te2/5/15 31.0 N/A 7.8 -- -2.0 -30.4 -- +Te2/5/16 30.5 N/A 5.6 -- -3.1 -2.3 +Te2/7/2 36.8 3.30 6.2 -2.3 -2.8 +Te2/7/4 35.5 3.29 6.4 -2.4 -2.8 +Te2/7/6 35.6 3.31 6.2 -2.0 -2.5 +Te2/7/8 36.8 3.28 6.0 -2.6 -2.2 +Te2/7/10 37.7 3.27 6.0 -2.0 -40.0 +Te2/7/12 38.1 3.27 6.6 -2.2 -2.0 +Te2/7/14 37.7 3.28 5.7 -2.0 -2.6 +Te2/7/16 36.2 3.28 5.9 -2.2 -3.1 +Te2/7/17 33.3 3.27 6.1 -2.0 -2.7 +Te2/7/18 37.0 3.29 6.2 -2.3 -2.8 +Te2/7/19 35.5 3.27 6.1 -2.0 -5.5 +Te2/7/20 37.7 3.27 6.0 -2.2 -2.1 +Te2/7/21 35.8 3.27 6.2 -2.2 -3.0 +Te2/7/22 39.4 3.24 6.6 -2.5 -3.5 +Te2/7/23 39.2 3.26 7.7 -2.7 -2.6 +Te2/7/24 37.8 3.28 7.3 -2.0 -4.0 +Te2/7/25 37.0 3.30 7.8 -2.0 -4.5 +Te2/7/26 40.9 3.29 7.4 -1.6 -2.2 +Te2/7/27 35.1 3.28 7.1 -2.3 -2.5 +Te2/7/28 40.3 3.26 7.8 -1.7 -2.7 +Te2/7/29 36.8 3.26 7.8 -2.1 -2.6 +Te2/7/30 39.9 3.28 7.9 -2.6 -2.0 +Te2/7/31 33.2 3.28 6.5 -2.2 -2.9 +Te2/7/32 37.1 3.31 7.5 -2.5 -3.8 + diff --git a/test/ios/mocked_data/test_get_optics/vss_setup/show_switch_virtual.txt b/test/ios/mocked_data/test_get_optics/vss_setup/show_switch_virtual.txt new file mode 100644 index 000000000..66f89ca49 --- /dev/null +++ b/test/ios/mocked_data/test_get_optics/vss_setup/show_switch_virtual.txt @@ -0,0 +1,7 @@ + +Switch mode : Virtual Switch +Virtual switch domain number : 90 +Local switch number : 2 +Local switch operational role: Virtual Switch Active +Peer switch number : 1 +Peer switch operational role : Virtual Switch Standby \ No newline at end of file