Package org.onosproject.routing
Class RouterInfo
- java.lang.Object
- 
- org.onosproject.routing.RouterInfo
 
- 
 public class RouterInfo extends java.lang.ObjectStores configuration information about a router.
- 
- 
Constructor SummaryConstructors Constructor Description RouterInfo(ConnectPoint controlPlaneConnectPoint, boolean ospfEnabled, java.util.Set<java.lang.String> interfaces)Creates a new router info.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectPointcontrolPlaneConnectPoint()Returns the control plane connect point.DeviceIddeviceId()Returns the router device ID.static RouterInfofrom(RoutersConfig.Router config)Creates a router info from a router config.java.util.Set<java.lang.String>interfaces()Returns the set of interfaces belonging to the router.booleanospfEnabled()Returns whether OSPF is enabled on the router.
 
- 
- 
- 
Constructor Detail- 
RouterInfopublic RouterInfo(ConnectPoint controlPlaneConnectPoint, boolean ospfEnabled, java.util.Set<java.lang.String> interfaces) Creates a new router info.- Parameters:
- controlPlaneConnectPoint- control plane connect point
- ospfEnabled- whether OSPF is enabled
- interfaces- set of interface names
 
 
- 
 - 
Method Detail- 
controlPlaneConnectPointpublic ConnectPoint controlPlaneConnectPoint() Returns the control plane connect point.- Returns:
- connect point
 
 - 
deviceIdpublic DeviceId deviceId() Returns the router device ID.- Returns:
- device ID
 
 - 
ospfEnabledpublic boolean ospfEnabled() Returns whether OSPF is enabled on the router.- Returns:
- OSPF enabled
 
 - 
interfacespublic java.util.Set<java.lang.String> interfaces() Returns the set of interfaces belonging to the router.- Returns:
- set of interface names
 
 - 
frompublic static RouterInfo from(RoutersConfig.Router config) Creates a router info from a router config.- Parameters:
- config- router config
- Returns:
- new router info object
 
 
- 
 
-