Search in sources :

Example 1 with UiSharedTopologyModel

use of org.onosproject.ui.impl.topo.model.UiSharedTopologyModel in project onos by opennetworkinglab.

the class UiCacheHostsCommand method doExecute.

@Override
protected void doExecute() {
    UiSharedTopologyModel model = get(UiSharedTopologyModel.class);
    sorted(model.getHosts()).forEach(h -> print("%s", h));
}
Also used : UiSharedTopologyModel(org.onosproject.ui.impl.topo.model.UiSharedTopologyModel)

Example 2 with UiSharedTopologyModel

use of org.onosproject.ui.impl.topo.model.UiSharedTopologyModel in project onos by opennetworkinglab.

the class UiCacheMembersCommand method doExecute.

@Override
protected void doExecute() {
    UiSharedTopologyModel model = get(UiSharedTopologyModel.class);
    // note: getClusterMembers() returns an already sorted list...
    model.getClusterMembers().forEach(m -> print("%s", m));
}
Also used : UiSharedTopologyModel(org.onosproject.ui.impl.topo.model.UiSharedTopologyModel)

Example 3 with UiSharedTopologyModel

use of org.onosproject.ui.impl.topo.model.UiSharedTopologyModel in project onos by opennetworkinglab.

the class UiCacheDevicesCommand method doExecute.

@Override
protected void doExecute() {
    UiSharedTopologyModel model = get(UiSharedTopologyModel.class);
    sorted(model.getDevices()).forEach(d -> print("%s", d));
}
Also used : UiSharedTopologyModel(org.onosproject.ui.impl.topo.model.UiSharedTopologyModel)

Example 4 with UiSharedTopologyModel

use of org.onosproject.ui.impl.topo.model.UiSharedTopologyModel in project onos by opennetworkinglab.

the class UiCacheLinksCommand method doExecute.

@Override
protected void doExecute() {
    UiSharedTopologyModel model = get(UiSharedTopologyModel.class);
    sorted(model.getDeviceLinks()).forEach(l -> print("%s", l));
}
Also used : UiSharedTopologyModel(org.onosproject.ui.impl.topo.model.UiSharedTopologyModel)

Example 5 with UiSharedTopologyModel

use of org.onosproject.ui.impl.topo.model.UiSharedTopologyModel in project onos by opennetworkinglab.

the class UiCacheRegionsCommand method doExecute.

@Override
protected void doExecute() {
    UiSharedTopologyModel model = get(UiSharedTopologyModel.class);
    print("%s", model.getNullRegion());
    sorted(model.getRegions()).forEach(r -> print("%s", r));
}
Also used : UiSharedTopologyModel(org.onosproject.ui.impl.topo.model.UiSharedTopologyModel)

Aggregations

UiSharedTopologyModel (org.onosproject.ui.impl.topo.model.UiSharedTopologyModel)5