Closed seils closed 12 months ago
The __get_mo_obj() function in ucsmsdk/ucsmo.py fails to correctly parse a Dn that includes a forward slash (/) in the property value.
__get_mo_obj()
For example, classId networkLanNeighborEntry includes values for localInterface and remoteInterface in traditional Cisco interface naming format:
\<interface>\<slot>/\<port>
i.e.
Ethernet1/48 GigabitEthernet1/1/1 ...
The statement rn_str = os.path.basename(self.__properties['dn']) returns 48 or 1 from the above values when trying to generate the Rn.
rn_str = os.path.basename(self.__properties['dn'])
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
The
__get_mo_obj()
function in ucsmsdk/ucsmo.py fails to correctly parse a Dn that includes a forward slash (/) in the property value.For example, classId networkLanNeighborEntry includes values for localInterface and remoteInterface in traditional Cisco interface naming format:
\<interface>\<slot>/\<port>
i.e.
Ethernet1/48 GigabitEthernet1/1/1 ...
The statement
rn_str = os.path.basename(self.__properties['dn'])
returns 48 or 1 from the above values when trying to generate the Rn.