public interface Ipv4 extends ChildOf<Interface2>, Augmentable<Ipv4>
This class represents the following YANG schema fragment defined in module ietf-ip
container ipv4 { presence "Present if IPv4 is enabled on this interface"; config false; leaf forwarding { type boolean; } 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; } } 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; } } }The schema path to identify an instance is ietf-ip/interfaces-state/interface/(urn:ietf:params:xml:ns:yang:ietf-ip?revision=2014-06-16)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.
|
@Nullable List<Neighbor> |
getNeighbor()
A list of mappings from IPv4 addresses tolink-layer addresses.This list
represents the ARP Cache.
|
@Nullable Boolean |
isForwarding()
Indicates whether IPv4 packet forwarding is enabled ordisabled on this
interface.
|
default @NonNull List<Address> |
nonnullAddress() |
default @NonNull List<Neighbor> |
nonnullNeighbor() |
getImplementedInterface
augmentation
@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.