Interface BindingAttributes
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
PortBindingExtension
@Generated("mdsal-binding-generator") public interface BindingAttributes extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module neutron-binding
grouping binding-attributes { leaf host-id { type string; } list vif-details { key details-key; leaf details-key { type string; } leaf value { type string; } } leaf vif-type { type string; } leaf vnic-type { type string; } leaf profile { type string; } }
The schema path to identify an instance is neutron-binding/binding-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 String
getHostId()
Return hostId, ornull
if it is not present.String
getProfile()
Return profile, ornull
if it is not present.@Nullable Map<VifDetailsKey,VifDetails>
getVifDetails()
Return vifDetails, ornull
if it is not present.String
getVifType()
Return vifType, ornull
if it is not present.String
getVnicType()
Return vnicType, ornull
if it is not present.Class<? extends BindingAttributes>
implementedInterface()
default @NonNull Map<VifDetailsKey,VifDetails>
nonnullVifDetails()
Return vifDetails, or an empty list if it is not present.default @NonNull String
requireHostId()
Return hostId, guaranteed to be non-null.default @NonNull String
requireProfile()
Return profile, guaranteed to be non-null.default @NonNull String
requireVifType()
Return vifType, guaranteed to be non-null.default @NonNull String
requireVnicType()
Return vnicType, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends BindingAttributes> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getHostId
String getHostId()
Return hostId, ornull
if it is not present.The ID of the host where the port is allocated. In some cases, different implementations can run on different hosts.
- Returns:
String
hostId, ornull
if it is not present.
-
requireHostId
default @NonNull String requireHostId()
Return hostId, guaranteed to be non-null.The ID of the host where the port is allocated. In some cases, different implementations can run on different hosts.
- Returns:
String
hostId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if hostId is not present
-
getVifDetails
@Nullable Map<VifDetailsKey,VifDetails> getVifDetails()
Return vifDetails, ornull
if it is not present.A dictionary that enables the application to pass information about functions that the Networking API provides. To enable or disable port filtering features such as security group and anti-MAC/IP spoofing, specify port-filter: True or port-filter: False
- Returns:
Map<VifDetailsKey, VifDetails>
vifDetails, ornull
if it is not present.
-
nonnullVifDetails
default @NonNull Map<VifDetailsKey,VifDetails> nonnullVifDetails()
Return vifDetails, or an empty list if it is not present.- Returns:
Map<VifDetailsKey, VifDetails>
vifDetails, or an empty list if it is not present.
-
getVifType
String getVifType()
Return vifType, ornull
if it is not present.- Returns:
String
vifType, ornull
if it is not present.
-
requireVifType
default @NonNull String requireVifType()
Return vifType, guaranteed to be non-null.- Returns:
String
vifType, guaranteed to be non-null.- Throws:
NoSuchElementException
- if vifType is not present
-
getVnicType
String getVnicType()
Return vnicType, ornull
if it is not present.- Returns:
String
vnicType, ornull
if it is not present.
-
requireVnicType
default @NonNull String requireVnicType()
Return vnicType, guaranteed to be non-null.- Returns:
String
vnicType, guaranteed to be non-null.- Throws:
NoSuchElementException
- if vnicType is not present
-
getProfile
String getProfile()
Return profile, ornull
if it is not present.- Returns:
String
profile, ornull
if it is not present.
-
requireProfile
default @NonNull String requireProfile()
Return profile, guaranteed to be non-null.- Returns:
String
profile, guaranteed to be non-null.- Throws:
NoSuchElementException
- if profile is not present
-
-