From dc97b997e8d6e5edc63c598c05090a8b98e79757 Mon Sep 17 00:00:00 2001 From: "Ole Mathias Aa. Heggem" Date: Sat, 17 Mar 2018 18:03:23 +0100 Subject: Added support for delete switches --- web/api/public/distro-tree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/api/public/distro-tree') diff --git a/web/api/public/distro-tree b/web/api/public/distro-tree index 5d93e1b..cff35ec 100755 --- a/web/api/public/distro-tree +++ b/web/api/public/distro-tree @@ -12,7 +12,7 @@ use Data::Dumper; $nms::web::cc{'max-age'} = "20"; -my $q2 = $nms::web::dbh->prepare('select sysname,distro_phy_port,distro_name from switches where placement is not null and distro_name is not null and distro_phy_port is not null'); +my $q2 = $nms::web::dbh->prepare('select sysname,distro_phy_port,distro_name 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()) { -- cgit v1.2.3