Cisco-IOS-XR-pbr-vservice-ea-oper-sub1

This submodule contains a collection of YANG definitions for Cisco IOS-XR pbr-vservice-ea package operational data. Copyright (...

  • Version: 2019-04-05

    Cisco-IOS-XR-pbr-vservice-ea-oper-sub1@2019-04-05


    
      submodule Cisco-IOS-XR-pbr-vservice-ea-oper-sub1 {
    
        yang-version 1;
    
        belongs-to
          Cisco-IOS-XR-pbr-vservice-ea-oper {
            prefix
              Cisco-IOS-XR-pbr-vservice-ea-oper;
        }
    
        import cisco-semver {
          prefix semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
         
         Postal: 170 West Tasman Drive
         San Jose, CA 95134
         
         Tel: +1 800 553-NETS
         
         E-mail: cs-yang@cisco.com";
    
        description
          "This submodule contains a collection of YANG definitions
         for Cisco IOS-XR pbr-vservice-ea package operational data.
         
         Copyright (c) 2013-2019 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2017-05-01" {
          description
            "Fixing backward compatibility error in module.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "1.0.1";
    
        typedef Vs-nsh-stats {
          type enumeration {
            enum "vs-nsh-stats-spi-si" {
              value 0;
              description "vs nsh stats spi si";
            }
            enum "vs-nsh-stats-ter-min-ate" {
              value 1;
              description
                "vs nsh stats ter min ate";
            }
            enum "vs-nsh-stats-sf" {
              value 2;
              description "vs nsh stats sf";
            }
            enum "vs-nsh-stats-sff" {
              value 3;
              description "vs nsh stats sff";
            }
            enum "vs-nsh-stats-sff-local" {
              value 4;
              description
                "vs nsh stats sff local";
            }
            enum "vs-nsh-stats-sfp" {
              value 5;
              description "vs nsh stats sfp";
            }
            enum "vs-nsh-stats-sfp-detail" {
              value 6;
              description
                "vs nsh stats sfp detail";
            }
            enum "vs-nsh-stats-max" {
              value 7;
              description "vs nsh stats max";
            }
          }
          description "Vs nsh stats";
        }
    
        grouping VS-NSH-SI-DATA {
          description
            "Service index stats counters";
          container spi-si {
            when
              "../type = 'vs-nsh-stats-spi-si'" {
              description
                "../type = 'VS_NSH_STATS_SPI_SI'";
            }
            description "SF/SFF stats";
            uses VSERVICE-NSH-SPI-SI;
          }  // container spi-si
    
          container term {
            when
              "../type = 'vs-nsh-stats-ter-min-ate'" {
              description
                "../type = 'VS_NSH_STATS_TERMINATE'";
            }
            description "Terminate stats";
            uses VSERVICE-NSH-SPI-SI-TERMINATE;
          }  // container term
    
          leaf type {
            type Vs-nsh-stats;
            description "type";
          }
        }  // grouping VS-NSH-SI-DATA
    
        grouping VSERVICE-NSH-SI {
          description "si supported counters";
          container data {
            description
              "Stats counter for this index";
            uses VS-NSH-SI-DATA;
          }  // container data
    
          leaf si {
            type uint8;
            description "Service index";
          }
        }  // grouping VSERVICE-NSH-SI
    
        grouping VSERVICE-NSH-SFF-LOCAL {
          description
            "Local service-function-forwarder counters";
          leaf malformed-err-pkts {
            type uint64;
            description
              "Number of packets with invalid NSH header";
          }
    
          leaf lookup-err-pkts {
            type uint64;
            description
              "Number of packets with unknown spi-si";
          }
    
          leaf malformed-err-bytes {
            type uint64;
            units "byte";
            description
              "Total bytes with invalid NSH header";
          }
    
          leaf lookup-err-bytes {
            type uint64;
            units "byte";
            description
              "Total bytes with unknown spi-si";
          }
        }  // grouping VSERVICE-NSH-SFF-LOCAL
    
        grouping VSERVICE-NSH-SF {
          description
            "Service function/forwarder counters";
          leaf processed-pkts {
            type uint64;
            description
              "Number of packets processed";
          }
    
          leaf processed-bytes {
            type uint64;
            units "byte";
            description "Total bytes processed";
          }
        }  // grouping VSERVICE-NSH-SF
    
        grouping VSERVICE-NSH-SPI-SI-TERMINATE {
          description
            "spi-si supported counters";
          leaf terminated-pkts {
            type uint64;
            description
              "Number of terminated packets";
          }
    
          leaf terminated-bytes {
            type uint64;
            units "byte";
            description "Total bytes terminated";
          }
        }  // grouping VSERVICE-NSH-SPI-SI-TERMINATE
    
        grouping VSERVICE-NSH-SPI-SI {
          description
            "spi-si supported counters";
          leaf processed-pkts {
            type uint64;
            description
              "Number of packets processed";
          }
    
          leaf processed-bytes {
            type uint64;
            units "byte";
            description "Total bytes processed";
          }
        }  // grouping VSERVICE-NSH-SPI-SI
    
        grouping VSERVICE-NSH-SFP {
          description "spf supported counters";
          container spi-si {
            description "Service index counters";
            uses VSERVICE-NSH-SPI-SI;
          }  // container spi-si
    
          container term {
            description "Terminate counters";
            uses VSERVICE-NSH-SPI-SI-TERMINATE;
          }  // container term
        }  // grouping VSERVICE-NSH-SFP
    
        grouping VS-NSH-STATS-DATA {
          description "Union for stats counter";
          container sfp {
            when "../type = 'vs-nsh-stats-sfp'" {
              description
                "../type = 'VS_NSH_STATS_SFP'";
            }
            description "SFP stats";
            uses VSERVICE-NSH-SFP;
          }  // container sfp
    
          container spi-si {
            when
              "../type = 'vs-nsh-stats-spi-si'" {
              description
                "../type = 'VS_NSH_STATS_SPI_SI'";
            }
            description "SPI SI stats";
            uses VSERVICE-NSH-SPI-SI;
          }  // container spi-si
    
          container term {
            when
              "../type = 'vs-nsh-stats-ter-min-ate'" {
              description
                "../type = 'VS_NSH_STATS_TERMINATE'";
            }
            description "Terminate stats";
            uses VSERVICE-NSH-SPI-SI-TERMINATE;
          }  // container term
    
          container sf {
            when "../type = 'vs-nsh-stats-sf'" {
              description
                "../type = 'VS_NSH_STATS_SF'";
            }
            description "Service function stats";
            uses VSERVICE-NSH-SF;
          }  // container sf
    
          container sff {
            when "../type = 'vs-nsh-stats-sff'" {
              description
                "../type = 'VS_NSH_STATS_SFF'";
            }
            description
              "Service function forwarder stats";
            uses VSERVICE-NSH-SF;
          }  // container sff
    
          container sff-local {
            when
              "../type = 'vs-nsh-stats-sff-local'" {
              description
                "../type = 'VS_NSH_STATS_SFF_LOCAL'";
            }
            description
              "Local service function forwarder stats";
            uses VSERVICE-NSH-SFF-LOCAL;
          }  // container sff-local
    
          leaf type {
            type Vs-nsh-stats;
            description "type";
          }
        }  // grouping VS-NSH-STATS-DATA
    
        grouping VSERVICE-EDM-NSH-STATS-INFO {
          description "NSH stats bag";
          container data {
            description "Statistics data";
            uses VS-NSH-STATS-DATA;
          }  // container data
    
          list si-arr {
            description
              "SI array in case of detail stats";
            uses VSERVICE-NSH-SI;
          }  // list si-arr
        }  // grouping VSERVICE-EDM-NSH-STATS-INFO
      }  // submodule Cisco-IOS-XR-pbr-vservice-ea-oper-sub1
    

© 2023 YumaWorks, Inc. All rights reserved.