You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Cisco-IOS-XR-pfi-im-cmd-oper.yang模块Telemetry路径的咨询

正确的Telemetry路径及无键列表说明

无键列表*[]的使用说明

YANG模型中带*[]的是无键列表(unkeyed list),这类列表没有定义专门的键节点,但可以通过列表下的非键叶子节点作为过滤条件放在[]中,定位列表中的特定条目。

符合条件的正确路径

根据提供的YANG模型结构和过滤条件,正确的Telemetry路径为:

Cisco-IOS-XR-pfi-im-cmd-oper:node-type-sets/node-type-set[type-set-name='hardware-interfaces',node-name='0/RP0/CPU0']/interface-summary/interface-type[interface-type-name='IFT_GETHERNET',interface-type-description='GigabitEthernet']/interface-counts

路径修正说明

  • 移除了错误路径开头的interfaces/:YANG模型根节点为node-type-sets,原路径冗余的interfaces节点会导致路径无效。
  • 保留无键列表过滤语法:对node-type-set和interface-type两个无键列表,使用给定的非键叶子节点作为过滤条件,符合XR Telemetry对无键列表的寻址规则。

可获取的状态计数字段

通过该路径可获取以下接口状态计数:

  • interface-count:总接口数
  • up-interface-count:UP状态接口数
  • down-interface-count:Down状态接口数
  • admin-down-interface-count:Admin-Down状态接口数

内容的提问来源于stack exchange,提问作者Mustafa Hussien

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.19 22:35:01