[英]editing 'config false' leaf in YANG
How do I change 'config false' leafs and update the values in my server so when a client make get-config command he will get the updated value?如何更改“config false”叶子并更新服务器中的值,以便当客户端发出 get-config 命令时,他将获得更新的值?
leaf state {
type enumeration {
enum DISABLED {
description
"array carrier is not active - transmission of signal is disabled.";
}
enum BUSY {
description
"array carrier is processing an operation requested by change of active parameter.
When array carriers is BUSY the transmission of signal is not guaranteed.";
}
enum READY {
description
"array carrier had completed activation operation - is active and transmission of signal is ongoing.";
}
}
config false;
mandatory true;
description
"Indicates state of array carriers activation operation";
}
Hy海
A YANG paramenter with config-false set to true can be modified not by direct user/api input. config-false 设置为 true 的 YANG 参数不能通过直接用户/api 输入进行修改。
You must implement service logic within your app that modify that parameter after a certain triggher or event.您必须在您的应用程序中实现服务逻辑,以便在某个触发器或事件之后修改该参数。
Config-false option has been created in order to avoid value modification triggered by input events.已创建 Config-false 选项,以避免由输入事件触发的值修改。 See RFC YANG 1.1 for more information.有关更多信息,请参阅 RFC YANG 1.1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.