datamodel.itop-virtualization-mgmt.xml 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <itop_design xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1">
  3. <classes>
  4. <class id="VirtualDevice" _delta="define">
  5. <parent>FunctionalCI</parent>
  6. <properties>
  7. <category>bizmodel,searchable</category>
  8. <abstract>true</abstract>
  9. <key_type>autoincrement</key_type>
  10. <db_table>virtualdevice</db_table>
  11. <db_key_field>id</db_key_field>
  12. <db_final_class_field/>
  13. <naming>
  14. <attributes>
  15. <attribute id="name"/>
  16. </attributes>
  17. </naming>
  18. <display_template/>
  19. <icon/>
  20. <reconciliation>
  21. <attributes>
  22. <attribute id="name"/>
  23. <attribute id="org_id"/>
  24. <attribute id="organization_name"/>
  25. <attribute id="finalclass"/>
  26. </attributes>
  27. </reconciliation>
  28. </properties>
  29. <fields>
  30. <field id="status" xsi:type="AttributeEnum">
  31. <values>
  32. <value id="production">production</value>
  33. <value id="implementation">implementation</value>
  34. <value id="stock">stock</value>
  35. <value id="obsolete">obsolete</value>
  36. </values>
  37. <sql>status</sql>
  38. <default_value>production</default_value>
  39. <is_null_allowed>true</is_null_allowed>
  40. <display_style>list</display_style>
  41. </field>
  42. <field id="logicalvolumes_list" xsi:type="AttributeLinkedSetIndirect">
  43. <linked_class>lnkVirtualDeviceToVolume</linked_class>
  44. <ext_key_to_me>virtualdevice_id</ext_key_to_me>
  45. <count_min>0</count_min>
  46. <count_max>0</count_max>
  47. <ext_key_to_remote>volume_id</ext_key_to_remote>
  48. <duplicates/>
  49. </field>
  50. </fields>
  51. <methods>
  52. <method id="GetRelationQueries">
  53. <static>true</static>
  54. <access>public</access>
  55. <type>Overload-DBObject</type>
  56. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  57. {
  58. switch ($sRelCode)
  59. {
  60. case 'depends on':
  61. $aRels = array(
  62. );
  63. if (class_exists('LogicalVolume'))
  64. {
  65. $aRels["logicalvolume"] = array("sQuery"=>"SELECT LogicalVolume AS lv JOIN lnkVirtualDeviceToVolume AS l1 ON l1.volume_id=lv.id WHERE l1.virtualdevice_id = :this->id", "bPropagate"=>true, "iDistance"=>5);
  66. }
  67. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  68. break;
  69. default:
  70. return parent::GetRelationQueries($sRelCode);
  71. }
  72. }]]></code>
  73. </method>
  74. </methods>
  75. <presentation>
  76. <details>
  77. <items>
  78. <item id="name">
  79. <rank>10</rank>
  80. </item>
  81. <item id="org_id">
  82. <rank>20</rank>
  83. </item>
  84. <item id="status">
  85. <rank>30</rank>
  86. </item>
  87. <item id="business_criticity">
  88. <rank>40</rank>
  89. </item>
  90. <item id="move2production">
  91. <rank>50</rank>
  92. </item>
  93. <item id="description">
  94. <rank>60</rank>
  95. </item>
  96. <item id="contacts_list">
  97. <rank>70</rank>
  98. </item>
  99. <item id="documents_list">
  100. <rank>80</rank>
  101. </item>
  102. <item id="applicationsolution_list">
  103. <rank>90</rank>
  104. </item>
  105. <item id="logicalvolumes_list">
  106. <rank>100</rank>
  107. </item>
  108. </items>
  109. </details>
  110. <search>
  111. <items>
  112. <item id="name">
  113. <rank>10</rank>
  114. </item>
  115. <item id="org_id">
  116. <rank>20</rank>
  117. </item>
  118. <item id="status">
  119. <rank>30</rank>
  120. </item>
  121. <item id="business_criticity">
  122. <rank>40</rank>
  123. </item>
  124. <item id="move2production">
  125. <rank>50</rank>
  126. </item>
  127. </items>
  128. </search>
  129. <list>
  130. <items>
  131. <item id="finalclass">
  132. <rank>10</rank>
  133. </item>
  134. <item id="org_id">
  135. <rank>20</rank>
  136. </item>
  137. <item id="status">
  138. <rank>30</rank>
  139. </item>
  140. <item id="business_criticity">
  141. <rank>40</rank>
  142. </item>
  143. <item id="move2production">
  144. <rank>50</rank>
  145. </item>
  146. </items>
  147. </list>
  148. </presentation>
  149. </class>
  150. <class id="VirtualHost" _delta="define">
  151. <parent>VirtualDevice</parent>
  152. <properties>
  153. <category>bizmodel,searchable</category>
  154. <abstract>true</abstract>
  155. <key_type>autoincrement</key_type>
  156. <db_table>virtualhost</db_table>
  157. <db_key_field>id</db_key_field>
  158. <db_final_class_field/>
  159. <naming>
  160. <attributes>
  161. <attribute id="name"/>
  162. </attributes>
  163. </naming>
  164. <display_template/>
  165. <icon/>
  166. <reconciliation>
  167. <attributes>
  168. <attribute id="name"/>
  169. <attribute id="org_id"/>
  170. <attribute id="organization_name"/>
  171. </attributes>
  172. </reconciliation>
  173. </properties>
  174. <fields>
  175. <field id="virtualmachine_list" xsi:type="AttributeLinkedSet">
  176. <linked_class>VirtualMachine</linked_class>
  177. <ext_key_to_me>virtualhost_id</ext_key_to_me>
  178. <edit_mode>add_only</edit_mode>
  179. <count_min>0</count_min>
  180. <count_max>0</count_max>
  181. </field>
  182. </fields>
  183. <methods>
  184. <method id="GetRelationQueries">
  185. <static>true</static>
  186. <access>public</access>
  187. <type>Overload-DBObject</type>
  188. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  189. {
  190. switch ($sRelCode)
  191. {
  192. case "impacts":
  193. $aRels = array(
  194. "virtualmachine" => array("sQuery"=>"SELECT VirtualMachine WHERE virtualhost_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  195. );
  196. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  197. break;
  198. default:
  199. return parent::GetRelationQueries($sRelCode);
  200. }
  201. }]]></code>
  202. </method>
  203. </methods>
  204. <presentation>
  205. <details>
  206. <items>
  207. <item id="name">
  208. <rank>10</rank>
  209. </item>
  210. <item id="org_id">
  211. <rank>20</rank>
  212. </item>
  213. <item id="status">
  214. <rank>25</rank>
  215. </item>
  216. <item id="business_criticity">
  217. <rank>30</rank>
  218. </item>
  219. <item id="move2production">
  220. <rank>40</rank>
  221. </item>
  222. <item id="description">
  223. <rank>50</rank>
  224. </item>
  225. <item id="contacts_list">
  226. <rank>60</rank>
  227. </item>
  228. <item id="documents_list">
  229. <rank>70</rank>
  230. </item>
  231. <item id="applicationsolution_list">
  232. <rank>80</rank>
  233. </item>
  234. <item id="logicalvolumes_list">
  235. <rank>90</rank>
  236. </item>
  237. <item id="virtualmachine_list">
  238. <rank>100</rank>
  239. </item>
  240. </items>
  241. </details>
  242. <search>
  243. <items>
  244. <item id="name">
  245. <rank>10</rank>
  246. </item>
  247. <item id="org_id">
  248. <rank>20</rank>
  249. </item>
  250. <item id="business_criticity">
  251. <rank>30</rank>
  252. </item>
  253. <item id="move2production">
  254. <rank>40</rank>
  255. </item>
  256. </items>
  257. </search>
  258. <list>
  259. <items>
  260. <item id="finalclass">
  261. <rank>10</rank>
  262. </item>
  263. <item id="org_id">
  264. <rank>20</rank>
  265. </item>
  266. <item id="status">
  267. <rank>30</rank>
  268. </item>
  269. <item id="business_criticity">
  270. <rank>40</rank>
  271. </item>
  272. <item id="move2production">
  273. <rank>50</rank>
  274. </item>
  275. </items>
  276. </list>
  277. </presentation>
  278. </class>
  279. <class id="Hypervisor" _delta="define">
  280. <parent>VirtualHost</parent>
  281. <properties>
  282. <category>bizmodel,searchable</category>
  283. <abstract>false</abstract>
  284. <key_type>autoincrement</key_type>
  285. <db_table>hypervisor</db_table>
  286. <db_key_field>id</db_key_field>
  287. <db_final_class_field/>
  288. <naming>
  289. <attributes>
  290. <attribute id="name"/>
  291. </attributes>
  292. </naming>
  293. <display_template/>
  294. <icon>images/hypervisor.png</icon>
  295. <reconciliation>
  296. <attributes>
  297. <attribute id="name"/>
  298. <attribute id="org_id"/>
  299. <attribute id="organization_name"/>
  300. </attributes>
  301. </reconciliation>
  302. </properties>
  303. <fields>
  304. <field id="farm_id" xsi:type="AttributeExternalKey">
  305. <sql>farm_id</sql>
  306. <target_class>Farm</target_class>
  307. <is_null_allowed>true</is_null_allowed>
  308. <on_target_delete>DEL_MANUAL</on_target_delete>
  309. </field>
  310. <field id="farm_name" xsi:type="AttributeExternalField">
  311. <extkey_attcode>farm_id</extkey_attcode>
  312. <target_attcode>name</target_attcode>
  313. </field>
  314. <field id="server_id" xsi:type="AttributeExternalKey">
  315. <sql>server_id</sql>
  316. <target_class>Server</target_class>
  317. <is_null_allowed>true</is_null_allowed>
  318. <on_target_delete>DEL_AUTO</on_target_delete>
  319. </field>
  320. <field id="server_name" xsi:type="AttributeExternalField">
  321. <extkey_attcode>server_id</extkey_attcode>
  322. <target_attcode>name</target_attcode>
  323. </field>
  324. </fields>
  325. <methods>
  326. <method id="GetRelationQueries">
  327. <static>true</static>
  328. <access>public</access>
  329. <type>Overload-DBObject</type>
  330. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  331. {
  332. switch ($sRelCode)
  333. {
  334. case "impacts":
  335. $aRels = array(
  336. "farm" => array("sQuery"=>"SELECT Farm WHERE id = :this->farm_id", "bPropagate"=>true, "iDistance"=>10),
  337. );
  338. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  339. break;
  340. case 'depends on':
  341. $aRels = array(
  342. "server" => array("sQuery"=>"SELECT Server WHERE id = :this->server_id", "bPropagate"=>true, "iDistance"=>10),
  343. );
  344. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  345. break;
  346. default:
  347. return parent::GetRelationQueries($sRelCode);
  348. }
  349. }]]></code>
  350. </method>
  351. </methods>
  352. <presentation>
  353. <details>
  354. <items>
  355. <item id="name">
  356. <rank>10</rank>
  357. </item>
  358. <item id="org_id">
  359. <rank>20</rank>
  360. </item>
  361. <item id="status">
  362. <rank>25</rank>
  363. </item>
  364. <item id="server_id">
  365. <rank>30</rank>
  366. </item>
  367. <item id="farm_id">
  368. <rank>40</rank>
  369. </item>
  370. <item id="business_criticity">
  371. <rank>50</rank>
  372. </item>
  373. <item id="move2production">
  374. <rank>60</rank>
  375. </item>
  376. <item id="description">
  377. <rank>70</rank>
  378. </item>
  379. <item id="contacts_list">
  380. <rank>80</rank>
  381. </item>
  382. <item id="documents_list">
  383. <rank>90</rank>
  384. </item>
  385. <item id="tickets_list">
  386. <rank>100</rank>
  387. </item>
  388. <item id="applicationsolution_list">
  389. <rank>110</rank>
  390. </item>
  391. <item id="logicalvolumes_list">
  392. <rank>115</rank>
  393. </item>
  394. <item id="virtualmachine_list">
  395. <rank>120</rank>
  396. </item>
  397. <item id="providercontracts_list">
  398. <rank>130</rank>
  399. </item>
  400. <item id="services_list">
  401. <rank>140</rank>
  402. </item>
  403. </items>
  404. </details>
  405. <search>
  406. <items>
  407. <item id="name">
  408. <rank>10</rank>
  409. </item>
  410. <item id="org_id">
  411. <rank>20</rank>
  412. </item>
  413. <item id="business_criticity">
  414. <rank>30</rank>
  415. </item>
  416. <item id="move2production">
  417. <rank>40</rank>
  418. </item>
  419. </items>
  420. </search>
  421. <list>
  422. <items>
  423. <item id="org_id">
  424. <rank>10</rank>
  425. </item>
  426. <item id="server_id">
  427. <rank>20</rank>
  428. </item>
  429. <item id="farm_id">
  430. <rank>30</rank>
  431. </item>
  432. <item id="business_criticity">
  433. <rank>40</rank>
  434. </item>
  435. <item id="move2production">
  436. <rank>50</rank>
  437. </item>
  438. </items>
  439. </list>
  440. </presentation>
  441. </class>
  442. <class id="Farm" _delta="define">
  443. <parent>VirtualHost</parent>
  444. <properties>
  445. <category>bizmodel,searchable</category>
  446. <abstract>false</abstract>
  447. <key_type>autoincrement</key_type>
  448. <db_table>farm</db_table>
  449. <db_key_field>id</db_key_field>
  450. <db_final_class_field/>
  451. <naming>
  452. <attributes>
  453. <attribute id="name"/>
  454. </attributes>
  455. </naming>
  456. <display_template/>
  457. <icon>images/cluster.png</icon>
  458. <reconciliation>
  459. <attributes>
  460. <attribute id="name"/>
  461. <attribute id="org_id"/>
  462. <attribute id="organization_name"/>
  463. </attributes>
  464. </reconciliation>
  465. </properties>
  466. <fields>
  467. <field id="hypervisor_list" xsi:type="AttributeLinkedSet">
  468. <linked_class>Hypervisor</linked_class>
  469. <ext_key_to_me>farm_id</ext_key_to_me>
  470. <edit_mode>add_only</edit_mode>
  471. <count_min>0</count_min>
  472. <count_max>0</count_max>
  473. </field>
  474. </fields>
  475. <methods>
  476. <method id="GetRelationQueries">
  477. <static>true</static>
  478. <access>public</access>
  479. <type>Overload-DBObject</type>
  480. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  481. {
  482. switch ($sRelCode)
  483. {
  484. case "impacts":
  485. $aRels = array(
  486. );
  487. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  488. break;
  489. case 'depends on':
  490. $aRels = array(
  491. "Hypervisor" => array("sQuery"=>"SELECT Hypervisor WHERE farm_id = :this->id", "bPropagate"=>true, "iDistance"=>10),
  492. );
  493. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  494. break;
  495. default:
  496. return parent::GetRelationQueries($sRelCode);
  497. }
  498. }]]></code>
  499. </method>
  500. </methods>
  501. <presentation>
  502. <details>
  503. <items>
  504. <item id="name">
  505. <rank>10</rank>
  506. </item>
  507. <item id="org_id">
  508. <rank>20</rank>
  509. </item>
  510. <item id="status">
  511. <rank>25</rank>
  512. </item>
  513. <item id="business_criticity">
  514. <rank>30</rank>
  515. </item>
  516. <item id="move2production">
  517. <rank>40</rank>
  518. </item>
  519. <item id="description">
  520. <rank>50</rank>
  521. </item>
  522. <item id="contacts_list">
  523. <rank>60</rank>
  524. </item>
  525. <item id="documents_list">
  526. <rank>70</rank>
  527. </item>
  528. <item id="tickets_list">
  529. <rank>80</rank>
  530. </item>
  531. <item id="applicationsolution_list">
  532. <rank>90</rank>
  533. </item>
  534. <item id="logicalvolumes_list">
  535. <rank>95</rank>
  536. </item>
  537. <item id="hypervisor_list">
  538. <rank>100</rank>
  539. </item>
  540. <item id="virtualmachine_list">
  541. <rank>110</rank>
  542. </item>
  543. <item id="providercontracts_list">
  544. <rank>120</rank>
  545. </item>
  546. <item id="services_list">
  547. <rank>130</rank>
  548. </item>
  549. </items>
  550. </details>
  551. <search>
  552. <items>
  553. <item id="name">
  554. <rank>10</rank>
  555. </item>
  556. <item id="org_id">
  557. <rank>20</rank>
  558. </item>
  559. <item id="business_criticity">
  560. <rank>30</rank>
  561. </item>
  562. <item id="move2production">
  563. <rank>40</rank>
  564. </item>
  565. </items>
  566. </search>
  567. <list>
  568. <items>
  569. <item id="org_id">
  570. <rank>10</rank>
  571. </item>
  572. <item id="status">
  573. <rank>20</rank>
  574. </item>
  575. <item id="business_criticity">
  576. <rank>30</rank>
  577. </item>
  578. <item id="move2production">
  579. <rank>40</rank>
  580. </item>
  581. </items>
  582. </list>
  583. </presentation>
  584. </class>
  585. <class id="VirtualMachine" _delta="define">
  586. <parent>VirtualDevice</parent>
  587. <properties>
  588. <category>bizmodel,searchable</category>
  589. <abstract>false</abstract>
  590. <key_type>autoincrement</key_type>
  591. <db_table>virtualmachine</db_table>
  592. <db_key_field>id</db_key_field>
  593. <db_final_class_field/>
  594. <naming>
  595. <attributes>
  596. <attribute id="name"/>
  597. </attributes>
  598. </naming>
  599. <display_template/>
  600. <icon>images/virtualmachine.png</icon>
  601. <reconciliation>
  602. <attributes>
  603. <attribute id="name"/>
  604. <attribute id="org_id"/>
  605. <attribute id="organization_name"/>
  606. </attributes>
  607. </reconciliation>
  608. </properties>
  609. <fields>
  610. <field id="virtualhost_id" xsi:type="AttributeExternalKey">
  611. <sql>virtualhost_id</sql>
  612. <target_class>VirtualHost</target_class>
  613. <is_null_allowed>false</is_null_allowed>
  614. <on_target_delete>DEL_MANUAL</on_target_delete>
  615. </field>
  616. <field id="virtualhost_name" xsi:type="AttributeExternalField">
  617. <extkey_attcode>virtualhost_id</extkey_attcode>
  618. <target_attcode>name</target_attcode>
  619. </field>
  620. <field id="osfamily_id" xsi:type="AttributeExternalKey">
  621. <sql>osfamily_id</sql>
  622. <target_class>OSFamily</target_class>
  623. <is_null_allowed>true</is_null_allowed>
  624. <on_target_delete>DEL_MANUAL</on_target_delete>
  625. </field>
  626. <field id="osfamily_name" xsi:type="AttributeExternalField">
  627. <extkey_attcode>osfamily_id</extkey_attcode>
  628. <target_attcode>name</target_attcode>
  629. </field>
  630. <field id="osversion_id" xsi:type="AttributeExternalKey">
  631. <filter><![CDATA[SELECT OSVersion WHERE osfamily_id = :this->osfamily_id]]></filter>
  632. <dependencies>
  633. <attribute id="osfamily_id"/>
  634. </dependencies>
  635. <sql>osversion_id</sql>
  636. <target_class>OSVersion</target_class>
  637. <is_null_allowed>true</is_null_allowed>
  638. <on_target_delete>DEL_MANUAL</on_target_delete>
  639. </field>
  640. <field id="osversion_name" xsi:type="AttributeExternalField">
  641. <extkey_attcode>osversion_id</extkey_attcode>
  642. <target_attcode>name</target_attcode>
  643. </field>
  644. <field id="oslicence_id" xsi:type="AttributeExternalKey">
  645. <filter><![CDATA[SELECT OSLicence WHERE osversion_id = :this->osversion_id]]></filter>
  646. <dependencies>
  647. <attribute id="osversion_id"/>
  648. </dependencies>
  649. <sql>oslicence_id</sql>
  650. <target_class>OSLicence</target_class>
  651. <is_null_allowed>true</is_null_allowed>
  652. <on_target_delete>DEL_MANUAL</on_target_delete>
  653. </field>
  654. <field id="oslicence_name" xsi:type="AttributeExternalField">
  655. <extkey_attcode>oslicence_id</extkey_attcode>
  656. <target_attcode>name</target_attcode>
  657. </field>
  658. <field id="cpu" xsi:type="AttributeString">
  659. <sql>cpu</sql>
  660. <default_value/>
  661. <is_null_allowed>true</is_null_allowed>
  662. </field>
  663. <field id="ram" xsi:type="AttributeString">
  664. <sql>ram</sql>
  665. <default_value/>
  666. <is_null_allowed>true</is_null_allowed>
  667. </field>
  668. <field id="logicalinterface_list" xsi:type="AttributeLinkedSet">
  669. <linked_class>LogicalInterface</linked_class>
  670. <ext_key_to_me>virtualmachine_id</ext_key_to_me>
  671. <edit_mode>in_place</edit_mode>
  672. <count_min>0</count_min>
  673. <count_max>0</count_max>
  674. </field>
  675. <field id="managementip" xsi:type="AttributeIPAddress">
  676. <sql>managementip</sql>
  677. <default_value/>
  678. <is_null_allowed>true</is_null_allowed>
  679. </field>
  680. </fields>
  681. <methods>
  682. <method id="GetRelationQueries">
  683. <static>true</static>
  684. <access>public</access>
  685. <type>Overload-DBObject</type>
  686. <code><![CDATA[ public static function GetRelationQueries($sRelCode)
  687. {
  688. switch ($sRelCode)
  689. {
  690. case "impacts":
  691. $aRels = array(
  692. );
  693. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  694. break;
  695. case 'depends on':
  696. $aRels = array(
  697. "virtualhost" => array("sQuery"=>"SELECT VirtualHost WHERE id = :this->virtualhost_id", "bPropagate"=>true, "iDistance"=>10),
  698. );
  699. return array_merge($aRels, parent::GetRelationQueries($sRelCode));
  700. break;
  701. default:
  702. return parent::GetRelationQueries($sRelCode);
  703. }
  704. }]]></code>
  705. </method>
  706. </methods>
  707. <presentation>
  708. <details>
  709. <items>
  710. <item id="softwares_list">
  711. <rank>10</rank>
  712. </item>
  713. <item id="contacts_list">
  714. <rank>20</rank>
  715. </item>
  716. <item id="documents_list">
  717. <rank>30</rank>
  718. </item>
  719. <item id="tickets_list">
  720. <rank>40</rank>
  721. </item>
  722. <item id="applicationsolution_list">
  723. <rank>45</rank>
  724. </item>
  725. <item id="logicalinterface_list">
  726. <rank>50</rank>
  727. </item>
  728. <item id="logicalvolumes_list">
  729. <rank>60</rank>
  730. </item>
  731. <item id="providercontracts_list">
  732. <rank>70</rank>
  733. </item>
  734. <item id="services_list">
  735. <rank>80</rank>
  736. </item>
  737. <item id="col:col1">
  738. <rank>90</rank>
  739. <items>
  740. <item id="fieldset:Server:baseinfo">
  741. <rank>10</rank>
  742. <items>
  743. <item id="name">
  744. <rank>10</rank>
  745. </item>
  746. <item id="org_id">
  747. <rank>20</rank>
  748. </item>
  749. <item id="status">
  750. <rank>30</rank>
  751. </item>
  752. <item id="business_criticity">
  753. <rank>40</rank>
  754. </item>
  755. <item id="virtualhost_id">
  756. <rank>50</rank>
  757. </item>
  758. </items>
  759. </item>
  760. <item id="fieldset:Server:moreinfo">
  761. <rank>20</rank>
  762. <items>
  763. <item id="osfamily_id">
  764. <rank>10</rank>
  765. </item>
  766. <item id="osversion_id">
  767. <rank>20</rank>
  768. </item>
  769. <item id="managementip">
  770. <rank>25</rank>
  771. </item>
  772. <item id="oslicence_id">
  773. <rank>30</rank>
  774. </item>
  775. <item id="cpu">
  776. <rank>40</rank>
  777. </item>
  778. <item id="ram">
  779. <rank>50</rank>
  780. </item>
  781. </items>
  782. </item>
  783. </items>
  784. </item>
  785. <item id="col:col2">
  786. <rank>100</rank>
  787. <items>
  788. <item id="fieldset:Server:otherinfo">
  789. <rank>10</rank>
  790. <items>
  791. <item id="move2production">
  792. <rank>10</rank>
  793. </item>
  794. <item id="description">
  795. <rank>20</rank>
  796. </item>
  797. </items>
  798. </item>
  799. </items>
  800. </item>
  801. </items>
  802. </details>
  803. <search>
  804. <items>
  805. <item id="name">
  806. <rank>10</rank>
  807. </item>
  808. <item id="org_id">
  809. <rank>20</rank>
  810. </item>
  811. <item id="status">
  812. <rank>30</rank>
  813. </item>
  814. <item id="managementip">
  815. <rank>25</rank>
  816. </item>
  817. <item id="business_criticity">
  818. <rank>40</rank>
  819. </item>
  820. <item id="move2production">
  821. <rank>50</rank>
  822. </item>
  823. </items>
  824. </search>
  825. <list>
  826. <items>
  827. <item id="org_id">
  828. <rank>10</rank>
  829. </item>
  830. <item id="status">
  831. <rank>20</rank>
  832. </item>
  833. <item id="business_criticity">
  834. <rank>30</rank>
  835. </item>
  836. </items>
  837. </list>
  838. </presentation>
  839. </class>
  840. <class id="LogicalInterface" _delta="define">
  841. <parent>IPInterface</parent>
  842. <properties>
  843. <category>bizmodel,searchable</category>
  844. <abstract>false</abstract>
  845. <key_type>autoincrement</key_type>
  846. <db_table>logicalinterface</db_table>
  847. <db_key_field>id</db_key_field>
  848. <db_final_class_field/>
  849. <naming>
  850. <attributes>
  851. <attribute id="name"/>
  852. <attribute id="virtualmachine_name"/>
  853. </attributes>
  854. </naming>
  855. <display_template/>
  856. <icon>images/interface.png</icon>
  857. <reconciliation>
  858. <attributes>
  859. <attribute id="name"/>
  860. <attribute id="virtualmachine_id"/>
  861. <attribute id="virtualmachine_name"/>
  862. </attributes>
  863. </reconciliation>
  864. </properties>
  865. <fields>
  866. <field id="virtualmachine_id" xsi:type="AttributeExternalKey">
  867. <sql>virtualmachine_id</sql>
  868. <target_class>VirtualMachine</target_class>
  869. <is_null_allowed>false</is_null_allowed>
  870. <on_target_delete>DEL_AUTO</on_target_delete>
  871. </field>
  872. <field id="virtualmachine_name" xsi:type="AttributeExternalField">
  873. <extkey_attcode>virtualmachine_id</extkey_attcode>
  874. <target_attcode>name</target_attcode>
  875. </field>
  876. </fields>
  877. <methods/>
  878. <presentation>
  879. <details>
  880. <items>
  881. <item id="name">
  882. <rank>5</rank>
  883. </item>
  884. <item id="ipaddress">
  885. <rank>10</rank>
  886. </item>
  887. <item id="macaddress">
  888. <rank>20</rank>
  889. </item>
  890. <item id="comment">
  891. <rank>30</rank>
  892. </item>
  893. <item id="ipgateway">
  894. <rank>40</rank>
  895. </item>
  896. <item id="ipmask">
  897. <rank>50</rank>
  898. </item>
  899. <item id="speed">
  900. <rank>60</rank>
  901. </item>
  902. <item id="virtualmachine_id">
  903. <rank>70</rank>
  904. </item>
  905. </items>
  906. </details>
  907. <search>
  908. <items>
  909. <item id="name">
  910. <rank>5</rank>
  911. </item>
  912. <item id="ipaddress">
  913. <rank>10</rank>
  914. </item>
  915. <item id="macaddress">
  916. <rank>20</rank>
  917. </item>
  918. <item id="ipgateway">
  919. <rank>30</rank>
  920. </item>
  921. <item id="ipmask">
  922. <rank>40</rank>
  923. </item>
  924. </items>
  925. </search>
  926. <list>
  927. <items>
  928. <item id="ipaddress">
  929. <rank>10</rank>
  930. </item>
  931. <item id="macaddress">
  932. <rank>20</rank>
  933. </item>
  934. <item id="comment">
  935. <rank>30</rank>
  936. </item>
  937. <item id="ipgateway">
  938. <rank>40</rank>
  939. </item>
  940. <item id="ipmask">
  941. <rank>50</rank>
  942. </item>
  943. <item id="speed">
  944. <rank>60</rank>
  945. </item>
  946. </items>
  947. </list>
  948. </presentation>
  949. </class>
  950. </classes>
  951. <menus>
  952. <menu id="ConfigManagementOverview" xsi:type="DashboardMenuNode" _delta="must_exist">
  953. <definition>
  954. <cells>
  955. <cell id="1" _delta="define">
  956. <rank>1</rank>
  957. <dashlets>
  958. <dashlet id="38" xsi:type="DashletHeaderStatic">
  959. <rank>0</rank>
  960. <title>Menu:ConfigManagement:virtualization</title>
  961. <icon>itop-virtualization-mgmt/images/hypervisor-sw.png</icon>
  962. </dashlet>
  963. <dashlet id="39" xsi:type="DashletBadge">
  964. <rank>1</rank>
  965. <class>Farm</class>
  966. </dashlet>
  967. <dashlet id="40" xsi:type="DashletBadge">
  968. <rank>2</rank>
  969. <class>Hypervisor</class>
  970. </dashlet>
  971. <dashlet id="41" xsi:type="DashletBadge">
  972. <rank>3</rank>
  973. <class>VirtualMachine</class>
  974. </dashlet>
  975. </dashlets>
  976. </cell>
  977. </cells>
  978. </definition>
  979. </menu>
  980. </menus>
  981. </itop_design>