aboutsummaryrefslogtreecommitdiffstats
path: root/web/api/public
diff options
context:
space:
mode:
authorKristian Lyngstøl <kly@kly.no>2018-03-21 14:12:47 +0100
committerGitHub <noreply@github.com>2018-03-21 14:12:47 +0100
commit8bee35e8be72510d8bdc7ed5de49a8d031e829a5 (patch)
tree1cf02f46483365911735bb0cdedbebf22a006eab /web/api/public
parent227cc8ee0c4640d4e8eb63bde2f8742ea7199a81 (diff)
parent2b3beb9f93fc6486169e47f96995a97dd64baf2a (diff)
Merge pull request #168 from olemathias/network-firstclass
Network as own table
Diffstat (limited to 'web/api/public')
-rwxr-xr-xweb/api/public/switches2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/public/switches b/web/api/public/switches
index 44fde3c..8e7f333 100755
--- a/web/api/public/switches
+++ b/web/api/public/switches
@@ -13,7 +13,7 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "5";
$nms::web::cc{'stale-while-revalidate'} = "30";
-my $q2 = $nms::web::dbh->prepare('select switch,sysname,tags,distro_name,placement,mgmt_v4_addr,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,poll_frequency,community,last_updated from switches where placement is not null and deleted = false');
+my $q2 = $nms::web::dbh->prepare('select switch, sysname, tags, distro_name, placement, last_updated from switches where placement is not null and deleted = false');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {