Configuring the Service Graph
This section describes how to operate on the service graph using the CORD GUI.
Adding Information to the Graph
By default, the GUI renders only the Services in the service graph, but you can
augment the available information by pressing:
Shift + ftoggle fullscreen modeShift + sto addServiceInstancesto the graphShift + ito addInstancesto the graph (this requiresServiceInstancesto be shown)Shift + nto addNetworksto the graph (this requireInstancesto be shown)
Defining the Position of Services in the Graph
XOS defines a model called ServiceGraphConstraint that lets you enforce
constraints on the nodes position in the display. The following
describes the basics of how this works.
Setting the Services on a Line
["a", "b", "c"]
will position the nodes as:
a -> b -> c
Services as a Tree
["a", ["b", "c"]]
will position the nodes as:
b
/
a
\
c
Empty Spots in the Graph
[[null, "a"], ["b", "c"]]
will position the nodes as:
b
|
a -> c
Note: All the nodes not defined in the
ServiceGraphConstraintmodel will float around.
Events Monitored by the Service Graph
xos.sg.updatewill render the graph againxos.sg.stateChangewill listen for changes in the state machine