From 8c091c8f2139d6c590768eab62d7de644746d2a2 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Mar 2008 15:29:52 +0000 Subject: [PATCH] Updated serverGeneric If a server is removed, all entries in the gosa-si (gosaDaemonQueue) will be removed too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9396 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_servGeneric.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 5ae7ad312..f3ad76fad 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -240,6 +240,13 @@ class servgeneric extends plugin unset($og->member[$this->dn]); $og->save (); } + + /* Clean queue form entries with this mac + */ + if(class_available("gosaSupportDaemon") && tests::is_mac($this->netConfigDNS->orig_macAddress)){ + $q = new gosaSupportDaemon(); + $q->clean_queue_from_mac($this->netConfigDNS->orig_macAddress); + } $this->handle_post_events("remove",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); } -- 2.30.2