View Issue Details

IDProjectCategoryView StatusLast Update
1393RackTablesdefaultpublic2015-01-26 07:55
Reportertryfan Assigned Toandriyanov  
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSdebianOS Version7 
Product Version0.20.9 
Target Version0.20.10Fixed in Version0.20.10 
Summary1393: Can't define SFP port and the module
DescriptionJust upgraded to 0.20.9. Added some interfaces to a router as SFP-1000. Once I save and try to input the SFP itself, it only lists the initial empty SFP ports and default port types instead of 1000Base-SX, 1000Base-TX, etc.
Steps To Reproduce1. Create interface on any device using empty SFP+ or empty SFP-1000.
2. Try to define SFP as anything but empty by using dropdown.
TagsNo tags attached.

Activities

infrastation

infrastation

2015-01-13 22:33

administrator   ~0002645

Bug reproduces as described. This is likely to be caused by commit 4f968fa.
andriyanov

andriyanov

2015-01-14 07:54

reporter   ~0002647

Fixed in git repo.

Please apply the patch to fix the issue before next release will be made:

https://github.com/RackTables/racktables/commit/759b21d2959db4cc73a58bf7c57aec7318c55e0f.patch

This could be done like this:
$ ( cd /opt/racktables/wwwroot && curl 'https://github.com/RackTables/racktables/commit/759b21d2959db4cc73a58bf7c57aec7318c55e0f.patch' | patch -p2 )
laimaretto

laimaretto

2015-01-21 15:17

reporter   ~0002651

Hi,

When I try to apply the patch as suggested I'm being asked which is the file to patch. Which file is it?

-----

lucas@arturito:~$ ( cd /var/www/racktables/wwwroot && curl 'https://github.com/RackTables/racktables/commit/759b21d2959db4cc73a58bf7c57aec7318c55e0f.patch' | patch -p2 )
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 6155 0 6155 0 0 5298 0 --:--:-- 0:00:01 --:--:-- 5301
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 759b21d2959db4cc73a58bf7c57aec7318c55e0f Mon Sep 17 00:00:00 2001
|From: Alexey Andriyanov <alan@al-an.info>
|Date: Wed, 14 Jan 2015 09:48:03 +0300
|Subject: [PATCH] bug: OIF not changing for an unlinked port (1393)
|
| getNewPortTypeOptions: renamed to getUnlinkedPortTypeOptions. Now it
| returns different lists parametrized with iif_id.
|
| renderPortsForObject: use both getNewPortTypeOptions and
| getUnlinkedPortTypeOptions.
|---
| ChangeLog | 2 ++
| wwwroot/inc/functions.php | 35 +++++++++++++++++++++++++++--------
| wwwroot/inc/interface.php | 13 +++++--------
| 3 files changed, 34 insertions(+), 16 deletions(-)
|
|diff --git a/ChangeLog b/ChangeLog
|index 64a6806..3cad415 100644
|--- a/ChangeLog
|+++ b/ChangeLog
--------------------------
File to patch:

Issue History

Date Modified Username Field Change
2015-01-13 21:47 tryfan New Issue
2015-01-13 22:33 infrastation Note Added: 0002645
2015-01-13 22:33 infrastation Assigned To => andriyanov
2015-01-13 22:33 infrastation Status new => assigned
2015-01-14 07:54 andriyanov Note Added: 0002647
2015-01-14 07:54 andriyanov Target Version => 0.20.10
2015-01-21 15:17 laimaretto Note Added: 0002651
2015-01-26 07:55 andriyanov Status assigned => closed
2015-01-26 07:55 andriyanov Resolution open => fixed
2015-01-26 07:55 andriyanov Fixed in Version => 0.20.10