Repository: napalm-automation/napalm

Issue:
get_optics does not work on IOS VSS setup
### Description of Issue/Question

Trying to get optics metrics on iOS virtual Switching System (VSS) setup returns nothing.

Source of the issue:

Command *show interfaces transceiver* does not work on vss mode.

It should be 
```
show interfaces transceiver switch 1
show interfaces transceiver switch 2
```

### Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an ``x`` between the square brackets where applicable)

- [X] Yes
- [] No


### Setup

### napalm version

```
Latest Git
```

### Network operating system version
```
Cisco IOS Software, s6t64 Software (s6t64-ADVENTERPRISEK9-M), Version 15.5(1)SY4, RELEASE SOFTWARE (fc4)
```

### Steps to Reproduce the Issue

### Error Traceback
(Paste the complete traceback of the exception between quotes below)
No trace back


Discussion:

Resolving patch:
diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py
--- 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()
 


Test patch:
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
--- /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
--- /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
--- /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
--- /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
--- /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