use of org.onosproject.ui.model.topo.UiLinkId in project onos by opennetworkinglab.
the class ModelCache method addOrUpdateDeviceLink.
// invoked from UiSharedTopologyModel link listener
void addOrUpdateDeviceLink(Link link) {
UiLinkId id = uiLinkId(link);
String memo = MEMO_UPDATED;
UiDeviceLink uiDeviceLink = uiTopology.findDeviceLink(id);
if (uiDeviceLink == null) {
uiDeviceLink = addNewDeviceLink(id);
memo = MEMO_ADDED;
}
updateDeviceLink(uiDeviceLink, link);
postEvent(LINK_ADDED_OR_UPDATED, uiDeviceLink, memo);
}
Aggregations