NETCONF YANG语言文件语法格式:https://blog.csdn.net/Rong_Toa/article/details/104354287

module o-ran-interfaces {yang-version 1.1;namespace "urn:o-ran:interfaces:1.0";prefix "o-ran-int";import ietf-inet-types {prefix "inet";}import iana-if-type {prefix "ianaift";}import ietf-interfaces {prefix "if";}import ietf-ip {prefix "ip";}import ietf-hardware {prefix "hw";}import ietf-yang-types {prefix "yang";}import iana-hardware {prefix "ianahw";}organization "O-RAN Alliance";contact"www.o-ran.org";description"This module defines the YANG definitions for managng the O-RANinterfaces.Copyright 2019 the O-RAN Alliance.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BELIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF SUCH DAMAGE.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:* Redistributions of source code must retain the above copyright notice,this list of conditions and the above disclaimer.* Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the above disclaimer in the documentationand/or other materials provided with the distribution.* Neither the Members of the O-RAN Alliance nor the names of itscontributors may be used to endorse or promote products derived fromthis software without specific prior written permission.";revision "2019-02-04" {description"version 1.0.01) imported model from xRAN2) changed namespace and reference from xran to o-ran";reference "ORAN-WG4.M.0-v01.00";}feature UDPIP-BASED-CU-PLANE {description"This feature indicates that the RU supports the UDP/IP based transportfor the CU plane.";}feature ALIASMAC-BASED-CU-PLANE {description"This feature indicates that the RU supports the alias MAC addressbased transport for the CU plane.";}typedef pcp {type uint8 {range "0..7";}description"Priority Code Point. PCP is a 3-bit field that refers to theclass of service applied to a VLAN tagged frame.  Thefield specifies a priority value between 0 and 7, these valuescan be used by quality of service (QoS) to prioritizedifferent classes of traffic.";reference"IEEE 802.1Q-2014: Virtual Bridged Local Area Networks";}grouping cos-marking {description"Configuration data for CU Plane ethernet CoS marking";container class-of-service {description"CoS Configuration";leaf u-plane-marking {type pcp;default 7;description"Marking used for default u-plane flows.7 represents highest priority for u-plane marking";}leaf c-plane-marking {type pcp;default 7;description "7 represents highest priority for c-plane marking";}leaf m-plane-marking {type pcp;default 2;description "2 represents highest excellent effort for m-plane marking";}leaf s-plane-marking {type pcp;default 7;description "7 represents highest priority for s-plane marking";}leaf other-marking {type pcp;default 1;description "1 represents best effort for other marking";}list enhanced-uplane-markings{key "up-marking-name";max-elements 4;description"list of mappings for enhanced (non-default) u-plane markings";leaf up-marking-name {type string;description "The name of the marking";}leaf enhanced-marking {type pcp;description "the enhanced u-plane marking";}}}}grouping dscp-marking {description"Configuration data for CU Plane DSCP marking";container diffserv-markings {description"DSCP Configuration";leaf u-plane-marking {type inet:dscp;default 46;description"Marking used for default u-plane flows.46 represents expedited forwarding";}leaf c-plane-marking {type inet:dscp;default 46;description "46 represents expedited forwarding";}leaf s-plane-marking {type inet:dscp;default 46;description "46 represents expedited forwarding";}leaf other-marking {type inet:dscp;default 0;description "0 represents best effort forwarding";}list enhanced-uplane-markings{key up-marking-name;max-elements 4;description"list of mappings for enhanced (non-default) u-plane markings";leaf up-marking-name {type string;description "The name of the marking";}leaf enhanced-marking {type inet:dscp;description "the enhanced u-plane marking";}}}}// Augmentation for basic Ethernet leafsaugment "/if:interfaces/if:interface" {when "if:type = 'ianaift:ethernetCsmacd'" {description "Applies to Ethernet interfaces";}description"Augment the interface model with parameters forbase Ethernet interface";leaf l2-mtu {type uint16 {range "64 .. 65535";}units bytes;default 1500;description"The maximum size of layer 2 frames that may be transmittedor received on the interface (excluding any FCS overhead).For Ethernet interfaces it also excludes the4-8 byte overhead of any known (i.e. explicitly matched bya child sub-interface) 801.1Q VLAN tags.";}leaf-list alias-macs {if-feature ALIASMAC-BASED-CU-PLANE;type yang:mac-address;description"Augments interfaces with range of alias MAC addresses.";}leaf vlan-tagging {type boolean;default true;description"Indicates if VLAN tagging is used.Default true is used to enable equipment to auonomously discover that it isconnected to a trunk port.";}uses cos-marking;}// augmentation for l2vlan interfaces for VLAN definitionaugment "/if:interfaces/if:interface" {when "if:type = 'ianaift:l2vlan'";description "augments for VLAN definition";leaf base-interface {type if:interface-ref;must "/if:interfaces/if:interface[if:name = current()]"+ "/o-ran-int:vlan-tagging = 'true'" {description"The base interface must have VLAN tagging enabled.";}description"The base interface for the VLAN sub-interafce.";}leaf vlan-id {type uint16 {range "1..4094";}description"The VLAN-ID.";}}// Augmention for both ethernetCsmacd and l2vlan interfacesaugment "/if:interfaces/if:interface" {when "(if:type = 'ianaift:ethernetCsmacd') or(if:type = 'ianaift:l2vlan')" {description "Applies to ethernetCsmacd and l2vlan interfaces";}description"Augment the interface model with parameters for allboth ethernetCsmacd and l2vlan interfaces.";leaf mac-address {type yang:mac-address;description"The MAC address of the interface.";}container port-reference {description"a port reference used by other O-RAN modules";leaf port-name {type leafref {path '/hw:hardware/hw:component/hw:name';}must "derived-from-or-self(deref(current())/../hw:class, 'ianahw:port')";
// TAKE NOTE - depending on version of pyang, this may generate various
// warnings, e.g., warning: XPath for "port-name" does not existdescription"O-RAN interfaces use a reference to a physical port component.In this case, the component name referenced must be of class typeport, i.e., when /hw:hardware/hw:component/hw:class is derived fromianahw:port";}leaf port-number {type uint8;description"A number allocated by the server which identifies a port.Port number value is 0 to N-1 where N is number of portsin the device.This value is fixed for the lifetime of the equipment, i.e., cannot bechanged during equipment reboots.";}}leaf last-cleared {type yang:date-and-time;config false;description"Timestamp of the last time the interface counters werecleared.";}}// Augmention to ietf-ip covering DSCP for CUS Planeaugment "/if:interfaces/if:interface/ip:ipv4" {if-feature UDPIP-BASED-CU-PLANE;description "augments for IPv4 based CUS transport";uses dscp-marking;}augment "/if:interfaces/if:interface/ip:ipv6" {if-feature UDPIP-BASED-CU-PLANE;description "augments for IPv6 based CUS transport";uses dscp-marking;}// Augmention to ietf-ip covering DSCP for M-Planeaugment "/if:interfaces/if:interface/ip:ipv4" {description "augments for IPv4 based M-Plane transport";leaf m-plane-marking {type inet:dscp;default 18;description "18 represents AF21 or 'immediate traffic'";}}augment "/if:interfaces/if:interface/ip:ipv6" {description "augments for IPv6 based M-Plane transport";leaf m-plane-marking {type inet:dscp;default 18;description "18 represents AF21 or 'immediate traffic'";}}rpc reset-interface-counters {description"Management plane triggered restart of the interface counters.";}
}

