Package org.onosproject.routing.config
Class RouterConfig
- java.lang.Object
-
- org.onosproject.net.config.Config<ApplicationId>
-
- org.onosproject.routing.config.RouterConfig
-
@Deprecated public class RouterConfig extends Config<ApplicationId>
Deprecated.in Junco release. Use RoutersConfig instead.Routing configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.net.config.Config
Config.FieldPresence
-
-
Constructor Summary
Constructors Constructor Description RouterConfig()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConnectPoint
getControlPlaneConnectPoint()
Deprecated.Returns the routing control plane connect point.List<String>
getInterfaces()
Deprecated.Returns the list of interfaces enabled on this router.boolean
getOspfEnabled()
Deprecated.Returns whether OSPF is enabled on this router.boolean
isValid()
Deprecated.Indicates whether or not the backing JSON node contains valid data.boolean
pimEnabled()
Deprecated.Returns whether PIM is enabled on this router.-
Methods inherited from class org.onosproject.net.config.Config
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toString
-
-
-
-
Method Detail
-
getControlPlaneConnectPoint
public ConnectPoint getControlPlaneConnectPoint()
Deprecated.Returns the routing control plane connect point.- Returns:
- control plane connect point
-
getOspfEnabled
public boolean getOspfEnabled()
Deprecated.Returns whether OSPF is enabled on this router.- Returns:
- true if OSPF is enabled, otherwise false
-
pimEnabled
public boolean pimEnabled()
Deprecated.Returns whether PIM is enabled on this router.- Returns:
- true if PIM is enabled, otherwise false
-
getInterfaces
public List<String> getInterfaces()
Deprecated.Returns the list of interfaces enabled on this router.- Returns:
- list of interface names that are enabled, or an empty list if all available interfaces should be used
-
isValid
public boolean isValid()
Deprecated.Description copied from class:Config
Indicates whether or not the backing JSON node contains valid data.Default implementation returns true. Subclasses are expected to override this with their own validation. Implementations are free to throw a RuntimeException if data is invalid.
- Overrides:
isValid
in classConfig<ApplicationId>
- Returns:
- true if the data is valid; false otherwise
-
-