瀏覽代碼

XML Modelization of the relations: XML definition moved so as to allow a minimal installation (no virtualization)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3557 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年之前
父節點
當前提交
20f4b9c48d

+ 0 - 10
datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml

@@ -2758,16 +2758,6 @@
           <code><![CDATA[	public static function GetRelationQueries($sRelCode){return parent::GetRelationQueries($sRelCode);} ]]></code>
         </method>
       </methods>
-      <relations>
-        <relation id="impacts">
-          <neighbours>
-            <neighbour id="hypervisor">
-              <query_down>SELECT Hypervisor AS o WHERE o.server_id = :this-&gt;id</query_down>
-              <query_up>SELECT Server AS o WHERE o.id = :this-&gt;server_id</query_up>
-            </neighbour>
-          </neighbours>
-        </relation>
-      </relations>
     </class>
     <class id="ApplicationSolution" _delta="define">
       <parent>FunctionalCI</parent>

+ 12 - 0
datamodels/2.x/itop-virtualization-mgmt/datamodel.itop-virtualization-mgmt.xml

@@ -901,6 +901,18 @@
         </list>
       </presentation>
     </class>
+    <class id="Server" _delta="merge">
+      <relations>
+        <relation id="impacts">
+          <neighbours>
+            <neighbour id="hypervisor">
+              <query_down>SELECT Hypervisor AS o WHERE o.server_id = :this-&gt;id</query_down>
+              <query_up>SELECT Server AS o WHERE o.id = :this-&gt;server_id</query_up>
+            </neighbour>
+          </neighbours>
+        </relation>
+      </relations>
+    </class>
   </classes>
   <menus>
     <menu id="ConfigManagementOverview" xsi:type="DashboardMenuNode" _delta="must_exist">