aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openbgpd/openbgpd_groups.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openbgpd/openbgpd_groups.xml')
-rw-r--r--packages/openbgpd/openbgpd_groups.xml5
1 files changed, 5 insertions, 0 deletions
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 @@
<custom_php_resync_config_command>
openbgpd_install_conf();
</custom_php_resync_config_command>
+ <custom_php_validation_command>
+ $status = check_group_usage($_POST['groupname']);
+ if($status)
+ $input_errors[] = "Sorry this group is in use and cannot be deleted.";
+ </custom_php_validation_command>
</packagegui>