Code

Updated serverGeneric
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 15:29:52 +0000 (15:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Mar 2008 15:29:52 +0000 (15:29 +0000)
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

index 5ae7ad3121bbf5e25d3f49f2d00237823820cf46..f3ad76fad63d81014b6552c60dc1257811a6c4fd 100644 (file)
@@ -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));
   }