Cisco-IOS-XR-mpls-static-oper

This module contains a collection of YANG definitions for Cisco IOS-XR mpls-static package operational data. This module contai...

  • Version: 2019-04-05

    Cisco-IOS-XR-mpls-static-oper@2019-04-05


    
      module Cisco-IOS-XR-mpls-static-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-mpls-static-oper";
    
        prefix mpls-static-oper;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import cisco-semver {
          prefix semver;
        }
    
        include Cisco-IOS-XR-mpls-static-oper-sub1 {
          revision-date "2019-04-05";
        }
    
        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 mpls-static package operational data.
         
         This module contains definitions
         for the following management objects:
           mpls-static: MPLS STATIC 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";
    
        container mpls-static {
          config false;
          description
            "MPLS STATIC operational data";
          container vrfs {
            description "VRF table";
            list vrf {
              key "vrf-name";
              description "VRF Name";
              container lsps {
                description
                  "data for static lsp table";
                list lsp {
                  key "lsp-name";
                  description
                    "Data for static lsp";
                  leaf lsp-name {
                    type xr:Cisco-ios-xr-string;
                    description "LSP Name";
                  }
    
                  container label {
                    description
                      "Label Information";
                    container prefix {
                      description
                        "Prefix Information";
                      container prefix {
                        description "Prefix";
                        leaf af-name {
                          type Mgmt-static-addr;
                          description "AFName";
                        }
    
                        leaf ipv4-prefix {
                          when
                            "../af-name = 'ipv4'" {
                            description
                              "../AFName = 'IPv4'";
                          }
                          type inet:ipv4-address;
                          description
                            "IPv4 context";
                        }
    
                        leaf ipv6-prefix {
                          when
                            "../af-name = 'ipv6'" {
                            description
                              "../AFName = 'IPv6'";
                          }
                          type Static-ipv6-address;
                          description
                            "IPv6 context";
                        }
                      }  // container prefix
    
                      leaf prefix-length {
                        type uint8;
                        description
                          "Prefix length";
                      }
                    }  // container prefix
    
                    container pathset-resolve-nh {
                      description
                        "Primary pathset resolve-nexthop IP Address";
                      leaf af-name {
                        type Mgmt-static-addr;
                        description "AFName";
                      }
    
                      leaf ipv4-prefix {
                        when
                          "../af-name = 'ipv4'" {
                          description
                            "../AFName = 'IPv4'";
                        }
                        type inet:ipv4-address;
                        description
                          "IPv4 context";
                      }
    
                      leaf ipv6-prefix {
                        when
                          "../af-name = 'ipv6'" {
                          description
                            "../AFName = 'IPv6'";
                        }
                        type Static-ipv6-address;
                        description
                          "IPv6 context";
                      }
                    }  // container pathset-resolve-nh
    
                    container backup-pathset-resolve-nh {
                      description
                        "Backup pathset resolve-nexthop IP Address";
                      leaf af-name {
                        type Mgmt-static-addr;
                        description "AFName";
                      }
    
                      leaf ipv4-prefix {
                        when
                          "../af-name = 'ipv4'" {
                          description
                            "../AFName = 'IPv4'";
                        }
                        type inet:ipv4-address;
                        description
                          "IPv4 context";
                      }
    
                      leaf ipv6-prefix {
                        when
                          "../af-name = 'ipv6'" {
                          description
                            "../AFName = 'IPv6'";
                        }
                        type Static-ipv6-address;
                        description
                          "IPv6 context";
                      }
                    }  // container backup-pathset-resolve-nh
    
                    leaf label {
                      type uint32;
                      description "Label value";
                    }
    
                    leaf label-mode {
                      type Mgmt-mpls-static-label-mode;
                      description "Label Mode";
                    }
    
                    leaf label-status {
                      type Mgmt-mpls-static-label-status;
                      description "Label Status";
                    }
    
                    leaf vrf-name {
                      type string;
                      description "VRF name";
                    }
    
                    leaf pathset-via-resolve {
                      type boolean;
                      description
                        "Primary Pathset as a result of resolve";
                    }
    
                    leaf backup-pathset-via-resolve {
                      type boolean;
                      description
                        "Backup Pathset as a result of resolve";
                    }
    
                    leaf address-family {
                      type Mgmt-static-addr;
                      description
                        "Address Family";
                    }
    
                    list path-info {
                      description
                        "Path Information";
                      container nexthop {
                        description
                          "Nexthop information";
                        container address {
                          description
                            "Next-Hop IP Address";
                          leaf af-name {
                            type Mgmt-static-addr;
                            description "AFName";
                          }
    
                          leaf ipv4-prefix {
                            when
                              "../af-name = 'ipv4'" {
                              description
                                "../AFName = 'IPv4'";
                            }
                            type inet:ipv4-address;
                            description
                              "IPv4 context";
                          }
    
                          leaf ipv6-prefix {
                            when
                              "../af-name = 'ipv6'" {
                              description
                                "../AFName = 'IPv6'";
                            }
                            type Static-ipv6-address;
                            description
                              "IPv6 context";
                          }
                        }  // container address
    
                        leaf label {
                          type uint32;
                          description
                            "Next-Hop Label";
                        }
    
                        leaf interface-name {
                          type string;
                          description
                            "Next-Hop Interface Name";
                        }
    
                        leaf afi {
                          type Mgmt-static-lsp-afi;
                          description
                            "Next-Hop AFI";
                        }
                      }  // container nexthop
    
                      leaf path-number {
                        type uint32;
                        description
                          "Path Number";
                      }
    
                      leaf type {
                        type Mgmt-static-path;
                        description "Path Type";
                      }
    
                      leaf path-role {
                        type Mpls-static-path-role;
                        description "Path Role";
                      }
    
                      leaf path-id {
                        type uint8;
                        description "Path Id";
                      }
    
                      leaf backup-id {
                        type uint8;
                        description
                          "Path Backup Id";
                      }
    
                      leaf status {
                        type Mgmt-mpls-static-path-status;
                        description
                          "Path Status";
                      }
                    }  // list path-info
    
                    list backup-path-info {
                      description
                        "Backup Path Information";
                      container nexthop {
                        description
                          "Nexthop information";
                        container address {
                          description
                            "Next-Hop IP Address";
                          leaf af-name {
                            type Mgmt-static-addr;
                            description "AFName";
                          }
    
                          leaf ipv4-prefix {
                            when
                              "../af-name = 'ipv4'" {
                              description
                                "../AFName = 'IPv4'";
                            }
                            type inet:ipv4-address;
                            description
                              "IPv4 context";
                          }
    
                          leaf ipv6-prefix {
                            when
                              "../af-name = 'ipv6'" {
                              description
                                "../AFName = 'IPv6'";
                            }
                            type Static-ipv6-address;
                            description
                              "IPv6 context";
                          }
                        }  // container address
    
                        leaf label {
                          type uint32;
                          description
                            "Next-Hop Label";
                        }
    
                        leaf interface-name {
                          type string;
                          description
                            "Next-Hop Interface Name";
                        }
    
                        leaf afi {
                          type Mgmt-static-lsp-afi;
                          description
                            "Next-Hop AFI";
                        }
                      }  // container nexthop
    
                      leaf path-number {
                        type uint32;
                        description
                          "Path Number";
                      }
    
                      leaf type {
                        type Mgmt-static-path;
                        description "Path Type";
                      }
    
                      leaf path-role {
                        type Mpls-static-path-role;
                        description "Path Role";
                      }
    
                      leaf path-id {
                        type uint8;
                        description "Path Id";
                      }
    
                      leaf backup-id {
                        type uint8;
                        description
                          "Path Backup Id";
                      }
    
                      leaf status {
                        type Mgmt-mpls-static-path-status;
                        description
                          "Path Status";
                      }
                    }  // list backup-path-info
                  }  // container label
    
                  leaf lsp-name-xr {
                    type string;
                    description "LSP Name";
                  }
                }  // list lsp
              }  // container lsps
    
              leaf vrf-name {
                type xr:Cisco-ios-xr-string;
                description "VRF Name";
              }
    
              container local-labels {
                description
                  "data for static local-label table";
                list local-label {
                  key "local-label-id";
                  description
                    "Data for static label";
                  leaf local-label-id {
                    type uint32 {
                      range "16..1048575";
                    }
                    description "Local Label";
                  }
    
                  container prefix {
                    description
                      "Prefix Information";
                    container prefix {
                      description "Prefix";
                      leaf af-name {
                        type Mgmt-static-addr;
                        description "AFName";
                      }
    
                      leaf ipv4-prefix {
                        when
                          "../af-name = 'ipv4'" {
                          description
                            "../AFName = 'IPv4'";
                        }
                        type inet:ipv4-address;
                        description
                          "IPv4 context";
                      }
    
                      leaf ipv6-prefix {
                        when
                          "../af-name = 'ipv6'" {
                          description
                            "../AFName = 'IPv6'";
                        }
                        type Static-ipv6-address;
                        description
                          "IPv6 context";
                      }
                    }  // container prefix
    
                    leaf prefix-length {
                      type uint8;
                      description
                        "Prefix length";
                    }
                  }  // container prefix
    
                  container pathset-resolve-nh {
                    description
                      "Primary pathset resolve-nexthop IP Address";
                    leaf af-name {
                      type Mgmt-static-addr;
                      description "AFName";
                    }
    
                    leaf ipv4-prefix {
                      when "../af-name = 'ipv4'" {
                        description
                          "../AFName = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4 context";
                    }
    
                    leaf ipv6-prefix {
                      when "../af-name = 'ipv6'" {
                        description
                          "../AFName = 'IPv6'";
                      }
                      type Static-ipv6-address;
                      description "IPv6 context";
                    }
                  }  // container pathset-resolve-nh
    
                  container backup-pathset-resolve-nh {
                    description
                      "Backup pathset resolve-nexthop IP Address";
                    leaf af-name {
                      type Mgmt-static-addr;
                      description "AFName";
                    }
    
                    leaf ipv4-prefix {
                      when "../af-name = 'ipv4'" {
                        description
                          "../AFName = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4 context";
                    }
    
                    leaf ipv6-prefix {
                      when "../af-name = 'ipv6'" {
                        description
                          "../AFName = 'IPv6'";
                      }
                      type Static-ipv6-address;
                      description "IPv6 context";
                    }
                  }  // container backup-pathset-resolve-nh
    
                  leaf label {
                    type uint32;
                    description "Label value";
                  }
    
                  leaf label-mode {
                    type Mgmt-mpls-static-label-mode;
                    description "Label Mode";
                  }
    
                  leaf label-status {
                    type Mgmt-mpls-static-label-status;
                    description "Label Status";
                  }
    
                  leaf vrf-name {
                    type string;
                    description "VRF name";
                  }
    
                  leaf pathset-via-resolve {
                    type boolean;
                    description
                      "Primary Pathset as a result of resolve";
                  }
    
                  leaf backup-pathset-via-resolve {
                    type boolean;
                    description
                      "Backup Pathset as a result of resolve";
                  }
    
                  leaf address-family {
                    type Mgmt-static-addr;
                    description "Address Family";
                  }
    
                  list path-info {
                    description
                      "Path Information";
                    container nexthop {
                      description
                        "Nexthop information";
                      container address {
                        description
                          "Next-Hop IP Address";
                        leaf af-name {
                          type Mgmt-static-addr;
                          description "AFName";
                        }
    
                        leaf ipv4-prefix {
                          when
                            "../af-name = 'ipv4'" {
                            description
                              "../AFName = 'IPv4'";
                          }
                          type inet:ipv4-address;
                          description
                            "IPv4 context";
                        }
    
                        leaf ipv6-prefix {
                          when
                            "../af-name = 'ipv6'" {
                            description
                              "../AFName = 'IPv6'";
                          }
                          type Static-ipv6-address;
                          description
                            "IPv6 context";
                        }
                      }  // container address
    
                      leaf label {
                        type uint32;
                        description
                          "Next-Hop Label";
                      }
    
                      leaf interface-name {
                        type string;
                        description
                          "Next-Hop Interface Name";
                      }
    
                      leaf afi {
                        type Mgmt-static-lsp-afi;
                        description
                          "Next-Hop AFI";
                      }
                    }  // container nexthop
    
                    leaf path-number {
                      type uint32;
                      description "Path Number";
                    }
    
                    leaf type {
                      type Mgmt-static-path;
                      description "Path Type";
                    }
    
                    leaf path-role {
                      type Mpls-static-path-role;
                      description "Path Role";
                    }
    
                    leaf path-id {
                      type uint8;
                      description "Path Id";
                    }
    
                    leaf backup-id {
                      type uint8;
                      description
                        "Path Backup Id";
                    }
    
                    leaf status {
                      type Mgmt-mpls-static-path-status;
                      description "Path Status";
                    }
                  }  // list path-info
    
                  list backup-path-info {
                    description
                      "Backup Path Information";
                    container nexthop {
                      description
                        "Nexthop information";
                      container address {
                        description
                          "Next-Hop IP Address";
                        leaf af-name {
                          type Mgmt-static-addr;
                          description "AFName";
                        }
    
                        leaf ipv4-prefix {
                          when
                            "../af-name = 'ipv4'" {
                            description
                              "../AFName = 'IPv4'";
                          }
                          type inet:ipv4-address;
                          description
                            "IPv4 context";
                        }
    
                        leaf ipv6-prefix {
                          when
                            "../af-name = 'ipv6'" {
                            description
                              "../AFName = 'IPv6'";
                          }
                          type Static-ipv6-address;
                          description
                            "IPv6 context";
                        }
                      }  // container address
    
                      leaf label {
                        type uint32;
                        description
                          "Next-Hop Label";
                      }
    
                      leaf interface-name {
                        type string;
                        description
                          "Next-Hop Interface Name";
                      }
    
                      leaf afi {
                        type Mgmt-static-lsp-afi;
                        description
                          "Next-Hop AFI";
                      }
                    }  // container nexthop
    
                    leaf path-number {
                      type uint32;
                      description "Path Number";
                    }
    
                    leaf type {
                      type Mgmt-static-path;
                      description "Path Type";
                    }
    
                    leaf path-role {
                      type Mpls-static-path-role;
                      description "Path Role";
                    }
    
                    leaf path-id {
                      type uint8;
                      description "Path Id";
                    }
    
                    leaf backup-id {
                      type uint8;
                      description
                        "Path Backup Id";
                    }
    
                    leaf status {
                      type Mgmt-mpls-static-path-status;
                      description "Path Status";
                    }
                  }  // list backup-path-info
                }  // list local-label
              }  // container local-labels
            }  // list vrf
          }  // container vrfs
    
          container summary {
            description
              "MPLS STATIC summary data";
            leaf lsp-count {
              type uint32;
              description "Total Number of LSPs";
            }
    
            leaf label-count {
              type uint32;
              description
                "Total Number of Labels";
            }
    
            leaf label-error-count {
              type uint32;
              description
                "Total Number of Labels with Errors";
            }
    
            leaf label-discrepancy-count {
              type uint32;
              description
                "Total Number of Labels with Discrepancies";
            }
    
            leaf vrf-count {
              type uint32;
              description
                "Total Number of VRF configured";
            }
    
            leaf active-vrf-count {
              type uint32;
              description
                "Total Number of Active VRF Active";
            }
    
            leaf interface-count {
              type uint32;
              description
                "Total Number of Interface";
            }
    
            leaf interface-foward-reference-count {
              type uint32;
              description
                "Total Number of Active Interface";
            }
    
            leaf mpls-enabled-interface-count {
              type uint32;
              description
                "Total Number of MPLS enabled Interface";
            }
    
            leaf ipv4-res-nh-count {
              type uint32;
              description
                "Total Number of IPv4 ResolveNextHops";
            }
    
            leaf ipv6-res-nh-count {
              type uint32;
              description
                "Total Number of IPv6 ResoleNextHops";
            }
    
            leaf lsd-connected {
              type boolean;
              description "LSD connection is up";
            }
    
            leaf im-connected {
              type boolean;
              description "IM is connected";
            }
    
            leaf rsi-connected {
              type boolean;
              description "RSI is connected";
            }
    
            leaf ribv4-connected {
              type boolean;
              description "RIBv4 is connected";
            }
    
            leaf ribv6-connected {
              type boolean;
              description "RIBv6 is connected";
            }
          }  // container summary
    
          container local-labels {
            description
              "data for static local-label table";
            list local-label {
              key "local-label-id";
              description
                "Data for static label";
              leaf local-label-id {
                type uint32 {
                  range "16..1048575";
                }
                description "Local Label";
              }
    
              container prefix {
                description "Prefix Information";
                container prefix {
                  description "Prefix";
                  leaf af-name {
                    type Mgmt-static-addr;
                    description "AFName";
                  }
    
                  leaf ipv4-prefix {
                    when "../af-name = 'ipv4'" {
                      description
                        "../AFName = 'IPv4'";
                    }
                    type inet:ipv4-address;
                    description "IPv4 context";
                  }
    
                  leaf ipv6-prefix {
                    when "../af-name = 'ipv6'" {
                      description
                        "../AFName = 'IPv6'";
                    }
                    type Static-ipv6-address;
                    description "IPv6 context";
                  }
                }  // container prefix
    
                leaf prefix-length {
                  type uint8;
                  description "Prefix length";
                }
              }  // container prefix
    
              container pathset-resolve-nh {
                description
                  "Primary pathset resolve-nexthop IP Address";
                leaf af-name {
                  type Mgmt-static-addr;
                  description "AFName";
                }
    
                leaf ipv4-prefix {
                  when "../af-name = 'ipv4'" {
                    description
                      "../AFName = 'IPv4'";
                  }
                  type inet:ipv4-address;
                  description "IPv4 context";
                }
    
                leaf ipv6-prefix {
                  when "../af-name = 'ipv6'" {
                    description
                      "../AFName = 'IPv6'";
                  }
                  type Static-ipv6-address;
                  description "IPv6 context";
                }
              }  // container pathset-resolve-nh
    
              container backup-pathset-resolve-nh {
                description
                  "Backup pathset resolve-nexthop IP Address";
                leaf af-name {
                  type Mgmt-static-addr;
                  description "AFName";
                }
    
                leaf ipv4-prefix {
                  when "../af-name = 'ipv4'" {
                    description
                      "../AFName = 'IPv4'";
                  }
                  type inet:ipv4-address;
                  description "IPv4 context";
                }
    
                leaf ipv6-prefix {
                  when "../af-name = 'ipv6'" {
                    description
                      "../AFName = 'IPv6'";
                  }
                  type Static-ipv6-address;
                  description "IPv6 context";
                }
              }  // container backup-pathset-resolve-nh
    
              leaf label {
                type uint32;
                description "Label value";
              }
    
              leaf label-mode {
                type Mgmt-mpls-static-label-mode;
                description "Label Mode";
              }
    
              leaf label-status {
                type Mgmt-mpls-static-label-status;
                description "Label Status";
              }
    
              leaf vrf-name {
                type string;
                description "VRF name";
              }
    
              leaf pathset-via-resolve {
                type boolean;
                description
                  "Primary Pathset as a result of resolve";
              }
    
              leaf backup-pathset-via-resolve {
                type boolean;
                description
                  "Backup Pathset as a result of resolve";
              }
    
              leaf address-family {
                type Mgmt-static-addr;
                description "Address Family";
              }
    
              list path-info {
                description "Path Information";
                container nexthop {
                  description
                    "Nexthop information";
                  container address {
                    description
                      "Next-Hop IP Address";
                    leaf af-name {
                      type Mgmt-static-addr;
                      description "AFName";
                    }
    
                    leaf ipv4-prefix {
                      when "../af-name = 'ipv4'" {
                        description
                          "../AFName = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4 context";
                    }
    
                    leaf ipv6-prefix {
                      when "../af-name = 'ipv6'" {
                        description
                          "../AFName = 'IPv6'";
                      }
                      type Static-ipv6-address;
                      description "IPv6 context";
                    }
                  }  // container address
    
                  leaf label {
                    type uint32;
                    description "Next-Hop Label";
                  }
    
                  leaf interface-name {
                    type string;
                    description
                      "Next-Hop Interface Name";
                  }
    
                  leaf afi {
                    type Mgmt-static-lsp-afi;
                    description "Next-Hop AFI";
                  }
                }  // container nexthop
    
                leaf path-number {
                  type uint32;
                  description "Path Number";
                }
    
                leaf type {
                  type Mgmt-static-path;
                  description "Path Type";
                }
    
                leaf path-role {
                  type Mpls-static-path-role;
                  description "Path Role";
                }
    
                leaf path-id {
                  type uint8;
                  description "Path Id";
                }
    
                leaf backup-id {
                  type uint8;
                  description "Path Backup Id";
                }
    
                leaf status {
                  type Mgmt-mpls-static-path-status;
                  description "Path Status";
                }
              }  // list path-info
    
              list backup-path-info {
                description
                  "Backup Path Information";
                container nexthop {
                  description
                    "Nexthop information";
                  container address {
                    description
                      "Next-Hop IP Address";
                    leaf af-name {
                      type Mgmt-static-addr;
                      description "AFName";
                    }
    
                    leaf ipv4-prefix {
                      when "../af-name = 'ipv4'" {
                        description
                          "../AFName = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4 context";
                    }
    
                    leaf ipv6-prefix {
                      when "../af-name = 'ipv6'" {
                        description
                          "../AFName = 'IPv6'";
                      }
                      type Static-ipv6-address;
                      description "IPv6 context";
                    }
                  }  // container address
    
                  leaf label {
                    type uint32;
                    description "Next-Hop Label";
                  }
    
                  leaf interface-name {
                    type string;
                    description
                      "Next-Hop Interface Name";
                  }
    
                  leaf afi {
                    type Mgmt-static-lsp-afi;
                    description "Next-Hop AFI";
                  }
                }  // container nexthop
    
                leaf path-number {
                  type uint32;
                  description "Path Number";
                }
    
                leaf type {
                  type Mgmt-static-path;
                  description "Path Type";
                }
    
                leaf path-role {
                  type Mpls-static-path-role;
                  description "Path Role";
                }
    
                leaf path-id {
                  type uint8;
                  description "Path Id";
                }
    
                leaf backup-id {
                  type uint8;
                  description "Path Backup Id";
                }
    
                leaf status {
                  type Mgmt-mpls-static-path-status;
                  description "Path Status";
                }
              }  // list backup-path-info
            }  // list local-label
          }  // container local-labels
        }  // container mpls-static
      }  // module Cisco-IOS-XR-mpls-static-oper
    

© 2023 YumaWorks, Inc. All rights reserved.