Interface L3Attributes
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
Router
@Generated("mdsal-binding-generator") public interface L3Attributes extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module neutron-L3
grouping L3-attributes { leaf distributed { type boolean; default false; } leaf gateway-port-id { type yang:uuid; } list routes { key "destination nexthop"; leaf destination { type inet:ip-prefix; } leaf nexthop { type inet:ip-address; } } leaf router-status { type string; } }
The schema path to identify an instance is neutron-L3/L3-attributes
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Boolean
getDistributed()
Return distributed, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
getGatewayPortId()
Return gatewayPortId, ornull
if it is not present.String
getRouterStatus()
Return routerStatus, ornull
if it is not present.@Nullable Map<RoutesKey,Routes>
getRoutes()
Return routes, ornull
if it is not present.Class<? extends L3Attributes>
implementedInterface()
default @NonNull Map<RoutesKey,Routes>
nonnullRoutes()
Return routes, or an empty list if it is not present.default @NonNull Boolean
requireDistributed()
Return distributed, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
requireGatewayPortId()
Return gatewayPortId, guaranteed to be non-null.default @NonNull String
requireRouterStatus()
Return routerStatus, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends L3Attributes> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getDistributed
Boolean getDistributed()
Return distributed, ornull
if it is not present.whether this router is distributed or not.
- Returns:
Boolean
distributed, ornull
if it is not present.
-
requireDistributed
default @NonNull Boolean requireDistributed()
Return distributed, guaranteed to be non-null.whether this router is distributed or not.
- Returns:
Boolean
distributed, guaranteed to be non-null.- Throws:
NoSuchElementException
- if distributed is not present
-
getGatewayPortId
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getGatewayPortId()
Return gatewayPortId, ornull
if it is not present.the port uuid holding the router's gateway address.
- Returns:
Uuid
gatewayPortId, ornull
if it is not present.
-
requireGatewayPortId
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid requireGatewayPortId()
Return gatewayPortId, guaranteed to be non-null.the port uuid holding the router's gateway address.
- Returns:
Uuid
gatewayPortId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if gatewayPortId is not present
-
getRoutes
@Nullable Map<RoutesKey,Routes> getRoutes()
Return routes, ornull
if it is not present.list of routes for this router.
- Returns:
Map<RoutesKey, Routes>
routes, ornull
if it is not present.
-
nonnullRoutes
default @NonNull Map<RoutesKey,Routes> nonnullRoutes()
Return routes, or an empty list if it is not present.- Returns:
Map<RoutesKey, Routes>
routes, or an empty list if it is not present.
-
getRouterStatus
String getRouterStatus()
Return routerStatus, ornull
if it is not present.Contains the Router status.
- Returns:
String
routerStatus, ornull
if it is not present.
-
requireRouterStatus
default @NonNull String requireRouterStatus()
Return routerStatus, guaranteed to be non-null.Contains the Router status.
- Returns:
String
routerStatus, guaranteed to be non-null.- Throws:
NoSuchElementException
- if routerStatus is not present
-
-