public class Controller extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUFFER_SIZE |
protected static org.slf4j.Logger |
log |
protected int |
ospfPort |
protected long |
systemStartTime |
protected int |
workerThreads |
| Constructor and Description |
|---|
Controller() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeviceDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter)
Adds device details.
|
void |
addLinkDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter,
org.onosproject.ospf.controller.OspfLinkTed ospfLinkTed)
Adds link details.
|
boolean |
checkArea(String processId,
String areaId) |
boolean |
checkInterface(String processId,
String areaId,
String interfaceIp) |
boolean |
checkProcess(String processId) |
void |
deleteConfig(List<org.onosproject.ospf.controller.OspfProcess> ospfProcesses,
String attribute)
Deletes configuration.
|
boolean |
deleteInterfaceFromArea(String processId,
String areaId,
String interfaceToDelete)
Deletes configured interface from the area.
|
void |
deleteProcessWhenExists(List<org.onosproject.ospf.controller.OspfProcess> ospfProcesses,
String attribute)
Deletes given process.
|
List<org.onosproject.ospf.controller.OspfProcess> |
getAllConfiguredProcesses()
Gets all configured processes.
|
void |
init()
Initializes internal data structures.
|
void |
removeDeviceDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter)
Removes device details.
|
void |
removeLinkDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter)
Removes link details.
|
void |
start(org.onosproject.ospf.controller.OspfAgent ag,
org.onosproject.net.driver.DriverService driverService)
Starts the controller.
|
void |
stop()
Stops the Controller.
|
void |
updateAreaInProcess(String processId,
String areaId,
org.onosproject.ospf.controller.OspfArea areaFrmConfig)
Updates the area information in already started OSPF processes.
|
void |
updateConfig(List<org.onosproject.ospf.controller.OspfProcess> ospfProcesses)
Updates the processes configuration.
|
protected static final org.slf4j.Logger log
protected static final int BUFFER_SIZE
protected int ospfPort
protected int workerThreads
protected long systemStartTime
public List<org.onosproject.ospf.controller.OspfProcess> getAllConfiguredProcesses()
public void addDeviceDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter)
ospfRouter - OSPF router instancepublic void removeDeviceDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter)
ospfRouter - OSPF router instancepublic void addLinkDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter,
org.onosproject.ospf.controller.OspfLinkTed ospfLinkTed)
ospfRouter - OSPF router instanceospfLinkTed - OSPF link ted instancepublic void removeLinkDetails(org.onosproject.ospf.controller.OspfRouter ospfRouter)
ospfRouter - OSPF router instancepublic void init()
public void start(org.onosproject.ospf.controller.OspfAgent ag,
org.onosproject.net.driver.DriverService driverService)
ag - OSPF agent instancedriverService - driver service instancepublic void stop()
public boolean deleteInterfaceFromArea(String processId, String areaId, String interfaceToDelete)
processId - process idareaId - area idinterfaceToDelete - interface to deletepublic boolean checkProcess(String processId)
public void updateAreaInProcess(String processId, String areaId, org.onosproject.ospf.controller.OspfArea areaFrmConfig)
processId - process idareaId - area idareaFrmConfig - area to updatepublic void updateConfig(List<org.onosproject.ospf.controller.OspfProcess> ospfProcesses)
ospfProcesses - list of OSPF processespublic void deleteConfig(List<org.onosproject.ospf.controller.OspfProcess> ospfProcesses, String attribute)
ospfProcesses - OSPF processesattribute - attribute to deleteCopyright © 2016. All rights reserved.