public enum IpAddressOrigin extends Enum<IpAddressOrigin> implements Enumeration
Enum Constant and Description |
---|
Dhcp
Indicates an address that has been assigned to thissystem by a DHCP server.
|
LinkLayer
Indicates an address created by IPv6 statelessautoconfiguration that embeds a
link-layer address in itsinterface identifier.
|
Other
None of the following.
|
Random
Indicates an address chosen by the system atrandom, e.g., an IPv4 address within
169.254/16, atemporary address as described in RFC 4941, or asemantically opaque
address as described in RFC 7217.
|
Static
Indicates that the address has been staticallyconfigured -- for example, using
the Network ConfigurationProtocol (NETCONF) or a command line interface.
|
Modifier and Type | Method and Description |
---|---|
static Optional<IpAddressOrigin> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static IpAddressOrigin |
forValue(int intValue)
Return the enumeration member whose
getIntValue() matches specified value. |
int |
getIntValue()
Returns the assigned value of the enumeration item as it is specified in the input YANG.
|
String |
getName()
Returns the assigned name of the enumeration item as it is specified in the input YANG.
|
static IpAddressOrigin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpAddressOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IpAddressOrigin Other
public static final IpAddressOrigin Static
public static final IpAddressOrigin Dhcp
public static final IpAddressOrigin LinkLayer
public static final IpAddressOrigin Random
public static IpAddressOrigin[] values()
for (IpAddressOrigin c : IpAddressOrigin.values()) System.out.println(c);
public static IpAddressOrigin valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
Enumeration
getName
in interface Enumeration
public int getIntValue()
Enumeration
getIntValue
in interface Enumeration
public static Optional<IpAddressOrigin> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static IpAddressOrigin forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.