一个O-RAN YANG语言文件:o-ran-interfaces.yang相关推荐

  1. c语言创建一个文本文件datadat,c语言文件选择题.docx

    C 语言文件选择题(答案在最后) 1.标准库函数fgets(s,n,f)的功能是 从文件f中读取长度为n的字符串存入指针s所指的内存 从文件f中读取长度不超过n-1的字符串存入指针s所指的内存 从文件 ...

  2. NETCONF YANG语言文件语法格式

    NETCONF简介:https://blog.csdn.net/Rong_Toa/article/details/104297006 Table of Contents 一.Modules与Submo ...

  3. C语言文件缓冲区作用,C语言 文件操作4--文件结构体FILE的理解以及缓冲区再讲...

    //文件结构体FILE的理解以及缓冲区再讲 #include #include //要点:文件结构 //struct _iobuf { // char *_ptr; ------当前缓冲区内容指针 / ...

  4. c语言创建一个文件函数,c语言文件读写函数 用C语言的函数创建、打开和读写文件...

    C语言文件读写结构体里面的数据怎样存到磁盘文件上 c语言对同一个文件进行读写(r+) 编写程序,将文本文件c.txt中的所有小写字母转换成相应的大写字母,其他一.标准文件的读写 1.文件的打开 fop ...

  5. C语言文件日期排序,C语言产生一个大txt文件,并进行排序

    产生了一个十万行的txt文件,每一行都是一个0-512之间的随机数,并对这个文件进行排序,生成一个递增排序的文件: #define _CRT_SECURE_NO_WARNINGS #include # ...

  6. C语言文件:从键盘输入一些字符,并逐个把它们送到磁盘上去,直到用户输入一个“!”为止。

    题目: 从键盘输入一些字符,并逐个把它们送到磁盘上去,直到用户输入一个"!"为止. #include <stdio.h> #include <stdlib.h&g ...

  7. c语言文件可用代码存放,C语言 文件(示例代码)

    小白一个,看到有错误,希望指出,万分感谢 /**************************************************************** C语言文件概述: 一般文件 ...

  8. C语言文件操作解析(二)【转载】

    http://www.cnblogs.com/dolphin0520/archive/2011/10/05/2199598.html C语言文件操作解析(二) C语言中对文件进行操作必须首先打开文件, ...

  9. C语言文件操作解析(二)

    C语言文件操作解析(二) C语言中对文件进行操作必须首先打开文件,打开文件主要涉及到fopen函数.fopen函数的原型为 FILE* fopen(const char *path,const cha ...

最新文章

  1. 详细设计说明书读后感_专利申请详细步骤是怎样的,要多久时间
  2. RTT 动态线程和静态线程
  3. 最近为一个培训公司做的配置
  4. Android 原生通知Notification 写法
  5. 解决win10cpu使用率100_如何正确理解 CPU 使用率和平均负载的关系?看完你就知道了...
  6. dotnet core 开发无缝兼容Http和Websocket协议的接口服务
  7. vux radio 改造为 tree 代码片段
  8. 11.6 MariaDB安装 11.7/11.8/11.9 Apache安装
  9. JavaScript 面向对象编程(四) —— 正则表达式
  10. linux basename目录,linux – 在find -exec中使用basename和full path
  11. python时间序列按频率生成日期的方法
  12. sudo gem install cocoapods
  13. python用蓝牙发文件_用pybluez进行python蓝牙发现
  14. “区块链+供应链”的应用案例
  15. 数据结构导论-1.概述
  16. c语言1000万位圆周率,如何设计C语言程序输出圆周率小数点后的1000位?请大侠出手啊。...
  17. VMware vRealize Automation 8.6 下载 - 现代基础架构自动化
  18. vscode下git的常见操作
  19. 获取当天或某天的开盘价
  20. ubuntu下bochs的安装和配置

热门文章

  1. Kafka Manager界面添加Partition
  2. 动态规划之数字三角形问题
  3. vue-router(2.0)
  4. javascript 之 className属性
  5. DBCC--SHRINKDATABASE
  6. Castle ActiveRecord学习实践(8)HQL查询
  7. 10月26日练习注册用例的编写与ibatis培训
  8. php路由地址,ThinkPHP6.0路由地址 - ThinkPHP6.0快速开发手册(案例版) - php中文网手册...
  9. 路由包含#号导致的nginx_分布式实战:Nginx缓存之OpenResty部署
  10. 根据不同条件查询_刑事立案要符合哪些条件,怎么查看立案没有