aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLasse Haugen <haugen.lasse@gmail.com>2016-12-16 13:01:33 +0100
committerLasse Haugen <haugen.lasse@gmail.com>2016-12-16 13:01:33 +0100
commit64e91a665adc3eef4692db80ca98c4f6de29895a (patch)
tree099bc43dc339e4f9a5c96890797348fc49d5c97a
parentc38af8933072bb2b9606cd6490e1a802ab4c4187 (diff)
added distro_name to api endpoint
-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 34323b1..237ac2d 100755
--- a/web/api/read/switches-management
+++ b/web/api/read/switches-management
@@ -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 sysname,mgmt_v4_addr,subnet4,subnet6,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,poll_frequency,last_updated,distro_phy_port,community 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,poll_frequency,last_updated,distro_name,distro_phy_port,community from switches where placement is not null');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {