diff options
author | Ole Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com> | 2018-03-17 18:03:23 +0100 |
---|---|---|
committer | Ole Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com> | 2018-03-17 18:03:23 +0100 |
commit | dc97b997e8d6e5edc63c598c05090a8b98e79757 (patch) | |
tree | 42762b3582ec8416cc70527c178dda6498b90f19 /web/api/read/distro-management | |
parent | 8607a0880724eca35c220f7c26a138d9f0f50f72 (diff) |
Added support for delete switches
Diffstat (limited to 'web/api/read/distro-management')
-rwxr-xr-x | web/api/read/distro-management | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/read/distro-management b/web/api/read/distro-management index 2aa3273..7fbebef 100755 --- a/web/api/read/distro-management +++ b/web/api/read/distro-management @@ -19,7 +19,7 @@ my $q2; $nms::web::cc{'max-age'} = "5"; $nms::web::cc{'stale-while-revalidate'} = "30"; -$q2 = $nms::web::dbh->prepare('SELECT distro_name,sysname,subnet4,subnet6,traffic_vlan,distro_phy_port FROM switches WHERE placement is not null AND distro_name is not null AND distro_phy_port is not null'); +$q2 = $nms::web::dbh->prepare('SELECT distro_name,sysname,subnet4,subnet6,traffic_vlan,distro_phy_port FROM switches WHERE placement is not null AND distro_name is not null AND distro_phy_port is not null and deleted = false'); $q2->execute(); while (my $ref = $q2->fetchrow_hashref()) { |