浏览代码

- Network Interfaces are back into the sample data... and they can be interconnected !

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@845 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 年之前
父节点
当前提交
b4ceabc760

+ 1 - 1
modules/itop-config-mgmt-1.0.0/data.sample.FunctionalCI.xml

@@ -46,7 +46,7 @@
 <description></description>
 <location_id>0</location_id>
 <location_details></location_details>
-<management_ip></management_ip>
+<management_ip>10.1.1.3</management_ip>
 <default_gateway></default_gateway>
 <type>router</type>
 <ios_version></ios_version>

+ 34 - 14
modules/itop-config-mgmt-1.0.0/data.sample.NetworkInterface.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Set>
-<NetworkInterface alias="NetworkInterface" id="5">
+<NetworkInterface alias="NetworkInterface" id="1">
 <name>A0</name>
 <status>production</status>
 <org_id>2</org_id>
@@ -12,15 +12,15 @@
 <device_id>4</device_id>
 <logical_type>primary</logical_type>
 <physical_type>ethernet</physical_type>
-<ip_address></ip_address>
-<ip_mask></ip_mask>
+<ip_address>10.1.1.2</ip_address>
+<ip_mask>255.255.255.0</ip_mask>
 <mac_address></mac_address>
-<speed></speed>
+<speed>1000</speed>
 <duplex>full</duplex>
-<connected_if>3</connected_if>
+<connected_if>0</connected_if>
 <link_type>downlink</link_type>
 </NetworkInterface>
-<NetworkInterface alias="NetworkInterface" id="6">
+<NetworkInterface alias="NetworkInterface" id="2">
 <name>A1</name>
 <status>production</status>
 <org_id>2</org_id>
@@ -32,15 +32,15 @@
 <device_id>4</device_id>
 <logical_type>primary</logical_type>
 <physical_type>ethernet</physical_type>
-<ip_address>10.1.1.2</ip_address>
-<ip_mask>255.255.255.0</ip_mask>
+<ip_address></ip_address>
+<ip_mask></ip_mask>
 <mac_address></mac_address>
 <speed></speed>
 <duplex>full</duplex>
 <connected_if>0</connected_if>
 <link_type>uplink</link_type>
 </NetworkInterface>
-<NetworkInterface alias="NetworkInterface" id="13">
+<NetworkInterface alias="NetworkInterface" id="3">
 <name>A2</name>
 <status>implementation</status>
 <org_id>2</org_id>
@@ -57,10 +57,10 @@
 <mac_address></mac_address>
 <speed></speed>
 <duplex>full</duplex>
-<connected_if>14</connected_if>
+<connected_if></connected_if>
 <link_type>downlink</link_type>
 </NetworkInterface>
-<NetworkInterface alias="NetworkInterface" id="3">
+<NetworkInterface alias="NetworkInterface" id="4">
 <name>eth0</name>
 <status>implementation</status>
 <org_id>2</org_id>
@@ -77,10 +77,10 @@
 <mac_address>00:a2:23:b45:34</mac_address>
 <speed></speed>
 <duplex>full</duplex>
-<connected_if>5</connected_if>
+<connected_if>2</connected_if>
 <link_type>uplink</link_type>
 </NetworkInterface>
-<NetworkInterface alias="NetworkInterface" id="14">
+<NetworkInterface alias="NetworkInterface" id="5">
 <name>eth0</name>
 <status>production</status>
 <org_id>2</org_id>
@@ -97,7 +97,27 @@
 <mac_address></mac_address>
 <speed></speed>
 <duplex>full</duplex>
-<connected_if>13</connected_if>
+<connected_if>3</connected_if>
 <link_type>uplink</link_type>
 </NetworkInterface>
+<NetworkInterface alias="NetworkInterface" id="6">
+<name>A0</name>
+<status>production</status>
+<org_id>2</org_id>
+<importance>medium</importance>
+<brand></brand>
+<model></model>
+<serial_number></serial_number>
+<asset_ref></asset_ref>
+<device_id>1</device_id>
+<logical_type>primary</logical_type>
+<physical_type>ethernet</physical_type>
+<ip_address></ip_address>
+<ip_mask></ip_mask>
+<mac_address></mac_address>
+<speed>1000</speed>
+<duplex>full</duplex>
+<connected_if>1</connected_if>
+<link_type>downlink</link_type>
+</NetworkInterface>
 </Set>

+ 1 - 1
modules/itop-config-mgmt-1.0.0/module.itop-config-mgmt.php

@@ -41,7 +41,7 @@ SetupWebPage::AddModule(
 			'data.sample.DBServerInstance.xml',
 			'data.sample.ApplicationInstance.xml',
 			'data.sample.DatabaseInstance.xml',
-			//'data.sample.NetworkInterface.xml',
+			'data.sample.NetworkInterface.xml',
 			'data.sample.lnkCIToContact.xml',
 			'data.sample.lnkProcessToSolution.xml',
 			'data.sample.lnkSolutionToCI.xml',