public class RouterInfo
extends java.lang.Object
| Constructor and Description |
|---|
RouterInfo(ConnectPoint controlPlaneConnectPoint,
boolean ospfEnabled,
java.util.Set<java.lang.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.
|
java.util.Set<java.lang.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, java.util.Set<java.lang.String> interfaces)
controlPlaneConnectPoint - control plane connect pointospfEnabled - whether OSPF is enabledinterfaces - set of interface namespublic ConnectPoint controlPlaneConnectPoint()
public DeviceId deviceId()
public boolean ospfEnabled()
public java.util.Set<java.lang.String> interfaces()
public static RouterInfo from(RoutersConfig.Router config)
config - router config