public interface Interface extends ChildOf<Interfaces>, Augmentable<Interface>, Identifiable<InterfaceKey>
This class represents the following YANG schema fragment defined in module ietf-interfaces
list interface { key name; leaf name { type string; } leaf description { type string; } leaf type { type identityref { base interface-type; } } leaf enabled { type boolean; default true; } leaf link-up-down-trap-enable { if-feature if-mib; type enumeration { enum enabled { value 1; } enum disabled { value 2; } } } }The schema path to identify an instance is ietf-interfaces/interfaces/interface
To create instances of this class use InterfaceBuilder
.
InterfaceBuilder
,
InterfaceKey
Modifier and Type | Interface and Description |
---|---|
static class |
Interface.LinkUpDownTrapEnable |
Modifier and Type | Field and Description |
---|---|
static org.opendaylight.yangtools.yang.common.QName |
QNAME |
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getDescription()
A textual description of the interface.A server implementation MAY map this leaf
to the ifAliasMIB object.
|
@Nullable Interface.LinkUpDownTrapEnable |
getLinkUpDownTrapEnable()
Controls whether linkUp/linkDown SNMP notificationsshould be generated for this
interface.If this node is not configured, the value 'enabled' isoperationally
used by the server for interfaces that donot operate on top of any other
interface (i.e., there areno 'lower-layer-if' entries), and 'disabled'
otherwise.
|
@Nullable String |
getName()
The name of the interface.A device MAY restrict the allowed values for this
leaf,possibly depending on the type of the interface.For system-controlled
interfaces, this leaf is thedevice-specific name of the interface.
|
@Nullable Class<? extends InterfaceType> |
getType()
The type of the interface.When an interface entry is created, a server
MAYinitialize the type leaf with a valid value, e.g., if itis possible to derive
the type from the name of theinterface.If a client tries to set the type of an
interface to avalue that can never be used by the system, e.g., if thetype is
not supported or if the type does not match thename of the interface, the server
MUST reject the request.A NETCONF server MUST reply with an rpc-error with
theerror-tag 'invalid-value' in this case.
|
@Nullable Boolean |
isEnabled()
This leaf contains the configured, desired state of theinterface.Systems that
implement the IF-MIB use the value of thisleaf in the 'running' datastore to
setIF-MIB.ifAdminStatus to 'up' or 'down' after an ifEntryhas been initialized,
as described in RFC 2863.Changes in this leaf in the 'running' datastore
arereflected in ifAdminStatus, but if ifAdminStatus ischanged over SNMP, this
leaf is not affected.
|
InterfaceKey |
key()
Returns an unique key for the object.
|
getImplementedInterface
augmentation
@Nullable String getName()
java.lang.String
name
, or null
if not present@Nullable String getDescription()
java.lang.String
description
, or null
if not present@Nullable Class<? extends InterfaceType> getType()
java.lang.Class
type
, or null
if not present@Nullable Boolean isEnabled()
java.lang.Boolean
enabled
, or null
if not present@Nullable Interface.LinkUpDownTrapEnable getLinkUpDownTrapEnable()
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface.LinkUpDownTrapEnable
linkUpDownTrapEnable
, or null
if not presentInterfaceKey key()
Identifiable
key
in interface Identifiable<InterfaceKey>
Copyright © 2019 OpenDaylight. All rights reserved.