首页 > 解决方案 > 在 YANG 中编辑 'config false' 叶

问题描述

如何更改“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";
}

标签: configietf-netmod-yangietf-netconf

解决方案


config-false 设置为 true 的 YANG 参数不能通过直接用户/api 输入进行修改。

您必须在您的应用程序中实现服务逻辑,以便在某个触发器或事件之后修改该参数。

已创建 Config-false 选项,以避免由输入事件触发的值修改。有关更多信息,请参阅 RFC YANG 1.1。


推荐阅读