dtolabs / yana2

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

NodeType include relationshiptype info in state representation #110

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

Include the relationship type information to the state representation output.

Here's an example showing tags used by the XML import format. It shows two node type relationships for this Nodetype:

<nodetypes>
   <nodetype id="1" name="Node" description="An application host" image="Node.png">
      <templateAttributes>
         <templateAttribute id="1" attributeName="hostname" attributeId="14" nodetypeId="1" required="false"/>
      </templateAttributes>
      <nodetyperelationships>
         <nodetyperelationship rolename="environment" parent="Site" child="Node"/>
         <nodetyperelationship rolename="packages" parent="Node" child="Package"/>
      </nodetyperelationships>
   </nodetype>
</nodetypes>