Interface SubnetAttributes

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

    @Generated("mdsal-binding-generator")
    public interface SubnetAttributes
    extends org.opendaylight.yangtools.yang.binding.DataObject

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

     grouping subnet-attributes {
       leaf network-id {
         type yang:uuid;
       }
       leaf ip-version {
         type identityref {
           base ip-version-base;
         }
       }
       leaf cidr {
         type inet:ip-prefix;
       }
       leaf gateway-ip {
         type inet:ip-address;
       }
       leaf-list dns-nameservers {
         type inet:ip-address;
       }
       leaf ipv6-address-mode {
         type identityref {
           base dhcpv6-base;
         }
       }
       leaf ipv6-ra-mode {
         type identityref {
           base dhcpv6-base;
         }
       }
       list allocation-pools {
         key start;
         leaf start {
           type inet:ip-address;
         }
         leaf end {
           type inet:ip-address;
         }
       }
       list host-routes {
         key destination;
         leaf destination {
           type inet:ip-prefix;
         }
         leaf nexthop {
           type inet:ip-address;
         }
       }
       leaf enable-dhcp {
         type boolean;
         default true;
       }
     }
     
    The schema path to identify an instance is neutron-subnets/subnet-attributes
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getNetworkId()
        Return networkId, or null if it is not present.
             
                 network this subnet is associated with.
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid networkId, or null if it is not present.
      • getIpVersion

        Class<? extends IpVersionBase> getIpVersion()
        Return ipVersion, or null if it is not present.
             
                 IP version
             
         
        Returns:
        java.lang.Class ipVersion, or null if it is not present.
      • getCidr

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getCidr()
        Return cidr, or null if it is not present.
             
                 cidr representing IP range for this subnet, based on IP version
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix cidr, or null if it is not present.
      • getGatewayIp

        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getGatewayIp()
        Return gatewayIp, or null if it is not present.
             
                 default gateway used by devices in this subnet
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress gatewayIp, or null if it is not present.
      • getDnsNameservers

        @Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getDnsNameservers()
        Return dnsNameservers, or null if it is not present.
             
                 DNS name servers used by hosts in this subnet.
             
         
        Returns:
        java.util.List dnsNameservers, or null if it is not present.
      • getIpv6AddressMode

        Class<? extends Dhcpv6Base> getIpv6AddressMode()
        Return ipv6AddressMode, or null if it is not present.
             
                 neutron subnet-create --ip-version 6 --ipv6_ra_mode off --ipv6_address_mode off
                 NETWORK CIDR neutron subnet-create --ip-version 6 --ipv6_ra_mode off
                 --ipv6_address_mode dhcpv6-stateful NETWORK CIDR neutron subnet-create
                 --ip-version 6 --ipv6_ra_mode slaac --ipv6_address_mode slaac NETWORK CIDR
                 neutron subnet-create --ip-version 6 --ipv6_ra_mode dhcpv6-stateful
                 --ipv6_address_mode off NETWORK CIDR neutron subnet-create --ip-version 6
                 --ipv6_ra_mode dhcpv6-stateless --ipv6_address_mode dhcpv6-stateless NETWORK
                 CIDR Note: can't find this in the spec but OS is sending it with a null value.
             
         
        Returns:
        java.lang.Class ipv6AddressMode, or null if it is not present.
      • getIpv6RaMode

        Class<? extends Dhcpv6Base> getIpv6RaMode()
        Return ipv6RaMode, or null if it is not present.
             
                 TODO can't find this in the spec but OS sends it with a null value.
             
         
        Returns:
        java.lang.Class ipv6RaMode, or null if it is not present.
      • getAllocationPools

        @Nullable Map<AllocationPoolsKey,​AllocationPools> getAllocationPools()
        Return allocationPools, or null if it is not present.
             
                 Sub-ranges of cidr available for dynamic allocation to ports
             
         
        Returns:
        java.util.Map allocationPools, or null if it is not present.
      • nonnullAllocationPools

        default @NonNull Map<AllocationPoolsKey,​AllocationPools> nonnullAllocationPools()
        Return allocationPools, or an empty list if it is not present.
        Returns:
        java.util.Map allocationPools, or an empty list if it is not present.
      • getHostRoutes

        @Nullable Map<HostRoutesKey,​HostRoutes> getHostRoutes()
        Return hostRoutes, or null if it is not present.
             
                 Routes that should be used by devices with IPs from this subnet (not including
                 local subnet route).
             
         
        Returns:
        java.util.Map hostRoutes, or null if it is not present.
      • nonnullHostRoutes

        default @NonNull Map<HostRoutesKey,​HostRoutes> nonnullHostRoutes()
        Return hostRoutes, or an empty list if it is not present.
        Returns:
        java.util.Map hostRoutes, or an empty list if it is not present.
      • getEnableDhcp

        Boolean getEnableDhcp()
        Return enableDhcp, or null if it is not present.
             
                 Specifies whether DHCP is enabled for this subnet or not.
             
         
        Returns:
        java.lang.Boolean enableDhcp, or null if it is not present.
      • isEnableDhcp

        @Deprecated(forRemoval=true)
        default Boolean isEnableDhcp()
        Deprecated, for removal: This API element is subject to removal in a future version.