<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi Yujun,</div>
<div><br>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Yujun Zhang<br>
<span style="font-weight:bold">Date: </span>Monday, 29 August 2016 at 11:59<br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">
<div>
<pre style="font-family:menlo;font-size:9pt"><span style="background-color:rgb(237,252,237)">entities:<br></span><span style="background-color:rgb(237,252,237)"> - type: switch<br></span><span style="background-color:rgb(237,252,237)">   name: switch-1<br></span><span style="background-color:rgb(237,252,237)">   id: switch-1 # should be same as name<br></span><span style="background-color:rgb(237,252,237)">   state: available<br></span><span style="background-color:rgb(237,252,237)">   relationships:<br></span><span style="background-color:rgb(237,252,237)">     - type: nova.host<br></span><span style="background-color:rgb(237,252,237)">       name: host-1<br></span><span style="background-color:rgb(237,252,237)">       id: host-1 # should be same as name
</span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)"><b>       is_source: true # entity is `source` in this relationship
</b></span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">       relation_type: attached
</span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">     - type: switch
</span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">       name: switch-2
</span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">       id: switch-2 # should be same as name
</span><b><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">       is_source: false # </span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">entity is `target` in this relationship</span><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)"><br></span></b><span style="font-size:9pt;line-height:1.5;background-color:rgb(237,252,237)">       relation_type: backup</span></pre>
</div>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>
<div>I think that’s the idea, instead of making this assumption in the code.</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">
<div>But I wonder why the static physical configuration file use a different format from vitrage template definitions[1]
<div><br>
</div>
<div>[1] <a href="https://github.com/openstack/vitrage/blob/master/doc/source/vitrage-template-format.rst">https://github.com/openstack/vitrage/blob/master/doc/source/vitrage-template-format.rst</a></div>
</div>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>What do you mean? The purpose of the templates is to describe the condition-action behaviour, wheres the purpose of the static configuration is to define resources to be added to vitrage graph. Can you please explain how you would make the formats more
 similar? </div>
<div></div>
<div><br>
</div>
<div>Best Regards,</div>
<div>Ifat.</div>
<div><br>
</div>
</body>
</html>