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-bindings

    To create instances of this class use SwitchBindingsBuilder.

    See Also:
    SwitchBindingsBuilder
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<SwitchBindings> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.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, or null 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, or null if not present