View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
589 | RackTables | default | public | 2012-08-07 10:14 | 2012-08-14 13:01 |
Reporter | blaza-pl | Assigned To | infrastation | ||
Priority | low | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.13 | ||||
Target Version | 0.19.14 | Fixed in Version | 0.19.14 | ||
Summary | 589: Interface Name LongReachEthernet not shorten (CDP...) | ||||
Description | When switch has interfaces named LongReachEthernet they are not shorten in Live CDP tab. This may render problems when trying to add connections. Modification in functions.php needed to fix this (patch included). | ||||
Tags | No tags attached. | ||||
longreach.patch (540 bytes)
*** old/inc/functions.php 2012-07-24 08:07:34.363092652 +0200 --- new/inc/functions.php 2012-08-07 10:00:05.186844880 +0200 *************** *** 2859,2864 **** --- 2869,2875 ---- $ifname = preg_replace ('@^TenGigabitEthernet(.+)$@', 'te\\1', $ifname); $ifname = preg_replace ('@^Port-channel(.+)$@', 'po\\1', $ifname); $ifname = preg_replace ('@^(?:XGigabitEthernet|XGE)(.+)$@', 'xg\\1', $ifname); + $ifname = preg_replace ('@^LongReachEthernet(.+)$@', 'lo\\1', $ifname); $ifname = strtolower ($ifname); return $ifname; } |
|
"lo" typically stands for loopback. How does the software abbreviate it in "show int status" output? | |
This documentation suggests it is indeed abbreviated as loN/N. http://www.cisco.com/en/US/docs/switches/lan/catalyst2900xl_3500xl/release12.0_5_wc6/cli/clicmds.html#wp1776305 If you don't care about matching the output of Cisco commands, I suggest lreN/N. |
|
It is abbreviated to LoN/N as you said. As I am using Live CDP Tab and snmpgeneric port pulling it would be great if all these features had one common function to abbreviate interface name. So for now I would keep the loN/N option to make it consistent. This would create less confusion when someone looks at show interface status directly on a switch. | |
"loX/Y" is right then since the abbreviated interface name may be fed back to the switch CLI. This tweak will be available in the next maintenance release. Thank you! | |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-07 10:14 | blaza-pl | New Issue | |
2012-08-07 10:14 | blaza-pl | File Added: longreach.patch | |
2012-08-10 07:35 | infrastation | Note Added: 0000733 | |
2012-08-11 06:22 | adoom42 | Note Added: 0000734 | |
2012-08-13 22:04 | blaza-pl | Note Added: 0000735 | |
2012-08-14 12:50 | infrastation | Assigned To | => infrastation |
2012-08-14 12:50 | infrastation | Status | new => assigned |
2012-08-14 13:01 | infrastation | Note Added: 0000737 | |
2012-08-14 13:01 | infrastation | Status | assigned => closed |
2012-08-14 13:01 | infrastation | Resolution | open => fixed |
2012-08-14 13:01 | infrastation | Fixed in Version | => 0.19.14 |
2012-08-14 13:01 | infrastation | Target Version | => 0.19.14 |