aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/read/switches-management
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-25 21:48:40 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-25 21:48:40 +0200
commit3833403178a83c5174295d945edabfe749d001af (patch)
tree5ab919a217ef14332b068c5f7490e41c20db83c9 /web/api/read/switches-management
parent6e777538c411bb4abc730983c60002c330da5dab (diff)
front: Fix/tweak edit-box
No need to expose 'switch' id in the API - it's internal to the db. The entire edit-logic should be cleaned up, but at least this fixes the immediate problem. Fixes #74
Diffstat (limited to 'web/api/read/switches-management')
-rwxr-xr-xweb/api/read/switches-management2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/read/switches-management b/web/api/read/switches-management
index 2dd329c..8d899b7 100755
--- a/web/api/read/switches-management
+++ b/web/api/read/switches-management
@@ -12,7 +12,7 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "60";
-my $q2 = $nms::web::dbh->prepare('select switch,sysname,mgmt_v4_addr,subnet4,subnet6,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,last_config_fetch,current_mac,poll_frequency,last_updated,distro_phy_port from switches where placement is not null');
+my $q2 = $nms::web::dbh->prepare('select sysname,mgmt_v4_addr,subnet4,subnet6,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,last_config_fetch,current_mac,poll_frequency,last_updated,distro_phy_port,community from switches where placement is not null');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {