Cisco-IOS-XR-manageability-object-tracking-oper-sub1

This submodule contains a collection of YANG definitions for Cisco IOS-XR manageability-object-tracking package operational data...

  • Version: 2020-06-17

    Cisco-IOS-XR-manageability-object-tracking-oper-sub1@2020-06-17


    
      submodule Cisco-IOS-XR-manageability-object-tracking-oper-sub1 {
    
        yang-version 1;
    
        belongs-to
          Cisco-IOS-XR-manageability-object-tracking-oper {
            prefix
              Cisco-IOS-XR-manageability-object-tracking-oper;
        }
    
        import ietf-inet-types {
          prefix inet;
        }
        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 manageability-object-tracking package operational data.
         
         Copyright (c) 2013-2020 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2020-06-17" {
          description
            "Added support to display delay up/down values in show track.";
        }
    
        revision "2019-10-07" {
          description
            "Added support for track type bgp nbr af.";
        }
    
        revision "2019-09-07" {
          description
            "Removed IPv4 Route type nodes and added generic node for both IPv4 and IPv6.";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "2.2.0";
        semver:module-version "2.1.0";
        semver:module-version "2.0.0";
        semver:module-version "1.0.0";
    
        typedef Track {
          type enumeration {
            enum "interface-type" {
              value 1;
              description "Line protocol type";
            }
            enum "route-type" {
              value 2;
              description "Route type";
            }
            enum "bool-and-type" {
              value 3;
              description "Boolean and type";
            }
            enum "bool-or-type" {
              value 4;
              description "Boolean or type";
            }
            enum "ipsla-type" {
              value 5;
              description "Ipsla track type";
            }
            enum "undefined-type" {
              value 6;
              description "type undefined";
            }
            enum "threshold-weight" {
              value 7;
              description
                "type threshold weight";
            }
            enum "threshold-percentage" {
              value 8;
              description
                "type threshold percentage";
            }
            enum "bfd-type" {
              value 9;
              description "type bfd rtr";
            }
            enum "iflist-bool-and-type" {
              value 10;
              description
                "Interface list boolean and type";
            }
            enum "iflist-bool-or-type" {
              value 11;
              description
                "Interface list boolean or type";
            }
            enum "iflist-thld-weight" {
              value 12;
              description
                "Interface list threshold weight type";
            }
            enum "iflist-thld-percent" {
              value 13;
              description
                "Interface list threshold percent type";
            }
            enum "bgp-nbr-af-type" {
              value 14;
              description "type bgp nbr af";
            }
          }
          description "Track";
        }
    
        grouping TRACK-INFO-BRIEF {
          description "TRACK INFO BRIEF";
          list track-info-brief {
            description "track info brief";
            container track-type-info {
              description
                "Track type information";
              uses TRACK-TYPE-INFO-UNION;
            }  // container track-type-info
    
            leaf tracke-name {
              type string {
                length "0..33";
              }
              description "Track Name";
            }
    
            leaf type {
              type Track;
              description "Track type";
            }
    
            leaf track-state {
              type boolean;
              description "Track state";
            }
          }  // list track-info-brief
        }  // grouping TRACK-INFO-BRIEF
    
        grouping DELAYED-STATE-STATUS {
          description "DELAYED STATE STATUS";
          leaf time-remaining {
            type uint32;
            units "second";
            description
              "The time remaining in seconds for the counter to
             trigger state change";
          }
    
          leaf track-state {
            type boolean;
            description
              "State the track will transition to. Track state.
             True means track is up; False means track is
             down.";
          }
        }  // grouping DELAYED-STATE-STATUS
    
        grouping INTERFACE-TRACKING-INFO {
          description "INTERFACE TRACKING INFO";
          list interface-tracking-info {
            description
              "interface tracking info";
            leaf interface-name {
              type string {
                length "0..120";
              }
              description "Interface Name";
            }
          }  // list interface-tracking-info
        }  // grouping INTERFACE-TRACKING-INFO
    
        grouping THRESHOLD-TRACK-INFO {
          description "THRESHOLD TRACK INFO";
          list threshold-track-info {
            description "threshold track info";
            leaf object-name {
              type string {
                length "0..33";
              }
              description "Object name";
            }
    
            leaf track-state {
              type boolean;
              description
                "Track state. True means track is up; False
               means track is down.";
            }
    
            leaf weight {
              type uint32;
              units "percentage";
              description
                "Weight is the number assigned to a track object
               . In case of a type threshold weight( i.e.
               weighted sum list), weight is asigned by User
               at the time of configuration. In case of a type
               threshold percentage (i.e. percentage based
               list), weight is internally computed by
               (1/N)x100, where N is the number of objects in
               the list.";
            }
          }  // list threshold-track-info
        }  // grouping THRESHOLD-TRACK-INFO
    
        grouping BOOL-TRACK-INFO {
          description "BOOL TRACK INFO";
          list bool-track-info {
            description "bool track info";
            leaf object-name {
              type string {
                length "0..33";
              }
              description "Object Name";
            }
    
            leaf track-state {
              type boolean;
              description "Track state";
            }
    
            leaf with-not {
              type boolean;
              description
                "Track object with Not";
            }
          }  // list bool-track-info
        }  // grouping BOOL-TRACK-INFO
    
        grouping BFDRTR-TRACK-INFO {
          description "BFDRTR TRACK INFO";
          leaf interface-name {
            type string {
              length "0..120";
            }
            description "Interface Name";
          }
    
          leaf destination-address {
            type uint32;
            description "Destination Address";
          }
    
          leaf rate {
            type uint32;
            description "Rate";
          }
    
          leaf debounce-count {
            type uint32;
            description "Debounce Count";
          }
        }  // grouping BFDRTR-TRACK-INFO
    
        grouping RTR-TRACK-INFO {
          description "RTR TRACK INFO";
          leaf ipsla-op-id {
            type uint32;
            description "Op Id";
          }
    
          leaf rtt {
            type uint32;
            description "Latest RTT";
          }
    
          leaf return-code {
            type uint32;
            description "Latest Return Code";
          }
    
          leaf return-code-string {
            type string {
              length "0..120";
            }
            description "Latest Ret Code String";
          }
        }  // grouping RTR-TRACK-INFO
    
        grouping BGP-NBR-AF-TRACK-INFO {
          description "BGP NBR AF TRACK INFO";
          leaf is-neighbor-ipv4 {
            type boolean;
            description
              "Is BGP neighbor addr IPv4";
          }
    
          leaf ipv4-address {
            type inet:ipv4-address;
            description "IPv4 address";
          }
    
          leaf ipv6-address {
            type inet:ipv6-address;
            description "IPv6 address";
          }
    
          leaf afi {
            type uint16;
            description "AFI";
          }
    
          leaf safi {
            type uint8;
            description "SAFI";
          }
    
          leaf neighbor-object-state {
            type uint32;
            description "BGP neighborship state";
          }
    
          leaf disable-fib-check {
            type boolean;
            description
              "Disable Neighbor's route reachablity state";
          }
    
          leaf neighbor-route-reach-state {
            type boolean;
            description
              "BGP Neighbor's route reachablity state";
          }
    
          leaf vrf {
            type string {
              length "0..120";
            }
            description "VRF Name";
          }
    
          leaf ins {
            type string {
              length "0..120";
            }
            description "VRF Name";
          }
        }  // grouping BGP-NBR-AF-TRACK-INFO
    
        grouping ROUTE-TRACK-INFO {
          description "ROUTE TRACK INFO";
          leaf prefix {
            type string {
              length "0..46";
            }
            description "IPv4 or IPv6 Prefix";
          }
    
          leaf prefix-length {
            type uint32;
            description "Prefix Length";
          }
    
          leaf vrf {
            type string {
              length "0..120";
            }
            description "VRF Name";
          }
    
          leaf next-hop {
            type string {
              length "0..120";
            }
            description "Next Hop";
          }
        }  // grouping ROUTE-TRACK-INFO
    
        grouping INTF-TRACK-INFO {
          description "INTF TRACK INFO";
          leaf interface-name {
            type string {
              length "0..120";
            }
            description "Interface Name";
          }
        }  // grouping INTF-TRACK-INFO
    
        grouping TRACK-TYPE-INFO-UNION {
          description "TRACK TYPE INFO UNION";
          container interface-tracks {
            when
              "../discriminant = 'interface-type'" {
              description
                "../discriminant = 'InterfaceType'";
            }
            description
              "track type interface info";
            uses INTF-TRACK-INFO;
          }  // container interface-tracks
    
          container route-tracks {
            when
              "../discriminant = 'route-type'" {
              description
                "../discriminant = 'RouteType'";
            }
            description "track type route info";
            uses ROUTE-TRACK-INFO;
          }  // container route-tracks
    
          container bgp-nbr-af-tracks {
            when
              "../discriminant = 'bgp-nbr-af-type'" {
              description
                "../discriminant = 'BgpNbrAfType'";
            }
            description
              "track type bgp nbr af info";
            uses BGP-NBR-AF-TRACK-INFO;
          }  // container bgp-nbr-af-tracks
    
          container ipsla-tracks {
            when
              "../discriminant = 'ipsla-type'" {
              description
                "../discriminant = 'IpslaType'";
            }
            description "track type rtr info";
            uses RTR-TRACK-INFO;
          }  // container ipsla-tracks
    
          container bfd-tracks {
            when "../discriminant = 'bfd-type'" {
              description
                "../discriminant = 'BfdType'";
            }
            description "track type bfdrtr info";
            uses BFDRTR-TRACK-INFO;
          }  // container bfd-tracks
    
          leaf discriminant {
            type Track;
            description "discriminant";
          }
        }  // grouping TRACK-TYPE-INFO-UNION
    
        grouping TRACK-INFO {
          description "TRACK INFO";
          list track-info {
            description "track info";
            container track-type-info {
              description
                "Track type information";
              uses TRACK-TYPE-INFO-UNION;
            }  // container track-type-info
    
            container bool-tracks {
              description "boolean objects";
              uses BOOL-TRACK-INFO;
            }  // container bool-tracks
    
            container threshold-tracks {
              description "Threshold objects";
              uses THRESHOLD-TRACK-INFO;
            }  // container threshold-tracks
    
            container tracking-interaces {
              description "Tracking Interfaces";
              uses INTERFACE-TRACKING-INFO;
            }  // container tracking-interaces
    
            container delayed {
              description
                "Is the state change delay counter in progress";
              uses DELAYED-STATE-STATUS;
            }  // container delayed
    
            leaf tracke-name {
              type string {
                length "0..33";
              }
              description "Track Name";
            }
    
            leaf type {
              type Track;
              description "Track type";
            }
    
            leaf track-state {
              type boolean;
              description "Track state";
            }
    
            leaf state-change-counter {
              type uint32;
              description "State Change Counter";
            }
    
            leaf seconds-last-change {
              type uint64;
              units "second";
              description "Seconds Last Change";
            }
    
            leaf mili-seconds-last-change {
              type uint64;
              units "second";
              description
                "Mili Seconds Last Change";
            }
    
            leaf threshold-up {
              type uint32;
              description
                "User specified threshold upper limit";
            }
    
            leaf threshold-down {
              type uint32;
              description
                "User specified threshold lower limit";
            }
    
            leaf delay-up-time {
              type uint16;
              units "second";
              description
                "Delay up time in Seconds";
            }
    
            leaf delay-up-config {
              type boolean;
              description
                "True, if Delay up is set in config";
            }
    
            leaf delay-down-time {
              type uint16;
              units "second";
              description
                "Delay down time in Seconds";
            }
    
            leaf delay-down-config {
              type boolean;
              description
                "True, if Delay down is set in Config";
            }
          }  // list track-info
        }  // grouping TRACK-INFO
      }  // submodule Cisco-IOS-XR-manageability-object-tracking-oper-sub1
    

© 2023 YumaWorks, Inc. All rights reserved.