Class RouterInfo


  • public class RouterInfo
    extends java.lang.Object
    Stores configuration information about a router.
    • Constructor Detail

      • RouterInfo

        public 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

      • controlPlaneConnectPoint

        public ConnectPoint controlPlaneConnectPoint()
        Returns the control plane connect point.
        Returns:
        connect point
      • deviceId

        public DeviceId deviceId()
        Returns the router device ID.
        Returns:
        device ID
      • ospfEnabled

        public boolean ospfEnabled()
        Returns whether OSPF is enabled on the router.
        Returns:
        OSPF enabled
      • interfaces

        public java.util.Set<java.lang.String> interfaces()
        Returns the set of interfaces belonging to the router.
        Returns:
        set of interface names
      • from

        public static RouterInfo from​(RoutersConfig.Router config)
        Creates a router info from a router config.
        Parameters:
        config - router config
        Returns:
        new router info object