Interface SubPortAttributes

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    SubPorts

    public interface SubPortAttributes
    extends org.opendaylight.yangtools.yang.binding.DataObject
    Decorates a single neutron port to serve as a tunneling port that a VM can use for segmented traffic. The VM in question must have the ability to encapsulate and decapsulate the traffic based on the port's tunneling protocol and tunnel id. NOTE: Currently the only supported tunneling protocol is 802.1q.

    This class represents the following YANG schema fragment defined in module neutron-trunks

     grouping sub-port-attributes {
       leaf port-id {
         type yang:uuid;
       }
       leaf segmentation-type {
         type networks:network-type;
       }
       leaf segmentation-id {
         type uint32;
       }
     }
     
    The schema path to identify an instance is neutron-trunks/sub-port-attributes
    • Field Detail

      • QNAME

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

      • implementedInterface

        Class<? extends SubPortAttributes> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getPortId

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getPortId()
        UUID of the neutron port to be turned into a trunk.
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid portId, or null if not present
      • getSegmentationType

        Class<? extends NetworkTypeBase> getSegmentationType()
        Type of tunneling protocol used to encapsulate traffic in this port.
        Returns:
        java.lang.Class segmentationType, or null if not present
      • getSegmentationId

        org.opendaylight.yangtools.yang.common.Uint32 getSegmentationId()
        Tunnel id of the specific tunnel.
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 segmentationId, or null if not present