Interface SwitchBindings
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<SwitchBindings>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.ChildOf<HwvtepLogicalRouterAttributes>
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
public interface SwitchBindings extends org.opendaylight.yangtools.yang.binding.ChildOf<HwvtepLogicalRouterAttributes>, org.opendaylight.yangtools.yang.binding.Augmentable<SwitchBindings>
A map of IPv4 or IPv6 address prefix in CIDR notation to logical switch. Multiple prefixes may map to the same switch. By writing a 32-bit (or 128-bit for v6) address with a /N prefix length, both the router's interface address the subnet prefix can be configured. For example, 192.68.1.1/24 creates a /24 subnet for the logical switch attached to the interface and assigns the address 192.68.1.1 to the router interface.This class represents the following YANG schema fragment defined in module hwvtep
list switch-bindings { leaf destination-address { type inet:ip-prefix; } leaf logical-switch-ref { type hwvtep-logical-switch-ref; } }
The schema path to identify an instance is hwvtep/hwvtep-logical-router-attributes/switch-bindingsTo create instances of this class use
SwitchBindingsBuilder
.- See Also:
SwitchBindingsBuilder
-
-
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 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
getDestinationAddress()
IPv4 or IPv6 address prefix in CIDR notation@Nullable HwvtepLogicalSwitchRef
getLogicalSwitchRef()
reference to logical switchdefault Class<SwitchBindings>
implementedInterface()
-
-
-
Method Detail
-
implementedInterface
default Class<SwitchBindings> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getDestinationAddress
@Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getDestinationAddress()
IPv4 or IPv6 address prefix in CIDR notation- Returns:
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
destinationAddress
, ornull
if not present
-
getLogicalSwitchRef
@Nullable HwvtepLogicalSwitchRef getLogicalSwitchRef()
reference to logical switch- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef
logicalSwitchRef
, ornull
if not present
-
-