有没有办法在yang中定义不可读的数据?
module system{
leaf name{
type string;
}
leaf password{
type string;
}
}
因此,在本例中,“password”是不可读数据。
发布于 2020-02-17 19:16:32
如果您希望使数据“不可读”,则可以使用binary
内置类型,它允许您将任意字节(base64编码的) blob设置为叶的值。包含加密字节。
leaf password {
type binary;
default "cGFzc3dvcmQ="; // <-- plain text "password"
}
https://stackoverflow.com/questions/60170027
复制相似问题