1.grouping errors 源码

grouping errors {description"A grouping that contains a YANG containerrepresenting the syntax and semantics of aYANG Patch errors report within a response message.";container errors {config false;  // needed so list error does not need a keydescription"Represents an error report returned by the server ifa request results in an error.";list error {description"An entry containing information about onespecific error that occurred while processinga RESTCONF request.";reference "RFC 6241, Section 4.3";leaf error-type {type enumeration {enum transport {description "The transport layer";}enum rpc {description "The rpc or notification layer";}enum protocol {description "The protocol operation layer";}enum application {description "The server application layer";}}mandatory true;description"The protocol layer where the error occurred.";}leaf error-tag {type string;mandatory true;description"The enumerated error tag.";}leaf error-app-tag {type string;description"The application-specific error tag.";}leaf error-path {type data-resource-identifier;description"The target data resource identifier associatedwith the error, if any.";}leaf error-message {type string;description"A message describing the error.";}container error-info {description"A container allowing additional informationto be included in the error report.";// arbitrary anyxml content here}}}}

2.定义的节点的解释

报文中各字段含义:
(1)error-type:定义错误发生在协议的层级,有四种取值:transport传输层,RPC远程进程调用,protocol协议层,application应用层。
(2) error-tag:标识错误信息内容。
(3)error-app-tag:标识特定的错误情形。对于一个特殊的错误情形,如果没有合适的与之关联,则此元素不会出现。
(4)error-path:标识出错的位置及具体文件名称。
(5)error-message:描述出错内容。
(6)error-info:含有协议或者数据模型特定的错误内容。对于一个特殊的错误情形,如果没有提供合适的,这个元素就不会出现。

3.示例

<?xml version="1.0" encoding="utf-8"?><rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3"><rpc-error><error-type>application</error-type><error-tag>bad-element</error-tag><error-severity>error</error-severity><error-app-tag>43</error-app-tag><error-path xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"xmlns:acl="http://xxxxx">xxxxxxxx</error-path><error-message xml:lang="en">xxxxxx</error-message><error-info><bad-element>xxxxxxx</bad-element></error-info></rpc-error>
</rpc-reply>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-5"><rpc-error><error-type>application</error-type><error-tag>operation-not-supported</error-tag><error-severity>error</error-severity><error-app-tag>no-support</error-app-tag><error-path>/wdm-pg:pgs/wdm-pg:pg[wdm-pg:pg-id='23']</error-path><error-message xml:lang="en">operation not supported</error-message><error-info><error-number xmlns="http://netconfcentral.org/ns/yuma-ncx">273</error-number></error-info></rpc-error>
</rpc-reply>

YANG模型中<rpc-error>的定义相关推荐

  1. yang模型中rpc_领域驱动模型(DDD)设计讲解

    一. 什么是领域驱动模型(DDD)? 领域驱动模型一种设计思想,我们又称为DDD设计思想.是一种为了解决传统设计思想带来的维护困难,沟通困难和交互困难而产生的一种新的思想.也解决了在部分公司中,一个项 ...

  2. yang模型中rpc_RPC校正方法研究

    引用本文 刘江, 岳庆兴, 邱振戈. RPC校正方法研究[J]. 国土资源遥感, 2013,25(1): 61-65 LIU Jiang, YUE Qingxing, QIU Zhenge. Rese ...

  3. C++中的“error:LNK2005 已经在*.obj中定义”异常

     C++中的"error:LNK2005 已经在*.obj中定义"异常问题 异常现象如下: C++中的"error:LNK2005 已经在*.obj中定义" ...

  4. BOM模型中常用对象 定义计数器 网页跳转 网页前进后退

    今天上午学了的BOM模型中常用对象,了解了一部分的属性 For循环的规律 外层循环控制行 内层循环控制列 <!doctype html> <html> <head> ...

  5. 关系模型中的三类完整性约束:实体完整性、参照完整性和用户定义完整性

    数据完整性 要想了解这三类完整性约束首先要了解什么是数据完整性.数据完整性是指数据库中存储的数据是有意义的或正确的,和现实世界相符.关系模型中三类完整性约束: – 实体完整性(Entity Integ ...

  6. pytorch 驱动不兼容_解决Pytorch 加载训练好的模型 遇到的error问题

    这是一个非常愚蠢的错误 debug的时候要好好看error信息 提醒自己切记好好对待error!切记!切记! -----------------------分割线---------------- py ...

  7. Avro RPC 之 Protocol 定义和代码生成

    摘自http://avro.apache.org/docs/current/spec.html#Protocol+Declaration,1.7.6版 Protocol Declaration Avr ...

  8. 机器学习模型中的评价指标

    1.回归模型 1.1 MSE(均方误差) MSE是Mean Square Error的缩写,其计算公式如下: m s e = 1 m ∑ i = 1 m ( y i − y i ^ ) 2 mse=\ ...

  9. 模型中各变量对模型的解释程度

    在建立一个模型后,我们会关心这个模型对于因变量的解释程度,甚至想知道各个自变量分别对模型的贡献有多少.对于非线性模型,如 Random Forest 和 XGBoost 等由于其建模过程就是筛选变量的 ...

最新文章

  1. gui design studio3 中文帮助(4)-用户界面 (中)-工具面板
  2. JZOJ 5455. 【NOIP2017提高A组冲刺11.6】拆网线
  3. HBase 2.0版本正式发布
  4. flex gallery / 产品展示
  5. windows10中git-bash闪退的解决办法
  6. jQuery 版本viewer.js插件的结构分析与学习
  7. 那些容易忽略的事3-(变量提升和函数提升)
  8. Random 随机数使用示例
  9. 【一天一个C++小知识】005. C++中的句柄类(智能指针)
  10. 凯西·奥尼尔:盲目信仰大数据的时代必须结束 | 算法密码
  11. 惠普nas服务器装系统,HP-Gen8轻松使用U盘引导安装黑群晖教程及工具程序
  12. 屏通触控大师(PM Designer)快速入门
  13. 用matlab产生chu序列和frank序列
  14. 如何在word中的图片上画圈标注_怎么在word画圈标注 如何在word图片中进行画圈标示...
  15. wordpress网站被挂马处理
  16. 技术经理成长复盘-要懂一些项目管理的知识
  17. Linux监控系统之Zabbix
  18. 官方scratch3.0正式发布,全面支持移动设备在线编程!
  19. 使用Python做QQ机器人
  20. C语言实战篇-----调试关键参数+printf输出_文件名_函数名_执行数!!!

热门文章

  1. python求股票收益率_python – 有没有办法自动获取许多股票的一般信息,如市盈率,收益率等等?...
  2. Arista教你如何讨容器、白盒基础架构数据中心玩家的欢心
  3. iVX低代码平台系列详解 -- 概述篇(一)
  4. 论文阅读《PatchMatch Stereo - Stereo Matching with Slanted Support Windows》(PMS-双目立体匹配)
  5. 超像素论文(三)——AINet: Association Implantation for Superpixel Segmentation
  6. linux系统字符设备文件类型,Linux文件类型以及颜色标识
  7. Just A Triangle
  8. 21岁被人“封神”,曾一分钟黑了阿里巴巴后台系统!
  9. 金三银四求职季,程序员面试必备——编程语言篇
  10. 数据中心分析诊断必备之常用仪表