Subject: | get_eth_ports returns ports of wrong switch |
Date: | Tue, 24 May 2016 15:43:13 +0200 |
To: | bug-Cisco-UCS-Common-SwitchCard [...] rt.cpan.org |
From: | Stephan Weinberger <sweinberger [...] ubimet.com> |
Hello,
In our redundant setup with two switches (sys/switch-A and sys/switch-B)
the data for the switch-ports on A and B always were exactly the same.
It took me a while to find the culprit:
Cisco::UCS::Common::SwitchCard->get_eth_ports()
There the UCS is queried for:
class_filter => {
classId => 'etherPIo',
slotId => $self->{id},
switchId => $self->{id}
i.e. switchId = slotId.
Thus in our setup the sys/switch-B/card-1 object would query
sys/switch-*1*/card-1, which does not exist; in this case the system
silently returns the first switch "A".
My current workaround is to parse switchId from $self->{dn} in order to
query the correct switch.
kind regards,
Stephan Weinberger
--
UBIMET GmbH - because weather matters
Stephan Weinberger BSc • IT
A-1220 Wien • Donau-City-Straße 11
Tel +43 1 263 11 22 466 • Fax +43 1 263 11 22 219
sweinberger@ubimet.com • www.ubimet.com
-------------------------------------------------------------------------------------------------------------------
The information contained in this message (including any attachments) is
confidential and may be legally privileged or otherwise protected from
disclosure. This message is intended solely for the addressee(s). If you
are not the intended recipient, please notify the sender by return
e-mail and delete this message from your system. Any unauthorized use,
reproduction, or dissemination of this message is strictly prohibited.
Please note that e-mails are susceptible to change. UBIMET GmbH shall
not be liable for the improper or incomplete transmission of the
information contained in this communication, nor shall it be liable for
any delay in its receipt. UBIMET GmbH accepts no liability for loss or
damage caused by software viruses and you are advised to carry out a
virus check on any attachments contained in this message.
Message body not shown because it is not plain text.