Skip to content

Commit

Permalink
[le-config-mgmt]启用contacts字段。使用触发器+action-shell-exec更新contacts字段. fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
annProg committed May 5, 2017
1 parent 687e4d0 commit ed58636
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 17 deletions.
72 changes: 55 additions & 17 deletions le-config-mgmt/datamodel.le-config-mgmt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@
</method>

</methods>

<relations>
<relation id="impacts">
<neighbours>
Expand Down Expand Up @@ -638,6 +637,9 @@
<item id="status" _delta="define">
<rank>20</rank>
</item>
<item id="contacts" _delta="define">
<rank>21</rank>
</item>
<item id="businessprocess_id" _delta="define">
<rank>16</rank>
</item>
Expand All @@ -664,8 +666,10 @@
<item id="businessprocess_id" _delta="define">
<rank>6</rank>
</item>
<item id="contacts" _delta="define">
<rank>21</rank>
</item>
</items>

</list>
</presentation>
<relations>
Expand Down Expand Up @@ -1062,7 +1066,6 @@
<item id="name">
<rank>1</rank>
</item>

<item id="hostname">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -1100,6 +1103,9 @@
<item id="use_pam">
<rank>130</rank>
</item>
<item id="contacts" _delta="define">
<rank>150</rank>
</item>
</items>
</search>
<list _delta="redefine">
Expand All @@ -1110,24 +1116,27 @@
<item id="all_ip">
<rank>25</rank>
</item>

<item id="cpu">
<rank>3</rank>
</item>
<item id="ram">
<rank>5</rank>
</item>

<item id="status">
<rank>21</rank>
</item>

<item id="rack_id">
<rank>40</rank>
</item>
<item id="model_id">
<rank>60</rank>
</item>
<item id="contacts" _delta="define">
<rank>65</rank>
</item>
<item id="use_pam" _delta="define">
<rank>66</rank>
</item>
<item id="org_id">
<rank>70</rank>
</item>
Expand Down Expand Up @@ -1617,6 +1626,9 @@
<item id="record_id" _delta="define">
<rank>16</rank>
</item>
<item id="contacts" _delta="define">
<rank>17</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand All @@ -1641,7 +1653,7 @@
</item>
<item id="record_id" _delta="define">
<rank>16</rank>
</item>
</item>
<item id="contacts">
<rank>19</rank>
</item>
Expand Down Expand Up @@ -1793,6 +1805,9 @@
<item id="org_id">
<rank>20</rank>
</item>
<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="status">
<rank>30</rank>
</item>
Expand All @@ -1818,6 +1833,9 @@
<item id="org_id">
<rank>20</rank>
</item>
<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="status">
<rank>30</rank>
</item>
Expand Down Expand Up @@ -2076,7 +2094,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand All @@ -2099,7 +2119,6 @@
<item id="location">
<rank>11</rank>
</item>

<item id="status">
<rank>15</rank>
</item>
Expand Down Expand Up @@ -2220,7 +2239,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -2349,7 +2370,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand All @@ -2372,7 +2395,6 @@
<item id="location">
<rank>11</rank>
</item>

<item id="status">
<rank>15</rank>
</item>
Expand Down Expand Up @@ -2473,7 +2495,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -2678,7 +2702,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -2943,7 +2969,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -3189,7 +3217,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -3311,7 +3341,9 @@
<item id="info">
<rank>18</rank>
</item>

<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -3654,6 +3686,9 @@
<item id="status">
<rank>15</rank>
</item>
<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down Expand Up @@ -3682,6 +3717,9 @@
<item id="status">
<rank>15</rank>
</item>
<item id="contacts" _delta="define">
<rank>19</rank>
</item>
<item id="org_id">
<rank>20</rank>
</item>
Expand Down
1 change: 1 addition & 0 deletions le-config-mgmt/zh.dict.le-config-mgmt.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,4 +404,5 @@
// FunctionalCI
Dict::Add('ZH CN', 'Chinese', '简体中文', array(
'Class:FunctionalCI/Attribute:ci_id' => 'ID',
'Class:FunctionalCI/Attribute:contacts' => '联系人',
));

0 comments on commit ed58636

Please sign in to comment.