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}"
}
Start by drawing the "from" node.
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.
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".