From 4ac24842a5d7244a12d7fd5dc456af2206696ed4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 17 Oct 2007 03:46:07 +0000 Subject: Do not allow a group to be deleted when being referenced by a neighbor. --- packages/openbgpd/openbgpd_groups.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/openbgpd/openbgpd_groups.xml') diff --git a/packages/openbgpd/openbgpd_groups.xml b/packages/openbgpd/openbgpd_groups.xml index 5521d208..6e80dbfe 100644 --- a/packages/openbgpd/openbgpd_groups.xml +++ b/packages/openbgpd/openbgpd_groups.xml @@ -106,4 +106,9 @@ openbgpd_install_conf(); + + $status = check_group_usage($_POST['groupname']); + if($status) + $input_errors[] = "Sorry this group is in use and cannot be deleted."; + -- cgit v1.2.3