Edge Rules

Edge Rules Location

The edge rules json files are located in aai-common/aai-core/src/main/resources/dbedgerules.

How to Interpret an Edge Rule

Mentally Constructing an Edge

Read the from/to/direction as a recipe for how to construct the edge.

{

"from": "tenant",
"to": "vserver",
"label": "owns",
"direction": "OUT",
"multiplicity": "One2Many",
"contains-other-v": "${direction}",
"delete-other-v": "NONE",
"SVC-INFRA": "!${direction}",
"prevent-delete": "${direction}"

}

  1. Start by drawing the "from" node.

  2. Draw an edge off this node in the specified. So if it's OUT, point the edge out away from the from node, if it's IN, point it into the node.

  3. Draw the "to" node on the empty end of that edge.



Essentially, "from" and "to" do not imply direction. Think of them as more like "NodeA" and "NodeB".

Quick guide for which is your in node and which is your out node

direction