网络配置学习
文章平均质量分 80
健身版程序猿
物联网&通信 主业c#上位机,转WPF中,记录自己在学习WPF中遇到的每个问题,自学C++、YANG
展开
-
Netopeer2 环境搭建以及安装过程中遇到的各种错误解决
结束后执行一下netopeer2-cli命令,提示get_netconf_dir: Configuration directory "/root/.netopeer2-cli" did not exist, created. load_config: No saved history. load_config: No saved configuration. > 的信息,说明netopeer2-cli正在初始化并为您准备好工作环境。libyang 依赖于 libpcre,所以在安装好 libpcre后。原创 2023-08-09 14:30:10 · 1169 阅读 · 0 评论 -
YANG中leafref类型的作用
这个例子中的 `leafref` 类型的作用是确保 `default-device` 的值始终与 `device` 列表中存在的设备的 `id` 值保持一致。接下来,我们定义了一个名为 `default-device` 的叶节点,并使用 `leafref` 类型引用了 `../device/id`。这表示 `default-device` 的值必须是 `device` 列表中某个设备的 `id` 值。它包含一个名为 `device` 的列表,每个设备具有一个 `id` 和一个 `name`。原创 2023-06-30 09:50:38 · 293 阅读 · 0 评论