【发布时间】:2020-07-12 03:17:16
【问题描述】:
我有一个 yang 模型,用于更改我的应用程序的运行时参数。如何使某些参数只读,因为某些参数在更改时会影响我的代码。我希望用户不能在运行时更改该参数时间。
notification bind-lne-name-failed {
description
"Indicates an error in the association of an interface to an
LNE. Only generated after success is initially returned when
bind-lne-name is set.";
leaf name {
type leafref {
path "/if:interfaces/if:interface/if:name";
}
mandatory true;
description
"Contains the interface name associated with the
failure.";
}
leaf bind-lne-name {
type leafref {
path "/if:interfaces/if:interface/lne:bind-lne-name";
}
mandatory true;
description
"Contains the bind-lne-name associated with the
failure.";
}
leaf error-info {
type string;
description
"Optionally, indicates the source of the assignment
failure.";
}
}
【问题讨论】:
-
这个问题是否与 [java] 或 [go] 有任何关系。这甚至是一个编程问题吗?使用 ServerFault 会更好吗?
-
@StephenC 这是 yang 特定的问题,但我无法找到与此相关的标签。请建议
-
我已经重新标记了您的问题。以后不要随意挑选标签。它会错误地关注您的问题。
标签: ietf-netmod-yang