module ietf-connectionless-oam { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-connectionless-oam"; prefix cl-oam; import ietf-yang-schema-mount { prefix yangmnt; } import ietf-network { prefix nd; } import ietf-yang-types { prefix yang; } import ietf-interfaces { prefix if; } import ietf-inet-types { prefix inet; } import ietf-network-instance { prefix ni; } import ietf-routing-types { prefix rt; } import ietf-lime-time-types { prefix lime; } organization "IETF LIME Working Group"; contact "Deepak Kumar dekumar@cisco.com Qin Wu bill.wu@huawei.com S Raghavan srihari@cisco.com Zitao Wang wangzitao@huawei.com R Rahman rrahman@cisco.com"; description "This YANG module defines the generic configuration, data model, and statistics for OAM protocols using connectionless communications, described in a protocol independent manner. It is assumed that each protocol maps corresponding abstracts to its native format. Each protocol mayextend the YANG model defined here to include protocol specific extensions."; revision 2017-09-06 { description "Base model for Connectionless Operations, Administration, and Maintenance (OAM)"; reference "RFC XXXX: Connectionless Operations, Administration, and Maintenance (OAM) YANG Data Model"; } feature connectionless { description "This feature indicates that OAM solution is connectionless."; } feature continuity-check { description "This feature indicates that the server supports executing continuity check OAM command and returning a response. Servers that do not advertise this feature will not support executing continuity check command or RPC operation model for continuity check command."; } feature path-discovery { description "This feature indicates that the server supports executing path discovery OAM command and returning a response. Servers that do not advertise this feature will not support executing path discovery command or RPC operation model for path discovery command."; } feature ptp-long-format { description "This feature indicates that timestamp is PTP long format."; } feature ntp-short-format { description "This feature indicates that timestamp is NTP short format."; } feature icmp-timestamp { description "This feature indicates that timestamp is ICMP timestamp."; } identity traffic-type { description "This is base identity of traffic type which include IPv4 and IPv6, etc."; } identity ipv4 { base traffic-type; description "identity for IPv4 traffic type."; } identity ipv6 { base traffic-type; description "identity for IPv4 traffic type."; } identity address-attribute-types { description "This is base identity of address attribute types which are Generic IPv4/IPv6 Prefix, BGP Labeled IPv4/IPv6 Prefix, Tunnel ID, PW ID, VPLS VE ID, etc. (see RFC8029 for details.)"; } typedef address-attribute-type { type identityref { base address-attribute-types; } description "Target address attribute type."; } typedef percentage { type decimal64 { fraction-digits 5; range "0..100"; } description "Percentage."; } typedef routing-instance-ref { type leafref { path "/ni:network-instances/ni:network-instance/ni:name"; } description "This type is used for leafs that reference a routing instance configuration."; } grouping cc-session-statistics { description "Grouping for session statistics."; container cc-session-statistics { description "cc session counters"; leaf session-count { type uint32; default "0"; description "Number of Continuity Check sessions. A value of zero indicates that no session count is sent."; } leaf session-up-count { type uint32; default "0"; description "Number of sessions which are up. A value of zero indicates that no up session count is sent."; } leaf session-down-count { type uint32; default "0"; description "Number of sessions which are down. A value of zero indicates that no down session count is sent."; } leaf session-admin-down-count { type uint32; default "0"; description "Number of sessions which are admin-down. A value of zero indicates that no admin down session count is sent."; } } } grouping session-packet-statistics { description "Grouping for per session packet statistics"; container session-packet-statistics { description "Per session packet statistics."; leaf rx-packet-count { type uint32{ range "0..4294967295"; } default "0"; description "Total number of received OAM packet count. The value of count 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."; } leaf tx-packet-count { type uint32{ range "0..4294967295"; } default "0"; description "Total number of transmitted OAM packet count. The value of count 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."; } leaf rx-bad-packet { type uint32 { range "0..4294967295"; } default "0"; description "Total number of received bad OAM packet. The value of count 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."; } leaf tx-packet-failed { type uint32 { range "0..4294967295"; } default "0"; description "Total number of failed sending OAM packet. The value of count 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."; } } } grouping cc-per-session-statistics { description "Grouping for per session statistics"; container cc-per-session-statistics { description "per session statistics."; leaf create-time { type yang:date-and-time; description "Time and date when session is created."; } leaf last-down-time { type yang:date-and-time; description "Time and date last time session is down."; } leaf last-up-time { type yang:date-and-time; description "Time and date last time session is up."; } leaf down-count { type uint32 { range "0..4294967295"; } default "0"; description "Total Continuity Check sessions down count. The value of count 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."; } leaf admin-down-count { type uint32 { range "0..4294967295"; } default "0"; description "Total Continuity Check sessions admin down count. The value of count 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."; } uses session-packet-statistics; } } grouping session-error-statistics { description "Grouping for per session error statistics"; container session-error-statistics { description "Per session error statistics."; leaf packet-loss-count { type uint32 { range "0..4294967295"; } default "0"; description "Total received packet drops count. The value of count 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."; } leaf loss-ratio{ type percentage; description "Loss ratio of the packets. Express as percentage of packets lost with respect to packets sent."; } leaf packet-reorder-count { type uint32 { range "0..4294967295"; } default "0"; description "Total received packet reordered count. The value of count 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."; } leaf packets-out-of-seq-count { type uint32 { range "0..4294967295"; } description "Total received out of sequence count. The value of count 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.."; } leaf packets-dup-count { type uint32 { range "0..4294967295"; } description "Total received packet duplicates count. The value of count 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."; } } } grouping session-delay-statistics { description "Grouping for per session delay statistics"; container session-delay-statistics { description "Session delay summarised information. By default, one way measurement protocol (e.g., OWAMP) is used to measure delay. When two way measurement protocol (e.g., TWAMP) is used instead, it can be indicated using and protocol-id defined in RPC operation of draft-ietf-lime-yang-connectionless-oam-methods, i.e., set protocol-id as OWAMP. Note that only one measurement protocol for delay is specified for interoperability reason."; leaf time-unit-value { type identityref { base lime:time-unit-type; } default lime:milliseconds; description "Time units among choice of s, ms, ns, etc."; } leaf min-delay-value { type uint32; description "Minimum delay value observed."; } leaf max-delay-value { type uint32; description "Maximum delay value observed."; } leaf average-delay-value { type uint32; description "Average delay value observed."; } } } grouping session-jitter-statistics { description "Grouping for per session jitter statistics"; container session-jitter-statistics { description "Session jitter summarised information. By default, jitter is measured using IP Packet Delay Variation (IPDV) as defined in RFC3393. When the other measurement method is used instead (e.g., Packet Delay Variation used in Y.1540, it can be indicated using protocol-id-meta-data defined in RPC operation of draft-ietf-lime-yang-connectionless-oam-methods. Note that only one measurement method for jitter is specified for interoperability reason."; leaf unit-value { type identityref { base lime:time-unit-type; } default lime:milliseconds; description "Time units among choice of s, ms, ns, etc."; } leaf min-jitter-value { type uint32; description "Minimum jitter value observed."; } leaf max-jitter-value { type uint32; description "Maximum jitter value observed."; } leaf average-jitter-value { type uint32; description "Average jitter value observed."; } } } grouping session-path-verification-statistics { description "Grouping for per session path verification statistics"; container session-path-verification-statistics { description "OAM per session path verification statistics."; leaf verified-count { type uint32 { range "0..4294967295"; } description "Total number of OAM packets that went through a path as intended. The value of count 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."; } leaf failed-count { type uint32 { range "0..4294967295"; } description "Total number of OAM packets that went through an unintended path. The value of count 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."; } } } grouping session-type { description "This object indicates which kind of activation will be used by the current session."; leaf session-type { type enumeration { enum "proactive" { description "The current session is proactive session."; } enum "on-demand" { description "The current session is on-demand session."; } } default "on-demand"; description "Indicate which kind of activation will be used by the current session"; } } identity tp-address-technology-type { description "Test point address type"; } identity mac-address-type { base tp-address-technology-type; description "MAC address type"; } identity ipv4-address-type { base tp-address-technology-type; description "IPv4 address type"; } identity ipv6-address-type { base tp-address-technology-type; description "IPv6 address type"; } identity tp-attribute-type { base tp-address-technology-type; description "Test point attribute type"; } identity router-id-address-type { base tp-address-technology-type; description "System id address type"; } identity as-number-address-type { base tp-address-technology-type; description "AS number address type"; } identity route-distinguisher-address-type { base tp-address-technology-type; description "Route Distinguisher address type"; } grouping tp-address { leaf tp-location-type { type identityref { base tp-address-technology-type; } mandatory true; description "Test point address type."; } container mac-address { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:mac-address-type')" { description "MAC address type"; } leaf mac-address { type yang:mac-address; mandatory true; description "MAC Address"; } description "MAC Address based TP Addressing."; } container ipv4-address { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:ipv4-address-type')" { description "IPv4 address type"; } leaf ipv4-address { type inet:ipv4-address; mandatory true; description "IPv4 Address"; } description "IP Address based TP Addressing."; } container ipv6-address { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:ipv6-address-type')" { description "IPv6 address type"; } leaf ipv6-address { type inet:ipv6-address; mandatory true; description "IPv6 Address"; } description "ipv6 Address based TP Addressing."; } container tp-attribute { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:tp-attribute-type')" { description "Test point attribute type"; } leaf tp-attribute-type { type address-attribute-type; description "Test point type."; } choice tp-attribute-value { description "Test point value."; case ip-prefix { leaf ip-prefix { type inet:ip-prefix; description "Generic IPv4/IPv6 prefix. See Section 3.2.13 and Section 3.2.14 of RFC8029."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } } case bgp { leaf bgp { type inet:ip-prefix; description "BGP Labeled IPv4/IPv6 Prefix. See section 3.2.11 and section 3.2.12 of RFC8029 for details. "; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } } case tunnel { leaf tunnel-interface { type uint32; description "Basic IPv4/IPv6 Tunnel ID. See section 3.2.3 and Section 3.2.4 of RFC8029 for details."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures."; } } case pw { leaf remote-pe-address { type inet:ip-address; description "Remote PE address. See section 3.2.8 of RFC8029 for details."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } leaf pw-id { type uint32; description "Pseudowire ID is a non-zero 32-bit ID. See section 3.2.8 and Section 3.2.9 for details."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } } case vpls { leaf route-distinguisher { type rt:route-distinguisher; description "Route Distinguisher is an 8 octets identifier used to distinguish information about various L2VPN advertised by a node."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } leaf sender-ve-id { type uint16; description "Sender's VE ID. The VE ID (VPLS Edge Identifier) is a 2-octet identifier."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } leaf receiver-ve-id { type uint16; description "Receiver's VE ID. The VE ID (VPLS Edge Identifier) is a 2-octet identifier."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } } case mpls-mldp { choice root-address { description "Root address choice."; case ip-address { leaf source-address { type inet:ip-address; description "IP address."; } leaf group-ip-address { type inet:ip-address; description "Group ip address."; } } case vpn { leaf as-number { type inet:as-number; description "The AS number represents autonomous system numbers which identify an Autonomous System."; } } case global-id { leaf lsp-id { type string; description "LSP ID is an identifier of a LSP within a MPLS network."; reference "RFC 8029 :Detecting Multi-Protocol Label Switched (MPLS) Data Plane Failures"; } } } } } description "Test Point Attribute Container"; } container system-info { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:router-id-address-type')" { description "System id address type"; } leaf router-id { type rt:router-id; description "Router ID assigned to this node."; } description "Router ID container."; } description "TP Address"; } grouping tp-address-ni { description "Test point address with VRF."; leaf ni { type routing-instance-ref; description "The ni is used to describe virtual resource partitioning that may be present on a network device. Example of common industry terms for virtual resource partitioning is VRF instance."; } uses tp-address; } grouping connectionless-oam-tps { list oam-neighboring-tps { key "index"; leaf index { type uint16{ range "0..65535"; } description "Index of a list of neighboring test points in layers up and down the stack for the same interface that are related to the current test point."; } leaf position { type int8 { range "-1..1"; } default "0"; description " The relative position of neighboring test point corresponding to the current test point. Level 0 indicates test point corresponding to a specific index is in the same layer as the current test point.-1 means there is test point corresponding to a specific index is the test point down the stack and +1 means there is a test point corresponding to a specific index is the test point up the stack."; } choice tp-location { case mac-address { leaf mac-address-location { type yang:mac-address; description "MAC Address"; } description "MAC Address based TP Addressing."; } case ipv4-address { leaf ipv4-address-location { type inet:ipv4-address; description "Ipv4 Address"; } description "IP Address based TP Addressing."; } case ipv6-address { leaf ipv6-address-location { type inet:ipv6-address; description "IPv6 Address"; } description "IPv6 Address based TP Addressing."; } case as-number { leaf as-number-location { type inet:as-number; description "AS number location"; } description "AS number for point to multipoint OAM"; } case router-id { leaf router-id-location { type rt:router-id; description "System id location"; } description "System ID"; } description "TP location."; } description "List of neighboring test points in the same layer that are related to current test point. If the neighboring test-point is placed after the current test point, the position is specified as +1. If neighboring test-point is placed before the current test point, the position is specified as -1, if no neighboring test points placed before or after the current test point in the same layer, the position is specified as 0."; } description "Connectionless OAM related neighboring test points list."; } grouping tp-technology { choice technology { default "technology-null"; case technology-null { description "This is a placeholder when no technology is needed."; leaf tech-null { type empty; description "There is no technology to be defined."; } } description "Technology choice."; } description "OAM Technology"; } grouping tp-tools { description "Test Point OAM Toolset."; container tp-tools { leaf continuity-check { type boolean; mandatory true; description "A flag indicating whether or not the continuity check function is supported."; reference "RFC 792: INTERNET CONTROL MESSAGE PROTOCOL. RFC 4443: Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification. RFC 5880: Bidirectional Forwarding Detection. RFC 5881: BFD for IPv4 and IPv6. RFC 5883: BFD for Multihop Paths. RFC 5884: BFD for MPLS Label Switched Paths. RFC 5885: BFD for PW VCCV. RFC 6450: Multicast Ping Protocol. RFC 8029: Detecting Multiprotocol Label Switched (MPLS) Data-Plane Failures."; } leaf path-discovery { type boolean; mandatory true; description "A flag indicating whether or not the path discovery function is supported."; reference "RFC 792: INTERNET CONTROL MESSAGE PROTOCOL. RFC 4443: Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification. RFC 4884: Extended ICMP to Support Multi-part Message. RFC 5837:Extending ICMP for Interface. and Next-Hop Identification. RFC 8029: Detecting Multiprotocol Label Switched (MPLS) Data-Plane Failures."; } description "Container for test point OAM tools set."; } } grouping test-point-location-info { uses tp-technology; uses tp-tools; anydata root { yangmnt:mount-point "root"; description "Root for models supported per test point"; } uses connectionless-oam-tps; description "Test point Location"; } grouping test-point-locations { description "Group of test point locations."; leaf tp-location-type { type identityref { base tp-address-technology-type; } description "Test point location type."; } container ipv4-location-type { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:ipv4-address-type')" { description "When test point location type is equal to ipv4 address."; } container test-point-ipv4-location-list { list test-point-locations { key "ipv4-location ni"; leaf ipv4-location { type inet:ipv4-address; description "IPv4 Address."; } leaf ni { type routing-instance-ref; description "The ni is used to describe the corresponding network instance"; } uses test-point-location-info; description "List of test point locations."; } description "Serves as top-level container for test point location list."; } description "ipv4 location type container."; } container ipv6-location-type { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:ipv6-address-type')" { description "when test point location is equal to ipv6 address"; } container test-point-ipv6-location-list { list test-point-locations { key "ipv6-location ni"; leaf ipv6-location { type inet:ipv6-address; description "IPv6 Address."; } leaf ni { type routing-instance-ref; description "The ni is used to describe the corresponding network instance"; } uses test-point-location-info; description "List of test point locations."; } description "Serves as top-level container for test point location list."; } description "ipv6 location type container."; } container mac-location-type { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:mac-address-type')" { description "when test point location type is equal to mac address."; } container test-point-mac-address-location-list { list test-point-locations { key "mac-address-location"; leaf mac-address-location { type yang:mac-address; description "MAC Address"; } uses test-point-location-info; description "List of test point locations."; } description "Serves as top-level container for test point location list."; } description "mac address location type container."; } container group-as-number-location-type { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:as-number-address-type')" { description "when test point location type is equal to as-number."; } container test-point-as-number-location-list { list test-point-locations { key "as-number-location"; leaf as-number-location { type inet:as-number; description "AS number for point to multi point OAM."; } leaf ni { type routing-instance-ref; description "The ni is used to describe the corresponding network instance"; } uses test-point-location-info; description "List of test point locations."; } description "Serves as top-level container for test point location list."; } description "as number location type container."; } container group-router-id-location-type { when "derived-from-or-self(../tp-location-type,"+ "'cl-oam:router-id-address-type')" { description "when test point location type is equal to system-info."; } container test-point-system-info-location-list { list test-point-locations { key "router-id-location"; leaf router-id-location { type rt:router-id; description "System Id."; } leaf ni { type routing-instance-ref; description "The ni is used to describe the corresponding network instance"; } uses test-point-location-info; description "List of test point locations."; } description "Serves as top-level container for test point location list."; } description "system ID location type container."; } } augment "/nd:networks/nd:network/nd:node" { description "augments the /networks/network/node path defined in the ietf-network module (I-D.ietf-i2rs-yang-network-topo) with test-point-locations grouping."; uses test-point-locations; } grouping timestamp { description "Grouping for timestamp."; leaf timestamp-type { type identityref { base lime:timestamp-type; } description "Type of Timestamp, such as Truncated PTP, NTP."; } container timestamp-64bit { when "derived-from-or-self(../timestamp-type, 'cl-oam:truncated-ptp')"+ "or derived-from-or-self(../timestamp-type,'cl-oam:ntp64')" { description "Only applies when Truncated PTP or 64bit NTP Timestamp."; } leaf timestamp-sec { type uint32; description "Absolute timestamp in seconds as per IEEE1588v2 or seconds part in 64-bit NTP timestamp."; } leaf timestamp-nanosec { type uint32; description "Fractional part in nanoseconds as per IEEE1588v2 or Fractional part in 64-bit NTP timestamp."; } description "Container for 64bit timestamp.See section 4.2.1 of draft-ietf-ntp-packet-timestamps for NTP 64-bit Timestamp Format and section 4.3 of draft-ietf-ntp-packet-timestamps for The PTP Truncated Timestamp Format."; } container timestamp-80bit { when "derived-from-or-self(../timestamp-type, 'cl-oam:ptp80')"{ description "Only applies when 80bit PTP Timestamp."; } if-feature ptp-long-format; leaf timestamp-sec { type uint64 { range "0..281474976710655"; } description "48bit Timestamp in seconds as per IEEE1588v2."; } leaf timestamp-nanosec { type uint32; description "Fractional part in nanoseconds as per IEEE1588v2."; } description "Container for 80bit timestamp."; } container ntp-timestamp-32bit { when "derived-from-or-self(../timestamp-type, 'cl-oam:truncated-ntp')"{ description "Only applies when 32 bit NTP Short format Timestamp."; } if-feature ntp-short-format; leaf timestamp-sec { type uint16; description "Timestamp in seconds as per short format NTP."; } leaf timestamp-nanosec { type uint16; description "Truncated Fractional part in 16-bit NTP timestamp."; } description "Container for 32bit timestamp.See section 4.2.2 of draft-ietf-ntp-packet-timestamps for NTP 32-bit Timestamp Format."; } container icmp-timestamp-32bit { when "derived-from-or-self(../timestamp-type, 'cl-oam:icmp-ntp')"{ description "Only applies when Truncated NTP or 64bit NTP Timestamp."; } if-feature icmp-timestamp; leaf timestamp-millisec { type uint32; description "timestamp in milliseconds for ICMP timestamp."; } description "Container for 32bit timestamp.See RFC792 for ICMP timestamp format."; } } grouping path-discovery-data { description "Path discovery related data output from nodes."; container src-test-point { description "Source test point."; uses tp-address-ni; } container dest-test-point { description "Destination test point."; uses tp-address-ni; } leaf sequence-number { type uint64; default "0"; description "Sequence number in data packets. A value of zero indicates that no sequence number is sent."; } leaf hop-cnt { type uint8; default "0"; description "Hop count. A value of zero indicates that no hop count is sent"; } uses session-packet-statistics; uses session-error-statistics; uses session-delay-statistics; uses session-jitter-statistics; container path-verification { description "Optional path verification related information."; leaf flow-info { type string; description "Informations that refers to the flow."; } uses session-path-verification-statistics; } container path-trace-info { description "Optional path trace per-hop test point information. The path trace information list has typically a single element for per-hop cases such as path-discovery RPC operation but allows a list of hop related information for other types of data retrieval methods."; list path-trace-info-list { key "index"; description "Path trace information list."; leaf index { type uint32; description "Trace information index."; } uses tp-address-ni; uses timestamp; leaf ingress-intf-name { type if:interface-ref; description "Ingress interface name"; } leaf egress-intf-name { type if:interface-ref; description "Egress interface name"; } leaf queue-depth { type uint32; description "Length of the queue of the interface from where the packet is forwarded out. The queue depth could be the current number of memory buffers used by the queue and a packet can consume one or more memory buffers thus constituting device-level information."; } leaf transit-delay { type uint32; description "Time in nano seconds packet spent transiting a node."; } leaf app-meta-data { type uint64; description "Application specific data added by node."; } } } } grouping continuity-check-data { description "Continuity check data output from nodes."; container src-test-point { description "Source test point."; uses tp-address-ni; leaf egress-intf-name { type if:interface-ref; description "Egress interface name."; } } container dest-test-point { description "Destination test point."; uses tp-address-ni; leaf ingress-intf-name { type if:interface-ref; description "Ingress interface name."; } } leaf sequence-number { type uint64; default "0"; description "Sequence number in data packets. A value of zero indicates that no sequence number is sent."; } leaf hop-cnt { type uint8; default "0"; description "Hop count. A value of zero indicates that no hop count is sent"; } uses session-packet-statistics; uses session-error-statistics; uses session-delay-statistics; uses session-jitter-statistics; } container cc-session-statistics-data { if-feature "continuity-check"; config false; list cc-session-statistics { key type; leaf type { type identityref { base traffic-type; } description "Type of traffic."; } container cc-ipv4-sessions-statistics { when "../type = 'ipv4'" { description "Only applies when traffic type is Ipv4."; } description "CC ipv4 sessions"; uses cc-session-statistics; } container cc-ipv6-sessions-statistics { when "../type = 'ipv6'" { description "Only applies when traffic type is Ipv6."; } description "CC ipv6 sessions"; uses cc-session-statistics; } description "List of CC session statistics data."; } description "CC operational information."; } }