Code

Added missing functions
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 15:26:56 +0000 (15:26 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 15:26:56 +0000 (15:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11426 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/opsi.pm

index 90dc4a4bd0e9934ae49bb9ab9ff31d0f4910a0b2..9fb0e4e25940dd79cd842c4bcce0f30d4e3cc9cc 100644 (file)
@@ -6,11 +6,14 @@ my @events = (
     "opsi_get_netboot_products",
     "opsi_get_local_products",
     "opsi_get_product_properties",
-    "opsi_set_product_properties",
+    "opsi_get_client_hardware",
+    "opsi_get_client_software",
     "answer_opsi_get_netboot_products",
     "answer_opsi_get_local_products",
     "answer_opsi_get_product_properties",
     "answer_opsi_set_product_properties",
+    "answer_opsi_get_client_hardware",
+    "answer_opsi_get_client_software",
    );
 @EXPORT = @events;
 
@@ -57,6 +60,17 @@ sub opsi_get_local_products {
         return ( $msg );
 }
 
+sub opsi_get_client_hardware {
+        my ($msg, $msg_hash, $session_id) = @_;
+        $msg =~ s/gosa_opsi/opsi/g;
+        return ( $msg );
+}
+
+sub opsi_get_client_software {
+        my ($msg, $msg_hash, $session_id) = @_;
+        $msg =~ s/gosa_opsi/opsi/g;
+        return ( $msg );
+}
 
 sub answer_opsi_get_netboot_products {
     my ($msg, $msg_hash, $session_id) = @_ ;
@@ -82,4 +96,16 @@ sub answer_opsi_get_local_products {
     return ($msg);
 }
 
+sub answer_opsi_get_client_hardware {
+    my ($msg, $msg_hash, $session_id) = @_ ;
+    $msg =~ s/<target>\S+<\/target>/<target>GOSA<\/target>/g;
+    return ($msg);
+}
+
+sub answer_opsi_get_client_software {
+    my ($msg, $msg_hash, $session_id) = @_ ;
+    $msg =~ s/<target>\S+<\/target>/<target>GOSA<\/target>/g;
+    return ($msg);
+}
+
 1;