Interface TrunkAttributes

  • All Superinterfaces:
    AdminAttributes, BaseAttributes, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, IdAttributes
    All Known Subinterfaces:
    Trunk

    public interface TrunkAttributes
    extends org.opendaylight.yangtools.yang.binding.DataObject, BaseAttributes, AdminAttributes
    Decorates a single neutron port to serve as a trunk port, bundling several sub ports (tunnels) together.

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

     grouping trunk-attributes {
       uses attrs:base-attributes;
       uses attrs:admin-attributes;
       leaf port-id {
         type yang:uuid;
       }
       list sub-ports {
         key port-id;
         unique "segmentation-type segmentation-id";
         uses sub-port-attributes;
       }
     }
     
    The schema path to identify an instance is neutron-trunks/trunk-attributes
    • Field Detail

      • QNAME

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

      • 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
      • getSubPorts

        @Nullable Map<SubPortsKey,​SubPorts> getSubPorts()
        Bundled sub ports (tunnels), transmitted through this trunk port.
        Returns:
        java.util.Map subPorts, or null if not present
      • nonnullSubPorts

        default @NonNull Map<SubPortsKey,​SubPorts> nonnullSubPorts()
        Returns:
        java.util.Map subPorts, or an empty list if it is not present