Browse Source

initial realease

master
FRUCHARD Damien 1 year ago
parent
commit
e102d8725d
  1. 11
      LICENSE
  2. 12
      README.md
  3. 60
      irt/irt-eden-usecases.yang
  4. 58
      irt/irt-frer.yang
  5. 66
      irt/irt-interface.yang
  6. 51
      irt/irt-ptp.yang
  7. 172
      irt/irt-topology.yang
  8. 398
      irt/irt-traffic.yang
  9. 65
      irt/irt-tsn.yang
  10. 159
      irt/irt-types.yang
  11. 1832
      standard/iana/iana-if-type.yang
  12. 4291
      standard/ieee/ieee1588-ptp.yang
  13. 1380
      standard/ieee/ieee802-dot1as-ptp.yang
  14. 86
      standard/ieee/ieee802-dot1cb-frer-types.yang
  15. 1237
      standard/ieee/ieee802-dot1cb-frer.yang
  16. 99
      standard/ieee/ieee802-dot1cb-stream-identification-types.yang
  17. 817
      standard/ieee/ieee802-dot1cb-stream-identification.yang
  18. 315
      standard/ieee/ieee802-dot1q-ats.yang
  19. 1777
      standard/ieee/ieee802-dot1q-bridge.yang
  20. 151
      standard/ieee/ieee802-dot1q-preemption.yang
  21. 385
      standard/ieee/ieee802-dot1q-stream-filters-gates.yang
  22. 1477
      standard/ieee/ieee802-dot1q-tsn-types.yang
  23. 1007
      standard/ieee/ieee802-dot1q-types.yang
  24. 89
      standard/ieee/ieee802-types.yang
  25. 458
      standard/ietf/ietf-inet-types.yang
  26. 1123
      standard/ietf/ietf-interfaces.yang
  27. 876
      standard/ietf/ietf-ip@2018-02-22.yang
  28. 293
      standard/ietf/ietf-network-topology.yang
  29. 192
      standard/ietf/ietf-network.yang
  30. 474
      standard/ietf/ietf-yang-types.yang
  31. 676
      standard_changed/ieee802-dot1q-psfp.yang
  32. 440
      standard_changed/ieee802-dot1q-sched.yang

11
LICENSE

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
Copyright 2023 IRT Saint Exupery
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

12
README.md

