Interface PortAttributes
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
Port
public interface PortAttributes extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module neutron-ports
grouping port-attributes { list allowed-address-pairs { key "mac-address ip-address"; leaf mac-address { type yang:mac-address; } leaf ip-address { type types:ip-prefix-or-address; } } leaf network-id { type yang:uuid; } list extra-dhcp-opts { key "opt-name ip-version"; leaf opt-name { type string; } leaf opt-value { type string; } leaf ip-version { type identityref { base ip-version-base; } } } leaf device-owner { type string; } leaf mac-address { type yang:mac-address; } list fixed-ips { key "subnet-id ip-address"; leaf subnet-id { type yang:uuid; } leaf ip-address { type inet:ip-address; } } leaf-list security-groups { type yang:uuid; } leaf device-id { type string; } }
The schema path to identify an instance is neutron-ports/port-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 @Nullable Map<AllowedAddressPairsKey,AllowedAddressPairs>
getAllowedAddressPairs()
Allowed address pairs for this port.String
getDeviceId()
String
getDeviceOwner()
@Nullable Map<ExtraDhcpOptsKey,ExtraDhcpOpts>
getExtraDhcpOpts()
Extra DHCP options@Nullable Map<FixedIpsKey,FixedIps>
getFixedIps()
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress
getMacAddress()
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
getNetworkId()
@Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid>
getSecurityGroups()
Class<? extends PortAttributes>
implementedInterface()
default @NonNull Map<AllowedAddressPairsKey,AllowedAddressPairs>
nonnullAllowedAddressPairs()
default @NonNull Map<ExtraDhcpOptsKey,ExtraDhcpOpts>
nonnullExtraDhcpOpts()
default @NonNull Map<FixedIpsKey,FixedIps>
nonnullFixedIps()
-
-
-
Method Detail
-
implementedInterface
Class<? extends PortAttributes> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getAllowedAddressPairs
@Nullable Map<AllowedAddressPairsKey,AllowedAddressPairs> getAllowedAddressPairs()
Allowed address pairs for this port. For example: neutron port-create net1 --allowed-address-pairs type=dict list=true mac_address=<mac_address>,ip_address=<ip_cidr> Setting an allowed-address-pair that matches the mac_address and ip_address of a port is prevented. This is because that would have no effect since traffic matching the mac_address and ip_address is already allowed to pass through the port- Returns:
java.util.Map
allowedAddressPairs
, ornull
if not present
-
nonnullAllowedAddressPairs
default @NonNull Map<AllowedAddressPairsKey,AllowedAddressPairs> nonnullAllowedAddressPairs()
- Returns:
java.util.Map
allowedAddressPairs
, or an empty list if it is not present
-
getNetworkId
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getNetworkId()
- Returns:
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid
networkId
, ornull
if not present
-
getExtraDhcpOpts
@Nullable Map<ExtraDhcpOptsKey,ExtraDhcpOpts> getExtraDhcpOpts()
Extra DHCP options- Returns:
java.util.Map
extraDhcpOpts
, ornull
if not present
-
nonnullExtraDhcpOpts
default @NonNull Map<ExtraDhcpOptsKey,ExtraDhcpOpts> nonnullExtraDhcpOpts()
- Returns:
java.util.Map
extraDhcpOpts
, or an empty list if it is not present
-
getDeviceOwner
String getDeviceOwner()
- Returns:
java.lang.String
deviceOwner
, ornull
if not present
-
getMacAddress
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMacAddress()
- Returns:
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress
macAddress
, ornull
if not present
-
getFixedIps
@Nullable Map<FixedIpsKey,FixedIps> getFixedIps()
- Returns:
java.util.Map
fixedIps
, ornull
if not present
-
nonnullFixedIps
default @NonNull Map<FixedIpsKey,FixedIps> nonnullFixedIps()
- Returns:
java.util.Map
fixedIps
, or an empty list if it is not present
-
getSecurityGroups
@Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getSecurityGroups()
- Returns:
java.util.List
securityGroups
, ornull
if not present
-
getDeviceId
String getDeviceId()
- Returns:
java.lang.String
deviceId
, ornull
if not present
-
-