public interface Ipv4 extends ChildOf<Interface1>, Augmentable<Ipv4>
This class represents the following YANG schema fragment defined in module ietf-ip
container ipv4 { presence "Enables IPv4 unless the 'enabled' leaf (which defaults to 'true') is set to 'false'"; leaf enabled { type boolean; default true; } leaf forwarding { type boolean; default false; } leaf mtu { type uint16 { range 68..max; } units octets; } list address { key ip; leaf ip { type inet:ipv4-address-no-zone; } choice subnet { case prefix-length { leaf prefix-length { type uint8 { range 0..32; } } } case netmask { leaf netmask { if-feature ipv4-non-contiguous-netmasks; type yang:dotted-quad; } } } leaf origin { type ip-address-origin; config false; } } list neighbor { key ip; leaf ip { type inet:ipv4-address-no-zone; } leaf link-layer-address { type yang:phys-address; } leaf origin { type neighbor-origin; config false; } } }The schema path to identify an instance is ietf-ip/interfaces/interface/(urn:ietf:params:xml:ns:yang:ietf-ip?revision=2018-02-22)ipv4
To create instances of this class use Ipv4Builder
.
Ipv4Builder
Modifier and Type | Field and Description |
---|---|
static org.opendaylight.yangtools.yang.common.QName |
QNAME |
Modifier and Type | Method and Description |
---|---|
@Nullable List<Address> |
getAddress()
The list of IPv4 addresses on the interface.
|
@Nullable Integer |
getMtu()
The size, in octets, of the largest IPv4 packet that theinterface will send and
receive.The server may restrict the allowed values for this leaf,depending on
the interface's type.If this leaf is not configured, the operationally used
MTUdepends on the interface's type.
|
@Nullable List<Neighbor> |
getNeighbor()
A list of mappings from IPv4 addresses tolink-layer addresses.Entries in this
list in the intended configuration areused as static entries in the ARP Cache.In
the operational state, this list represents the ARPCache.
|
@Nullable Boolean |
isEnabled()
Controls whether IPv4 is enabled or disabled on thisinterface.
|
@Nullable Boolean |
isForwarding()
Controls IPv4 packet forwarding of datagrams received by,but not addressed to,
this interface.
|
default @NonNull List<Address> |
nonnullAddress() |
default @NonNull List<Neighbor> |
nonnullNeighbor() |
getImplementedInterface
augmentation
@Nullable Boolean isEnabled()
java.lang.Boolean
enabled
, or null
if not present@Nullable Boolean isForwarding()
java.lang.Boolean
forwarding
, or null
if not present@Nullable Integer getMtu()
java.lang.Integer
mtu
, or null
if not present@Nullable List<Address> getAddress()
java.util.List
address
, or null
if not presentdefault @NonNull List<Address> nonnullAddress()
java.util.List
address
, or an empty list if it is not present@Nullable List<Neighbor> getNeighbor()
java.util.List
neighbor
, or null
if not presentCopyright © 2019 OpenDaylight. All rights reserved.