In example 2, the network adapters are from different systems. Because of this, the redundancy group is not inserted into the PartOf relationship with any system. As a result, the status of this redundancy group is based on the status of the adapters and the responsive state of their containing systems:
rg = create("NetworkAdapterRedundancyGroup", My-Redundancy-Group"); // rg->ComposedOf += object("Interface", "IF-host_1/1"); rg->ComposedOf += object("Interface", "IF-host_2/2"); // // For service map rg->LayeredOver += object("Host", "host_1"); rg-> LayeredOver += object("Host", "host_2");
In the next example, the network adapters are from a single system, but the system status is considered in the status calculation because the group is not a part of a system:
rg = create("NetworkAdapterRedundancyGroup", My-Redundancy-Group"); // // For service map rg->LayeredOver += object("Host", "host_3"); // rg->ComposedOf += object("Interface", "IF-host_3/1"); rg->ComposedOf += object("Interface", "IF-host_3/2");
In the final example, the network adapters are from a single system but the system status is not included in the status calculation for the redundancy group. Again, this is because the group is inserted into the PartOf relationship with the system which consists of the network adapters.
rg = create("NetworkAdapterRedundancyGroup", My-Redundancy-Group"); // // Turns off system status calc rg->PartOf += object("Host", "host_4"); // // For service map rg->LayeredOver += object("Host", "host_4"); // rg->ComposedOf += object("Interface", "IF-host_4/1"); rg->ComposedOf += object("Interface", "IF-host_4/2");