DataModel_03Views - 1and1/soma GitHub Wiki
SOMA data model - 3. Views
SOMA also has the concept of views. Two views are predefined with
special code handling:
anylocal
The any view always matches, regardless of what other view it is
compared to. The local view can only match on nodes, since
grouping and HA objects such as group and cluster have no local
context to run something in.
Properties are assigned to objects inside of a view.
Possible interesting additional views could be:
mgmt, for management networkspop, for point of presence peeringsinternet, for things based in the wild
As example, an node could have the system property dns_zone set
as follows:
- view
internal:dns_zone=example.org - view
external:dns_zone=example.com
Objects can not have the same property in the same view more than once. The reason for this will be explained further later during inheritance.
If an object has a property in the any view, it can not have that property
in additional views. There is no most-specific matching that would allow for
a property in view mgmt to override a default for this property in
view any.