@ -1,2 +1,12 @@ @@ -1,2 +1,12 @@
# eden-yang
A YANG Ethernet TSN network data model.
This model aims at interfacing between an Ethernet TSN network design tool (simulator, analysis) and hardware.
It relies on IANA, IEEE and IETF modules with some extensions/augmentations for the modeling of a an Ethernet TSN network including the configuration of each node, the traffic and associated behavior/constraints/requirements.
The development of this model started in the frame of the [EDEN project] (https://www.irt-saintexupery.com/wp-content/uploads/2021/07/EDEN-Project.pdf) at the Instite of Reseach and Technology Saint-Exupéry [IRT] (https://www.irt-saintexupery.com).
It is still work in progress.
Repository contents:
- standard: IANA, IEEE and IETF standard modules.
- standard_changed: standard modules that had to be modified.
- irt: IRT modules.

60
irt/irt-eden-usecases.yang

@ -0,0 +1,60 @@ @@ -0,0 +1,60 @@
module irt-eden-usecases {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-eden-usecases;
prefix irtuc;
import ietf-network {
prefix nw;
}
import irt-types {
prefix irtty;
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"TSN network use cases definition for IRT EDEN project";
revision 2023-04-28 {
description
"Initial revision.";
}
container usecases {
description "Set of use cases";
list usecase {
description
"A use case is composed of a network (topology, data flows,
TSN configuration of the equipments), a duration (the duration
of the test), etc...";
key "usecase-id";
leaf usecase-id {
type string {
length "1..max";
}
description
"Identifies a usecase.";
}
leaf network-ref {
type leafref {
path "/nw:networks/nw:network/nw:network-id";
}
}
leaf duration {
type irtty:tDuration;
description "Duration of the use case execution.";
}
}
}
}

58
irt/irt-frer.yang

@ -0,0 +1,58 @@ @@ -0,0 +1,58 @@
module irt-frer {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-frer;
prefix irtfrer;
import ieee802-dot1cb-stream-identification
{
prefix dot1cb-sid;
revision-date
"2021-05-06";
}
import ieee802-dot1cb-frer
{
prefix dot1cb-frer;
revision-date
"2021-05-06";
}
import ietf-network {
prefix nw;
revision-date
"2018-02-26";
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing augments to adapt IEEE802.1CB model to a whole network.";
augment "/dot1cb-sid:stream-identity" {
description
"Addtition a a node-ref, to associate a stream-identity to a node in the network.";
uses nw:node-ref;
}
augment "/dot1cb-frer:frer/dot1cb-frer:sequence-generation" {
description
"Addtition a a node-ref, to associate a sequence-generation to a node in the network.";
uses nw:node-ref;
}
augment "/dot1cb-frer:frer/dot1cb-frer:sequence-recovery" {
description
"Addtition a a node-ref, to associate a sequence-recovery to a node in the network.";
uses nw:node-ref;
}
}

66
irt/irt-interface.yang

@ -0,0 +1,66 @@ @@ -0,0 +1,66 @@
module irt-interface {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-interface;
prefix irtif;
import ietf-network-topology {
prefix nt;
revision-date
"2018-02-26";
}
import ietf-interfaces {
prefix if;
revision-date
"2018-02-20";
}
import ieee802-types {
prefix ieee;
revision-date
"2020-10-23";
}
import irt-types {
prefix irtty;
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing augments to complete the standard IETF interface.";
revision 2023-04-28 {
description
"Initial revision.";
}
augment "/if:interfaces/if:interface" {
description
"Adds reference to the topology, and identifier for operating
system / management firmware.";
uses nt:tp-ref;
leaf bench-interface-id {
description
"Identifies the network interface as seen from inside the node.
For example eno0, eth0, enp1s0 are typical names for Linux";
type string;
}
leaf mac-address {
description "MAC address of the interface";
type ieee:mac-address;
}
leaf chipset {
description "The hardware chipset reference for this interface";
type irtty:tIfChipset;
}
}
}

51
irt/irt-ptp.yang

@ -0,0 +1,51 @@ @@ -0,0 +1,51 @@
module irt-ptp {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-ptp;
prefix irtptp;
import ieee1588-ptp {
prefix ptp;
revision-date
"2022-08-30";
}
import ietf-network {
prefix nw;
revision-date
"2018-02-26";
}
import ietf-network-topology {
prefix nt;
revision-date
"2018-02-26";
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing augments to complete the standard
IEEE 1588 PTP model, for association with the ietf topology model.";
revision 2023-05-04 {
description
"Initial revision.";
}
augment "/ptp:ptp/ptp:instances/ptp:instance/ptp:ports/ptp:port" {
description
"Adds the reference the termination point in the topology.";
uses nt:tp-ref;
}
augment "/ptp:ptp/ptp:instances/ptp:instance" {
description
"Adds the reference the termination point in the topology.";
uses nw:node-ref;
}
}

172
irt/irt-topology.yang

@ -0,0 +1,172 @@ @@ -0,0 +1,172 @@
module irt-topology {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-topology;
prefix irtto;
import ietf-inet-types {
prefix inet;
revision-date
"2013-07-15";
}
import ietf-network {
prefix nw;
revision-date
"2018-02-26";
}
import ietf-network-topology {
prefix nt;
revision-date
"2018-02-26";
}
import irt-types {
prefix irtty ;
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing augments to complete the standard IETF topology.";
augment "/nw:networks/nw:network" {
description
"Improvement of the network implementation";
leaf project-mode {
description
"Project mode like Automotive, Aeronautic or Spatial";
type string;
}
}
augment "/nw:networks/nw:network/nw:node" {
description
"Improvement of the node implementation";
leaf transmission-capacity {
description
"Data rate processing capacity for transmission";
type irtty:tThroughputMbps ;
}
leaf manufacturer-reference {
description
"Manufaturer reference of the equipment";
type irtty:tManufacturerRefence;
}
leaf node-type {
type irtty:tNodeType;
}
leaf bench-node-id {
type string;
description
"Uniquely identifies a node within the IRT hardware test bench network.";
}
leaf management-host {
type inet:host;
description
"IP address (as host name or in dotted notation) of the management
interface of the node.";
}
}
augment "/nw:networks/nw:network/nw:node" {
description
"Improvement of the node implementation with behavioral properties";
leaf supports-preemption {
type boolean;
}
leaf supports-TAS {
type boolean;
}
leaf supports-QCF {
type boolean;
}
leaf supports-ATS {
type boolean;
}
leaf supports-CBS {
type boolean;
}
leaf supports-FRER {
type boolean;
}
}
augment "/nw:networks/nw:network/nw:node" {
description
"Improvement of the node implementation with switches properties";
leaf memory {
type irtty:tDataByte;
}
leaf memory-management-policy {
type irtty:tMemoryManagementPolicy;
}
leaf storage-policy {
type irtty:tStoragePolicy;
}
leaf tech-latency-min {
type irtty:tDurationMicro;
}
leaf tech-latency-max {
type irtty:tDurationMicro;
}
}
augment "/nw:networks/nw:network/nt:link" {
description
"Improvement of the link implementation";
leaf transmission-capacity {
type irtty:tThroughputMbps ;
}
}
augment "/nw:networks/nw:network" {
description
"Add of some network global configurations.";
leaf physical-overhead {
type irtty:tDataByte ;
description
"The phycical overhead in bytes. Shall be 20 bytes.";
}
leaf mac-overhead {
type irtty:tDataByte ;
description
"The mac overhead in bytes. Shall be 22 bytes.";
}
leaf protocol-overhead {
description
"The protocol overhead in bytes. This field is used if the
network uses a single protocol.";
type irtty:tDataByte ;
}
leaf minimal-payload {
description
"The minimal payload of a frame";
type irtty:tDataByte ;
}
leaf maximal-payload {
description
"The maximal payload of a frame";
type irtty:tDataByte ;
}
}
}

398
irt/irt-traffic.yang

@ -0,0 +1,398 @@ @@ -0,0 +1,398 @@
module irt-traffic {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-traffic;
prefix irttf;
import ietf-network {
prefix nw;
revision-date
"2018-02-26";
}
import ietf-interfaces {
prefix if;
revision-date
"2018-02-20";
}
import irt-types {
prefix irtty;
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing a whole set of artifacts in order to describe the traffic.";
revision 2023-04-28 {
description
"Initial revision.";
}
typedef tBenchGenerator {
type enumeration {
enum automatic {
description
"The traffic is to be automatically generated,
based on its characteristics (periodic, burst, protocol,...),
for example with trafgen.
No parameter is used in that case.";
}
enum manual {
description
"The traffic must not automatically generated:
the operator has to generate the traffic for this
flow manually.
No parameter is used in that case.";
}
enum command {
description
"One parameter is used, and is the command to execute
remotely on the emitter node.";
}
enum script {
description
"One parameter is used, and is the path to a shell script
to upload and execute remotely on the emitter node";
}
enum mediaStream {
description
"Two parameter are used, both are a path to a shell script.
The first is to be uploaded and executed remotely on the talker node,
the second is to upload and executed remotely on the emitter node";
}
enum pcapReplay {
description
"Two parameters are used.
The first is the path to a pcap file to upload and replay on
the emitter node.
The second contains the pcap replay utility parameters, if needed.";
}
}
}
container traffics {
list Traffic {
key "name";
leaf name {
type string;
}
container flows {
list Flow {
key "name";
leaf name {
type string;
}
leaf vlan-id {
type uint16 {
range "0..4094";
}
description "VLAN identifier. Special value 0 means no QTAG.
Note: the presence/absence of QTAG is accounted in protocol-overhead";
}
leaf payload-min {
type irtty:tDataByte;
description "Minimal number of bytes for the payload.
Note: it is the payload at system/functional level, not the Ethernet payload. As a consequence,
if this payload size is 0, the Ethernet payload will be padded up to minimal Ethernet
PDU size, 42 bytes";
}
leaf payload-max {
type irtty:tDataByte;
description "Maximal number of bytes for the payload.
Note: it is the payload at system/functional level, not the Ethernet payload. As a consequence,
if this payload size is 0, the Ethernet payload will be padded up to minimal Ethernet
PDU size, 42 bytes";
}
leaf protocol-id {
type leafref {
path "/traffics/Traffic/protocols/Protocol/name";
}
}
leaf protocol-overhead {
type irtty:tDataByte;
}
leaf burst {
type irtty:tDataByte;
}
leaf periodic {
type boolean;
}
leaf minimal-inter-arrival-time {
type irtty:tDurationMilli;
}
leaf interFrame {
type irtty:tDurationMilli;
}
leaf offset {
type irtty:tDurationNano;
}
leaf offset-type {
type irtty:tOffsetType;
}
leaf source-jitter {
type irtty:tDurationMilli;
}
leaf synchronization {
type boolean;
}
leaf best-effort {
type boolean;
}
leaf source-id {
type nw:node-id;
}
leaf class-id {
type leafref {
path "/traffics/Traffic/classes/Class/name";
}
}
leaf maximal-latency {
type irtty:tDurationMilli;
}
leaf maximal-jitter {
type irtty:tDurationMilli;
}
list Cast {
description "One (unicast) or more (multicast) ways to reach different destinations.";
key "id";
leaf id {
type uint32;
description
"Uniquely identifies an entry in the list.";
}
leaf label {
type string;
}
leaf dest-id {
description "Destination of the cast";
type nw:node-id;
}
container path {
description "Definition of the sub-paths of the path, with or without
redundancy.
If there is no redundancy, a unique Segment
is used to define the the path of a cast, whereas multiple
segments are needed to describe the redondancy.";
list Sub-path {
key "id";
leaf id {
description
"Uniquely identifies an entry in the list.";
type uint32;
}
list Segment {
description "The list of segments of the subpath. When there is a unique
segment, there is no FRER.
When there are at least two segments means FRER is used. The
first port gives the replication node. The elimination port is
given by the first segment of the next subpath.";
key "id";
leaf id {
type uint32;
description
"Uniquely identifies an entry in the list.";
}
leaf-list egress-port {
type if:interface-ref;
}
}
}
}
}
container bench-generator {
leaf type {
type tBenchGenerator;
}
leaf-list parameters {
type string;
description
"Depends on the generator type: see tBenchGenerator descriptions.";
}
}
}
}
container classes {
list Class {
key "name";
leaf name {
type string;
}
leaf priority {
type irtty:tPriority;
}
leaf ATS {
type boolean;
}
leaf CBS {
type boolean;
}
leaf CQF {
type boolean;
}
leaf TAS {
type boolean;
}
leaf FRER {
type boolean;
}
leaf synchronization {
type boolean;
}
leaf preemptive {
type boolean;
}
leaf iDSL {
type irtty:tCBSSlope;
}
}
}
container protocols {
list Protocol {
key "name";
leaf name {
type string;
}
leaf overHead {
type int32;
units
"byte";
}
leaf supportsFragmentation {
type boolean;
}
}
}
container cycles {
list CEW {
key "name";
leaf name {
type string;
}
leaf period {
type irtty:tDurationNano;
}
leaf offset {
type irtty:tDurationNano;
}
leaf duration {
type irtty:tDurationNano;
}
}
}
list Constraint {
key "name";
leaf name {
type string;
}
leaf cycle-id {
type leafref {
path "/traffics/Traffic/cycles/CEW/name";
}
}
leaf maximal-delay {
type irtty:tDurationMicro;
}
leaf maximal-jitter {
type irtty:tDurationMicro;
}
leaf cycle-shift {
type uint16;
}
choice ConstraintCategory{
case ChainedConstraint {
list ChainItem {
key "id";
leaf id {
type uint16;
}
leaf flow-id {
type leafref {
path "/traffics/Traffic/flows/Flow/name";
}
}
leaf minimal-latency {
type irtty:tDurationMicro;
}
leaf maximal-latency {
type irtty:tDurationMicro;
}
leaf exclusive {
type boolean;
}
}
}
case SingleFlowConstraint {
leaf flow-id {
type leafref {
path "/traffics/Traffic/flows/Flow/name";
}
}
leaf from-id {
type nw:node-id;
}
leaf to-id {
type nw:node-id;
}
}
}
}
}
}
}

65
irt/irt-tsn.yang

@ -0,0 +1,65 @@ @@ -0,0 +1,65 @@
module irt-tsn {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-tsn;
prefix irttsn;
import ietf-interfaces {
prefix if;
revision-date
"2018-02-20";
}
import ieee802-dot1q-bridge {
prefix dot1q;
revision-date
"2020-11-06";
}
import irt-types {
prefix irtty;
}
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing augments to complete the standard IETF interface for TSN purpose.";
revision 2023-04-28 {
description
"Initial revision.";
}
augment "/if:interfaces/if:interface/dot1q:bridge-port" {
description
"CBS configuration items an interface";
container cbs-configurations {
list cbs-configuration {
key "priority";
description "CBS configuration for a priority queue";
leaf priority {
description "The priority of the stream";
type irtty:tPriority;
}
leaf slope {
description "The current idle slope value in Mbps";
type irtty:tThroughputMbps;
}
leaf cbs-traffic {
description "The current CBS traffic on this port for this priority in Mbps";
type irtty:tThroughputMbps;
}
leaf higher-traffic {
description "The higher priority non CBS traffic on this port in Mbps";
type irtty:tThroughputMbps;
}
}
}
}
}

159
irt/irt-types.yang

@ -0,0 +1,159 @@ @@ -0,0 +1,159 @@
module irt-types {
yang-version 1.1;
namespace urn:fr:irt:eden:yang:irt-types;
prefix irtty;
organization
"IRT Saint Exupéry - Toulouse";
contact
"IRT Saint Exupéry - Toulouse
EDEN project team
<mailto:embedded-systems@irt-saintexupery.com>";
description
"This module is containing a whole set of artifacts in order to describe the traffic.";
revision 2023-04-28 {
description
"Initial revision.";
}
typedef tDataByte {
type uint32 ;
units
"byte";
}
typedef tDuration {
type decimal64 {
fraction-digits 9;
}
description
"A duration in seconds";
units
"s";
}
typedef tDurationMilli {
type decimal64 {
fraction-digits 6;
}
description
"A duration in milli seconds";
units
"ms";
}
typedef tDurationMicro {
type decimal64 {
fraction-digits 3;
}
description
"A duration in micro seconds";
units
"µs";
}
typedef tDurationNano {
type uint64 ;
description
"A duration in nano seconds";
units
"ns";
}
typedef tThroughput {
type uint64 ;
description
"The throughput in bits per second";
units
"bit/s";
}
typedef tThroughputMbps {
type decimal64 {
fraction-digits 6;
}
description
"Throughput in Mega Bits per second";
units
"Mb/s";
}
typedef tPriority {
description
"The TSN priority";
type uint8 {
range "0..7";
}
}
typedef tCBSSlope {
type decimal64 {
fraction-digits 6;
}
}
typedef tOffsetType {
type enumeration {
enum "Not Defined";
enum Computed ;
enum Manual ;
}
}
typedef tData {
type uint32 ;
description
"The type for a data in bits";
units
"bit";
}
typedef tNodeType {
type enumeration {
enum bridge;
enum end-station;
}
}
typedef tManufacturerRefence {
type enumeration {
enum SW_fraunhofer;
enum SW_nxp_sja1110_EVM;
enum SW_microchip_evb_LAN9668;
enum ES_linuxGeneric;
enum ES_linuxUbuntu;
enum ES_linuxRPI_4;
enum ES_linuxRPI_CM4;
enum ES_linuxRPI_1Bplus;
enum ES_Meinberg_microsync;
enum ES_custom;
enum SW_custom;
}
}
typedef tIfChipset {
type enumeration {
enum IFCHIP_i210;
enum IFCHIP_i225;
enum IFCHIP_i350;
enum IFCHIP_generic;
}
description
"Network interface chipsets";
}
typedef tMemoryManagementPolicy {
type enumeration {
enum Shared_Memory ;
enum Dedicated_Memory ;
}
}
typedef tStoragePolicy {
type enumeration {
enum Store_And_Forward ;
enum Cut_Through ;
}
}
}

1832
standard/iana/iana-if-type.yang

File diff suppressed because it is too large Load Diff

4291
standard/ieee/ieee1588-ptp.yang

File diff suppressed because it is too large Load Diff

1380
standard/ieee/ieee802-dot1as-ptp.yang

File diff suppressed because it is too large Load Diff

86
standard/ieee/ieee802-dot1cb-frer-types.yang

@ -0,0 +1,86 @@ @@ -0,0 +1,86 @@
module ieee802-dot1cb-frer-types {
yang-version "1.1";
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1cb-frer-types;
prefix dot1cb-frer-types;
organization
"Institute of Electrical and Electronics Engineers";
contact
"WG-URL: http://ieee802.org/1/
WG-EMail: stds-802-1-l@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
Piscataway, NJ 08854
USA
E-mail: stds-802-1-chairs@ieee.org";
description
"Management objects that control the frame replication and
elimination from IEEE Std 802.1CB-2017. This YANG data model conforms
to the Network Management Datastore Architecture defined in RFC 8342.
Copyright (C) IEEE (2021). This version of this YANG module is part
of IEEE Std 802.1CBcv; see the draft itself for full legal notices.";
revision 2021-05-06 {
description
"Published as part of IEEE Std 802.1CBcv-2021. Initial version.";
reference
"IEEE Std 802.1CBcv-2021, Frame Replication and Elimination for
Reliability - FRER YANG Data Model and Management Information Base
Module.";
}
typedef seq-rcvy-algorithm {
type enumeration {
enum vector {
value 0;
description
"The sequence recovery type used for the Vector Recovery
Algorithm.";
}
enum match {
value 1;
description
"The sequence recovery type used for the Match Recovery
Algorithm.";
}
}
description
"An enumerated value specifying which sequence recovery algorithm
is to be used for an instance of the Sequence recovery function.";
reference
"10.4.1.5 of IEEE Std 802.1CB-2017";
}
typedef seq-encaps-method {
type enumeration {
enum reserved {
value 0;
description
"Reserved value.";
}
enum r-tag {
value 1;
description
"The sequence encode decode type used for the R_TAG
encode/decode method.";
}
enum hsr-seq-tag {
value 2;
description
"The sequence encode decode type used for the HSR encode/decode
method.";
}
enum prp-seq-trailer {
value 3;
description
"The sequence encode decode type used for the PRP encode/decode
method.";
}
}
description
"An enumerated value indicating the type of encapsulation used for
an instance of the Sequence encode/ decode function.";
reference
"10.5.1.5 of IEEE Std 802.1CB-2017";
}
}

1237
standard/ieee/ieee802-dot1cb-frer.yang

File diff suppressed because it is too large Load Diff

99
standard/ieee/ieee802-dot1cb-stream-identification-types.yang

@ -0,0 +1,99 @@ @@ -0,0 +1,99 @@
module ieee802-dot1cb-stream-identification-types {
yang-version "1.1";
namespace
urn:ieee:std:802.1Q:yang:ieee802-dot1cb-stream-identification-types;
prefix dot1cb-sid-types;
organization
"Institute of Electrical and Electronics Engineers";
contact
"WG-URL: http://ieee802.org/1/
WG-EMail: stds-802-1-l@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
Piscataway, NJ 08854
USA
E-mail: stds-802-1-chairs@ieee.org";
description
"Management objects that control the stream identification from IEEE
Std 802.1CB-2017. This YANG data model conforms to the Network
Management Datastore Architecture defined in RFC 8342. Copyright (C)
IEEE (2021). This version of this YANG module is part of IEEE Std
802.1CBdb-2021; see the draft itself for full legal notices.";
revision 2021-06-14 {
description
"Published as part of IEEE Std 802.1CBdb-2021.
Added the stream identification type used for the Mask-and-match
identification method ";
reference
"IEEE Std 802.1CBdb-2021, Frame Replication and Elimination for
Reliability - Extended Stream identification functions.";
}
revision 2021-05-06 {
description
"Published as part of IEEE Std 802.1CBcv-2021. Initial version.";
reference
"IEEE Std 802.1CBcv-2021, Frame Replication and Elimination for
Reliability - FRER YANG Data Model and Management Information Base
Module.";
}
identity strid-idty {
description
"Root identity for all stream identification types";
}
typedef direction {
type boolean;
description
"A boolean object indicating whether the direction is out-facing
(True) or in-facing (False).";
reference
"10.4.1.3 of IEEE Std 802.1CB-2017";
}
typedef stream-id-function {
type enumeration {
enum reserved {
value 0;
description
"Reserved value.";
}
enum null-stream {
value 1;
description
"The stream identification type used for the Null Stream
identification method.";
}
enum smac-vlan {
value 2;
description
"The stream identification type used for the Source MAC and
VLAN Stream identification method.";
}
enum dmac-vlan {
value 3;
description
"The stream identification type used for the Active Destination
MAC and VLAN Stream identification method.";
}
enum ip {
value 4;
description
"The stream identification type used for the IP Stream
identification method.";
}
enum mask-and-match {
value 5;
description
"The stream identification type used for the Mask-and-match
identification method.";
}
}
description
"An enumerated value indicating the method used to identify packets
belonging to a Stream.";
reference
"9.1.1.6 of IEEE Std 802.1CBdb-2021";
}
}

817
standard/ieee/ieee802-dot1cb-stream-identification.yang

@ -0,0 +1,817 @@ @@ -0,0 +1,817 @@
module ieee802-dot1cb-stream-identification {
yang-version "1.1";
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1cb-stream-identification;
prefix dot1cb-sid;
import ieee802-types {
prefix ieee;
}
import ieee802-dot1q-types {
prefix dot1qtypes;
}
import ietf-inet-types {
prefix inet;
}
import ietf-interfaces {
prefix if;
}
import ieee802-dot1cb-stream-identification-types {
prefix dot1cb-sid-types;
}
organization
"Institute of Electrical and Electronics Engineers";
contact
"WG-URL: http://ieee802.org/1/
WG-EMail: stds-802-1-l@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
Piscataway, NJ 08854
USA
E-mail: stds-802-1-chairs@ieee.org";
description
"Management objects that control the stream identification from IEEE
Std 802.1CB-2017. This YANG data model conforms to the Network
Management Datastore Architecture defined in RFC 8342. Copyright (C)
IEEE (2021). This version of this YANG module is part of IEEE Std
802.1CBcv; see the draft itself for full legal notices.";
revision 2021-05-06 {
description
"Published as part of IEEE Std 802.1CBcv-2021. Initial version.";
reference
"IEEE Std 802.1CBcv-2021, Frame Replication and Elimination for
Reliability - FRER YANG Data Model and Management Information Base
Module.";
}
identity null-stream-identification {
base dot1cb-sid-types:strid-idty;
description
"Null Stream Identification";
}
identity smac-vlan-stream-identification {
base dot1cb-sid-types:strid-idty;
description
"Source MAC and VLAN Stream Identification";
}
identity dmac-vlan-stream-identification {
base dot1cb-sid-types:strid-idty;
description
"Active Destination MAC and VLAN Stream Identification";
}
identity ip-stream-identification {
base dot1cb-sid-types:strid-idty;
description
"IP Stream Identification";
}
typedef vlan-tag-identification-type {
type enumeration {
enum tagged {
value 1;
description
"A frame must have a VLAN tag to be recognized as belonging to
the Stream.";
}
enum priority {
value 2;
description
"A frame must be untagged, or have a VLAN tag with a VLAN ID =
0 to be recognized as belonging to the Stream.";
}
enum all {
value 3;
description
"A frame is recognized as belonging to the Stream whether
tagged or not.";
}
}
description
"Enumeration describing how a Stream can be identified using the
VLAN tag.";
}
typedef vlan-identifier-type {
type uint16 {
range "0 .. 4095";
}
description
"Specifies the vlan_identifier. A value of 0 indicates that the
vlan_identifier carries a special meaning.";
}
list stream-identity {
key "index";
description
"The Stream identity table consists of a set of tsnStreamIdEntry
objects, each relating to a single Stream, specifying the points in
the system where Stream identification functions are to be
instantiated. Each entry in the Stream identity table has a
tsnStreamIdHandle object specifying a stream_handle value and one
or more tsnStreamIdEntry objects describing one identification
method for that Stream. If a single Stream has multiple
identification methods, perhaps (but not necessarily) on different
ports, then there can be multiple tsnStreamIdEntry objects with the
same value for the tsnStreamIdHandle. If the HSR or PRP method or
the Sequence encode/decode function is applied to a packet, then
the LanId or PathId fields are also used to identify the Stream to
which the packet belongs.";
reference
"9.1. of IEEE Std 802.1CB-2017";
leaf index {
type uint32;
description
"If a single Stream has multiple identification methods, perhaps
(but not necessarily) on different ports, then there can be
multiple tsnStreamIdEntry objects with the same value for the
tsnStreamIdHandle";
}
leaf handle {
type uint32;
mandatory true;
description
"The objects in a given entry of the Stream identity table are
used to control packets whose stream_handle subparameter is equal
to the entry’s tsnStreamIdHandle object. The specific values used
in the tsnStreamIdHandle object are not necessarily used in the
system; they are used only to relate the various management
objects in Clause 9 and Clause 10.";
reference
"9.1.1.1 of IEEE Std 802.1CB-2017";
}
container in-facing {
description
"Container for in-facing Stream identification functions.";
leaf-list input-port {
type if:interface-ref;
description
"The list of ports on which an in-facing Stream identification
function using this identification method is to be placed for
this Stream in the input (coming from the system forwarding
function) direction. Any number of tsnStreamIdEntry objects can
list the same port for the same tsnStreamIdHandle in its
tsnStreamIdInFacInputPortList.";
reference
"9.1.1.4 of IEEE Std 802.1CB-2017";
}
leaf-list output-port {
type if:interface-ref;
description
"The list of ports on which an in-facing Stream identification
function using this identification method is to be placed for
this Stream in the output (towards the system forwarding
function) direction. At most one tsnStreamIdEntry can list a
given port for a given tsnStreamIdHandle in its
tsnStreamIdInFacOutputPortList.";
reference
"9.1.1.2 of IEEE Std 802.1CB-2017";
}
}
container out-facing {
description
"Container for out-facing Stream identification functions.";
leaf-list input-port {
type if:interface-ref;
description
"The list of ports on which an out-facing Stream identification
function using this identification method is to be placed for
this Stream in the input (coming from the physical interface)
direction. Any number of tsnStreamIdEntry objects can list the
same port for the same tsnStreamIdHandle in its
tsnStreamIdOutFacInputPortList.";
reference
"9.1.1.5 of IEEE Std 802.1CB-2017";
}
leaf-list output-port {
type if:interface-ref;
description
"The list of ports on which an out-facing Stream identification
function using this identification method is to be placed for
this Stream in the output (towards the physical interface)
direction. At most one tsnStreamIdEntry can list a given port
for a given tsnStreamIdHandle in its
tsnStreamIdOutFacOutputPortList.";
reference
"9.1.1.3 of IEEE Std 802.1CB-2017";
}
}
choice parameters {
mandatory true;
description
"The number of controlling parameters for a Stream identification
method, their types and values, are specific to the
tsnStreamIdIdentificationType.";
reference
"9.1.1.7 of IEEE Std 802.1CB-2017";
container null-stream-identification {
description
"When instantiating an instance of the Null Stream
identification function for a particular input Stream, the
managed objects in this container serve as the
tsnStreamIdParameters managed object.";
reference
"9.1.2 of IEEE Std 802.1CB-2017";
container identification-type {
config false;
description
"The identification type indicating the method used to
identify packets belonging to the Stream. The identification
type contains a type number and an Organizationally Unique
Identifier (OUI) or Company ID (CID) to identify the
organization defining the identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
leaf type-number {
type dot1cb-sid-types:stream-id-function;
default "null-stream";
description
"The stream identification type used for the Null Stream
identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
leaf oui-cid {
type string {
pattern "[0-9A-F]{2}(-[0-9A-F]{2}){2}";
}
default "00-80-C2";
description
"The Organizationally Unique Identifier (OUI) or Company ID
(CID) to identify the organization defining the
identification method. For identification methods defined
in IEEE Std 802.1CB-2017 the OUI/CID is always 00-80-C2.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
}
leaf destination-mac {
type ieee:mac-address;
description
"Specifies the destination_address that identifies a packet
in an EISS indication primitive, to the Null Stream
identification function. The ieee:mac-address type has a
pattern that allows upper and lower case letters. To avoid
issues with string comparison, it is suggested to only use
Upper Case for the letters in the hexadecimal numbers. There
is still an issue with a difference between the IETF
mac-address definition and the IEEE mac-address definition,
so consider that if implementing code that compares
mac-addresses.";
reference
"9.1.2.1 of IEEE Std 802.1CB-2017";
}
leaf tagged {
type vlan-tag-identification-type;
description
"An enumerated value indicating whether a packet in an EISS
indication primitive to the Null Stream identification
function is permitted to have a VLAN tag.";
reference
"9.1.2.2 of IEEE Std 802.1CB-2017";
}
leaf vlan {
type vlan-identifier-type;
description
"Specifies the vlan_identifier parameter that identifies a
packet in an EISS indication primitive to the Null Stream
identification function. A value of 0 indicates that the
vlan_identifier parameter is ignored on EISS indication
primitives.";
reference
"9.1.2.3 of IEEE Std 802.1CB-2017";
}
}
container smac-vlan-stream-identification {
description
"When instantiating an instance of the Source MAC and VLAN
Stream identification function for a particular input Stream,
the managed objects in the following subclauses serve as the
tsnStreamIdParameters managed object.";
reference
"9.1.3 of IEEE Std 802.1CB-2017";
container identification-type {
config false;
description
"The identification type indicating the method used to
identify packets belonging to the Stream. The identification
type contains a type number and an Organizationally Unique
Identifier (OUI) or Company ID (CID) to identify the
organization defining the identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
leaf type-number {
type dot1cb-sid-types:stream-id-function;
default "smac-vlan";
description
"The stream identification type used for the Source MAC and
VLAN Stream identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
leaf oui-cid {
type string {
pattern "[0-9A-F]{2}(-[0-9A-F]{2}){2}";
}
default "00-80-C2";
description
"The Organizationally Unique Identifier (OUI) or Company ID
(CID) to identify the organization defining the
identification method. For identification methods defined
in IEEE Std 802.1CB-2017 the OUI/CID is always 00-80-C2.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
}
leaf source-mac {
type ieee:mac-address;
description
"Specifies the source_address that identifies a packet in an
EISS indication primitive, to the Source MAC and VLAN Stream
identification function. The ieee:mac-address type has a
pattern that allows upper and lower case letters. To avoid
issues with string comparison, it is suggested to only use
Upper Case for the letters in the hexadecimal numbers. There
is still an issue with a difference between the IETF
mac-address definition and the IEEE mac-address definition,
so consider that if implementing code that compares
mac-addresses.";
reference
"9.1.3.1 of IEEE Std 802.1CB-2017";
}
leaf tagged {
type vlan-tag-identification-type;
description
"An enumerated value indicating whether a packet in an EISS
indication primitive to the Source MAC and VLAN Stream
identification function is permitted to have a VLAN tag.";
reference
"9.1.3.2 of IEEE Std 802.1CB-2017";
}
leaf vlan {
type vlan-identifier-type;
description
"Specifies the vlan_identifier parameter that identifies a
packet in an EISS indication primitive to the Source MAC and
VLAN Stream identification function. A value of 0 indicates
that the vlan_identifier parameter is ignored on EISS
indication primitives.";
reference
"9.1.3.3 of IEEE Std 802.1CB-2017";
}
}
container dmac-vlan-stream-identification {
description
"When instantiating an instance of the Active Destination MAC
and VLAN Stream identification function for a particular output
Stream, the managed objects in the following subclauses, along
with those listed in 9.1.2, serve as the tsnStreamIdParameters
managed object.";
reference
"9.1.4 of IEEE Std 802.1CB-2017";
container identification-type {
config false;
description
"The identification type indicating the method used to
identify packets belonging to the Stream. The identification
type contains a type number and an Organizationally Unique
Identifier (OUI) or Company ID (CID) to identify the
organization defining the identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
leaf type-number {
type dot1cb-sid-types:stream-id-function;
default "dmac-vlan";
description
"The stream identification type used for the Active
Destination MAC and VLAN Stream identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
leaf oui-cid {
type string {
pattern "[0-9A-F]{2}(-[0-9A-F]{2}){2}";
}
default "00-80-C2";
description
"The Organizationally Unique Identifier (OUI) or Company ID
(CID) to identify the organization defining the
identification method. For identification methods defined
in IEEE Std 802.1CB-2017 the OUI/CID is always 00-80-C2.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
}
container down {
description
"Container for all parameters which are sent to lower layers.";
leaf destination-mac {
type ieee:mac-address;
description
"Specifies the destination_address parameter to use in the
EISS request primitive for output packets sent to lower
layers by the Active Destination MAC and VLAN Stream
identification function, and the destination_address that
identifies an input packet in an EISS indication primitive
to the Active Destination MAC and VLAN Stream
identification function. The ieee:mac-address type has a
pattern that allows upper and lower case letters. To avoid
issues with string comparison, it is suggested to only use
Upper Case for the letters in the hexadecimal numbers.
There is still an issue with a difference between the IETF
mac-address definition and the IEEE mac-address definition,
so consider that if implementing code that compares
mac-addresses.";
reference
"9.1.4.1 of IEEE Std 802.1CB-2017";
}
leaf tagged {
type vlan-tag-identification-type;
description
"An enumerated value indicating whether a packet in an EISS
indication or request primitive between the Active
Destination MAC and VLAN Stream identification function and
the lower layers is to have a VLAN tag. This variable is
not used in an FRER C-component. See 8.4.";
reference
"9.1.4.2 of IEEE Std 802.1CB-2017";
}
leaf vlan {
type vlan-identifier-type;
description
"Specifies the vlan_identifier parameter to use in the EISS
request primitive for output packets sent to lower layers
by the Active Destination MAC and VLAN Stream
identification function, and the vlan_identifier that
identifies an input packet in an EISS indication primitive
to the Active Destination MAC and VLAN Stream
identification function. A value of 0 indicates that the
vlan_identifier parameter is ignored on EISS indication
primitives.";
reference
"9.1.4.3 of IEEE Std 802.1CB-2017";
}
leaf priority {
type dot1qtypes:priority-type;
description
"Specifies the priority parameter to use in the EISS
request primitive for output packets sent to lower layers
by the Active Destination MAC and VLAN Stream
identification function for all packets in a particular
Stream.";
reference
"9.1.4.4 of IEEE Std 802.1CB-2017";
}
}
container up {
description
"Container for all parameters which are offered to higher
layers.";
leaf destination-mac {
type ieee:mac-address;
description
"Specifies the destination_address parameter to use in the
EISS indication primitive for input packets offered to
upper layers by the Active Destination MAC and VLAN Stream
identification layer. This address replaces the address
that was used to identify the packet
(tsnCpeDmacVlanDownDestMac). The ieee:mac-address type has
a pattern that allows upper and lower case letters. To
avoid issues with string comparison, it is suggested to
only use Upper Case for the letters in the hexadecimal
numbers. There is still an issue with a difference between
the IETF mac-address definition and the IEEE mac-address
definition, so consider that if implementing code that
compares mac-addresses.";
reference
"9.1.4.5 of IEEE Std 802.1CB-2017";
}
leaf tagged {
type vlan-tag-identification-type;
description
"An enumerated value indicating whether a packet in an EISS
indication or request primitive between the Active
Destination MAC and VLAN Stream identification function and
the upper layers is to have a VLAN tag. This variable is
used only by an end system and not by a relay system.";
reference
"9.1.4.6 of IEEE Std 802.1CB-2017";
}
leaf vlan {
type vlan-identifier-type;
description
"Specifies the vlan_identifier parameter to use in the EISS
indication primitive for packets offered to upper layers,
or the VLAN ID field for an IEEE 802.1Q tag in an ISS
mac_service_data_unit. This address replaces the VLAN ID
that was used to identify the packet
(tsnCpeDmacVlanDownVlan).";
reference
"9.1.4.7 of IEEE Std 802.1CB-2017";
}
leaf priority {
type dot1qtypes:priority-type;
description
"Specifies the priority parameter to use in the EISS
indication primitive for packets offered to upper layers.";
reference
"9.1.4.8 of IEEE Std 802.1CB-2017";
}
}
}
container ip-stream-identification {
description
"When instantiating an instance of the IP Stream identification
function, the parameters in the following subclauses replace
the tsnStreamIdParameters managed object.";
reference
"9.1.5 of IEEE Std 802.1CB-2017";
container identification-type {
config false;
description
"The identification type indicating the method used to
identify packets belonging to the Stream. The identification
type contains a type number and an Organizationally Unique
Identifier (OUI) or Company ID (CID) to identify the
organization defining the identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
leaf type-number {
type dot1cb-sid-types:stream-id-function;
default "ip";
description
"The stream identification type used for the IP Stream
identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
leaf oui-cid {
type string {
pattern "[0-9A-F]{2}(-[0-9A-F]{2}){2}";
}
default "00-80-C2";
description
"The Organizationally Unique Identifier (OUI) or Company ID
(CID) to identify the organization defining the
identification method. For identification methods defined
in IEEE Std 802.1CB-2017 the OUI/CID is always 00-80-C2.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
}
leaf destination-mac {
type ieee:mac-address;
description
"Specifies the destination_address parameter that identifies
a packet in an EISS indication primitive. The
ieee:mac-address type has a pattern that allows upper and
lower case letters. To avoid issues with string comparison,
it is suggested to only use Upper Case for the letters in the
hexadecimal numbers. There is still an issue with a
difference between the IETF mac-address definition and the
IEEE mac-address definition, so consider that if implementing
code that compares mac-addresses.";
reference
"9.1.5.1 of IEEE Std 802.1CB-2017";
}
leaf tagged {
type vlan-tag-identification-type;
description
"An enumerated value indicating whether a packet in an EISS
indication or request primitive to the IP Stream
identification function is to have a VLAN tag.";
reference
"9.1.5.2 of IEEE Std 802.1CB-2017";
}
leaf vlan {
type vlan-identifier-type;
description
"Specifies the vlan_identifier parameter that identifies a
packet in an EISS indication primitive. A value of 0
indicates that the frame is not to have a VLAN tag.";
reference
"9.1.5.3 of IEEE Std 802.1CB-2017";
}
leaf ip-source {
type inet:ip-address;
description
"Specifies the IPv4 (RFC 791) or IPv6 (RFC 2460) source
address parameter that must be matched to identify packets
coming up from lower layers. An address of all 0 indicates
that the IP source address is to be ignored on packets
received from lower layers.";
reference
"9.1.5.4 of IEEE Std 802.1CB-2017";
}
leaf ip-destination {
type inet:ip-address;
description
"Specifies the IPv4 (RFC 791) or IPv6 (RFC 2460) destination
address parameter that must be matched to identify packets
coming up from lower layers.";
reference
"9.1.5.5 of IEEE Std 802.1CB-2017";
}
leaf dscp {
type inet:dscp;
description
"Specifies the IPv4 (RFC 791) or IPv6 (RFC 2460)
differentiated services codepoint (DSCP, RFC 2474) that must
be matched to identify packets coming up from the lower
layers. A value of 64 decimal indicates that the DSCP is to
be ignored on packets received from lower layers.";
reference
"9.1.5.6 of IEEE Std 802.1CB-2017";
}
leaf next-protocol {
type enumeration {
enum none {
description
"No protocol is specified";
}
enum udp {
description
"UDP is specified as the next protocol.";
reference
"RFC 768";
}
enum tcp {
description
"TCP is specified as the next protocol.";
reference
"RFC 793";
}
enum sctp {
description
"SCTP is specified as the next protocol.";
reference
"RFC 4960";
}
}
description
"Specifies the IP next protocol parameter that must be
matched to identify packets coming up from lower layers. The
value of this parameter must specify either none, UDP (RFC
768), TCP (RFC 793), or SCTP (RFC 4960). If “none,” then the
tsnCpeIpIdSourcePort and tsnCpeIpIdDestinationPort managed
objects are not used.";
reference
"9.1.5.7 of IEEE Std 802.1CB-2017";
}
leaf source-port {
type inet:port-number;
description
"Specifies the TCP or UDP Source Port parameter that must be
matched to identify packets coming up from lower layers. A
value of 0 indicates that the Source Port number of the
packet is to be ignored on packets received from lower
layers.";
reference
"9.1.5.8 of IEEE Std 802.1CB-2017";
}
leaf destination-port {
type inet:port-number;
description
"Specifies the TCP or UDP Destination Port parameter that
must be matched to identify packets coming up from lower
layers. A value of 0 indicates that the Destination Port
number of the packet is to be ignored on packets received
from lower layers.";
reference
"9.1.5.9 of IEEE Std 802.1CB-2017";
}
}
container organization-specific {
description
"This container allows to select stream identification methods
that are defined by entities outside of IEEE 802.1.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
container identification-type {
description
"The identification type indicating the method used to
identify packets belonging to the Stream. The identification
type contains a type number and an Organizationally Unique
Identifier (OUI) or Company ID (CID) to identify the
organization defining the identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
leaf type-number {
type int32 {
range "256..max";
}
description
"The type number used for an identification method defined
by an entity owning the OUI or CID for this identification
type.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
leaf oui-cid {
type string {
pattern "[0-9A-F]{2}(-[0-9A-F]{2}){2}";
}
description
"The Organizationally Unique Identifier (OUI) or Company ID
(CID) to identify the organization defining the
identification method.";
reference
"9.1.1.6 of IEEE Std 802.1CB-2017";
}
}
}
}
}
augment "/if:interfaces/if:interface/if:statistics" {
description
"The following counters are the counters for stream identification.
All counters are unsigned integers. If used on links faster than
650 000 000 bits per second, they shall be 64 bits in length to
ensure against excessively short wrap times.";
reference
"9.2 of IEEE Std 802.1CB-2017
9.3 of IEEE Std 802.1CB-2017";
container stream-id {
description
"This container contains the per-port as well as the
per-port-per-stream counters for stream identification.";
reference
"9.2 of IEEE Std 802.1CB-2017
9.3 of IEEE Std 802.1CB-2017";
container per-port-counters {
config false;
description
"Contains the per-port counters for stream identification. The
following counters are instantiated for each port on which the
Stream identification function is configured. The counters are
indexed by port number.";
reference
"9.3 of IEEE Std 802.1CB-2017";
leaf input-pkts {
type uint64;
config false;
description
"The tsnCpSidInputPackets counter is incremented once for
each packet identified by any Stream identification function
on this port. Its value equals the sum (modulo the size of
the counters) of all of the tsnCpsSidInputPackets counters on
this same port.";
reference
"9.3.1 of IEEE Std 802.1CB-2017";
}
leaf output-pkts {
type uint64;
config false;
description
"The tsnCpSidOutputPackets counter is incremented once for
each packet passed down the stack by any Stream
identification function on this port. Its value equals the
sum (modulo the size of the counters) of all of the
tsnCpsSidOutputPackets counters on this same port.";
reference
"9.3.2 of IEEE Std 802.1CB-2017";
}
}
list per-port-per-stream-counters {
key "direction-out-facing handle";
config false;
description
"Contains the per-port-per-stream counters for stream
identification. The following counters are instantiated for
each port on which the Stream identification function is
configured. The counters are indexed by port number, facing
(in-facing or out-facing), and stream_handle value
(tsnStreamIdHandle).";
reference
"9.2 of IEEE Std 802.1CB-2017";
leaf direction-out-facing {
type dot1cb-sid-types:direction;
description
"An object indicating whether the counters apply to
out-facing (True) or in-facing (False).";
}
leaf handle {
type leafref {
path '/stream-identity/handle';
}
description
"The according tsnStreamIdHandle for these counters.";
}
leaf input-pkts {
type uint64;
description
"The tsnCpsSidInputPackets counter is incremented once for
each packet identified by the Stream identification function.";
reference
"9.2.1 of IEEE Std 802.1CB-2017";
}
leaf output-pkts {
type uint64;
description
"The tsnCpsSidOutputPackets counter is incremented once for
each packet passed down the stack by the Stream
identification function.";
reference
"9.2.2 of IEEE Std 802.1CB-2017";
}
}
}
}
}

315
standard/ieee/ieee802-dot1q-ats.yang

@ -0,0 +1,315 @@ @@ -0,0 +1,315 @@
module ieee802-dot1q-ats {
yang-version "1.1";
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1q-ats;
prefix ats;
import ietf-yang-types {
prefix yang;
}
import ietf-interfaces {
prefix if;
}
import ieee802-dot1q-types {
prefix dot1qtypes;
}
import ieee802-dot1q-bridge {
prefix dot1q;
}
import ieee802-dot1q-stream-filters-gates {
prefix sfsg;
}
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://ieee802.org/1/
WG-EMail: stds-802-1-l@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
Piscataway, NJ 08854
USA
E-mail: stds-802-1-chairs@ieee.org";
description
"This module provides management of 802.1Q bridge components that support
Asynchronous Traffic Shaping (ATS).";
revision 2020-11-06 {
description
"Published as part of IEEE Std 802.1Qcr-2020.
Initial version.";
reference
"IEEE Std 802.1Qcr-2020, Bridges and Bridged Networks -
Asynchronous Traffic Shaping.";
}
typedef scheduler-ref-type {
type leafref {
path
'/dot1q:bridges'+
'/dot1q:bridge'+
'/dot1q:component'+
'/ats:schedulers'+
'/ats:scheduler-instance-table'+
'/ats:scheduler-instance-id';
}
description
"This type is used to refer to an ATS scheduler instance.";
}
typedef scheduler-group-ref-type {
type leafref {
path
'/dot1q:bridges'+
'/dot1q:bridge'+
'/dot1q:component'+
'/ats:scheduler-groups'+
'/ats:scheduler-group-instance-table'+
'/ats:scheduler-group-instance-id';
}
description
"This type is used to refer to an ATS scheduler group instance.";
}
augment
"/dot1q:bridges"+
"/dot1q:bridge"+
"/dot1q:component"+
"/sfsg:stream-filters"+
"/sfsg:stream-filter-instance-table" {
description
"Augments the Bridge component stream filter for ATS schedulers.";
container scheduler {
description
"Enapsulates ATS scheduler nodes.";
leaf scheduler-ref {
type ats:scheduler-ref-type;
description
"A reference to the ATS scheduler associated with this stream
filter.";
}
leaf scheduler-enable {
type boolean;
default "false";
description
"If TRUE, this stream filter has an associated ATS scheduler
referenced by scheduler-ref. If FALSE, no ATS scheduler is
associated with this stream filter (scheduler-ref is ignored).";
}
}
}
augment "/if:interfaces/if:interface/dot1q:bridge-port" {
description
"Augments Bridge Ports by ATS per-Port parameters.";
container ats-port-parameters {
description
"This container comprises all ATS per-Port parameters.";
leaf discarded-frames-count {
type yang:counter64;
config false;
description
"A counter of frames discarded by ATS scheduler instances
associated with the Bridge Port.";
reference
"12.31.7.3 of IEEE Std 802.1Qcr-2020";
}
}
}
augment "/dot1q:bridges/dot1q:bridge/dot1q:component" {
description
"Augments the Bridge component by
a) ATS schedulers
b) ATS scheduler groups";
container schedulers {
description
"This container comprises all nodes related to an ATS schedulers.";
list scheduler-instance-table {
key "scheduler-instance-id";
description
"Each list entry comprises a set of parameters that defines a
single ATS scheduler instance, as detailed in Table 12-33.";
reference
"12.31.5 of IEEE Std 802.1Qcr-2020";
leaf scheduler-instance-id {
type uint32;
mandatory true;
description
"A unique index identifying this ATS scheduler instance.";
reference
"12.31.5.1 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
}
leaf committed-information-rate {
type uint64;
units "bits/second";
mandatory true;
description
"The committed information rate parameter of this ATS scheduler
instance.";
reference
"12.31.5.3 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
}
leaf committed-burst-size {
type uint32;
units "bits";
mandatory true;
description
"The committed burst size parameter of this ATS scheduler
instance.";
reference
"12.31.5.2 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
}
leaf scheduler-group-ref {
type ats:scheduler-group-ref-type;
mandatory true;
description
"A reference to the scheduler group (12.32.5) associated with
this ATS scheduler instance. Multiple ATS scheduler instances
can be associated to one scheduler group, as detailed in
8.6.5.6.";
reference
"12.31.6 of IEEE Std 802.1Qcr-2020";
}
}
leaf max-scheduler-instances {
type uint32;
config false;
description
"The maximum number of ATS scheduler instances supported by this
Bridge component.";
reference
"12.31.1.5 of IEEE Std 802.1Qcr-2020";
}
}
container scheduler-groups {
description
"This container comprises all ATS scheduler group related nodes.";
list scheduler-group-instance-table {
key "scheduler-group-instance-id";
description
"Each list entry comprises a set of parameters that defines a
single ATS scheduler group instance.";
reference
"12.31.6 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
leaf scheduler-group-instance-id {
type uint32;
description
"A unique index identifying this ATS scheduler group instance.";
reference
"12.31.6.1 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
}
leaf max-residence-time {
type uint32;
units "nanoseconds";
mandatory true;
description
"The maximum residence time parameter of the ATS scheduler
group.";
reference
"8.6.11.2.13 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
}
}
leaf max-scheduler-group-instances {
type uint32;
config false;
description
"The maximum number of ATS scheduler group instances supported by
this Bridge component.";
reference
"12.31.1.6 of IEEE Std 802.1Qcr-2020
8.6.5.6 of IEEE Std 802.1Qcr-2020";
}
container scheduler-timing-characteristics {
description
"This container comprises all ATS scheduler timing
characteristics related nodes.";
list scheduler-timing-characteristics-table {
key "reception-port transmission-port";
config false;
description
"Each list entry comprises the timing characteristics of a
reception Port transmission Port pair, as detailed in Table
12-36.";
reference
"12.31.8 of IEEE Std 802.1Qcr-2020
8.6.11 of IEEE Std 802.1Qcr-2020";
leaf reception-port {
type dot1qtypes:port-number-type;
config false;
mandatory true;
description
"A reference to the associated reception Port.";
reference
"12.31.8.1 of IEEE Std 802.1Qcr-2020";
}
leaf transmission-port {
type dot1qtypes:port-number-type;
config false;
mandatory true;
description
"A reference to the associated transmission Port.";
reference
"12.31.8.2 of IEEE Std 802.1Qcr-2020";
}
leaf clock-offset-variation-max {
type uint32;
units "nanoseconds";
config false;
mandatory true;
description
"The maximum clock offset variation associated with the
reception Port transmission Port pair.";
reference
"12.31.8.3 of IEEE Std 802.1Qcr-2020";
}
leaf clock-rate-deviation-max {
type uint32;
units "ppm";
config false;
mandatory true;
description
"The maximum clock rate deviation associated with the
reception Port transmission Port pair.";
reference
"12.31.8.4 of IEEE Std 802.1Qcr-2020";
}
leaf arrival-recognition-delay-max {
type uint32;
units "nanoseconds";
config false;
mandatory true;
description
"The maximum arrival time recognition delay associated with
the reception Port transmission Port pair.";
reference
"12.31.8.5 of IEEE Std 802.1Qcr-2020";
}
leaf processing-delay-min {
type uint32;
units "nanoseconds";
config false;
mandatory true;
description
"The minimum processing delay associated with the reception
Port transmission Port pair.";
reference
"12.31.8.6 of IEEE Std 802.1Qcr-2020";
}
leaf processing-delay-max {
type uint32;
units "nanoseconds";
config false;
mandatory true;
description
"The maximum processing delay associated with the reception
Port transmission Port pair.";
reference
"12.31.8.7 of IEEE Std 802.1Qcr-2020";
}
}
}
}
}
}

1777
standard/ieee/ieee802-dot1q-bridge.yang

File diff suppressed because it is too large Load Diff

151
standard/ieee/ieee802-dot1q-preemption.yang

@ -0,0 +1,151 @@ @@ -0,0 +1,151 @@
module ieee802-dot1q-preemption {
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1q-preemption;
prefix preempt;
import ieee802-dot1q-types {
prefix dot1q-types;
}
import ietf-interfaces {
prefix if;
}
import ieee802-dot1q-bridge {
prefix dot1q;
}
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://www.ieee802.org/1/
WG-EMail: stds-802-1-L@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
P.O. Box 1331
Piscataway
NJ 08855-1331
USA
E-mail: STDS-802-1-L@IEEE.ORG";
description
"This module provides for management of IEEE Std 802.1Q Bridges
that support Frame Preemption.";
revision 2020-07-07 {
description
"Published as part of IEEE Std 802.1Qcw.
Initial version.";
reference
"IEEE Std 802.1Qcw - Bridges and Bridged Networks Amendment:
YANG Data Models for Scheduled Traffic, Frame Preemption, and
Per-Stream Filtering and Policing.";
}
feature frame-preemption {
description
"Frame preemption supported.";
reference
"IEEE Std 802.1Q-2018";
}
augment "/if:interfaces/if:interface/dot1q:bridge-port" {
if-feature "frame-preemption";
description
"Augment bridge-port with Frame Preemption configuration.";
container frame-preemption-parameters {
description
"A table containing a set of frame preemption parameters, one
for each Port. All writeable objects in this table must be
persistent over power up restart/reboot.";
reference
"12.30.1 of IEEE Std 802.1Q-2018";
list frame-preemption-status-table {
key "priority";
description
"The framePreemptionStatusTable consists of 8
framePreemptionAdminStatus values, one per priority";
reference
"12.30.1.1 of IEEE Std 802.1Q-2018";
leaf priority {
type dot1q-types:priority-type;
description
"Priority.";
}
leaf frame-preemption-status {
type enumeration {
enum express {
description
"Frames queued for the priority are to be transmitted
using the express service for the Port.";
}
enum preemptible {
description
"Frames queued for the priority are to be transmitted
using the preemptible service for the Port and
preemption is enabled for the Port.";
}
}
default "express";
description
"The value of the framePreemptionAdminStatus parameter for
the traffic class. The default value of the
framePreemptionAdminStatus parameter is express. The
value of this object must be retained across
reinitializations of the management system.";
reference
"12.30.1.1.1 of IEEE Std 802.1Q-2018";
}
}
leaf hold-advance {
type uint32;
units "nanoseconds";
config false;
description
"The value of the holdAdvance parameter for the Port in
nanoseconds. There is no default value; the holdAdvance is a
property of the underlying MAC.";
reference
"12.30.1.2 of IEEE Std 802.1Q-2018";
}
leaf release-advance {
type uint32;
units "nanoseconds";
config false;
description
"The value of the releaseAdvance parameter for the Port in
nanoseconds. There is no default value; the releaseAdvance
is a property of the underlying MAC.";
reference
"12.30.1.3 of IEEE Std 802.1Q-2018";
}
leaf preemption-active {
type boolean;
config false;
description
"TRUE if preemption is both supported by the MAC and
currently active.";
reference
"12.30.1.4 of IEEE Std 802.1Q-2018";
}
leaf hold-request {
type enumeration {
enum hold {
value 1;
description
"A hold request has been issued to the MAC.";
}
enum release {
value 2;
description
"A release request has been issued to the MAC.";
}
}
config false;
description
"The value of the holdRequest parameter for the Port, either
hold (1) or release (2). The value of this object is release
(2) on system initialization.";
reference
"12.30.1.5 of IEEE Std 802.1Q-2018";
}
}
}
}

385
standard/ieee/ieee802-dot1q-stream-filters-gates.yang

@ -0,0 +1,385 @@ @@ -0,0 +1,385 @@
module ieee802-dot1q-stream-filters-gates {
yang-version "1.1";
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1q-stream-filters-gates;
prefix sfsg;
import ieee802-dot1q-bridge {
prefix dot1q;
}
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://ieee802.org/1/
WG-EMail: stds-802-1-l@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
Piscataway, NJ 08854
USA
E-mail: stds-802-1-chairs@ieee.org";
description
"This module provides management of 802.1Q bridge components that support
Stream Filters and Stream Gates.";
revision 2020-11-06 {
description
"Published as part of IEEE Std 802.1Qcr-2020.
Initial version.";
reference
"IEEE Std 802.1Qcr-2020, Bridges and Bridged Networks -
Asynchronous Traffic Shaping.";
}
feature closed-gate-state {
description
"The bridge component supports gate state closed.";
reference
"IEEE Std 802.1Qcr-2020";
}
/* Types and groupings */
typedef priority-spec-type {
type enumeration {
enum zero {
value 0;
description
"Priority 0";
}
enum one {
value 1;
description
"Priority 1";
}
enum two {
value 2;
description
"Priority 2";
}
enum three {
value 3;
description
"Priority 3";
}
enum four {
value 4;
description
"Priority 4";
}
enum five {
value 5;
description
"Priority 5";
}
enum six {
value 6;
description
"Priority 6";
}
enum seven {
value 7;
description
"Priority 7";
}
enum wildcard {
description
"wildcard value";
}
}
}
typedef ipv-spec-type {
type enumeration {
enum zero {
value 0;
description
"Priority 0";
}
enum one {
value 1;
description
"Priority 1";
}
enum two {
value 2;
description
"Priority 2";
}
enum three {
value 3;
description
"Priority 3";
}
enum four {
value 4;
description
"Priority 4";
}
enum five {
value 5;
description
"Priority 5";
}
enum six {
value 6;
description
"Priority 6";
}
enum seven {
value 7;
description
"Priority 7";
}
enum null {
description
"null value";
}
}
description
"An IPV can be either of the following:
1) The null value. For a frame that passes through the gate, the
priority value associated with the frame is used to determine
the frame’s traffic class, using the Traffic Class Table as
specified in 8.6.6.
2) An internal priority value. For a frame that passes through the
gate, the IPV is used, in place of the priority value
associated with the frame, to determine the frame’s traffic
class, using the Traffic Class Table as specified in 8.6.6.";
reference
"8.6.5.2 of IEEE Std 802.1Qcr-2020";
}
typedef gate-state-value-type {
type enumeration {
enum closed {
description
"Gate closed";
}
enum open {
description
"Gate open";
}
}
description
"The gate-state-value-type indicates a gate state, open or closed,
for the stream gate.";
reference
"12.31.3.2.1 of IEEE Std 802.1Qcr-2020";
}
typedef stream-gate-ref {
type leafref {
path
'/dot1q:bridges'+
'/dot1q:bridge'+
'/dot1q:component'+
'/sfsg:stream-gates'+
'/sfsg:stream-gate-instance-table'+
'/sfsg:stream-gate-instance-id';
}
description
"This type is used to refer to a stream gate instance.";
}
augment "/dot1q:bridges/dot1q:bridge/dot1q:component" {
description
"Augments the Bridge component with stream filters and stream gates.";
container stream-filters {
description
"This container encapsulates all nodes related to stream bilters.";
reference
"12.31.1 of IEEE Std 802.1Qcr-2020
12.31.2 of IEEE Std 802.1Qcr-2020
12.31.3 of IEEE Std 802.1Qcr-2020";
list stream-filter-instance-table {
key "stream-filter-instance-id";
description
"Each list entry contains a set of parameters that defines a
single stream filter (8.6.5.1) with associated maximum SDU size
filtering (8.6.5.3.1), as detailed in Table 12-32. Entries can be
created or removed dynamically in implementations that support
dynamic configuration of stream filters. The value of the
stream-handle-spec and priority-spec parameters associated with a
received frame determine which stream filter is selected by the
frame, and therefore what combination of filtering and policing
actions is applied to the frame. If the stream-handle-spec and
priority-spec parameters associated with a received frame match
more than one stream filter, the stream filter that is selected
is the one that appears earliest in the ordered list. If a
received frame’s stream-handle-spec and priority-spec does not
match any of the stream filters in the list, the frame is
processed as if stream filters and stream gates would not be
supported.";
reference
"12.31.2 of IEEE Std 802.1Qcr-2020";
leaf stream-filter-instance-id {
type uint32;
mandatory true;
description
"An integer index value that determines the place of the stream
filter in the ordered list of stream filter instances. The
values are ordered according to their integer value; smaller
values appear earlier in the ordered list.";
reference
"12.31.2.1 of IEEE Std 802.1Qcr-2020";
}
choice stream-handle-spec {
description
"The stream_handle specification data type allows either of the
following to be represented:
a) A stream_handle value, represented as an integer.
b) The wildcard value, which matches any frame";
reference
"12.31.2.2 of IEEE Std 802.1Qcr-2020";
/* NOTE: The mapping of the wildcard literal is
* other than in the MIB definition, where
* the wildcard value is mapped to -1.
*/
case wildcard {
leaf wildcard {
type empty;
description
"The stream handle specification represents a wildcard value.";
}
}
case stream-handle {
leaf stream-handle {
type uint32;
mandatory true;
description
"The stream handle specification refers to a stream_handle
value.";
}
}
}
leaf priority-spec {
type priority-spec-type;
mandatory true;
description
"The priority specification data type allows either of the
following to be represented:
a) A priority value, represented as an integer.
b) The wildcard value, which matches any priority.";
reference
"12.31.2.3 of IEEE Std 802.1Qcr-2020";
}
leaf max-sdu-size {
type uint32;
units "octets";
mandatory true;
description
"The allowed maximum SDU size, in octets. If set to 0, any SDU
size is accepted.";
reference
"8.6.5.3.1 of IEEE Std 802.1Qcr-2020";
}
leaf stream-blocked-due-to-oversize-frame-enabled {
type boolean;
default "false";
description
"A value of true indicates that
stream-blocked-due-to-oversize-frame is set to true as soon as
a frame exceeds max-sdu-size.";
reference
"8.6.5.3.1 of IEEE Std 802.1Qcr-2020";
}
leaf stream-blocked-due-to-oversize-frame {
type boolean;
default "false";
description
"Indicates by value true that frames are permanently discarded
as a result of an initial frame exceeding max-sdu-size. The
value of stream-blocked-due-to-oversize-frame can be
administratively reset to false.";
reference
"8.6.5.3.1 of IEEE Std 802.1Qcr-2020";
}
leaf stream-gate-ref {
type stream-gate-ref;
mandatory true;
description
"This node refers to the stream gate (12.31.3) that is
associated with the stream filter. The relationship between
stream filters and stream gates is many to one; a given stream
filter can be associated with only one stream gate, but there
can be multiple stream filters associated with a given stream
gate.";
reference
"12.31.2.4 of IEEE Std 802.1Qcr-2020";
}
}
leaf max-stream-filter-instances {
type uint32;
config false;
description
"The maximum number of stream filter instances supported by this
Bridge component.";
reference
"12.31.1.1 of IEEE Std 802.1Qcr-2020
8.6.5.1 of IEEE Std 802.1Qcr-2020";
}
}
container stream-gates {
description
"This container encapsulates all nodes related to Stream Gates.";
list stream-gate-instance-table {
key "stream-gate-instance-id";
description
"Each list entry contains a set of parameters that defines a
single stream gate (8.6.5.2), as detailed in Table 12-33. Entries
in the table can be created or removed dynamically in
implementations that support dynamic configuration of stream
gates.";
reference
"12.31.3 of IEEE Std 802.1Qcr-2020";
leaf stream-gate-instance-id {
type uint32;
description
"An integer table index that allows the stream gate to be
referenced from Stream Filter Instance Table entries.";
reference
"12.31.2.4 of IEEE Std 802.1Qcr-2020
8.6.5.3 of IEEE Std 802.1Qcr-2020
8.6.5.4 of IEEE Std 802.1Qcr-2020";
}
leaf gate-enable {
type boolean;
default "false";
description
"A Boolean variable that indicates whether the operation of the
state machines is enabled (TRUE) or disabled (FALSE). This
variable is set by management. The default value of this
variable is FALSE.";
reference
"8.6.9.4.14 of IEEE Std 802.1Q-2018";
}
leaf admin-gate-states {
type gate-state-value-type;
default "open";
description
"The administratively set gate state of this gate.";
reference
"12.31.3.2.1 of IEEE Std 802.1Qcr-2020
8.6.10.4 of IEEE Std 802.1Qcr-2020";
}
leaf admin-ipv {
type ipv-spec-type;
default "null";
description
"The administratively set internal priority value
specification.";
reference
"12.31.3.3 of IEEE Std 802.1Qcr-2020
8.6.10.6 of IEEE Std 802.1Qcr-2020
8.6.5.4 of IEEE Std 802.1Qcr-2020";
}
}
leaf max-stream-gate-instances {
type uint32;
config false;
description
"The maximum number of Stream Gate instances supported by this
Bridge component.";
reference
"12.31.1.2 of IEEE Std 802.1Qcr-2020";
}
}
}
}

1477
standard/ieee/ieee802-dot1q-tsn-types.yang

File diff suppressed because it is too large Load Diff

1007
standard/ieee/ieee802-dot1q-types.yang

File diff suppressed because it is too large Load Diff

89
standard/ieee/ieee802-types.yang

@ -0,0 +1,89 @@ @@ -0,0 +1,89 @@
module ieee802-types {
namespace urn:ieee:std:802.1Q:yang:ieee802-types;
prefix ieee;
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://www.ieee802.org/1/
WG-EMail: stds-802-1-L@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
P.O. Box 1331
Piscataway
NJ 08854
USA
E-mail: STDS-802-1-L@IEEE.ORG";
description
"This module contains a collection of generally useful derived
data types for IEEE YANG models.";
revision 2020-10-23 {
description
"New revision date because Qcx project finished.";
reference
"6.3.3.4 of IEEE Std 802.1AS-2020";
}
revision 2019-03-07 {
description
"Adding types to define rational numbers and PTP time.";
reference
"6.3.3.4 of IEEE Std 802.1AS-2020";
}
revision 2018-03-07 {
description
"Published as part of IEEE Std 802.1Q-2018. Initial version.";
reference
"IEEE Std 802.1Q-2018, Bridges and Bridged Networks.";
}
typedef mac-address {
type string {
pattern "[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5}";
}
description
"The mac-address type represents a MAC address in the canonical
format and hexadecimal format specified by IEEE Std 802. The
hexidecimal representation uses uppercase characters.";
reference
"3.1 of IEEE Std 802-2014
8.1 of IEEE Std 802-2014";
}
grouping rational-grouping {
description
"Definition of a non-negative rational number.";
leaf numerator {
type uint32;
description
"Numerator of the rational number.";
}
leaf denominator {
type uint32 {
range "1..4294967295";
}
description
"Denominator of the rational number.";
}
}
grouping ptp-time-grouping {
description
"This grouping specifies a PTP timestamp, represented as a
48-bit unsigned integer number of seconds and a 32-bit unsigned
integer number of nanoseconds.";
reference
"6.3.3.4 of IEEE Std 802.1AS";
leaf seconds {
type uint64;
description
"This is the integer portion of the timestamp in units of
seconds. The upper 16 bits are always zero.";
}
leaf nanoseconds {
type uint32;
description
"This is the fractional portion of the timestamp in units of
nanoseconds. This value is always less than 10^9.";
}
}
}

458
standard/ietf/ietf-inet-types.yang

@ -0,0 +1,458 @@ @@ -0,0 +1,458 @@
module ietf-inet-types {
namespace "urn:ietf:params:xml:ns:yang:ietf-inet-types";
prefix "inet";
organization
"IETF NETMOD (NETCONF Data Modeling Language) Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/netmod/>
WG List: <mailto:netmod@ietf.org>
WG Chair: David Kessens
<mailto:david.kessens@nsn.com>
WG Chair: Juergen Schoenwaelder
<mailto:j.schoenwaelder@jacobs-university.de>
Editor: Juergen Schoenwaelder
<mailto:j.schoenwaelder@jacobs-university.de>";
description
"This module contains a collection of generally useful derived
YANG data types for Internet addresses and related things.
Copyright (c) 2013 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 6991; see
the RFC itself for full legal notices.";
revision 2013-07-15 {
description
"This revision adds the following new data types:
- ip-address-no-zone
- ipv4-address-no-zone
- ipv6-address-no-zone";
reference
"RFC 6991: Common YANG Data Types";
}
revision 2010-09-24 {
description
"Initial revision.";
reference
"RFC 6021: Common YANG Data Types";
}
/*** collection of types related to protocol fields ***/
typedef ip-version {
type enumeration {
enum unknown {
value "0";
description
"An unknown or unspecified version of the Internet
protocol.";
}
enum ipv4 {
value "1";
description
"The IPv4 protocol as defined in RFC 791.";
}
enum ipv6 {
value "2";
description
"The IPv6 protocol as defined in RFC 2460.";
}
}
description
"This value represents the version of the IP protocol.
In the value set and its semantics, this type is equivalent
to the InetVersion textual convention of the SMIv2.";
reference
"RFC 791: Internet Protocol
RFC 2460: Internet Protocol, Version 6 (IPv6) Specification
RFC 4001: Textual Conventions for Internet Network Addresses";
}
typedef dscp {
type uint8 {
range "0..63";
}
description
"The dscp type represents a Differentiated Services Code Point
that may be used for marking packets in a traffic stream.
In the value set and its semantics, this type is equivalent
to the Dscp textual convention of the SMIv2.";
reference
"RFC 3289: Management Information Base for the Differentiated
Services Architecture
RFC 2474: Definition of the Differentiated Services Field
(DS Field) in the IPv4 and IPv6 Headers
RFC 2780: IANA Allocation Guidelines For Values In
the Internet Protocol and Related Headers";
}
typedef ipv6-flow-label {
type uint32 {
range "0..1048575";
}
description
"The ipv6-flow-label type represents the flow identifier or Flow
Label in an IPv6 packet header that may be used to
discriminate traffic flows.
In the value set and its semantics, this type is equivalent
to the IPv6FlowLabel textual convention of the SMIv2.";
reference
"RFC 3595: Textual Conventions for IPv6 Flow Label
RFC 2460: Internet Protocol, Version 6 (IPv6) Specification";
}
typedef port-number {
type uint16 {
range "0..65535";
}
description
"The port-number type represents a 16-bit port number of an
Internet transport-layer protocol such as UDP, TCP, DCCP, or
SCTP. Port numbers are assigned by IANA. A current list of
all assignments is available from <http://www.iana.org/>.
Note that the port number value zero is reserved by IANA. In
situations where the value zero does not make sense, it can
be excluded by subtyping the port-number type.
In the value set and its semantics, this type is equivalent
to the InetPortNumber textual convention of the SMIv2.";
reference
"RFC 768: User Datagram Protocol
RFC 793: Transmission Control Protocol
RFC 4960: Stream Control Transmission Protocol
RFC 4340: Datagram Congestion Control Protocol (DCCP)
RFC 4001: Textual Conventions for Internet Network Addresses";
}
/*** collection of types related to autonomous systems ***/
typedef as-number {
type uint32;
description
"The as-number type represents autonomous system numbers
which identify an Autonomous System (AS). An AS is a set
of routers under a single technical administration, using
an interior gateway protocol and common metrics to route
packets within the AS, and using an exterior gateway
protocol to route packets to other ASes. IANA maintains
the AS number space and has delegated large parts to the
regional registries.
Autonomous system numbers were originally limited to 16
bits. BGP extensions have enlarged the autonomous system
number space to 32 bits. This type therefore uses an uint32
base type without a range restriction in order to support
a larger autonomous system number space.
In the value set and its semantics, this type is equivalent
to the InetAutonomousSystemNumber textual convention of
the SMIv2.";
reference
"RFC 1930: Guidelines for creation, selection, and registration
of an Autonomous System (AS)
RFC 4271: A Border Gateway Protocol 4 (BGP-4)
RFC 4001: Textual Conventions for Internet Network Addresses
RFC 6793: BGP Support for Four-Octet Autonomous System (AS)
Number Space";
}
/*** collection of types related to IP addresses and hostnames ***/
typedef ip-address {
type union {
type inet:ipv4-address;
type inet:ipv6-address;
}
description
"The ip-address type represents an IP address and is IP
version neutral. The format of the textual representation
implies the IP version. This type supports scoped addresses
by allowing zone identifiers in the address format.";
reference
"RFC 4007: IPv6 Scoped Address Architecture";
}
typedef ipv4-address {
type string {
pattern
'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
+ '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
+ '(%[\p{N}\p{L}]+)?';
}
description
"The ipv4-address type represents an IPv4 address in
dotted-quad notation. The IPv4 address may include a zone
index, separated by a % sign.
The zone index is used to disambiguate identical address
values. For link-local addresses, the zone index will
typically be the interface index number or the name of an
interface. If the zone index is not present, the default
zone of the device will be used.
The canonical format for the zone index is the numerical
format";
}
typedef ipv6-address {
type string {
pattern '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}'
+ '((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|'
+ '(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}'
+ '(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))'
+ '(%[\p{N}\p{L}]+)?';
pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|'
+ '((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)'
+ '(%.+)?';
}
description
"The ipv6-address type represents an IPv6 address in full,
mixed, shortened, and shortened-mixed notation. The IPv6
address may include a zone index, separated by a % sign.
The zone index is used to disambiguate identical address
values. For link-local addresses, the zone index will
typically be the interface index number or the name of an
interface. If the zone index is not present, the default
zone of the device will be used.
The canonical format of IPv6 addresses uses the textual
representation defined in Section 4 of RFC 5952. The
canonical format for the zone index is the numerical
format as described in Section 11.2 of RFC 4007.";
reference
"RFC 4291: IP Version 6 Addressing Architecture
RFC 4007: IPv6 Scoped Address Architecture
RFC 5952: A Recommendation for IPv6 Address Text
Representation";
}
typedef ip-address-no-zone {
type union {
type inet:ipv4-address-no-zone;
type inet:ipv6-address-no-zone;
}
description
"The ip-address-no-zone type represents an IP address and is
IP version neutral. The format of the textual representation
implies the IP version. This type does not support scoped
addresses since it does not allow zone identifiers in the
address format.";
reference
"RFC 4007: IPv6 Scoped Address Architecture";
}
typedef ipv4-address-no-zone {
type inet:ipv4-address {
pattern '[0-9\.]*';
}
description
"An IPv4 address without a zone index. This type, derived from
ipv4-address, may be used in situations where the zone is
known from the context and hence no zone index is needed.";
}
typedef ipv6-address-no-zone {
type inet:ipv6-address {
pattern '[0-9a-fA-F:\.]*';
}
description
"An IPv6 address without a zone index. This type, derived from
ipv6-address, may be used in situations where the zone is
known from the context and hence no zone index is needed.";
reference
"RFC 4291: IP Version 6 Addressing Architecture
RFC 4007: IPv6 Scoped Address Architecture
RFC 5952: A Recommendation for IPv6 Address Text
Representation";
}
typedef ip-prefix {
type union {
type inet:ipv4-prefix;
type inet:ipv6-prefix;
}
description
"The ip-prefix type represents an IP prefix and is IP
version neutral. The format of the textual representations
implies the IP version.";
}
typedef ipv4-prefix {
type string {
pattern
'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
+ '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
+ '/(([0-9])|([1-2][0-9])|(3[0-2]))';
}
description
"The ipv4-prefix type represents an IPv4 address prefix.
The prefix length is given by the number following the
slash character and must be less than or equal to 32.
A prefix length value of n corresponds to an IP address
mask that has n contiguous 1-bits from the most
significant bit (MSB) and all other bits set to 0.
The canonical format of an IPv4 prefix has all bits of
the IPv4 address set to zero that are not part of the
IPv4 prefix.";
}
typedef ipv6-prefix {
type string {
pattern '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}'
+ '((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|'
+ '(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}'
+ '(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))'
+ '(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))';
pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|'
+ '((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)'
+ '(/.+)';
}
description
"The ipv6-prefix type represents an IPv6 address prefix.
The prefix length is given by the number following the
slash character and must be less than or equal to 128.
A prefix length value of n corresponds to an IP address
mask that has n contiguous 1-bits from the most
significant bit (MSB) and all other bits set to 0.
The IPv6 address should have all bits that do not belong
to the prefix set to zero.
The canonical format of an IPv6 prefix has all bits of
the IPv6 address set to zero that are not part of the
IPv6 prefix. Furthermore, the IPv6 address is represented
as defined in Section 4 of RFC 5952.";
reference
"RFC 5952: A Recommendation for IPv6 Address Text
Representation";
}
/*** collection of domain name and URI types ***/
typedef domain-name {
type string {
pattern
'((([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.)*'
+ '([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.?)'
+ '|\.';
length "1..253";
}
description
"The domain-name type represents a DNS domain name. The
name SHOULD be fully qualified whenever possible.
Internet domain names are only loosely specified. Section
3.5 of RFC 1034 recommends a syntax (modified in Section
2.1 of RFC 1123). The pattern above is intended to allow
for current practice in domain name use, and some possible
future expansion. It is designed to hold various types of
domain names, including names used for A or AAAA records
(host names) and other records, such as SRV records. Note
that Internet host names have a stricter syntax (described
in RFC 952) than the DNS recommendations in RFCs 1034 and
1123, and that systems that want to store host names in
schema nodes using the domain-name type are recommended to
adhere to this stricter standard to ensure interoperability.
The encoding of DNS names in the DNS protocol is limited
to 255 characters. Since the encoding consists of labels
prefixed by a length bytes and there is a trailing NULL
byte, only 253 characters can appear in the textual dotted
notation.
The description clause of schema nodes using the domain-name
type MUST describe when and how these names are resolved to
IP addresses. Note that the resolution of a domain-name value
may require to query multiple DNS records (e.g., A for IPv4
and AAAA for IPv6). The order of the resolution process and
which DNS record takes precedence can either be defined
explicitly or may depend on the configuration of the
resolver.
Domain-name values use the US-ASCII encoding. Their canonical
format uses lowercase US-ASCII characters. Internationalized
domain names MUST be A-labels as per RFC 5890.";
reference
"RFC 952: DoD Internet Host Table Specification
RFC 1034: Domain Names - Concepts and Facilities
RFC 1123: Requirements for Internet Hosts -- Application
and Support
RFC 2782: A DNS RR for specifying the location of services
(DNS SRV)
RFC 5890: Internationalized Domain Names in Applications
(IDNA): Definitions and Document Framework";
}
typedef host {
type union {
type inet:ip-address;
type inet:domain-name;
}
description
"The host type represents either an IP address or a DNS
domain name.";
}
typedef uri {
type string;
description
"The uri type represents a Uniform Resource Identifier
(URI) as defined by STD 66.
Objects using the uri type MUST be in US-ASCII encoding,
and MUST be normalized as described by RFC 3986 Sections
6.2.1, 6.2.2.1, and 6.2.2.2. All unnecessary
percent-encoding is removed, and all case-insensitive
characters are set to lowercase except for hexadecimal
digits, which are normalized to uppercase as described in
Section 6.2.2.1.
The purpose of this normalization is to help provide
unique URIs. Note that this normalization is not
sufficient to provide uniqueness. Two URIs that are
textually distinct after this normalization may still be
equivalent.
Objects using the uri type may restrict the schemes that
they permit. For example, 'data:' and 'urn:' schemes
might not be appropriate.
A zero-length URI is not a valid URI. This can be used to
express 'URI absent' where required.
In the value set and its semantics, this type is equivalent
to the Uri SMIv2 textual convention defined in RFC 5017.";
reference
"RFC 3986: Uniform Resource Identifier (URI): Generic Syntax
RFC 3305: Report from the Joint W3C/IETF URI Planning Interest
Group: Uniform Resource Identifiers (URIs), URLs,
and Uniform Resource Names (URNs): Clarifications
and Recommendations
RFC 5017: MIB Textual Conventions for Uniform Resource
Identifiers (URIs)";
}
}

1123
standard/ietf/ietf-interfaces.yang

File diff suppressed because it is too large Load Diff

876
standard/ietf/ietf-ip@2018-02-22.yang

@ -0,0 +1,876 @@ @@ -0,0 +1,876 @@
module ietf-ip {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-ip";
prefix ip;
import ietf-interfaces {
prefix if;
}
import ietf-inet-types {
prefix inet;
}
import ietf-yang-types {
prefix yang;
}
organization
"IETF NETMOD (Network Modeling) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/netmod/>
WG List: <mailto:netmod@ietf.org>
Editor: Martin Bjorklund
<mailto:mbj@tail-f.com>";
description
"This module contains a collection of YANG definitions for
managing IP implementations.
Copyright (c) 2018 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 8344; see
the RFC itself for full legal notices.";
revision 2018-02-22 {
description
"Updated to support NMDA.";
reference
"RFC 8344: A YANG Data Model for IP Management";
}
revision 2014-06-16 {
description
"Initial revision.";
reference
"RFC 7277: A YANG Data Model for IP Management";
}
/*
* Features
*/
feature ipv4-non-contiguous-netmasks {
description
"Indicates support for configuring non-contiguous
subnet masks.";
}
feature ipv6-privacy-autoconf {
description
"Indicates support for privacy extensions for stateless address
autoconfiguration in IPv6.";
reference
"RFC 4941: Privacy Extensions for Stateless Address
Autoconfiguration in IPv6";
}
/*
* Typedefs
*/
typedef ip-address-origin {
type enumeration {
enum other {
description
"None of the following.";
}
enum static {
description
"Indicates that the address has been statically
configured -- for example, using the Network Configuration
Protocol (NETCONF) or a command line interface.";
}
enum dhcp {
description
"Indicates an address that has been assigned to this
system by a DHCP server.";
}
enum link-layer {
description
"Indicates an address created by IPv6 stateless
autoconfiguration that embeds a link-layer address in its
interface identifier.";
}
enum random {
description
"Indicates an address chosen by the system at
random, e.g., an IPv4 address within 169.254/16, a
temporary address as described in RFC 4941, or a
semantically opaque address as described in RFC 7217.";
reference
"RFC 4941: Privacy Extensions for Stateless Address
Autoconfiguration in IPv6
RFC 7217: A Method for Generating Semantically Opaque
Interface Identifiers with IPv6 Stateless
Address Autoconfiguration (SLAAC)";
}
}
description
"The origin of an address.";
}
typedef neighbor-origin {
type enumeration {
enum other {
description
"None of the following.";
}
enum static {
description
"Indicates that the mapping has been statically
configured -- for example, using NETCONF or a command line
interface.";
}
enum dynamic {
description
"Indicates that the mapping has been dynamically resolved
using, for example, IPv4 ARP or the IPv6 Neighbor
Discovery protocol.";
}
}
description
"The origin of a neighbor entry.";
}
/*
* Data nodes
*/
augment "/if:interfaces/if:interface" {
description
"IP parameters on interfaces.
If an interface is not capable of running IP, the server
must not allow the client to configure these parameters.";
container ipv4 {
presence
"Enables IPv4 unless the 'enabled' leaf
(which defaults to 'true') is set to 'false'";
description
"Parameters for the IPv4 address family.";
leaf enabled {
type boolean;
default true;
description
"Controls whether IPv4 is enabled or disabled on this
interface. When IPv4 is enabled, this interface is
connected to an IPv4 stack, and the interface can send
and receive IPv4 packets.";
}
leaf forwarding {
type boolean;
default false;
description
"Controls IPv4 packet forwarding of datagrams received by,
but not addressed to, this interface. IPv4 routers
forward datagrams. IPv4 hosts do not (except those
source-routed via the host).";
}
leaf mtu {
type uint16 {
range "68..max";
}
units "octets";
description
"The size, in octets, of the largest IPv4 packet that the
interface will send and receive.
The server may restrict the allowed values for this leaf,
depending on the interface's type.
If this leaf is not configured, the operationally used MTU
depends on the interface's type.";
reference
"RFC 791: Internet Protocol";
}
list address {
key "ip";
description
"The list of IPv4 addresses on the interface.";
leaf ip {
type inet:ipv4-address-no-zone;
description
"The IPv4 address on the interface.";
}
choice subnet {
mandatory true;
description
"The subnet can be specified as a prefix length or,
if the server supports non-contiguous netmasks, as
a netmask.";
leaf prefix-length {
type uint8 {
range "0..32";
}
description
"The length of the subnet prefix.";
}
leaf netmask {
if-feature ipv4-non-contiguous-netmasks;
type yang:dotted-quad;
description
"The subnet specified as a netmask.";
}
}
leaf origin {
type ip-address-origin;
config false;
description
"The origin of this address.";
}
}
list neighbor {
key "ip";
description
"A list of mappings from IPv4 addresses to
link-layer addresses.
Entries in this list in the intended configuration are
used as static entries in the ARP Cache.
In the operational state, this list represents the ARP
Cache.";
reference
"RFC 826: An Ethernet Address Resolution Protocol";
leaf ip {
type inet:ipv4-address-no-zone;
description
"The IPv4 address of the neighbor node.";
}
leaf link-layer-address {
type yang:phys-address;
mandatory true;
description
"The link-layer address of the neighbor node.";
}
leaf origin {
type neighbor-origin;
config false;
description
"The origin of this neighbor entry.";
}
}
}
container ipv6 {
presence
"Enables IPv6 unless the 'enabled' leaf
(which defaults to 'true') is set to 'false'";
description
"Parameters for the IPv6 address family.";
leaf enabled {
type boolean;
default true;
description
"Controls whether IPv6 is enabled or disabled on this
interface. When IPv6 is enabled, this interface is
connected to an IPv6 stack, and the interface can send
and receive IPv6 packets.";
}
leaf forwarding {
type boolean;
default false;
description
"Controls IPv6 packet forwarding of datagrams received by,
but not addressed to, this interface. IPv6 routers
forward datagrams. IPv6 hosts do not (except those
source-routed via the host).";
reference
"RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
Section 6.2.1, IsRouter";
}
leaf mtu {
type uint32 {
range "1280..max";
}
units "octets";
description
"The size, in octets, of the largest IPv6 packet that the
interface will send and receive.
The server may restrict the allowed values for this leaf,
depending on the interface's type.
If this leaf is not configured, the operationally used MTU
depends on the interface's type.";
reference
"RFC 8200: Internet Protocol, Version 6 (IPv6)
Specification
Section 5";
}
list address {
key "ip";
description
"The list of IPv6 addresses on the interface.";
leaf ip {
type inet:ipv6-address-no-zone;
description
"The IPv6 address on the interface.";
}
leaf prefix-length {
type uint8 {
range "0..128";
}
mandatory true;
description
"The length of the subnet prefix.";
}
leaf origin {
type ip-address-origin;
config false;
description
"The origin of this address.";
}
leaf status {
type enumeration {
enum preferred {
description
"This is a valid address that can appear as the
destination or source address of a packet.";
}
enum deprecated {
description
"This is a valid but deprecated address that should
no longer be used as a source address in new
communications, but packets addressed to such an
address are processed as expected.";
}
enum invalid {
description
"This isn't a valid address, and it shouldn't appear
as the destination or source address of a packet.";
}
enum inaccessible {
description
"The address is not accessible because the interface
to which this address is assigned is not
operational.";
}
enum unknown {
description
"The status cannot be determined for some reason.";
}
enum tentative {
description
"The uniqueness of the address on the link is being
verified. Addresses in this state should not be
used for general communication and should only be
used to determine the uniqueness of the address.";
}
enum duplicate {
description
"The address has been determined to be non-unique on
the link and so must not be used.";
}
enum optimistic {
description
"The address is available for use, subject to
restrictions, while its uniqueness on a link is
being verified.";
}
}
config false;
description
"The status of an address. Most of the states correspond
to states from the IPv6 Stateless Address
Autoconfiguration protocol.";
reference
"RFC 4293: Management Information Base for the
Internet Protocol (IP)
- IpAddressStatusTC
RFC 4862: IPv6 Stateless Address Autoconfiguration";
}
}
list neighbor {
key "ip";
description
"A list of mappings from IPv6 addresses to
link-layer addresses.
Entries in this list in the intended configuration are
used as static entries in the Neighbor Cache.
In the operational state, this list represents the
Neighbor Cache.";
reference
"RFC 4861: Neighbor Discovery for IP version 6 (IPv6)";
leaf ip {
type inet:ipv6-address-no-zone;
description
"The IPv6 address of the neighbor node.";
}
leaf link-layer-address {
type yang:phys-address;
mandatory true;
description
"The link-layer address of the neighbor node.
In the operational state, if the neighbor's 'state' leaf
is 'incomplete', this leaf is not instantiated.";
}
leaf origin {
type neighbor-origin;
config false;
description
"The origin of this neighbor entry.";
}
leaf is-router {
type empty;
config false;
description
"Indicates that the neighbor node acts as a router.";
}
leaf state {
type enumeration {
enum incomplete {
description
"Address resolution is in progress, and the
link-layer address of the neighbor has not yet been
determined.";
}
enum reachable {
description
"Roughly speaking, the neighbor is known to have been
reachable recently (within tens of seconds ago).";
}
enum stale {
description
"The neighbor is no longer known to be reachable, but
until traffic is sent to the neighbor no attempt
should be made to verify its reachability.";
}
enum delay {
description
"The neighbor is no longer known to be reachable, and
traffic has recently been sent to the neighbor.
Rather than probe the neighbor immediately, however,
delay sending probes for a short while in order to
give upper-layer protocols a chance to provide
reachability confirmation.";
}
enum probe {
description
"The neighbor is no longer known to be reachable, and
unicast Neighbor Solicitation probes are being sent
to verify reachability.";
}
}
config false;
description
"The Neighbor Unreachability Detection state of this
entry.";
reference
"RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
Section 7.3.2";
}
}
leaf dup-addr-detect-transmits {
type uint32;
default 1;
description
"The number of consecutive Neighbor Solicitation messages
sent while performing Duplicate Address Detection on a
tentative address. A value of zero indicates that
Duplicate Address Detection is not performed on
tentative addresses. A value of one indicates a single
transmission with no follow-up retransmissions.";
reference
"RFC 4862: IPv6 Stateless Address Autoconfiguration";
}
container autoconf {
description
"Parameters to control the autoconfiguration of IPv6
addresses, as described in RFC 4862.";
reference
"RFC 4862: IPv6 Stateless Address Autoconfiguration";
leaf create-global-addresses {
type boolean;
default true;
description
"If enabled, the host creates global addresses as
described in RFC 4862.";
reference
"RFC 4862: IPv6 Stateless Address Autoconfiguration
Section 5.5";
}
leaf create-temporary-addresses {
if-feature ipv6-privacy-autoconf;
type boolean;
default false;
description
"If enabled, the host creates temporary addresses as
described in RFC 4941.";
reference
"RFC 4941: Privacy Extensions for Stateless Address
Autoconfiguration in IPv6";
}
leaf temporary-valid-lifetime {
if-feature ipv6-privacy-autoconf;
type uint32;
units "seconds";
default 604800;
description
"The time period during which the temporary address
is valid.";
reference
"RFC 4941: Privacy Extensions for Stateless Address
Autoconfiguration in IPv6
- TEMP_VALID_LIFETIME";
}
leaf temporary-preferred-lifetime {
if-feature ipv6-privacy-autoconf;
type uint32;
units "seconds";
default 86400;
description
"The time period during which the temporary address is
preferred.";
reference
"RFC 4941: Privacy Extensions for Stateless Address
Autoconfiguration in IPv6
- TEMP_PREFERRED_LIFETIME";
}
}
}
}
/*
* Legacy operational state data nodes
*/
augment "/if:interfaces-state/if:interface" {
status deprecated;
description
"Data nodes for the operational state of IP on interfaces.";
container ipv4 {
presence
"Present if IPv4 is enabled on this interface";
config false;
status deprecated;
description
"Interface-specific parameters for the IPv4 address family.";
leaf forwarding {
type boolean;
status deprecated;
description
"Indicates whether IPv4 packet forwarding is enabled or
disabled on this interface.";
}
leaf mtu {
type uint16 {
range "68..max";
}
units "octets";
status deprecated;
description
"The size, in octets, of the largest IPv4 packet that the
interface will send and receive.";
reference
"RFC 791: Internet Protocol";
}
list address {
key "ip";
status deprecated;
description
"The list of IPv4 addresses on the interface.";
leaf ip {
type inet:ipv4-address-no-zone;
status deprecated;
description
"The IPv4 address on the interface.";
}
choice subnet {
status deprecated;
description
"The subnet can be specified as a prefix length or,
if the server supports non-contiguous netmasks, as
a netmask.";
leaf prefix-length {
type uint8 {
range "0..32";
}
status deprecated;
description
"The length of the subnet prefix.";
}
leaf netmask {
if-feature ipv4-non-contiguous-netmasks;
type yang:dotted-quad;
status deprecated;
description
"The subnet specified as a netmask.";
}
}
leaf origin {
type ip-address-origin;
status deprecated;
description
"The origin of this address.";
}
}
list neighbor {
key "ip";
status deprecated;
description
"A list of mappings from IPv4 addresses to
link-layer addresses.
This list represents the ARP Cache.";
reference
"RFC 826: An Ethernet Address Resolution Protocol";
leaf ip {
type inet:ipv4-address-no-zone;
status deprecated;
description
"The IPv4 address of the neighbor node.";
}
leaf link-layer-address {
type yang:phys-address;
status deprecated;
description
"The link-layer address of the neighbor node.";
}
leaf origin {
type neighbor-origin;
status deprecated;
description
"The origin of this neighbor entry.";
}
}
}
container ipv6 {
presence
"Present if IPv6 is enabled on this interface";
config false;
status deprecated;
description
"Parameters for the IPv6 address family.";
leaf forwarding {
type boolean;
default false;
status deprecated;
description
"Indicates whether IPv6 packet forwarding is enabled or
disabled on this interface.";
reference
"RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
Section 6.2.1, IsRouter";
}
leaf mtu {
type uint32 {
range "1280..max";
}
units "octets";
status deprecated;
description
"The size, in octets, of the largest IPv6 packet that the
interface will send and receive.";
reference
"RFC 8200: Internet Protocol, Version 6 (IPv6)
Specification
Section 5";
}
list address {
key "ip";
status deprecated;
description
"The list of IPv6 addresses on the interface.";
leaf ip {
type inet:ipv6-address-no-zone;
status deprecated;
description
"The IPv6 address on the interface.";
}
leaf prefix-length {
type uint8 {
range "0..128";
}
mandatory true;
status deprecated;
description
"The length of the subnet prefix.";
}
leaf origin {
type ip-address-origin;
status deprecated;
description
"The origin of this address.";
}
leaf status {
type enumeration {
enum preferred {
description
"This is a valid address that can appear as the
destination or source address of a packet.";
}
enum deprecated {
description
"This is a valid but deprecated address that should
no longer be used as a source address in new
communications, but packets addressed to such an
address are processed as expected.";
}
enum invalid {
description
"This isn't a valid address, and it shouldn't appear
as the destination or source address of a packet.";
}
enum inaccessible {
description
"The address is not accessible because the interface
to which this address is assigned is not
operational.";
}
enum unknown {
description
"The status cannot be determined for some reason.";
}
enum tentative {
description
"The uniqueness of the address on the link is being
verified. Addresses in this state should not be
used for general communication and should only be
used to determine the uniqueness of the address.";
}
enum duplicate {
description
"The address has been determined to be non-unique on
the link and so must not be used.";
}
enum optimistic {
description
"The address is available for use, subject to
restrictions, while its uniqueness on a link is
being verified.";
}
}
status deprecated;
description
"The status of an address. Most of the states correspond
to states from the IPv6 Stateless Address
Autoconfiguration protocol.";
reference
"RFC 4293: Management Information Base for the
Internet Protocol (IP)
- IpAddressStatusTC
RFC 4862: IPv6 Stateless Address Autoconfiguration";
}
}
list neighbor {
key "ip";
status deprecated;
description
"A list of mappings from IPv6 addresses to
link-layer addresses.
This list represents the Neighbor Cache.";
reference
"RFC 4861: Neighbor Discovery for IP version 6 (IPv6)";
leaf ip {
type inet:ipv6-address-no-zone;
status deprecated;
description
"The IPv6 address of the neighbor node.";
}
leaf link-layer-address {
type yang:phys-address;
status deprecated;
description
"The link-layer address of the neighbor node.";
}
leaf origin {
type neighbor-origin;
status deprecated;
description
"The origin of this neighbor entry.";
}
leaf is-router {
type empty;
status deprecated;
description
"Indicates that the neighbor node acts as a router.";
}
leaf state {
type enumeration {
enum incomplete {
description
"Address resolution is in progress, and the
link-layer address of the neighbor has not yet been
determined.";
}
enum reachable {
description
"Roughly speaking, the neighbor is known to have been
reachable recently (within tens of seconds ago).";
}
enum stale {
description
"The neighbor is no longer known to be reachable, but
until traffic is sent to the neighbor no attempt
should be made to verify its reachability.";
}
enum delay {
description
"The neighbor is no longer known to be reachable, and
traffic has recently been sent to the neighbor.
Rather than probe the neighbor immediately, however,
delay sending probes for a short while in order to
give upper-layer protocols a chance to provide
reachability confirmation.";
}
enum probe {
description
"The neighbor is no longer known to be reachable, and
unicast Neighbor Solicitation probes are being sent
to verify reachability.";
}
}
status deprecated;
description
"The Neighbor Unreachability Detection state of this
entry.";
reference
"RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
Section 7.3.2";
}
}
}
}
}

293
standard/ietf/ietf-network-topology.yang

@ -0,0 +1,293 @@ @@ -0,0 +1,293 @@
module ietf-network-topology {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-network-topology";
prefix nt;
import ietf-inet-types {
prefix inet;
reference
"RFC 6991: Common YANG Data Types";
}
import ietf-network {
prefix nw;
reference
"RFC 8345: A YANG Data Model for Network Topologies";
}
organization
"IETF I2RS (Interface to the Routing System) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/i2rs/>
WG List: <mailto:i2rs@ietf.org>
Editor: Alexander Clemm
<mailto:ludwig@clemm.org>
Editor: Jan Medved
<mailto:jmedved@cisco.com>
Editor: Robert Varga
<mailto:robert.varga@pantheon.tech>
Editor: Nitin Bahadur
<mailto:nitin_bahadur@yahoo.com>
Editor: Hariharan Ananthakrishnan
<mailto:hari@packetdesign.com>
Editor: Xufeng Liu
<mailto:xufeng.liu.ietf@gmail.com>";
description
"This module defines a common base model for a network topology,
augmenting the base network data model with links to connect
nodes, as well as termination points to terminate links
on nodes.
Copyright (c) 2018 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 8345;
see the RFC itself for full legal notices.";
revision 2018-02-26 {
description
"Initial revision.";
reference
"RFC 8345: A YANG Data Model for Network Topologies";
}
typedef link-id {
type inet:uri;
description
"An identifier for a link in a topology. The precise
structure of the link-id will be up to the implementation.
The identifier SHOULD be chosen such that the same link in a
real network topology will always be identified through the
same identifier, even if the data model is instantiated in
separate datastores. An implementation MAY choose to capture
semantics in the identifier -- for example, to indicate the
type of link and/or the type of topology of which the link is
a part.";
}
typedef tp-id {
type inet:uri;
description
"An identifier for termination points on a node. The precise
structure of the tp-id will be up to the implementation.
The identifier SHOULD be chosen such that the same termination
point in a real network topology will always be identified
through the same identifier, even if the data model is
instantiated in separate datastores. An implementation MAY
choose to capture semantics in the identifier -- for example,
to indicate the type of termination point and/or the type of
node that contains the termination point.";
}
grouping link-ref {
description
"This grouping can be used to reference a link in a specific
network. Although it is not used in this module, it is
defined here for the convenience of augmenting modules.";
leaf link-ref {
type leafref {
path "/nw:networks/nw:network[nw:network-id=current()/../"+
"network-ref]/nt:link/nt:link-id";
require-instance false;
}
description
"A type for an absolute reference to a link instance.
(This type should not be used for relative references.
In such a case, a relative path should be used instead.)";
}
uses nw:network-ref;
}
grouping tp-ref {
description
"This grouping can be used to reference a termination point
in a specific node. Although it is not used in this module,
it is defined here for the convenience of augmenting
modules.";
leaf tp-ref {
type leafref {
path "/nw:networks/nw:network[nw:network-id=current()/../"+
"network-ref]/nw:node[nw:node-id=current()/../"+
"node-ref]/nt:termination-point/nt:tp-id";
require-instance false;
}
description
"A type for an absolute reference to a termination point.
(This type should not be used for relative references.
In such a case, a relative path should be used instead.)";
}
uses nw:node-ref;
}
augment "/nw:networks/nw:network" {
description
"Add links to the network data model.";
list link {
key "link-id";
description
"A network link connects a local (source) node and
a remote (destination) node via a set of the respective
node's termination points. It is possible to have several
links between the same source and destination nodes.
Likewise, a link could potentially be re-homed between
termination points. Therefore, in order to ensure that we
would always know to distinguish between links, every link
is identified by a dedicated link identifier. Note that a
link models a point-to-point link, not a multipoint link.";
leaf link-id {
type link-id;
description
"The identifier of a link in the topology.
A link is specific to a topology to which it belongs.";
}
container source {
description
"This container holds the logical source of a particular
link.";
leaf source-node {
type leafref {
path "../../../nw:node/nw:node-id";
require-instance false;
}
description
"Source node identifier. Must be in the same topology.";
}
leaf source-tp {
type leafref {
path "../../../nw:node[nw:node-id=current()/../"+
"source-node]/termination-point/tp-id";
require-instance false;
}
description
"This termination point is located within the source node
and terminates the link.";
}
}
container destination {
description
"This container holds the logical destination of a
particular link.";
leaf dest-node {
type leafref {
path "../../../nw:node/nw:node-id";
require-instance false;
}
description
"Destination node identifier. Must be in the same
network.";
}
leaf dest-tp {
type leafref {
path "../../../nw:node[nw:node-id=current()/../"+
"dest-node]/termination-point/tp-id";
require-instance false;
}
description
"This termination point is located within the
destination node and terminates the link.";
}
}
list supporting-link {
key "network-ref link-ref";
description
"Identifies the link or links on which this link depends.";
leaf network-ref {
type leafref {
path "../../../nw:supporting-network/nw:network-ref";
require-instance false;
}
description
"This leaf identifies in which underlay topology
the supporting link is present.";
}
leaf link-ref {
type leafref {
path "/nw:networks/nw:network[nw:network-id=current()/"+
"../network-ref]/link/link-id";
require-instance false;
}
description
"This leaf identifies a link that is a part
of this link's underlay. Reference loops in which
a link identifies itself as its underlay, either
directly or transitively, are not allowed.";
}
}
}
}
augment "/nw:networks/nw:network/nw:node" {
description
"Augments termination points that terminate links.
Termination points can ultimately be mapped to interfaces.";
list termination-point {
key "tp-id";
description
"A termination point can terminate a link.
Depending on the type of topology, a termination point
could, for example, refer to a port or an interface.";
leaf tp-id {
type tp-id;
description
"Termination point identifier.";
}
list supporting-termination-point {
key "network-ref node-ref tp-ref";
description
"This list identifies any termination points on which a
given termination point depends or onto which it maps.
Those termination points will themselves be contained
in a supporting node. This dependency information can be
inferred from the dependencies between links. Therefore,
this item is not separately configurable. Hence, no
corresponding constraint needs to be articulated.
The corresponding information is simply provided by the
implementing system.";
leaf network-ref {
type leafref {
path "../../../nw:supporting-node/nw:network-ref";
require-instance false;
}
description
"This leaf identifies in which topology the
supporting termination point is present.";
}
leaf node-ref {
type leafref {
path "../../../nw:supporting-node/nw:node-ref";
require-instance false;
}
description
"This leaf identifies in which node the supporting
termination point is present.";
}
leaf tp-ref {
type leafref {
path "/nw:networks/nw:network[nw:network-id=current()/"+
"../network-ref]/nw:node[nw:node-id=current()/../"+
"node-ref]/termination-point/tp-id";
require-instance false;
}
description
"Reference to the underlay node (the underlay node must
be in a different topology).";
}
}
}
}
}

192
standard/ietf/ietf-network.yang

@ -0,0 +1,192 @@ @@ -0,0 +1,192 @@
module ietf-network {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-network";
prefix nw;
import ietf-inet-types {
prefix inet;
reference
"RFC 6991: Common YANG Data Types";
}
organization
"IETF I2RS (Interface to the Routing System) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/i2rs/>
WG List: <mailto:i2rs@ietf.org>
Editor: Alexander Clemm
<mailto:ludwig@clemm.org>
Editor: Jan Medved
<mailto:jmedved@cisco.com>
Editor: Robert Varga
<mailto:robert.varga@pantheon.tech>
Editor: Nitin Bahadur
<mailto:nitin_bahadur@yahoo.com>
Editor: Hariharan Ananthakrishnan
<mailto:hari@packetdesign.com>
Editor: Xufeng Liu
<mailto:xufeng.liu.ietf@gmail.com>";
description
"This module defines a common base data model for a collection
of nodes in a network. Node definitions are further used
in network topologies and inventories.
Copyright (c) 2018 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 8345;
see the RFC itself for full legal notices.";
revision 2018-02-26 {
description
"Initial revision.";
reference
"RFC 8345: A YANG Data Model for Network Topologies";
}
typedef node-id {
type inet:uri;
description
"Identifier for a node. The precise structure of the node-id
will be up to the implementation. For example, some
implementations MAY pick a URI that includes the network-id
as part of the path. The identifier SHOULD be chosen
such that the same node in a real network topology will
always be identified through the same identifier, even if
the data model is instantiated in separate datastores. An
implementation MAY choose to capture semantics in the
identifier -- for example, to indicate the type of node.";
}
typedef network-id {
type inet:uri;
description
"Identifier for a network. The precise structure of the
network-id will be up to the implementation. The identifier
SHOULD be chosen such that the same network will always be
identified through the same identifier, even if the data model
is instantiated in separate datastores. An implementation MAY
choose to capture semantics in the identifier -- for example,
to indicate the type of network.";
}
grouping network-ref {
description
"Contains the information necessary to reference a network --
for example, an underlay network.";
leaf network-ref {
type leafref {
path "/nw:networks/nw:network/nw:network-id";
require-instance false;
}
description
"Used to reference a network -- for example, an underlay
network.";
}
}
grouping node-ref {
description
"Contains the information necessary to reference a node.";
leaf node-ref {
type leafref {
path "/nw:networks/nw:network[nw:network-id=current()/../"+
"network-ref]/nw:node/nw:node-id";
require-instance false;
}
description
"Used to reference a node.
Nodes are identified relative to the network that
contains them.";
}
uses network-ref;
}
container networks {
description
"Serves as a top-level container for a list of networks.";
list network {
key "network-id";
description
"Describes a network.
A network typically contains an inventory of nodes,
topological information (augmented through the
network-topology data model), and layering information.";
leaf network-id {
type network-id;
description
"Identifies a network.";
}
container network-types {
description
"Serves as an augmentation target.
The network type is indicated through corresponding
presence containers augmented into this container.";
}
list supporting-network {
key "network-ref";
description
"An underlay network, used to represent layered network
topologies.";
leaf network-ref {
type leafref {
path "/nw:networks/nw:network/nw:network-id";
require-instance false;
}
description
"References the underlay network.";
}
}
list node {
key "node-id";
description
"The inventory of nodes of this network.";
leaf node-id {
type node-id;
description
"Uniquely identifies a node within the containing
network.";
}
list supporting-node {
key "network-ref node-ref";
description
"Represents another node that is in an underlay network
and that supports this node. Used to represent layering
structure.";
leaf network-ref {
type leafref {
path "../../../nw:supporting-network/nw:network-ref";
require-instance false;
}
description
"References the underlay network of which the
underlay node is a part.";
}
leaf node-ref {
type leafref {
path "/nw:networks/nw:network/nw:node/nw:node-id";
require-instance false;
}
description
"References the underlay node itself.";
}
}
}
}
}
}

474
standard/ietf/ietf-yang-types.yang

@ -0,0 +1,474 @@ @@ -0,0 +1,474 @@
module ietf-yang-types {
namespace "urn:ietf:params:xml:ns:yang:ietf-yang-types";
prefix "yang";
organization
"IETF NETMOD (NETCONF Data Modeling Language) Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/netmod/>
WG List: <mailto:netmod@ietf.org>
WG Chair: David Kessens
<mailto:david.kessens@nsn.com>
WG Chair: Juergen Schoenwaelder
<mailto:j.schoenwaelder@jacobs-university.de>
Editor: Juergen Schoenwaelder
<mailto:j.schoenwaelder@jacobs-university.de>";
description
"This module contains a collection of generally useful derived
YANG data types.
Copyright (c) 2013 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC 6991; see
the RFC itself for full legal notices.";
revision 2013-07-15 {
description
"This revision adds the following new data types:
- yang-identifier
- hex-string
- uuid
- dotted-quad";
reference
"RFC 6991: Common YANG Data Types";
}
revision 2010-09-24 {
description
"Initial revision.";
reference
"RFC 6021: Common YANG Data Types";
}
/*** collection of counter and gauge types ***/
typedef counter32 {
type uint32;
description
"The counter32 type represents a non-negative integer
that monotonically increases until it reaches a
maximum value of 2^32-1 (4294967295 decimal), when it
wraps around and starts increasing again from zero.
Counters have no defined 'initial' value, and thus, a
single value of a counter has (in general) no information
content. Discontinuities in the monotonically increasing
value normally occur at re-initialization of the
management system, and at other times as specified in the
description of a schema node using this type. If such
other times can occur, for example, the creation of
a schema node of type counter32 at times other than
re-initialization, then a corresponding schema node
should be defined, with an appropriate type, to indicate
the last discontinuity.
The counter32 type should not be used for configuration
schema nodes. A default statement SHOULD NOT be used in
combination with the type counter32.
In the value set and its semantics, this type is equivalent
to the Counter32 type of the SMIv2.";
reference
"RFC 2578: Structure of Management Information Version 2
(SMIv2)";
}
typedef zero-based-counter32 {
type yang:counter32;
default "0";
description
"The zero-based-counter32 type represents a counter32
that has the defined 'initial' value zero.
A schema node of this type will be set to zero (0) on creation
and will thereafter increase monotonically until it reaches
a maximum value of 2^32-1 (4294967295 decimal), when it
wraps around and starts increasing again from zero.
Provided that an application discovers a new schema node
of this type within the minimum time to wrap, it can use the
'initial' value as a delta. It is important for a management
station to be aware of this minimum time and the actual time
between polls, and to discard data if the actual time is too
long or there is no defined minimum time.
In the value set and its semantics, this type is equivalent
to the ZeroBasedCounter32 textual convention of the SMIv2.";
reference
"RFC 4502: Remote Network Monitoring Management Information
Base Version 2";
}
typedef counter64 {
type uint64;
description
"The counter64 type represents a non-negative integer
that monotonically increases until it reaches a
maximum value of 2^64-1 (18446744073709551615 decimal),
when it wraps around and starts increasing again from zero.
Counters have no defined 'initial' value, and thus, a
single value of a counter has (in general) no information
content. Discontinuities in the monotonically increasing
value normally occur at re-initialization of the
management system, and at other times as specified in the
description of a schema node using this type. If such
other times can occur, for example, the creation of
a schema node of type counter64 at times other than
re-initialization, then a corresponding schema node
should be defined, with an appropriate type, to indicate
the last discontinuity.
The counter64 type should not be used for configuration
schema nodes. A default statement SHOULD NOT be used in
combination with the type counter64.
In the value set and its semantics, this type is equivalent
to the Counter64 type of the SMIv2.";
reference
"RFC 2578: Structure of Management Information Version 2
(SMIv2)";
}
typedef zero-based-counter64 {
type yang:counter64;
default "0";
description
"The zero-based-counter64 type represents a counter64 that
has the defined 'initial' value zero.
A schema node of this type will be set to zero (0) on creation
and will thereafter increase monotonically until it reaches
a maximum value of 2^64-1 (18446744073709551615 decimal),
when it wraps around and starts increasing again from zero.
Provided that an application discovers a new schema node
of this type within the minimum time to wrap, it can use the
'initial' value as a delta. It is important for a management
station to be aware of this minimum time and the actual time
between polls, and to discard data if the actual time is too
long or there is no defined minimum time.
In the value set and its semantics, this type is equivalent
to the ZeroBasedCounter64 textual convention of the SMIv2.";
reference
"RFC 2856: Textual Conventions for Additional High Capacity
Data Types";
}
typedef gauge32 {
type uint32;
description
"The gauge32 type represents a non-negative integer, which
may increase or decrease, but shall never exceed a maximum
value, nor fall below a minimum value. The maximum value
cannot be greater than 2^32-1 (4294967295 decimal), and
the minimum value cannot be smaller than 0. The value of
a gauge32 has its maximum value whenever the information
being modeled is greater than or equal to its maximum
value, and has its minimum value whenever the information
being modeled is smaller than or equal to its minimum value.
If the information being modeled subsequently decreases
below (increases above) the maximum (minimum) value, the
gauge32 also decreases (increases).
In the value set and its semantics, this type is equivalent
to the Gauge32 type of the SMIv2.";
reference
"RFC 2578: Structure of Management Information Version 2
(SMIv2)";
}
typedef gauge64 {
type uint64;
description
"The gauge64 type represents a non-negative integer, which
may increase or decrease, but shall never exceed a maximum
value, nor fall below a minimum value. The maximum value
cannot be greater than 2^64-1 (18446744073709551615), and
the minimum value cannot be smaller than 0. The value of
a gauge64 has its maximum value whenever the information
being modeled is greater than or equal to its maximum
value, and has its minimum value whenever the information
being modeled is smaller than or equal to its minimum value.
If the information being modeled subsequently decreases
below (increases above) the maximum (minimum) value, the
gauge64 also decreases (increases).
In the value set and its semantics, this type is equivalent
to the CounterBasedGauge64 SMIv2 textual convention defined
in RFC 2856";
reference
"RFC 2856: Textual Conventions for Additional High Capacity
Data Types";
}
/*** collection of identifier-related types ***/
typedef object-identifier {
type string {
pattern '(([0-1](\.[1-3]?[0-9]))|(2\.(0|([1-9]\d*))))'
+ '(\.(0|([1-9]\d*)))*';
}
description
"The object-identifier type represents administratively
assigned names in a registration-hierarchical-name tree.
Values of this type are denoted as a sequence of numerical
non-negative sub-identifier values. Each sub-identifier
value MUST NOT exceed 2^32-1 (4294967295). Sub-identifiers
are separated by single dots and without any intermediate
whitespace.
The ASN.1 standard restricts the value space of the first
sub-identifier to 0, 1, or 2. Furthermore, the value space
of the second sub-identifier is restricted to the range
0 to 39 if the first sub-identifier is 0 or 1. Finally,
the ASN.1 standard requires that an object identifier
has always at least two sub-identifiers. The pattern
captures these restrictions.
Although the number of sub-identifiers is not limited,
module designers should realize that there may be
implementations that stick with the SMIv2 limit of 128
sub-identifiers.
This type is a superset of the SMIv2 OBJECT IDENTIFIER type
since it is not restricted to 128 sub-identifiers. Hence,
this type SHOULD NOT be used to represent the SMIv2 OBJECT
IDENTIFIER type; the object-identifier-128 type SHOULD be
used instead.";
reference
"ISO9834-1: Information technology -- Open Systems
Interconnection -- Procedures for the operation of OSI
Registration Authorities: General procedures and top
arcs of the ASN.1 Object Identifier tree";
}
typedef object-identifier-128 {
type object-identifier {
pattern '\d*(\.\d*){1,127}';
}
description
"This type represents object-identifiers restricted to 128
sub-identifiers.
In the value set and its semantics, this type is equivalent
to the OBJECT IDENTIFIER type of the SMIv2.";
reference
"RFC 2578: Structure of Management Information Version 2
(SMIv2)";
}
typedef yang-identifier {
type string {
length "1..max";
pattern '[a-zA-Z_][a-zA-Z0-9\-_.]*';
pattern '.|..|[^xX].*|.[^mM].*|..[^lL].*';
}
description
"A YANG identifier string as defined by the 'identifier'
rule in Section 12 of RFC 6020. An identifier must
start with an alphabetic character or an underscore
followed by an arbitrary sequence of alphabetic or
numeric characters, underscores, hyphens, or dots.
A YANG identifier MUST NOT start with any possible
combination of the lowercase or uppercase character
sequence 'xml'.";
reference
"RFC 6020: YANG - A Data Modeling Language for the Network
Configuration Protocol (NETCONF)";
}
/*** collection of types related to date and time***/
typedef date-and-time {
type string {
pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?'
+ '(Z|[\+\-]\d{2}:\d{2})';
}
description
"The date-and-time type is a profile of the ISO 8601
standard for representation of dates and times using the
Gregorian calendar. The profile is defined by the
date-time production in Section 5.6 of RFC 3339.
The date-and-time type is compatible with the dateTime XML
schema type with the following notable exceptions:
(a) The date-and-time type does not allow negative years.
(b) The date-and-time time-offset -00:00 indicates an unknown
time zone (see RFC 3339) while -00:00 and +00:00 and Z
all represent the same time zone in dateTime.
(c) The canonical format (see below) of data-and-time values
differs from the canonical format used by the dateTime XML
schema type, which requires all times to be in UTC using
the time-offset 'Z'.
This type is not equivalent to the DateAndTime textual
convention of the SMIv2 since RFC 3339 uses a different
separator between full-date and full-time and provides
higher resolution of time-secfrac.
The canonical format for date-and-time values with a known time
zone uses a numeric time zone offset that is calculated using
the device's configured known offset to UTC time. A change of
the device's offset to UTC time will cause date-and-time values
to change accordingly. Such changes might happen periodically
in case a server follows automatically daylight saving time
(DST) time zone offset changes. The canonical format for
date-and-time values with an unknown time zone (usually
referring to the notion of local time) uses the time-offset
-00:00.";
reference
"RFC 3339: Date and Time on the Internet: Timestamps
RFC 2579: Textual Conventions for SMIv2
XSD-TYPES: XML Schema Part 2: Datatypes Second Edition";
}
typedef timeticks {
type uint32;
description
"The timeticks type represents a non-negative integer that
represents the time, modulo 2^32 (4294967296 decimal), in
hundredths of a second between two epochs. When a schema
node is defined that uses this type, the description of
the schema node identifies both of the reference epochs.
In the value set and its semantics, this type is equivalent
to the TimeTicks type of the SMIv2.";
reference
"RFC 2578: Structure of Management Information Version 2
(SMIv2)";
}
typedef timestamp {
type yang:timeticks;
description
"The timestamp type represents the value of an associated
timeticks schema node at which a specific occurrence
happened. The specific occurrence must be defined in the
description of any schema node defined using this type. When
the specific occurrence occurred prior to the last time the
associated timeticks attribute was zero, then the timestamp
value is zero. Note that this requires all timestamp values
to be reset to zero when the value of the associated timeticks
attribute reaches 497+ days and wraps around to zero.
The associated timeticks schema node must be specified
in the description of any schema node using this type.
In the value set and its semantics, this type is equivalent
to the TimeStamp textual convention of the SMIv2.";
reference
"RFC 2579: Textual Conventions for SMIv2";
}
/*** collection of generic address types ***/
typedef phys-address {
type string {
pattern '([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?';
}
description
"Represents media- or physical-level addresses represented
as a sequence octets, each octet represented by two hexadecimal
numbers. Octets are separated by colons. The canonical
representation uses lowercase characters.
In the value set and its semantics, this type is equivalent
to the PhysAddress textual convention of the SMIv2.";
reference
"RFC 2579: Textual Conventions for SMIv2";
}
typedef mac-address {
type string {
pattern '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}';
}
description
"The mac-address type represents an IEEE 802 MAC address.
The canonical representation uses lowercase characters.
In the value set and its semantics, this type is equivalent
to the MacAddress textual convention of the SMIv2.";
reference
"IEEE 802: IEEE Standard for Local and Metropolitan Area
Networks: Overview and Architecture
RFC 2579: Textual Conventions for SMIv2";
}
/*** collection of XML-specific types ***/
typedef xpath1.0 {
type string;
description
"This type represents an XPATH 1.0 expression.
When a schema node is defined that uses this type, the
description of the schema node MUST specify the XPath
context in which the XPath expression is evaluated.";
reference
"XPATH: XML Path Language (XPath) Version 1.0";
}
/*** collection of string types ***/
typedef hex-string {
type string {
pattern '([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?';
}
description
"A hexadecimal string with octets represented as hex digits
separated by colons. The canonical representation uses
lowercase characters.";
}
typedef uuid {
type string {
pattern '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-'
+ '[0-9a-fA-F]{4}-[0-9a-fA-F]{12}';
}
description
"A Universally Unique IDentifier in the string representation
defined in RFC 4122. The canonical representation uses
lowercase characters.
The following is an example of a UUID in string representation:
f81d4fae-7dec-11d0-a765-00a0c91e6bf6
";
reference
"RFC 4122: A Universally Unique IDentifier (UUID) URN
Namespace";
}
typedef dotted-quad {
type string {
pattern
'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
+ '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
}
description
"An unsigned 32-bit number expressed in the dotted-quad
notation, i.e., four octets written as decimal numbers
and separated with the '.' (full stop) character.";
}
}

676
standard_changed/ieee802-dot1q-psfp.yang

@ -0,0 +1,676 @@ @@ -0,0 +1,676 @@
module ieee802-dot1q-psfp {
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1q-psfp;
prefix psfp;
import ietf-yang-types {
prefix yang;
}
import ieee802-types {
prefix ieee802;
}
import ieee802-dot1q-types {
prefix dot1q-types;
}
import ieee802-dot1q-bridge {
prefix dot1q;
}
import ieee802-dot1q-stream-filters-gates {
prefix sfsg;
}
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://www.ieee802.org/1/
WG-EMail: stds-802-1-L@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
P.O. Box 1331
Piscataway
NJ 08855-1331
USA
E-mail: STDS-802-1-L@IEEE.ORG";
description
"This module provides management of 802.1Q bridge components that
support Per Stream Filtering and Policing (PSFP).";
revision 2020-07-07 {
description
"Published as part of IEEE Std 802.1Qcw.
Initial version.";
reference
"IEEE Std 802.1Qcw - Bridges and Bridged Networks Amendment:
YANG Data Models for Scheduled Traffic, Frame Preemption, and
Per-Stream Filtering and Policing.";
}
feature psfp {
description
"Per Stream Filtering and Policing supported.";
reference
"IEEE Std 802.1Q-2018";
}
identity set-gate-and-ipv {
base dot1q-types:type-of-operation;
description
"The StreamGateState parameter specifies a desired state, open
or closed, for the stream gate, and the IPV parameter specifies
a desired value of the IPV associated with the stream. On
execution, the StreamGateState and IPV parameter values are used
to set the operational values of the stream gate state and
internal priority specification parameters for the stream. After
TimeInterval ticks has elapsed since the completion of the
previous stream gate control operation in the stream gate
control list, control passes to the next stream gate control
operation. The optional IntervalOctetMax parameter specifies the
maximum number of MSDU octets that are permitted to pass the
gate during the specified TimeInterval. If the IntervalOctetMax
parameter is omitted, there is no limit on the number of octets
that can pass the gate.";
reference
"8.6.5.1.2 of IEEE Std 802.1Q-2018";
}
grouping stream-gate-control-entries {
description
"A GateControlEntry consists of an operation name, followed by
four parameters associated with the operation. The first
parameter is a gateStatesValue; the second parameter is an IPV
value; the third parameter is a timeIntervalValue; and the
fourth parameter is an IntervalOctetMaxValue.
IntervalOctetMaxValue is optional.";
uses dot1q-types:base-gate-control-entries {
refine "gate-control-entry/operation-name" {
must ". = 'psfp:set-gate-and-ipv'";
}
refine "gate-control-entry/time-interval-value" {
must "(. <= ../../../../supported-interval-max )";
}
augment "gate-control-entry" {
description
"Augment gate-control-entry from base-gate-control-entries
with parameters gate-states-value, ipv-spec and
interval-octet-max.";
leaf gate-state-value {
type sfsg:gate-state-value-type;
mandatory true;
description
"The PSFPgateStatesValue indicates the desired gate state,
open or closed, for the stream gate.";
reference
"12.31.3.2.1 of IEEE Std 802.1Q-2018";
}
leaf ipv-spec {
type sfsg:ipv-spec-type;
mandatory true;
description
"The IPV value indicates the IPV to be associated with
frames that pass the gate.";
reference
"12.31.3.2.3 of IEEE Std 802.1Q-2018";
}
leaf interval-octet-max {
type uint32;
description
"An unsigned integer, denoting a IntervalOctetMax in MSDU
octets";
reference
"12.31.3.2.5 of IEEE Std 802.1Qcw";
}
}
}
}
augment
"/dot1q:bridges"+
"/dot1q:bridge"+
"/dot1q:component"+
"/sfsg:stream-filters"+
"/sfsg:stream-filter-instance-table" {
description
"Augment the Bridge component Stream filter by frame counters.";
leaf matching-frames-count {
type yang:counter64;
config false;
description
"A count of frames matching both the stream_handle and
priority specifications.";
reference
"8.6.5.1 of IEEE Std 802.1Q-2018";
}
leaf passing-frames-count {
type yang:counter64;
config false;
description
"A count of frames that passed the stream gate.";
reference
"8.6.5.1 of IEEE Std 802.1Q-2018";
}
leaf not-passing-frames-count {
type yang:counter64;
config false;
description
"A count of frames that did not pass the stream gate.";
reference
"8.6.5.1 of IEEE Std 802.1Q-2018";
}
leaf red-frames-count {
type yang:counter64;
config false;
description
"A count of frames that were discarded as a result of the
operation of the flow meter.";
reference
"8.6.5.1 of IEEE Std 802.1Q-2018";
}
leaf passing-sdu-count {
type yang:counter64;
config false;
description
"A count of frames that passed the Maximum SDU size filter.";
reference
"8.6.5.1 of IEEE Std 802.1Q-2018";
}
leaf not-passing-sdu-count {
type yang:counter64;
config false;
description
"A count of frames that did not pass the Maximum SDU size
filter.";
reference
"8.6.5.1 of IEEE Std 802.1Q-2018";
}
leaf flow-meter-instance-id {
type uint32;
description
"Flow meter instance that is associated with the stream filter.";
reference
"8.6.5.5 of IEEE Std 802.1Qcr
12.31.2.6 of IEEE Std 802.1Qcr";
}
leaf flow-meter-enable {
type boolean;
description
"If it is set to TRUE, flow-meter-ref identifies the flow meter
instance associated with the stream filter. If it is set to FALSE, no
flow meter instance is associated with the stream filter.";
reference
"8.6.5.5 of IEEE Std 802.1Qcr
12.31.2.6 of IEEE Std 802.1Qcr";
}
}
augment
"/dot1q:bridges/dot1q:bridge/dot1q:component/sfsg:stream-gates" {
description
"Augment the Bridge component Stream Gates by maximum control
list limits, as used for PTP-controlled open and close
transitions";
leaf supported-list-max {
type uint32;
description
"The maximum value supported by this Bridge component of the
AdminControlListLength and OperControlListLength parameters.
It is available for use by schedule computation software to
determine the Bridge component’s control list capacity prior
to computation. The object may optionally be read-only.";
reference
"12.31.1.4 of IEEE Std 802.1Q-2018";
}
container supported-cycle-max {
description
"The maximum value supported by this Bridge component of the
AdminCycleTime and OperCycleTime parameters. The object may
optionally be read-only.";
reference
"12.31.1.5 of IEEE Std 802.1Qcw";
uses ieee802:rational-grouping;
}
leaf supported-interval-max {
type uint32;
description
"The maximum value supported by this Bridge component of the
TimeIntervalValue parameter. The object may optionally
be read-only.";
reference
"12.31.1.6 of IEEE Std 802.1Qcw";
}
}
augment
"/dot1q:bridges"+
"/dot1q:bridge"+
"/dot1q:component"+
"/sfsg:stream-gates"+
"/sfsg:stream-gate-instance-table" {
description
"Augment the Bridge component Stream Gate instances by
a) operational gate states
b) operational IPV values
c) PTP controlled open and close transitions
d) Management for PTP controlled open and close transitions";
leaf oper-gate-states {
type sfsg:gate-state-value-type;
config false;
description
"The current state of the gate. PSFPOperGateStates is set by
the List Execute state machine, and its initial value is
determined by the value of the PSFPAdminGateStates variable.";
reference
"12.31.3.2.1 of IEEE Std 802.1Q-2018
8.6.10.5 of IEEE Std 802.1Q-2018";
}
leaf oper-ipv {
type sfsg:ipv-spec-type;
description
"The operational internal priority value specification.";
reference
"12.31.3.3 of IEEE Std 802.1Q-2018
8.6.10.7 of IEEE Std 802.1Q-2018
8.6.5.1.2 of IEEE Std 802.1Q-2018";
}
container admin-control-list {
must "(count(./gate-control-entry) <= ../../supported-list-max)" {
error-message "Number of elements in admin-control-list must
not be greater than supported-list-max";
}
config true;
description
"The AdminControlList and OperControlList are ordered
lists containing AdminControlListLength or OperControlListLength
entries, respectively. Each entry represents a gate operation.
Each entry in the list is structured as a GateControlEntry.";
reference
"12.31.3.2 of IEEE Std 802.1Q-2018
12.31.3.2.2 of IEEE Std 802.1Q-2018
8.6.9.4.2 of IEEE Std 802.1Q-2018";
uses stream-gate-control-entries;
}
container oper-control-list {
must "(count(./gate-control-entry) <= ../../supported-list-max)" {
error-message "Number of elements in oper-control-list must
not be greater than supported-list-max";
}
config false;
description
"The AdminControlList and OperControlList are ordered
lists containing AdminControlListLength or OperControlListLength
entries, respectively. Each entry represents a gate operation.
Each entry in the list is structured as a GateControlEntry.";
reference
"12.31.3.2 of IEEE Std 802.1Q-2018
12.31.3.2.2 of IEEE Std 802.1Q-2018
8.6.9.4.19 of IEEE Std 802.1Q-2018";
uses stream-gate-control-entries;
}
container admin-cycle-time {
/* IRT : removed invalid comparison between two rational-grouping: not numbers */
/*must "(. <= ../../supported-cycle-max)" {
error-message "admin-cycle-time must not be greater than supported-cycle-max";
}*/
description
"The administrative value of the gating cycle for the Port.
This value can be changed by management, and is used by the
List Config state machine to set the value of OperCycleTime.
The AdminCycleTime variable is a rational number of seconds,
defined by an integer numerator and an integer denominator.";
reference
"12.29.1.3 of IEEE Std 802.1Q-2018
8.6.9.4.3 of IEEE Std 802.1Q-2018";
uses ieee802:rational-grouping;
}
container oper-cycle-time {
/* IRT : removed invalid comparison between two rational-grouping: not numbers */
/*must "(. <= ../../supported-cycle-max)" {
error-message "oper-cycle-time must not be greater than supported-cycle-max";
}*/
config false;
description
"The operational value of the gating cycle for the Port. This
variable is set dynamically from the AdminCycleTime variable
under the control of the List Config state machine
OperCycleTime is used by the Cycle Timer state machine to
enforce the cycle time for the Port. The OperCycleTime
variable is a rational number of seconds, defined by an
integer numerator and an integer denominator.";
reference
"12.29.1.3 of IEEE Std 802.1Q-2018
8.6.9.4.20 of IEEE Std 802.1Q-2018";
uses ieee802:rational-grouping;
}
leaf admin-cycle-time-extension {
type uint32;
units "nanoseconds";
description
"An integer number of nanoseconds, defining the maximum amount
of time by which the gating cycle for the Port is permitted to
be extended when a new cycle configuration is being installed.
This administrative value can be changed by management, and is
used by the List Config state machine to set the value of
OperCycleTimeExtension.";
reference
"8.6.9.4.4 of IEEE Std 802.1Q-2018";
}
leaf oper-cycle-time-extension {
type uint32;
units "nanoseconds";
config false;
description
"An integer number of nanoseconds, defining the maximum amount
of time by which the gating cycle for the Port is permitted to
be extended when a new cycle configuration is installed. This
operational value is set by the List Config state machine to
the value of AdminCycleTimeExtension. The value of
OperCycleTimeExtension is used by the SetCycleStartTime()
procedure.";
reference
"8.6.9.4.21 of IEEE Std 802.1Q-2018";
}
container admin-base-time {
description
"The administrative value of base time, expressed as an IEEE
1588 precision time protocol (PTP) timescale (see IEEE Std
802.1AS-2011). This value can be changed by management, and is
used by the List Config state machine to set the value of
OperBaseTime.";
reference
"12.29.1.4 of IEEE Std 802.1Q-2018
8.6.9.4.1 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
container oper-base-time {
config false;
description
"The operational value of base time, expressed as a PTP
timescale (see IEEE Std 802.1AS-2011). This variable is used
by the List Config state machine.";
reference
"12.29.1.4 of IEEE Std 802.1Q-2018
8.6.9.4.18 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
leaf config-change {
type boolean;
description
"A Boolean variable that acts as a start signal to the List
Config state machine that the administrative variable values
for the Port are ready to be copied into their corresponding
operational variables. This variable is set TRUE by management
and is set FALSE by the List Config state machine.";
reference
"8.6.9.4.7 of IEEE Std 802.1Q-2018";
}
container config-change-time {
config false;
description
"The time at which the administrative variables that determine
the cycle are to be copied across to the corresponding
operational variables, expressed as a PTP timescale. The value
of this variable is set by the SetConfigChangeTime() procedure
in the List Config state machine.";
reference
"12.29.1.4 of IEEE Std 802.1Q-2018
8.6.9.4.9 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
leaf tick-granularity {
type uint32;
config false;
description
"Characteristics of an implementation’s cycle timer clock
(TickGranularity).";
reference
"8.6.9.4.16 of IEEE Std 802.1Q-2018";
}
container current-time {
config false;
description
"The current time maintained by the local system, expressed as
a PTP timescale (see IEEE Std 802.1AS-2011).";
reference
"12.29.1.4 of IEEE Std 802.1Q-2018
8.6.9.4.10 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
leaf config-pending {
type boolean;
config false;
description
"A Boolean variable, set TRUE by the List Config state machine
to signal that there is a new cycle configuration awaiting
installation. The variable is set FALSE when the List Config
state machine has installed the new configuration. The
variable is used by the SetCycleStartTime() procedure to
control the length of the cycle that immediately precedes the
first cycle that uses the new configuration values. This value
can be read by management.";
reference
"8.6.9.3 of IEEE Std 802.1Q-2018
8.6.9.4.8 of IEEE Std 802.1Q-2018";
}
leaf config-change-error {
type yang:counter64;
config false;
description
"An error counter that is incremented if AdminBaseTime
specifies a time in the past, and the current schedule is
running.";
reference
"8.6.9.3.1 of IEEE Std 802.1Q-2018";
}
leaf gate-closed-due-to-invalid-rx-enable {
type boolean;
default "false";
description
"A value of TRUE indicates that the GateClosedDueToInvalidRx
function is enabled; a value of FALSE indicates that the
GateClosedDueToInvalidRx function is disabled. The default
value of GateClosedDueToInvalidRxEnable is FALSE.";
reference
"8.6.5.1.2 of IEEE Std 802.1Q-2018";
}
leaf gate-closed-due-to-invalid-rx {
type boolean;
default "false";
description
"If GateClosedDueToInvalidRxEnable is TRUE, a value of TRUE in
GateClosedDueToInvalidRx indicates that all frames are dropped
(i.e., the gate behaves as if the operational stream gate
state is Closed). If GateClosedDueToInvalidRx is FALSE, it has
no effect. The default value of GateClosedDueToInvalidRx is
FALSE; if any frame is discarded because the gate is in the
Closed state, then GateClosedDueToInvalidRx is set TRUE.";
reference
"8.6.5.1.2 of IEEE Std 802.1Q-2018";
}
leaf gate-closed-due-octets-exceeded-enable {
type boolean;
default "false";
description
"A value of TRUE indicates that the
GateClosedDueToOctetsExceeded function is enabled; a value of
FALSE indicates that the GateClosedDueToOctetsExceeded
function is disabled. The default value of
GateClosedDueToOctetsExceed is FALSE.";
reference
"8.6.5.1.2 of IEEE Std 802.1Q-2018";
}
leaf gate-closed-due-octets-exceeded {
type boolean;
default "false";
description
"If GateClosedDueToOctetsExceededEnable is TRUE, a value of
TRUE in GateClosedDueToOctetsExceeded indicates that all
frames are dropped (i.e., the gate behaves as if the
operational stream gate state is Closed). If
GateClosedDueToOctetsExceeded is FALSE, it has no effect. The
default value of GateClosedDueToOctetsExceeded is FALSE; if
any frame is discarded because there are insufficient
IntervalOctetsLeft, then GateClosedDueToOctetsExceeded is set
TRUE.";
reference
"8.6.5.1.2 of IEEE Std 802.1Q-2018";
}
}
augment "/dot1q:bridges/dot1q:bridge/dot1q:component" {
description
"Augment the Bridge component by Flow Meters.";
container flow-meters {
description
"This container comprises all flow meter related nodes.";
list flow-meter-instance-table {
must "(count(.) <= ../max-flow-meter-instances)" {
error-message "Number of elements in flow-meter-instance-table
must not be greater than max-flow-meter-instances.";
}
key "flow-meter-instance-id";
description
"There is one Flow Meter Instance Table per Bridge
component. Each table row contains a set of parameters that
defines a single Flow Meter Instance. Tables can be created
or removed dynamically in implementations that support
dynamic configuration of Bridge components. Rows in the
table can be created or removed dynamically in
implementations that support dynamic configuration of flow
meters.";
reference
"12.31.4 of IEEE Std 802.1Q-2018";
leaf flow-meter-instance-id {
type uint32;
mandatory true;
description
"An integer table index that allows the Flow Meter to be
referenced from Stream Filter Instance Table entries.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf committed-information-rate {
type uint64;
units "bits/second";
mandatory true;
description
"Committed information rate (CIR), in bits per second.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf committed-burst-size {
type uint32;
units "octets";
mandatory true;
description
"Committed burst size (CBS), in octets.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf excess-information-rate {
type uint64;
units "bits/second";
mandatory true;
description
"Excess Information Rate (EIR), in bits per second.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf excess-burst-size {
type uint32;
units "octets";
mandatory true;
description
"Excess burst size (EBS) per bandwidth profile flow, in
octets.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf coupling-flag {
type enumeration {
enum zero {
value 0;
description
"Uncoupled";
}
enum one {
value 1;
description
"Coupled";
}
}
mandatory true;
description
"Coupling flag (CF), which takes the value 0 or 1.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf color-mode {
type enumeration {
enum color-blind {
description
"Color-blind (i.e., the color of a frame is ignored
by the bandwidth profile algorithm).";
}
enum color-aware {
description
"Color-aware (i.e., the color of a frame is considered
by the bandwidth profile algorithm).";
}
}
mandatory true;
description
"Color mode (CM), which takes the value color-blind or
color-aware, as specified in Bandwidth Profile Parameters
and Algorithm in MEF 10.3.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf drop-on-yellow {
type boolean;
mandatory true;
description
"DropOnYellow, which takes the value TRUE or FALSE. A
value of TRUE indicates that yellow frames are dropped
(i.e., discarded); a value of FALSE indicates that yellow
frames will have the drop_eligible parameter set to TRUE.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf mark-all-frames-red-enable {
type boolean;
default "false";
description
"MarkAllFramesRedEnable, which takes the value TRUE or
FALSE. A value of TRUE indicates that the MarkAllFramesRed
function is enabled; a value of FALSE indicates that the
MarkAllFramesRed function is disabled. The default value
of MarkAllFramesRedEnable is FALSE.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
leaf mark-all-frames-red {
type boolean;
default "false";
description
"MarkAllFramesRed, which takes the value TRUE or FALSE. If
MarkAllFramesRedEnable is TRUE, a value of TRUE in
MarkAllFramesRed indicates that all frames are dropped
(i.e., discarded). If MarkAllFramesRed is False, it has no
effect. The default value of MarkAllFramesRed is FALSE; if
the operation of the flow meter causes any frame to be
discarded, then MarkAllFramesRed is set TRUE.";
reference
"8.6.5.1.3 of IEEE Std 802.1Q-2018";
}
}
leaf max-flow-meter-instances {
type uint32;
description
"The maximum number of Flow Meter instances supported by
this Bridge component. The object may optionally be read-only.";
reference
"12.31.1.3 of IEEE Std 802.1Q-2018";
}
}
}
}

440
standard_changed/ieee802-dot1q-sched.yang

@ -0,0 +1,440 @@ @@ -0,0 +1,440 @@
module ieee802-dot1q-sched {
namespace urn:ieee:std:802.1Q:yang:ieee802-dot1q-sched;
prefix sched;
import ietf-yang-types {
prefix yang;
}
import ieee802-types {
prefix ieee802;
}
import ieee802-dot1q-types {
prefix dot1q-types;
}
import ietf-interfaces {
prefix if;
}
import ieee802-dot1q-bridge {
prefix dot1q;
}
organization
"IEEE 802.1 Working Group";
contact
"WG-URL: http://www.ieee802.org/1/
WG-EMail: stds-802-1-L@ieee.org
Contact: IEEE 802.1 Working Group Chair
Postal: C/O IEEE 802.1 Working Group
IEEE Standards Association
445 Hoes Lane
P.O. Box 1331
Piscataway
NJ 08855-1331
USA
E-mail: STDS-802-1-L@IEEE.ORG";
description
"This module provides for management of IEEE Std 802.1Q Bridges
that support Scheduled Traffic Enhancements.";
revision 2020-07-07 {
description
"Published as part of IEEE Std 802.1Qcw.
Initial version.";
reference
"IEEE Std 802.1Qcw - Bridges and Bridged Networks Amendment:
YANG Data Models for Scheduled Traffic, Frame Preemption, and
Per-Stream Filtering and Policing.";
}
feature scheduled-traffic {
description
"Enhancements for Scheduled Traffic supported.";
reference
"IEEE Std 802.1Q-2018";
}
identity set-gate-states {
base dot1q-types:type-of-operation;
description
"Operation to set the gate states.";
}
identity set-and-hold-mac {
base dot1q-types:type-of-operation;
description
"Operation to set and hold MAC.";
}
identity set-and-release-mac {
base dot1q-types:type-of-operation;
description
"Operation to set and release MAC.";
}
grouping sched-gate-control-entries {
description
"A GateControlEntry consists of an operation name,
followed by up to 2 parameters associated with the
operation. The first parameter is a gateStatesValue;
the second parameter is a timeIntervalValue";
uses dot1q-types:base-gate-control-entries {
refine "gate-control-entry/operation-name" {
must "(. = 'sched:set-gate-states') or
(. = 'sched:set-and-hold-mac') or
(. = 'sched:set-and-release-mac')";
}
refine "gate-control-entry/time-interval-value" {
must "(. <= ../../../supported-interval-max )";
}
augment "gate-control-entry" {
description
"Augment gate-control-entry from base-gate-control-entries
with parameter gate-states-value.";
leaf gate-states-value {
type uint8;
mandatory true;
description
"gateStatesValue is the gate states for this entry for the
Port. The gates are immediately set to the states in
gateStatesValue when this entry executes. The bits of the
octet represent the gate states for the corresponding
traffic classes; the most-significant bit corresponds to
traffic class 7, the least-significant bit to traffic class
0. A bit value of 0 indicates closed; a bit value of 1
indicates open.";
reference
"12.29.1.2.2 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018";
}
}
}
}
augment "/if:interfaces/if:interface/dot1q:bridge-port" {
if-feature "scheduled-traffic";
description
"Augment bridge-port with Scheduled Traffic configuration.";
container gate-parameter-table {
description
"A table that contains the per-port manageable parameters for
traffic scheduling. For a given Port, an entry in the table
exists. All writable objects in this table must be persistent
over power up restart/reboot.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9 of IEEE Std 802.1Q-2018";
list queue-max-sdu-table {
key "traffic-class";
description
"A list containing a set of max SDU parameters, one for each
traffic class. All writable objects in this table must be
persistent over power up restart/reboot.";
reference
"12.29.1.1 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9 of IEEE Std 802.1Q-2018";
leaf traffic-class {
type dot1q-types:traffic-class-type;
description
"Traffic class";
}
leaf queue-max-sdu {
type uint32;
default "0";
description
"The value of the queueMaxSDU parameter for the traffic
class. A value of 0 is interpreted as the max SDU size
supported by the underlying MAC. The value must be retained
across reinitializations of the management system.";
reference
"12.29.1.1.1 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9 of IEEE Std 802.1Q-2018";
}
leaf transmission-overrun {
type yang:counter64;
default "0";
config false;
description
"A counter of transmission overrun events, where a PDU is
still being transmitted by a MAC at the time when the
transmission gate for the queue closed.";
reference
"12.29.1.1.2 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9 of IEEE Std 802.1Q-2018";
}
}
leaf gate-enabled {
type boolean;
default "false";
description
"The GateEnabled parameter determines whether traffic
scheduling is active (true) or inactive (false). The value
must be retained across reinitializations of the management
system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.8.2 of IEEE Std 802.1Q-2018
8.6.9.4.14 of IEEE Std 802.1Q-2018";
}
leaf admin-gate-states {
type uint8;
default "255";
description
"AdminGateStates is the administrative value of the initial
gate states for the Port. The bits of the octet represent
the gate states for the corresponding traffic classes; the
most-significant bit corresponds to traffic class 7, the
least-significant bit to traffic class 0. A bit value of 0
indicates closed; a bit value of 1 indicates open. The value
must be retained across reinitializations of the management
system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.5 of IEEE Std 802.1Q-2018";
}
leaf oper-gate-states {
type uint8;
config false;
description
"OperGateStates is the operational value of the current gate
states for the Port. The bits of the octet represent the
gate states for the corresponding traffic classes; the
most-significant bit corresponds to traffic class 7, the
least-significant bit to traffic class 0. A bit value of 0
indicates closed; a bit value of 1 indicates open.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.22 of IEEE Std 802.1Q-2018";
}
container admin-control-list {
/* check removed to allow empty list (for example when TAS is not used on
a port that support it):
must "(count(./gate-control-entry) > 0)" {
error-message "admin-control-list empty.";
} */
/* check removed to allow not defining supported-list-max and gate-control-entry,
for example when TAS is not used on a port.
must "(count(./gate-control-entry) <= ../supported-list-max)" {
error-message "Number of elements in admin-control-list must
not be greater than supported-list-max";
}*/
config true;
description
"AdminControlList is the administrative value of the gate
control list for the Port.
The value must be retained across reinitializations of the
management system.";
reference
"12.29.1.2 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9.4.2 of IEEE Std 802.1Q-2018";
uses sched-gate-control-entries;
}
container oper-control-list {
must "(count(./gate-control-entry) > 0)" {
error-message "oper-control-list empty.";
}
must "(count(./gate-control-entry) <= ../supported-list-max)" {
error-message "Number of elements in oper-control-list must
not be greater than supported-list-max";
}
config false;
description
"OperControlList is the operational value of the gate
control list for the Port.";
reference
"12.29.1.2 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9.4.19 of IEEE Std 802.1Q-2018";
uses sched-gate-control-entries;
}
container admin-cycle-time {
/* IRT : removed invalid comparison between two rational-grouping: not numbers */
/*must "(. <= ../supported-cycle-max)" {
error-message "admin-cycle-time must not be greater than supported-cycle-max";
}*/
description
"AdminCycleTime specifies the administrative value of the
gating cycle time for the Port.
AdminCycleTime is a rational number of seconds, defined by
an integer numerator and an integer denominator.
The value must be retained across reinitializations of the
management system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9.4.3 of IEEE Std 802.1Q-2018";
uses ieee802:rational-grouping;
}
container oper-cycle-time {
/* IRT : removed invalid comparison between two rational-grouping: not numbers */
/*must "(. <= ../supported-cycle-max)" {
error-message "oper-cycle-time must not be greater than supported-cycle-max";
}*/
config false;
description
"OperCycleTime specifies the operational value of the gating
cycle time for the Port.
OperCycleTime is a rational number of seconds, defined by an
integer numerator and an integer denominator.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.8.4 of IEEE Std 802.1Q-2018
8.6.9.4.20 of IEEE Std 802.1Q-2018";
uses ieee802:rational-grouping;
}
leaf admin-cycle-time-extension {
type uint32;
units "nanoseconds";
description
"An unsigned integer number of nanoseconds, defining the
maximum amount of time by which the gating cycle for the
Port is permitted to be extended when a new cycle
configuration is being installed. This is the administrative
value.
The value must be retained across reinitializations of the
management system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.4 of IEEE Std 802.1Q-2018";
}
leaf oper-cycle-time-extension {
type uint32;
units "nanoseconds";
config false;
description
"An unsigned integer number of nanoseconds, defining the
maximum amount of time by which the gating cycle for the
Port is permitted to be extended when a new cycle
configuration is being installed. This is the operational
value.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.21 of IEEE Std 802.1Q-2018";
}
container admin-base-time {
description
"The administrative value of the base time at which gating
cycles begin, expressed as an IEEE 1588 precision time
protocol (PTP) timescale.
The value must be retained across reinitializations of the
management system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.1 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
container oper-base-time {
config false;
description
"The operational value of the base time at which gating
cycles begin, expressed as an IEEE 1588 precision time
protocol (PTP) timescale.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.18 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
leaf config-change {
type boolean;
description
"The ConfigChange parameter signals the start of a
configuration change when it is set to TRUE, indicating that
the administrative parameters for the Port are ready to be
copied into their corresponding operational parameters. This
should only be done when the various administrative
parameters are all set to appropriate values.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.7 of IEEE Std 802.1Q-2018";
}
container config-change-time {
config false;
description
"The time at which the next config change is scheduled to
occur.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.9 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
leaf tick-granularity {
type uint32;
config false;
description
"The granularity of the cycle time clock, represented as an
unsigned number of tenths of nanoseconds.
The value must be retained across reinitializations of the
management system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018";
}
container current-time {
config false;
description
"The current time as maintained by the local system.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.10 of IEEE Std 802.1Q-2018";
uses ieee802:ptp-time-grouping;
}
leaf config-pending {
type boolean;
config false;
description
"The value of the ConfigPending state machine variable. The
value is TRUE if a configuration change is in progress but
has not yet completed.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.4.8 of IEEE Std 802.1Q-2018";
}
leaf config-change-error {
type yang:counter64;
config false;
description
"A counter of the number of times that a re-configuration of
the traffic schedule has been requested with the old
schedule still running and the requested base time was in
the past.";
reference
"12.29.1 of IEEE Std 802.1Q-2018
8.6.9.3.1 of IEEE Std 802.1Q-2018";
}
leaf supported-list-max {
type uint32;
description
"The maximum value supported by this Port for the
AdminControlListLength and OperControlListLength parameters.
It is available for use by schedule computation software to
determine the port’s control list capacity prior to
computation. The object may optionally be read-only.";
reference
"12.29.1.5 of IEEE Std 802.1Q-2018
8.6.9.4.21 of IEEE Std 802.1Q-2018";
}
container supported-cycle-max {
description
"The maximum value supported by this Port of the
AdminCycleTime and OperCycleTime parameters. The object may
optionally be read-only.";
reference
"12.29.1.6 of IEEE Std 802.1Qcw";
uses ieee802:rational-grouping;
}
leaf supported-interval-max {
type uint32;
description
"The maximum value supported by this Port of the
TimeIntervalValue parameter. The object may optionally
be read-only.";
reference
"12.29.1.7 of IEEE Std 802.1Qcw";
}
}
}
}
Loading…
Cancel
Save