YANG model leaf:
leaf type {
type identityref {
base interface-type;
}
mandatory true;
description
"The type of the interface.
When an interface entry is created, a server MAY
initialize the type leaf with a valid value, e.g., if it
is possible to derive the type from the name of the
interface.
If a client tries to set the type of an interface to a
value that can never be used by the system, e.g., if the
type is not supported or if the type does not match the
name of the interface, the server MUST reject the request.
A NETCONF server MUST reply with an rpc-error with the
error-tag 'invalid-value' in this case.";
reference
"RFC 2863: The Interfaces Group MIB - ifType";
}
---------------------------------------------------------------------------------------------------------------
/*
* Identities
*/
identity interface-type {
description
"Base identity from which specific interface types are
derived.";
}
你好,请问这个问题解决了吗,我现在也遇到这个问题,如果解决了,麻烦你帮忙一下呢,谢谢!