Browse Source

add alias for hpe_comware

Netmiko has not changed the device name for hp_comware to hpe_comware
yet. See

https://github.com/ktbyers/netmiko/blob/develop/netmiko/ssh_dispatcher.py

Therefore, the device will fail to load as netmiko will only recognize
"hp_comware". We'll need to alias "hpe_comware" with "hp_comware" till
netmiko recognizes HPE.

Change-Id: I4dba5a926357b731c0d9ebad8ba9fcf65b1847bd
Guang Yee 8 months ago
parent
commit
79e397b769

+ 1
- 1
doc/source/configuration.rst View File

@@ -124,7 +124,7 @@ for the Ruijie device::
124 124
 for the HPE 5900 Series device::
125 125
 
126 126
     [genericswitch:sw-hostname]
127
-    device_type = netmiko_hpe_comware
127
+    device_type = netmiko_hp_comware
128 128
     username = admin
129 129
     password = password
130 130
     ip = <switch mgmt ip address>

+ 11
- 0
releasenotes/notes/add_alias_for_hpe_comware-0eb9a016f0c992df.yaml View File

@@ -0,0 +1,11 @@
1
+---
2
+issues:
3
+  - |
4
+    Netmiko has not changed the device name for hp_comware to hpe_comware
5
+    yet. See
6
+
7
+    https://github.com/ktbyers/netmiko/blob/develop/netmiko/ssh_dispatcher.py
8
+
9
+    Therefore, the device will fail to load as netmiko will only recognize
10
+    "hp_comware". We'll need to alias "hpe_comware" with "hp_comware" till
11
+    netmiko recognizes HPE.

+ 1
- 0
setup.cfg View File

@@ -29,6 +29,7 @@ generic_switch.devices =
29 29
     netmiko_brocade_fastiron = networking_generic_switch.devices.netmiko_devices.brocade:BrocadeFastIron
30 30
     netmiko_ruijie = networking_generic_switch.devices.netmiko_devices.ruijie:Ruijie
31 31
     netmiko_hpe_comware = networking_generic_switch.devices.netmiko_devices.hpe:HpeComware
32
+    netmiko_hp_comware = networking_generic_switch.devices.netmiko_devices.hpe:HpeComware
32 33
     netmiko_juniper = networking_generic_switch.devices.netmiko_devices.juniper:Juniper
33 34
 tempest.test_plugins =
34 35
     ngs_tests = tempest_plugin.plugin:NGSTempestPlugin

Loading…
Cancel
Save