public class TopologyForDeviceAndLinkImpl extends Object implements org.onosproject.ospf.controller.TopologyForDeviceAndLink
| Constructor and Description |
|---|
TopologyForDeviceAndLinkImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalDevice(org.onosproject.ospf.controller.OspfLsa ospfLsa,
org.onosproject.ospf.controller.OspfInterface ospfInterface,
org.onosproject.ospf.controller.OspfArea ospfArea)
Adds device information to map.
|
void |
addLocalLink(String advertisingRouter,
org.onlab.packet.Ip4Address linkData,
org.onlab.packet.Ip4Address linkSrc,
org.onlab.packet.Ip4Address linkDest,
boolean opaqueEnabled,
boolean linkSrcIdNotRouterId)
Adds link information to LinkInformationMap.
|
org.onosproject.ospf.controller.DeviceInformation |
deviceInformation(String key)
Gets Device Information.
|
Map<String,org.onosproject.ospf.controller.DeviceInformation> |
deviceInformationMap()
Gets device information.
|
Map<String,org.onosproject.ospf.controller.DeviceInformation> |
deviceInformationMapToDelete()
Gets device information.
|
List<String> |
getDeleteRouterInformation(org.onosproject.ospf.controller.OspfLsa ospfLsa,
org.onosproject.ospf.controller.OspfArea ospfArea)
Gets all the router information which needs to delete from deviceList.
|
org.onosproject.ospf.controller.OspfLinkTed |
getOspfLinkTedHashMap(String key)
Gets OSPF Link TED details from the map.
|
Map<String,org.onosproject.ospf.controller.LinkInformation> |
linkInformationMap()
Gets link information as map.
|
void |
removeDevice(org.onlab.packet.Ip4Address routerId)
Removes Device from DeviceInformationMap.
|
void |
removeDeviceInformationMap(String key)
Removes Device Information from map.
|
void |
removeDeviceInformationMapFromDeleteMap(String key)
Removes Device Information.
|
void |
removeLinkInformationMap(String key)
Removes Link Information from map.
|
void |
removeLinks(org.onlab.packet.Ip4Address routerId)
Removes links from LinkInformationMap.
|
void |
setDeviceInformationMap(String key,
org.onosproject.ospf.controller.DeviceInformation deviceInformationMap)
Sets device information.
|
void |
setDeviceInformationMapToDelete(String key,
org.onosproject.ospf.controller.DeviceInformation deviceInformationMapToDelete)
Sets device information for removal.
|
void |
setLinkInformationMap(String key,
org.onosproject.ospf.controller.LinkInformation linkInformationMap)
Sets link information in map.
|
void |
updateLinkInformation(org.onosproject.ospf.controller.OspfLsa ospfLsa,
org.onosproject.ospf.controller.OspfArea ospfArea)
Updates the deviceAndLinkInformation list for received OSPF LSA.
|
public Map<String,org.onosproject.ospf.controller.DeviceInformation> deviceInformationMap()
deviceInformationMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkpublic void setDeviceInformationMap(String key, org.onosproject.ospf.controller.DeviceInformation deviceInformationMap)
setDeviceInformationMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkkey - key used to add in mapdeviceInformationMap - device information instancepublic Map<String,org.onosproject.ospf.controller.DeviceInformation> deviceInformationMapToDelete()
public void setDeviceInformationMapToDelete(String key, org.onosproject.ospf.controller.DeviceInformation deviceInformationMapToDelete)
key - ket used to add in mapdeviceInformationMapToDelete - map from device information to removepublic void removeDeviceInformationMapFromDeleteMap(String key)
key - ket used to remove from mappublic org.onosproject.ospf.controller.DeviceInformation deviceInformation(String key)
key - key to store in mappublic void removeDeviceInformationMap(String key)
removeDeviceInformationMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkkey - key used to remove from mappublic Map<String,org.onosproject.ospf.controller.LinkInformation> linkInformationMap()
linkInformationMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkpublic void setLinkInformationMap(String key, org.onosproject.ospf.controller.LinkInformation linkInformationMap)
setLinkInformationMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkkey - key used to add in maplinkInformationMap - link information instancepublic void removeLinkInformationMap(String key)
removeLinkInformationMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkkey - key used to remove from mappublic org.onosproject.ospf.controller.OspfLinkTed getOspfLinkTedHashMap(String key)
getOspfLinkTedHashMap in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkkey - key used to retreive from mappublic void addLocalDevice(org.onosproject.ospf.controller.OspfLsa ospfLsa,
org.onosproject.ospf.controller.OspfInterface ospfInterface,
org.onosproject.ospf.controller.OspfArea ospfArea)
addLocalDevice in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkospfLsa - OSPF LSA instanceospfInterface - OSPF interface instanceospfArea - OSPF area instancepublic void addLocalLink(String advertisingRouter, org.onlab.packet.Ip4Address linkData, org.onlab.packet.Ip4Address linkSrc, org.onlab.packet.Ip4Address linkDest, boolean opaqueEnabled, boolean linkSrcIdNotRouterId)
advertisingRouter - advertising routerlinkData - link data addresslinkSrc - link source addresslinkDest - link destination addressopaqueEnabled - opaque enabled or notlinkSrcIdNotRouterId - link source id or notpublic void removeLinks(org.onlab.packet.Ip4Address routerId)
removeLinks in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkrouterId - router idpublic void removeDevice(org.onlab.packet.Ip4Address routerId)
routerId - router idpublic void updateLinkInformation(org.onosproject.ospf.controller.OspfLsa ospfLsa,
org.onosproject.ospf.controller.OspfArea ospfArea)
updateLinkInformation in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkospfLsa - OSPF LSA instanceospfArea - OSPF area instancepublic List<String> getDeleteRouterInformation(org.onosproject.ospf.controller.OspfLsa ospfLsa, org.onosproject.ospf.controller.OspfArea ospfArea)
getDeleteRouterInformation in interface org.onosproject.ospf.controller.TopologyForDeviceAndLinkospfLsa - OSPF LSA instanceospfArea - OSPF area instanceCopyright © 2016. All rights reserved.