public class RouterInfo extends Object
Constructor and Description |
---|
RouterInfo(ConnectPoint controlPlaneConnectPoint,
boolean ospfEnabled,
Set<String> interfaces)
Creates a new router info.
|
Modifier and Type | Method and Description |
---|---|
ConnectPoint |
controlPlaneConnectPoint()
Returns the control plane connect point.
|
DeviceId |
deviceId()
Returns the router device ID.
|
static RouterInfo |
from(RoutersConfig.Router config)
Creates a router info from a router config.
|
Set<String> |
interfaces()
Returns the set of interfaces belonging to the router.
|
boolean |
ospfEnabled()
Returns whether OSPF is enabled on the router.
|
public RouterInfo(ConnectPoint controlPlaneConnectPoint, boolean ospfEnabled, Set<String> interfaces)
controlPlaneConnectPoint
- control plane connect pointospfEnabled
- whether OSPF is enabledinterfaces
- set of interface namespublic ConnectPoint controlPlaneConnectPoint()
public DeviceId deviceId()
public boolean ospfEnabled()
public Set<String> interfaces()
public static RouterInfo from(RoutersConfig.Router config)
config
- router config