View Issue Details

IDProjectCategoryView StatusLast Update
589RackTablesdefaultpublic2012-08-14 13:01
Reporterblaza-pl Assigned Toinfrastation  
PrioritylowSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.13 
Target Version0.19.14Fixed in Version0.19.14 
Summary589: Interface Name LongReachEthernet not shorten (CDP...)
DescriptionWhen 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).
TagsNo tags attached.

Activities

blaza-pl

blaza-pl

2012-08-07 10:14

reporter  

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;
  }
longreach.patch (540 bytes)   
infrastation

infrastation

2012-08-10 07:35

administrator   ~0000733

"lo" typically stands for loopback. How does the software abbreviate it in "show int status" output?
adoom42

adoom42

2012-08-11 06:22

administrator   ~0000734

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.
blaza-pl

blaza-pl

2012-08-13 22:04

reporter   ~0000735

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.
infrastation

infrastation

2012-08-14 13:01

administrator   ~0000737

"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!

Issue History

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