This section describes how to operate on the service graph using the CORD GUI.
By default, the GUI renders only the Services
in the service graph, but you can augment the available information by pressing:
Shift + f
toggle fullscreen modeShift + s
to add ServiceInstances
to the graphShift + i
to add Instances
to the graph (this requires ServiceInstances
to be shown)Shift + n
to add Networks
to the graph (this require Instances
to be shown)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.
["a", "b", "c"]
will position the nodes as:
a -> b -> c
["a", ["b", "c"]]
will position the nodes as:
b / a \ c
[[null, "a"], ["b", "c"]]
will position the nodes as:
b | a -> c
Note: All the nodes not defined in the
ServiceGraphConstraint
model will float around.
xos.sg.update
will render the graph againxos.sg.stateChange
will listen for changes in the state machine