Interface InterfaceRefCommon
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
public interface InterfaceRefCommon extends org.opendaylight.yangtools.yang.binding.DataObject
Reference leafrefs to interface / subinterfaceThis class represents the following YANG schema fragment defined in module openconfig-interfaces
grouping interface-ref-common { leaf interface { type leafref { path /oc-if:interfaces/oc-if:interface/oc-if:name; } } leaf subinterface { type leafref { path /oc-if:interfaces/oc-if:interface[oc-if:name=current()/../interface]/oc-if:subinterfaces/oc-if:subinterface/oc-if:index; } } }
The schema path to identify an instance is openconfig-interfaces/interface-ref-common
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable String
getInterface()
Reference to a base interface.@Nullable Object
getSubinterface()
Reference to a subinterface -- this requires the base interface to be specified using the interface leaf in this container.Class<? extends InterfaceRefCommon>
implementedInterface()
-
-
-
Method Detail
-
implementedInterface
Class<? extends InterfaceRefCommon> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getInterface
@Nullable String getInterface()
Reference to a base interface. If a reference to a subinterface is required, this leaf must be specified to indicate the base interface.- Returns:
java.lang.String
interface
, ornull
if not present
-
getSubinterface
@Nullable Object getSubinterface()
Reference to a subinterface -- this requires the base interface to be specified using the interface leaf in this container. If only a reference to a base interface is requuired, this leaf should not be set.- Returns:
java.lang.Object
subinterface
, ornull
if not present
-
-