dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Include child-node ID for parent/child node info #150

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

Include the ID for the child-node linking the nodes via relationships. The example below suggests "childnodeId" as an attribute that contains the ID to the child-node object.

<nodes>
<node id="1" name="ubuntu" nodetypeId="1" type="Node" tags="tomcat,simpleapp,qa">
<description>The ubuntu server</description>
<attributes>
<attribute id="19" name="username" value="alexh" required="false"/>
</attributes>
<parents>
<node id="3" childnodeId="1" name="qa" nodetypeId="4" type="Site" tags="QA" relationshipName="QA" rolename="environment"/>
</parents>
<children>
<node id="2" childnodeId="2" name="tomcat" nodetypeId="3" type="Service" tags="QA" relationshipName="server" rolename="service"/>
</children>
</node>
</nodes>