View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1275 | RackTables | default | public | 2014-07-10 02:58 | 2015-01-09 21:41 |
Reporter | infrared | Assigned To | andriyanov | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | won't fix | ||
Product Version | 0.20.8 | ||||
Summary | 1275: Display row and rack number on object Ports And Links table | ||||
Description | Hello. I'm trying to convince my department to abandon our current cable management strategy, in favor of unique cable IDs and racktable tracking. The Main Page >> Object >> View tab is a wonderful page for the network technician to print out, because it displays the remote object and remote port for every local port. However, one thing that would be really great is if, next to the "Remote object and port" field, it also displayed the remote object's row name and rack number. If that info was included directly in the table, we could simply print out the page, and it would have all the information on it that our old cable labeling had. Our operation is small enough that would don't need the object "Location" field (i.e., building name) but I imagine bigger operations might want that included as well. If this feature suggestion ends up being rejected, could somebody post a patch to the PHP code which I could use to apply this to my own installation? | ||||
Tags | No tags attached. | ||||
Not having time to wait, I patched the interface.php file to get what I wanted. I'm guessing this isn't the most efficient way to do it, but I didn't want to get into messing with any of those database.php functions. | |
row-rack.patch (1,552 bytes)
[1mdiff --git a/interface.php b/interface.php[m [1mindex 5dc63ba..e2cd1c8 100644[m [1m--- a/interface.php[m [1m+++ b/interface.php[m [36m@@ -1362,6 +1362,9 @@[m [mfunction renderObjectPortRow ($port, $is_highlighted)[m formatPortLink ($port['remote_object_id'], $port['remote_object_name'], $port['remote_id'], NULL) .[m "</td>";[m echo "<td class=tdleft>" . formatLoggedSpan ($port['last_log'], $port['remote_name'], 'underline') . "</td>";[m [32m+[m[32m $remote_object_info = spotEntity ('object', $port['remote_object_id']);[m [32m+[m[32m $remote_rack_info = spotEntity ('rack', $remote_object_info['rack_id']);[m [32m+[m[32m echo "<td class=tdleft>${remote_rack_info['row_name']}:${remote_rack_info['name']}</td>";[m $editable = permitted ('object', 'ports', 'editPort')[m ? 'editable'[m : '';[m [36m@@ -1481,7 +1484,7 @@[m [mfunction renderObject ($object_id)[m echo "<table cellspacing=0 cellpadding='5' align='center' class='widetable'>";[m echo '<tr><th class=tdleft>Local name</th><th class=tdleft>Visible label</th>';[m echo '<th class=tdleft>Interface</th><th class=tdleft>L2 address</th>';[m [31m- echo '<th class=tdcenter colspan=2>Remote object and port</th>';[m [32m+[m [32mecho '<th class=tdcenter colspan=3>Remote object, port, row:rack</th>';[m echo '<th class=tdleft>Cable ID</th></tr>';[m foreach ($info['ports'] as $port)[m callHook ('renderObjectPortRow', $port, ($hl_port_id == $port['id']));[m |
|
This info would definitely be excessive on the object's view page. This could be easily done in a plugin generating the cable crossing table with all the fields you need, possibly formatted for printing. The developers are quite busy to write custom plugins, so please ask on the mailing list. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2014-07-10 02:58 | infrared | New Issue | |
2014-07-12 00:21 | infrared | Note Added: 0002425 | |
2014-07-12 00:21 | infrared | File Added: row-rack.patch | |
2015-01-09 21:40 | andriyanov | Note Added: 0002629 | |
2015-01-09 21:40 | andriyanov | Status | new => closed |
2015-01-09 21:40 | andriyanov | Assigned To | => andriyanov |
2015-01-09 21:40 | andriyanov | Resolution | open => fixed |
2015-01-09 21:41 | andriyanov | Resolution | fixed => won't fix |