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 Detail

      • QNAME

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

      • implementedInterface

        Class<? extends PortAttributes> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.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=&lt;mac_address&gt;,ip_address=&lt;ip_cidr&gt; 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, or null if 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, or null if not present
      • getExtraDhcpOpts

        @Nullable Map<ExtraDhcpOptsKey,​ExtraDhcpOpts> getExtraDhcpOpts()
        Extra DHCP options
        Returns:
        java.util.Map extraDhcpOpts, or null 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, or null 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, or null if not present
      • getFixedIps

        @Nullable Map<FixedIpsKey,​FixedIps> getFixedIps()
        Returns:
        java.util.Map fixedIps, or null 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, or null if not present
      • getDeviceId

        String getDeviceId()
        Returns:
        java.lang.String deviceId, or null if not present