[英]Is there any class in org.opendaylight.yangtools.yang.model.api can be used for tailf:action?
我正在开发一个项目,我需要使用opendaylight库解析yang模式中的tailf:action。 我尝试在org.opendaylight.yangtools.yang.model.api中找到一个可用于解析tailf:action的类。 然后,我可以从此类实例获取输入和输出(通常是叶子列表)以进行递归处理。 任何人都知道org.opendaylight.yangtools.yang.model.api中是否有一个类可以支持tailf:action吗?
我显示一个tailf:action示例,如下所示。
提前致谢。
tailf:action set-ip-attributes {
description "set ip";
tailf:info "...";
tailf:exec "/usr/local/a.py" {
tailf:args "-c $(context) -p $(path)";
}
tailf:cli-mount-point "set";
input {
leaf ip {
type inet:ip-address;
mandatory true;
description "IP Address of the session";
tailf:info "IP Address of the session";
}
leaf attribute {
type string;
mandatory true;
description "Name of the attribute";
tailf:info "Name of the attribute";
}
}
output {
uses set-session-attribute;
}
}
Opendaylight仅支持“操作”,而不支持“ tailf:action”。 使用以下类:org.opendaylight.yangtools.yang.model.api.ActionDefinition; org.opendaylight.yangtools.yang.model.api.ActionNodeContainer;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.