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:

  1. any
  2. local

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:

  1. mgmt, for management networks
  2. pop, for point of presence peerings
  3. internet, for things based in the wild

As example, an node could have the system property dns_zone set as follows:

  1. view internal: dns_zone = example.org
  2. 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.