Cisco-IOS-XR-segment-routing-ms-oper

This module contains a collection of YANG definitions for Cisco IOS-XR segment-routing-ms package operational data. This module...

  • Version: 2019-07-19

    Cisco-IOS-XR-segment-routing-ms-oper@2019-07-19


    
      module Cisco-IOS-XR-segment-routing-ms-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-segment-routing-ms-oper";
    
        prefix segment-routing-ms-oper;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import cisco-semver {
          prefix semver;
        }
    
        include Cisco-IOS-XR-segment-routing-ms-oper-sub3 {
          revision-date "2019-07-19";
        }
        include Cisco-IOS-XR-segment-routing-ms-oper-sub2 {
          revision-date "2019-07-19";
        }
        include Cisco-IOS-XR-segment-routing-ms-oper-sub1 {
          revision-date "2019-07-19";
        }
    
        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 segment-routing-ms package operational data.
    
    This module contains definitions
    for the following management objects:
      standby-srms: Standby Segment Routing Mapping Server
        operational data
      srms: Active Segment Routing Mapping Server operational data
      srlb: Segment Routing Local Block operational data
    
    Copyright (c) 2013-2019 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2019-07-19" {
          description
            "Additional items added to operational model.";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2017-09-07" {
          description
            "Fixed type translation error.";
        }
    
        revision "2015-11-09" {
          description "IOS XR 6.0 revision.";
        }
    
        semver:module-version "2.0.0";
        semver:module-version "1.0.0";
    
        typedef Sid-type-enum {
          type enumeration {
            enum "absolute" {
              value 1;
              description "Absolute SID";
            }
            enum "index" {
              value 2;
              description "Index SID";
            }
          }
          description "Sid type enum";
        }
    
        container standby-srms {
          config false;
          description
            "Standby Segment Routing Mapping Server
    operational data";
          container mapping {
            description
              "IP prefix to SID mappings";
            container mapping-ipv4 {
              description
                "IPv4 prefix to SID mappings";
              list mapping-mi {
                description
                  "IP prefix to SID mapping item. It's not possible
    to list all of the IP prefix to SID mappings, as
    the set of valid prefixes could be very large.
    Instead, SID map information must be retrieved
    individually for each prefix of interest.";
                leaf ip {
                  type xr:Cisco-ios-xr-string;
                  description "IP";
                }
    
                leaf prefixlen {
                  type uint32 {
                    range "1..128";
                  }
                  description "Prefixlen";
                }
    
                container addr {
                  description "Ipv4 address";
                  leaf af {
                    type Srms-mi-af-e-b;
                    description "AF";
                  }
    
                  leaf ipv4 {
                    when "../af = 'ipv4'" {
                      description
                        "../AF = 'IPv4'";
                    }
                    type inet:ipv4-address;
                    description "IPv4";
                  }
    
                  leaf ipv6 {
                    when "../af = 'ipv6'" {
                      description
                        "../AF = 'IPv6'";
                    }
                    type In6-addr-t-b;
                    description "IPv6";
                  }
                }  // container addr
    
                leaf src {
                  type Srms-mi-src-e-b;
                  description
                    "Source of this prefix, whether local or remote";
                }
    
                leaf router {
                  type string {
                    length "0..30";
                  }
                  description "Router ID";
                }
    
                leaf area {
                  type string {
                    length "0..30";
                  }
                  description
                    "Area (OSPF) or Level (ISIS)";
                }
    
                leaf prefixlen-xr {
                  type uint8;
                  description "Prefix length";
                }
    
                leaf sid-start {
                  type uint32;
                  description "Starting SID";
                }
    
                leaf sid-count {
                  type uint32;
                  description "SID range";
                }
    
                leaf last-prefix {
                  type string {
                    length "0..50";
                  }
                  description "Last IP Prefix";
                }
    
                leaf last-sid-index {
                  type uint32;
                  description "Last SID Index";
                }
    
                leaf flag-attached {
                  type Srms-mi-flag-e-b;
                  description "Attached flag";
                }
              }  // list mapping-mi
            }  // container mapping-ipv4
    
            container mapping-ipv6 {
              description
                "IPv6 prefix to SID mappings";
              list mapping-mi {
                description
                  "IP prefix to SID mapping item. It's not possible
    to list all of the IP prefix to SID mappings, as
    the set of valid prefixes could be very large.
    Instead, SID map information must be retrieved
    individually for each prefix of interest.";
                leaf ip {
                  type xr:Cisco-ios-xr-string;
                  description "IP";
                }
    
                leaf prefixlen {
                  type uint32 {
                    range "1..128";
                  }
                  description "Prefixlen";
                }
    
                container addr {
                  description "Ipv4 address";
                  leaf af {
                    type Srms-mi-af-e-b;
                    description "AF";
                  }
    
                  leaf ipv4 {
                    when "../af = 'ipv4'" {
                      description
                        "../AF = 'IPv4'";
                    }
                    type inet:ipv4-address;
                    description "IPv4";
                  }
    
                  leaf ipv6 {
                    when "../af = 'ipv6'" {
                      description
                        "../AF = 'IPv6'";
                    }
                    type In6-addr-t-b;
                    description "IPv6";
                  }
                }  // container addr
    
                leaf src {
                  type Srms-mi-src-e-b;
                  description
                    "Source of this prefix, whether local or remote";
                }
    
                leaf router {
                  type string {
                    length "0..30";
                  }
                  description "Router ID";
                }
    
                leaf area {
                  type string {
                    length "0..30";
                  }
                  description
                    "Area (OSPF) or Level (ISIS)";
                }
    
                leaf prefixlen-xr {
                  type uint8;
                  description "Prefix length";
                }
    
                leaf sid-start {
                  type uint32;
                  description "Starting SID";
                }
    
                leaf sid-count {
                  type uint32;
                  description "SID range";
                }
    
                leaf last-prefix {
                  type string {
                    length "0..50";
                  }
                  description "Last IP Prefix";
                }
    
                leaf last-sid-index {
                  type uint32;
                  description "Last SID Index";
                }
    
                leaf flag-attached {
                  type Srms-mi-flag-e-b;
                  description "Attached flag";
                }
              }  // list mapping-mi
            }  // container mapping-ipv6
          }  // container mapping
    
          container policy {
            description
              "Policy operational data";
            container policy-ipv4 {
              description
                "IPv4 policy operational data";
              container policy-ipv4-backup {
                description
                  "IPv4 backup policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv4-backup
    
              container policy-ipv4-active {
                description
                  "IPv4 active policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv4-active
            }  // container policy-ipv4
    
            container policy-ipv6 {
              description
                "IPv6 policy operational data";
              container policy-ipv6-backup {
                description
                  "IPv6 backup policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv6-backup
    
              container policy-ipv6-active {
                description
                  "IPv6 active policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv6-active
            }  // container policy-ipv6
          }  // container policy
        }  // container standby-srms
    
        container srms {
          config false;
          description
            "Active Segment Routing Mapping Server operational
    data";
          container adjacency-sid {
            description "Adjacency SID";
            container l2-adjacency {
              description "L2 Adjacency Option";
              container interfaces {
                description
                  "Interface directory";
                list interface {
                  key "interface-name";
                  description
                    "Segment Routing Adjacency SID Interface";
                  container address-family {
                    description
                      "address family container";
                    container all-afi {
                      description
                        "both IPv4 and IPv6";
                      container sid-records {
                        description
                          "SID directory";
                        list sid-record {
                          description
                            "SID record";
                          leaf sid-type {
                            type Sid-type-enum;
                            description
                              "SID type";
                          }
    
                          leaf sid-value {
                            type uint32 {
                              range "0..1048575";
                            }
                            description
                              "SID value";
                          }
    
                          container nexthop-address {
                            description
                              "Nexthop address";
                            leaf af {
                              type Srms-af;
                              description "AF";
                            }
    
                            leaf ipv4 {
                              when
                                "../af = 'ipv4'" {
                                description
                                  "../AF = 'IPv4'";
                              }
                              type inet:ipv4-address;
                              description "IPv4";
                            }
    
                            leaf ipv6 {
                              when
                                "../af = 'ipv6'" {
                                description
                                  "../AF = 'IPv6'";
                              }
                              type In6-addr-t-b;
                              description "IPv6";
                            }
                          }  // container nexthop-address
    
                          leaf interface-name {
                            type string {
                              length "0..64";
                            }
                            description
                              "Interface name";
                          }
    
                          leaf sid-value-xr {
                            type uint32;
                            description
                              "SID Value";
                          }
    
                          leaf sid-type-xr {
                            type uint32;
                            description
                              "SID type";
                          }
    
                          leaf address-family {
                            type uint32;
                            description
                              "Interface address family";
                          }
    
                          leaf has-nexthop {
                            type boolean;
                            description
                              "Has nexthop";
                          }
    
                          leaf interface-count {
                            type int32;
                            description
                              "Interface count";
                          }
    
                          leaf interface-delete-count {
                            type int32;
                            description
                              "Interface delete count";
                          }
                        }  // list sid-record
                      }  // container sid-records
                    }  // container all-afi
    
                    container ipv4 {
                      description "IP version 4";
                      container sid-records {
                        description
                          "SID directory";
                        list sid-record {
                          description
                            "SID record";
                          leaf sid-type {
                            type Sid-type-enum;
                            description
                              "SID type";
                          }
    
                          leaf sid-value {
                            type uint32 {
                              range "0..1048575";
                            }
                            description
                              "SID value";
                          }
    
                          container nexthop-address {
                            description
                              "Nexthop address";
                            leaf af {
                              type Srms-af;
                              description "AF";
                            }
    
                            leaf ipv4 {
                              when
                                "../af = 'ipv4'" {
                                description
                                  "../AF = 'IPv4'";
                              }
                              type inet:ipv4-address;
                              description "IPv4";
                            }
    
                            leaf ipv6 {
                              when
                                "../af = 'ipv6'" {
                                description
                                  "../AF = 'IPv6'";
                              }
                              type In6-addr-t-b;
                              description "IPv6";
                            }
                          }  // container nexthop-address
    
                          leaf interface-name {
                            type string {
                              length "0..64";
                            }
                            description
                              "Interface name";
                          }
    
                          leaf sid-value-xr {
                            type uint32;
                            description
                              "SID Value";
                          }
    
                          leaf sid-type-xr {
                            type uint32;
                            description
                              "SID type";
                          }
    
                          leaf address-family {
                            type uint32;
                            description
                              "Interface address family";
                          }
    
                          leaf has-nexthop {
                            type boolean;
                            description
                              "Has nexthop";
                          }
    
                          leaf interface-count {
                            type int32;
                            description
                              "Interface count";
                          }
    
                          leaf interface-delete-count {
                            type int32;
                            description
                              "Interface delete count";
                          }
                        }  // list sid-record
                      }  // container sid-records
                    }  // container ipv4
    
                    container ipv6 {
                      description "IP version 6";
                      container sid-records {
                        description
                          "SID directory";
                        list sid-record {
                          description
                            "SID record";
                          leaf sid-type {
                            type Sid-type-enum;
                            description
                              "SID type";
                          }
    
                          leaf sid-value {
                            type uint32 {
                              range "0..1048575";
                            }
                            description
                              "SID value";
                          }
    
                          container nexthop-address {
                            description
                              "Nexthop address";
                            leaf af {
                              type Srms-af;
                              description "AF";
                            }
    
                            leaf ipv4 {
                              when
                                "../af = 'ipv4'" {
                                description
                                  "../AF = 'IPv4'";
                              }
                              type inet:ipv4-address;
                              description "IPv4";
                            }
    
                            leaf ipv6 {
                              when
                                "../af = 'ipv6'" {
                                description
                                  "../AF = 'IPv6'";
                              }
                              type In6-addr-t-b;
                              description "IPv6";
                            }
                          }  // container nexthop-address
    
                          leaf interface-name {
                            type string {
                              length "0..64";
                            }
                            description
                              "Interface name";
                          }
    
                          leaf sid-value-xr {
                            type uint32;
                            description
                              "SID Value";
                          }
    
                          leaf sid-type-xr {
                            type uint32;
                            description
                              "SID type";
                          }
    
                          leaf address-family {
                            type uint32;
                            description
                              "Interface address family";
                          }
    
                          leaf has-nexthop {
                            type boolean;
                            description
                              "Has nexthop";
                          }
    
                          leaf interface-count {
                            type int32;
                            description
                              "Interface count";
                          }
    
                          leaf interface-delete-count {
                            type int32;
                            description
                              "Interface delete count";
                          }
                        }  // list sid-record
                      }  // container sid-records
                    }  // container ipv6
                  }  // container address-family
    
                  leaf interface-name {
                    type xr:Interface-name;
                    description "Interface name";
                  }
                }  // list interface
              }  // container interfaces
    
              container sid-records {
                description "SID directory";
                list sid-record {
                  description "SID record";
                  leaf sid-type {
                    type Sid-type-enum;
                    description "SID type";
                  }
    
                  leaf sid-value {
                    type uint32 {
                      range "0..1048575";
                    }
                    description "SID value";
                  }
    
                  container nexthop-address {
                    description
                      "Nexthop address";
                    leaf af {
                      type Srms-af;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container nexthop-address
    
                  leaf interface-name {
                    type string {
                      length "0..64";
                    }
                    description "Interface name";
                  }
    
                  leaf sid-value-xr {
                    type uint32;
                    description "SID Value";
                  }
    
                  leaf sid-type-xr {
                    type uint32;
                    description "SID type";
                  }
    
                  leaf address-family {
                    type uint32;
                    description
                      "Interface address family";
                  }
    
                  leaf has-nexthop {
                    type boolean;
                    description "Has nexthop";
                  }
    
                  leaf interface-count {
                    type int32;
                    description
                      "Interface count";
                  }
    
                  leaf interface-delete-count {
                    type int32;
                    description
                      "Interface delete count";
                  }
                }  // list sid-record
              }  // container sid-records
            }  // container l2-adjacency
          }  // container adjacency-sid
    
          container mapping {
            description
              "IP prefix to SID mappings";
            container mapping-ipv4 {
              description
                "IPv4 prefix to SID mappings";
              list mapping-mi {
                description
                  "IP prefix to SID mapping item. It's not possible
    to list all of the IP prefix to SID mappings, as
    the set of valid prefixes could be very large.
    Instead, SID map information must be retrieved
    individually for each prefix of interest.";
                leaf ip {
                  type xr:Cisco-ios-xr-string;
                  description "IP";
                }
    
                leaf prefixlen {
                  type uint32 {
                    range "1..128";
                  }
                  description "Prefixlen";
                }
    
                container addr {
                  description "Ipv4 address";
                  leaf af {
                    type Srms-mi-af-e-b;
                    description "AF";
                  }
    
                  leaf ipv4 {
                    when "../af = 'ipv4'" {
                      description
                        "../AF = 'IPv4'";
                    }
                    type inet:ipv4-address;
                    description "IPv4";
                  }
    
                  leaf ipv6 {
                    when "../af = 'ipv6'" {
                      description
                        "../AF = 'IPv6'";
                    }
                    type In6-addr-t-b;
                    description "IPv6";
                  }
                }  // container addr
    
                leaf src {
                  type Srms-mi-src-e-b;
                  description
                    "Source of this prefix, whether local or remote";
                }
    
                leaf router {
                  type string {
                    length "0..30";
                  }
                  description "Router ID";
                }
    
                leaf area {
                  type string {
                    length "0..30";
                  }
                  description
                    "Area (OSPF) or Level (ISIS)";
                }
    
                leaf prefixlen-xr {
                  type uint8;
                  description "Prefix length";
                }
    
                leaf sid-start {
                  type uint32;
                  description "Starting SID";
                }
    
                leaf sid-count {
                  type uint32;
                  description "SID range";
                }
    
                leaf last-prefix {
                  type string {
                    length "0..50";
                  }
                  description "Last IP Prefix";
                }
    
                leaf last-sid-index {
                  type uint32;
                  description "Last SID Index";
                }
    
                leaf flag-attached {
                  type Srms-mi-flag-e-b;
                  description "Attached flag";
                }
              }  // list mapping-mi
            }  // container mapping-ipv4
    
            container mapping-ipv6 {
              description
                "IPv6 prefix to SID mappings";
              list mapping-mi {
                description
                  "IP prefix to SID mapping item. It's not possible
    to list all of the IP prefix to SID mappings, as
    the set of valid prefixes could be very large.
    Instead, SID map information must be retrieved
    individually for each prefix of interest.";
                leaf ip {
                  type xr:Cisco-ios-xr-string;
                  description "IP";
                }
    
                leaf prefixlen {
                  type uint32 {
                    range "1..128";
                  }
                  description "Prefixlen";
                }
    
                container addr {
                  description "Ipv4 address";
                  leaf af {
                    type Srms-mi-af-e-b;
                    description "AF";
                  }
    
                  leaf ipv4 {
                    when "../af = 'ipv4'" {
                      description
                        "../AF = 'IPv4'";
                    }
                    type inet:ipv4-address;
                    description "IPv4";
                  }
    
                  leaf ipv6 {
                    when "../af = 'ipv6'" {
                      description
                        "../AF = 'IPv6'";
                    }
                    type In6-addr-t-b;
                    description "IPv6";
                  }
                }  // container addr
    
                leaf src {
                  type Srms-mi-src-e-b;
                  description
                    "Source of this prefix, whether local or remote";
                }
    
                leaf router {
                  type string {
                    length "0..30";
                  }
                  description "Router ID";
                }
    
                leaf area {
                  type string {
                    length "0..30";
                  }
                  description
                    "Area (OSPF) or Level (ISIS)";
                }
    
                leaf prefixlen-xr {
                  type uint8;
                  description "Prefix length";
                }
    
                leaf sid-start {
                  type uint32;
                  description "Starting SID";
                }
    
                leaf sid-count {
                  type uint32;
                  description "SID range";
                }
    
                leaf last-prefix {
                  type string {
                    length "0..50";
                  }
                  description "Last IP Prefix";
                }
    
                leaf last-sid-index {
                  type uint32;
                  description "Last SID Index";
                }
    
                leaf flag-attached {
                  type Srms-mi-flag-e-b;
                  description "Attached flag";
                }
              }  // list mapping-mi
            }  // container mapping-ipv6
          }  // container mapping
    
          container policy {
            description
              "Policy operational data";
            container policy-ipv4 {
              description
                "IPv4 policy operational data";
              container policy-ipv4-backup {
                description
                  "IPv4 backup policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv4-backup
    
              container policy-ipv4-active {
                description
                  "IPv4 active policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv4-active
            }  // container policy-ipv4
    
            container policy-ipv6 {
              description
                "IPv6 policy operational data";
              container policy-ipv6-backup {
                description
                  "IPv6 backup policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv6-backup
    
              container policy-ipv6-active {
                description
                  "IPv6 active policy operational data";
                list policy-mi {
                  key "mi-id";
                  description "Mapping Item";
                  leaf mi-id {
                    type xr:Cisco-ios-xr-string;
                    description
                      "Mapping Item ID (0, 1, 2, ...)";
                  }
    
                  container addr {
                    description "Ipv4 address";
                    leaf af {
                      type Srms-mi-af-e-b;
                      description "AF";
                    }
    
                    leaf ipv4 {
                      when "../af = 'ipv4'" {
                        description
                          "../AF = 'IPv4'";
                      }
                      type inet:ipv4-address;
                      description "IPv4";
                    }
    
                    leaf ipv6 {
                      when "../af = 'ipv6'" {
                        description
                          "../AF = 'IPv6'";
                      }
                      type In6-addr-t-b;
                      description "IPv6";
                    }
                  }  // container addr
    
                  leaf src {
                    type Srms-mi-src-e-b;
                    description
                      "Source of this prefix, whether local or remote";
                  }
    
                  leaf router {
                    type string {
                      length "0..30";
                    }
                    description "Router ID";
                  }
    
                  leaf area {
                    type string {
                      length "0..30";
                    }
                    description
                      "Area (OSPF) or Level (ISIS)";
                  }
    
                  leaf prefixlen-xr {
                    type uint8;
                    description "Prefix length";
                  }
    
                  leaf sid-start {
                    type uint32;
                    description "Starting SID";
                  }
    
                  leaf sid-count {
                    type uint32;
                    description "SID range";
                  }
    
                  leaf last-prefix {
                    type string {
                      length "0..50";
                    }
                    description "Last IP Prefix";
                  }
    
                  leaf last-sid-index {
                    type uint32;
                    description "Last SID Index";
                  }
    
                  leaf flag-attached {
                    type Srms-mi-flag-e-b;
                    description "Attached flag";
                  }
                }  // list policy-mi
              }  // container policy-ipv6-active
            }  // container policy-ipv6
          }  // container policy
        }  // container srms
    
        container srlb {
          config false;
          description
            "Segment Routing Local Block operational data";
          container srlb-inconsistency {
            description "SRLB Inconsistencies";
            leaf start-srlb-range {
              type uint32;
              description
                "Start label of Segment Routing Local Block range";
            }
    
            leaf end-srlb-range {
              type uint32;
              description
                "End label of Segment Routing Local Block range";
            }
          }  // container srlb-inconsistency
        }  // container srlb
      }  // module Cisco-IOS-XR-segment-routing-ms-oper
    

© 2023 YumaWorks, Inc. All rights reserved.