Cisco-IOS-XR-pbr-oper

This module contains a collection of YANG definitions for Cisco IOS-XR pbr package operational data. This module contains defin...

  • Version: 2020-02-21

    Cisco-IOS-XR-pbr-oper@2020-02-21


    
      module Cisco-IOS-XR-pbr-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-pbr-oper";
    
        prefix pbr-oper;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import cisco-semver {
          prefix semver;
        }
    
        include Cisco-IOS-XR-pbr-oper-sub1 {
          revision-date "2020-02-21";
        }
    
        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 module contains a collection of YANG definitions
    for Cisco IOS-XR pbr package operational data.
    
    This module contains definitions
    for the following management objects:
      pbr: PBR operational data
    
    Copyright (c) 2013-2020 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2020-02-21" {
          description
            "Adding HTTP Redirect stats per subs interface";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "1.1.0";
        semver:module-version "1.0.1";
    
        container pbr {
          config false;
          description "PBR operational data";
          container nodes {
            description
              "Node-specific PBR operational data";
            list node {
              key "node-name";
              description
                "PBR operational data for a particular node";
              container policy-map {
                description
                  "Operational data for policymaps";
                container interfaces {
                  description
                    "Operational data for all interfaces";
                  list interface {
                    key "interface-name";
                    description
                      "PBR action data for a particular interface";
                    container direction {
                      description
                        "PBR direction";
                      container input {
                        description
                          "PBR policy statistics";
                        leaf node-name {
                          type string {
                            length "0..42";
                          }
                          description "NodeName";
                        }
    
                        leaf policy-name {
                          type string {
                            length "0..65";
                          }
                          description
                            "PolicyName";
                        }
    
                        leaf state {
                          type Policy-state;
                          description "State";
                        }
    
                        leaf state-description {
                          type string {
                            length "0..128";
                          }
                          description
                            "StateDescription";
                        }
    
                        list class-stat {
                          description
                            "Array of classes contained in policy";
                          container general-stats {
                            description
                              "general stats";
                            leaf transmit-packets {
                              type uint64;
                              units "byte";
                              description
                                "Transmitted packets (packets/bytes)";
                            }
    
                            leaf transmit-bytes {
                              type uint64;
                              units "byte";
                              description
                                "Transmitted bytes (packets/bytes)";
                            }
    
                            leaf total-drop-packets {
                              type uint64;
                              units "byte";
                              description
                                "Dropped packets (packets/bytes)";
                            }
    
                            leaf total-drop-bytes {
                              type uint64;
                              units "byte";
                              description
                                "Dropped bytes (packets/bytes)";
                            }
    
                            leaf total-drop-rate {
                              type uint32;
                              units "byte";
                              description
                                "Total drop rate (packets/bytes)";
                            }
    
                            leaf match-data-rate {
                              type uint32;
                              units "kbit/s";
                              description
                                "Incoming matched data rate in kbps";
                            }
    
                            leaf total-transmit-rate {
                              type uint32;
                              units "kbit/s";
                              description
                                "Total transmit rate in kbps";
                            }
    
                            leaf pre-policy-matched-packets {
                              type uint64;
                              description
                                "Matched pkts before applying policy";
                            }
    
                            leaf pre-policy-matched-bytes {
                              type uint64;
                              units "byte";
                              description
                                "Matched bytes before applying policy";
                            }
                          }  // container general-stats
    
                          container httpr-stats {
                            description
                              "HTTPR stats";
                            leaf rqst-rcvd-packets {
                              type uint64;
                              description
                                "TotalNum of pkts HTTP request received";
                            }
    
                            leaf rqst-rcvd-bytes {
                              type uint64;
                              units "byte";
                              description
                                "TotalNum of Bytes HTTP request received";
                            }
    
                            leaf drop-packets {
                              type uint64;
                              description
                                "Dropped  packets";
                            }
    
                            leaf drop-bytes {
                              type uint64;
                              units "byte";
                              description
                                "Dropped bytes";
                            }
    
                            leaf resp-sent-packets {
                              type uint64;
                              description
                                "TotalNum of pkts HTTPR response sent";
                            }
    
                            leaf resp-sent-bytes {
                              type uint64;
                              units "byte";
                              description
                                "TotalNum of Bytes HTTPR response sent";
                            }
                          }  // container httpr-stats
    
                          container http-enrich-stats {
                            description
                              "HTTP Enrichment stats";
                            leaf rqst-rcvd-packets {
                              type uint64;
                              description
                                "TotalNum of pkts HTTP request received";
                            }
    
                            leaf rqst-rcvd-bytes {
                              type uint64;
                              units "byte";
                              description
                                "TotalNum of Bytes HTTP request received";
                            }
    
                            leaf drop-packets {
                              type uint64;
                              description
                                "Dropped  packets";
                            }
    
                            leaf drop-bytes {
                              type uint64;
                              units "byte";
                              description
                                "Dropped bytes";
                            }
    
                            leaf resp-sent-packets {
                              type uint64;
                              description
                                "TotalNum of pkts HTTP Enrichment response sent";
                            }
    
                            leaf resp-sent-bytes {
                              type uint64;
                              units "byte";
                              description
                                "TotalNum of Bytes HTTP Enrichment response sent";
                            }
    
                            leaf req-sent-packets {
                              type uint64;
                              description
                                "TotalNum of pkts HTTP Enrichment request sent";
                            }
    
                            leaf tcp-sent-packets {
                              type uint64;
                              description
                                "TotalNum of pkts HTTP Enrichment TCP packet sent";
                            }
    
                            leaf redirected-http-requests {
                              type uint64;
                              description
                                "TotalNum of HTTP requests redirected to client";
                            }
                          }  // container http-enrich-stats
    
                          leaf counter-validity-bitmask {
                            type uint64;
                            units "byte";
                            description
                              " Bitmask to indicate which counter or counters
    are undetermined. Counters will be marked
    undetermined when one or more classes share
    queues with class-default because in such cases
    the value of counters for each class is invalid.
    Based on the flag(s) set, the following counters
    will be marked undetermined. For example, if
    value of this object returned is 0x00000101,
    counters
    TransmitPackets/TransmitBytes/TotalTransmitRate
    and DropPackets/DropBytes are undetermined
    .0x00000001 - Transmit
    (TransmitPackets/TransmitBytes/TotalTransmitRate
    ), 0x00000002 - Drop
    (TotalDropPackets/TotalDropBytes/TotalDropRate),
    0x00000004 - Httpr
    (HttprTransmitPackets/HttprTransmitBytes),
    0x00000020 - HttpErich
    (HttpErichTransmitPackets
    /HttpEnrichTransmitBytes), ";
                          }
    
                          leaf class-name {
                            type string {
                              length "0..65";
                            }
                            description
                              "ClassName";
                          }
    
                          leaf class-id {
                            type uint32;
                            description
                              "ClassId";
                          }
                        }  // list class-stat
                      }  // container input
                    }  // container direction
    
                    leaf interface-name {
                      type xr:Interface-name;
                      description
                        "Name of the interface";
                    }
                  }  // list interface
                }  // container interfaces
              }  // container policy-map
    
              leaf node-name {
                type xr:Node-id;
                description "The node";
              }
            }  // list node
          }  // container nodes
        }  // container pbr
      }  // module Cisco-IOS-XR-pbr-oper
    

© 2023 YumaWorks, Inc. All rights reserved.