Cisco-IOS-XR-infra-rsi-cfg

This module contains a collection of YANG definitions for Cisco IOS-XR infra-rsi package configuration. This model is deprecate...

  • Version: 2020-08-12

    Cisco-IOS-XR-infra-rsi-cfg@2020-08-12


    
      module Cisco-IOS-XR-infra-rsi-cfg {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XR-infra-rsi-cfg";
    
        prefix infra-rsi-cfg;
    
        import Cisco-IOS-XR-types {
          prefix xr;
        }
        import cisco-semver {
          prefix semver;
        }
        import Cisco-IOS-XR-ifmgr-cfg {
          prefix a1;
        }
        import Cisco-IOS-XR-snmp-agent-cfg {
          prefix a2;
        }
    
        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 infra-rsi package configuration.
    
    This model is deprecated and is replaced by
    Cisco-IOS-XR-um-vrf-cfg.yang which will provide the
    compatible functionalities.
    
    This module contains definitions
    for the following management objects:
      vrfs: VRF configuration
      global-af: Default VRF configuration
      srlg: SRLG configuration commands
      vrf-groups: Set of VRF groups configured
      selective-vrf-download: Selective VRF download configuration
    
    This YANG module augments the
      Cisco-IOS-XR-ifmgr-cfg,
      Cisco-IOS-XR-snmp-agent-cfg
    modules with configuration data.
    
    Copyright (c) 2013-2020 by Cisco Systems, Inc.
    All rights reserved.";
    
        revision "2020-08-12" {
          description
            "Configuration support for srlg description.";
        }
    
        revision "2019-10-31" {
          description
            "Added mandatory nodes and presence containers.";
        }
    
        revision "2019-05-12" {
          description
            "Deprecated the native model, replaced by UM model.";
        }
    
        revision "2019-04-05" {
          description
            "Establish semantic version baseline.";
        }
    
        revision "2018-06-15" {
          description
            "Allow min..max in range when min == max.";
        }
    
        revision "2017-05-01" {
          description
            "Fixing backward compatibility error in module.";
        }
    
        revision "2016-12-19" {
          description "IOS XR 6.2.1 revision.";
        }
    
        revision "2015-01-07" {
          description "IOS XR 5.3.1 revision.";
        }
    
        semver:module-version "2.1.0";
        semver:module-version "2.0.0";
        semver:module-version "1.0.0";
    
        typedef Vrf-sub-address-family {
          type enumeration {
            enum "unicast" {
              value 1;
              description "Unicast";
            }
            enum "multicast" {
              value 2;
              description "Multicast";
            }
            enum "flow-spec" {
              value 133;
              description "Flow spec";
            }
          }
          description "Vrf sub address family";
        }
    
        typedef Vrf-address-family {
          type enumeration {
            enum "ipv4" {
              value 1;
              description "IPv4";
            }
            enum "ipv6" {
              value 2;
              description "IPv6";
            }
          }
          description "Vrf address family";
        }
    
        typedef Srlg-priority {
          type enumeration {
            enum "critical" {
              value 0;
              description "Critical";
            }
            enum "high" {
              value 1;
              description "High";
            }
            enum "default" {
              value 2;
              description "Default";
            }
            enum "low" {
              value 3;
              description "Low";
            }
            enum "very-low" {
              value 4;
              description "Very low";
            }
          }
          description "Srlg priority";
        }
    
        container vrfs {
          status deprecated;
          description
            "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-vrf-cfg.yang which will provide
    the compatible functionalities.  VRF
    configuration";
          list vrf {
            key "vrf-name";
            description "VRF configuration";
            container vpn-id {
              presence
                "Indicates a vpn-id node is configured.";
              description "VPN-ID for the VRF";
              leaf vpn-oui {
                type uint32 {
                  range "0..16777215";
                }
                mandatory true;
                description "OUI of VPNID OUI";
              }
    
              leaf vpn-index {
                type uint32 {
                  range "0..4294967295";
                }
                mandatory true;
                description
                  "Index of VPNID Index";
              }
            }  // container vpn-id
    
            leaf fallback-vrf {
              type xr:Cisco-ios-xr-string {
                length "1..32";
              }
              description "Fallback VRF";
            }
    
            leaf remote-route-filter-disable {
              type empty;
              description
                "For disabling remote route filtering for this
    VRF on core-facing card";
            }
    
            leaf evpn-route-sync {
              type uint32 {
                range "1..65534";
              }
              description
                "EVPN route sync vpn id";
            }
    
            leaf create {
              type empty;
              description
                "VRF global configuration";
            }
    
            leaf mode-big {
              type empty;
              description
                "Configuration enable of big VRF";
            }
    
            leaf description {
              type string {
                length "1..244";
              }
              description
                "A textual description of the VRF";
            }
    
            leaf vrf-name {
              type xr:Cisco-ios-xr-string {
                length "1..32";
              }
              description "VRF name";
            }
    
            container afs {
              description
                "VRF address family configuration";
              list af {
                key "af-name saf-name topology-name";
                description
                  "VRF address family configuration";
                leaf create {
                  type empty;
                  description
                    "VRF configuration for a particular address
    family";
                }
    
                leaf af-name {
                  type Vrf-address-family;
                  description "Address family";
                }
    
                leaf saf-name {
                  type Vrf-sub-address-family;
                  description
                    "Sub-Address family";
                }
    
                leaf topology-name {
                  type xr:Cisco-ios-xr-string {
                    length "1..244";
                  }
                  description "Topology name";
                }
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
    
                container maximum-prefix {
                  presence
                    "Indicates a maximum-prefix node is configured.";
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-rib-cfg.yang which will
    provide the compatible functionalities.  Set
    maximum prefix limits";
                  leaf prefix-limit {
                    type uint32 {
                      range "32..10000000";
                    }
                    mandatory true;
                    description
                      "Set table's maximum prefix limit";
                  }
    
                  leaf mid-threshold {
                    type uint32 {
                      range "1..100";
                    }
                    description
                      "Mid-threshold (% of maximum)";
                  }
                }  // container maximum-prefix
    
                container bgp {
                  status deprecated;
                  description
                    "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                  container import-route-targets {
                    description
                      "Import Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container import-route-targets
    
                  container export-route-targets {
                    description
                      "Export Route targets";
                    container route-targets {
                      description
                        "Route target table";
                      list route-target {
                        must
                          "as-or-four-byte-as or ipv4-address" {
                          description
                            "AS-or-FourByteAS or IPV4Address must be
    present.";
                        }
                        key "type";
                        description
                          "Configured Route target Entry";
                        leaf type {
                          type Bgp-vrf-route-target;
                          description
                            "Type of RT";
                        }
    
                        list as-or-four-byte-as {
                          when
                            "../type = 'as' or ../type = 'four-byte-as'" {
                            description
                              "../Type = AS or ../Type = FourByteAS";
                          }
                          key "as-xx as as-index stitching-rt";
                          description
                            "as or four byte as";
                          leaf as-xx {
                            type uint32 {
                              range "0";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as {
                            type uint32 {
                              range
                                "1..4294967295";
                            }
                            description
                              "AS number";
                          }
    
                          leaf as-index {
                            type Route-target-as-index;
                            description
                              "AS number Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list as-or-four-byte-as
    
                        list ipv4-address {
                          when
                            "../type = 'ipv4-address'" {
                            description
                              "../Type = IPV4Address";
                          }
                          key "address address-index stitching-rt";
                          description
                            "ipv4 address";
                          leaf address {
                            type inet:ipv4-address-no-zone;
                            description
                              "IP address";
                          }
    
                          leaf address-index {
                            type Route-target-addr-index;
                            description
                              "IP address Index";
                          }
    
                          leaf stitching-rt {
                            type uint32 {
                              range "0..1";
                            }
                            description
                              "Stitching RT";
                          }
                        }  // list ipv4-address
                      }  // list route-target
                    }  // container route-targets
                  }  // container export-route-targets
    
                  container vrf-to-global-export-route-policy {
                    presence
                      "Indicates a vrf-to-global-export-route-policy node is configured.";
                    description
                      "Route policy for vrf to global export filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Vrf to global export route policy";
                    }
    
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                    }
                  }  // container vrf-to-global-export-route-policy
    
                  container export-vrf-options {
                    description
                      "Export VRF options";
                    leaf allow-imported-vpn {
                      type boolean;
                      description
                        "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                    }
    
                    leaf import-stitching-rt {
                      type boolean;
                      description
                        "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                    }
    
                    leaf disable-adv-source-vrf-vni {
                      type boolean;
                      description
                        "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                    }
                  }  // container export-vrf-options
    
                  container global-to-vrf-import-route-policy {
                    presence
                      "Indicates a global-to-vrf-import-route-policy node is configured.";
                    description
                      "Route policy for global to vrf import filtering";
                    leaf route-policy-name {
                      type string;
                      mandatory true;
                      description
                        "Global to vrf import route policy";
                    }
    
                    leaf advertise-as-vpn {
                      type boolean;
                      description
                        "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                    }
                  }  // container global-to-vrf-import-route-policy
    
                  leaf export-route-policy {
                    type string;
                    description
                      "Route policy for export filtering";
                  }
    
                  leaf import-route-policy {
                    type string;
                    description
                      "Route policy for import filtering";
                  }
    
                  leaf import-vrf-options {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
    
                  leaf import-from-bridge-domain {
                    type boolean;
                    description
                      "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                  }
                }  // container bgp
              }  // list af
            }  // container afs
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
    
            container multicast-host {
              description
                "Multicast host stack configuration";
              container ipv4 {
                description "IPv4 configuration";
                leaf interface {
                  type xr:Interface-name;
                  description
                    "Default multicast host interface name";
                }
              }  // container ipv4
    
              container ipv6 {
                description "IPv6 configuration";
                leaf interface {
                  type xr:Interface-name;
                  description
                    "Default multicast host interface name";
                }
              }  // container ipv6
            }  // container multicast-host
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
    
            container bgp-global {
              status deprecated;
              description
                "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP
    related VRF Global config";
              container route-distinguisher {
                description
                  "Route distinguisher";
                leaf type {
                  type Bgp-global-route-distinguisher;
                  description "Type of RD";
                }
    
                leaf as-xx {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-as-range;
                  description "AS number";
                }
    
                leaf as-index {
                  when
                    "../type = 'as' or ../type = 'four-byte-as'" {
                    description
                      "../Type = AS or ../Type = FourByteAS";
                  }
                  type Bgp-global-extcomm-asn-index;
                  description "ASN Index";
                }
    
                leaf address {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type inet:ipv4-address-no-zone;
                  description "IP address";
                }
    
                leaf address-index {
                  when
                    "../type = 'ipv4-address'" {
                    description
                      "../Type = IPV4Address";
                  }
                  type Bgp-global-extcomm-v4-addr-index;
                  description "IP address index";
                }
              }  // container route-distinguisher
            }  // container bgp-global
          }  // list vrf
        }  // container vrfs
    
        container global-af {
          status deprecated;
          description
            "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-vrf-cfg.yang which will provide
    the compatible functionalities.  Default VRF
    configuration";
          container afs {
            description
              "VRF address family configuration";
            list af {
              key "af-name saf-name topology-name";
              description
                "VRF address family configuration";
              leaf create {
                type empty;
                description
                  "VRF configuration for a particular address
    family";
              }
    
              leaf af-name {
                type Vrf-address-family;
                description "Address family";
              }
    
              leaf saf-name {
                type Vrf-sub-address-family;
                description "Sub-Address family";
              }
    
              leaf topology-name {
                type xr:Cisco-ios-xr-string {
                  length "1..244";
                }
                description "Topology name";
              }
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
    
              container maximum-prefix {
                presence
                  "Indicates a maximum-prefix node is configured.";
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-rib-cfg.yang which will
    provide the compatible functionalities.  Set
    maximum prefix limits";
                leaf prefix-limit {
                  type uint32 {
                    range "32..10000000";
                  }
                  mandatory true;
                  description
                    "Set table's maximum prefix limit";
                }
    
                leaf mid-threshold {
                  type uint32 {
                    range "1..100";
                  }
                  description
                    "Mid-threshold (% of maximum)";
                }
              }  // container maximum-prefix
    
              container bgp {
                status deprecated;
                description
                  "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-router-bgp-cfg.yang which will
    provide the compatible functionalities.  BGP AF
    VRF config";
                container import-route-targets {
                  description
                    "Import Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container import-route-targets
    
                container export-route-targets {
                  description
                    "Export Route targets";
                  container route-targets {
                    description
                      "Route target table";
                    list route-target {
                      must
                        "as-or-four-byte-as or ipv4-address" {
                        description
                          "AS-or-FourByteAS or IPV4Address must be
    present.";
                      }
                      key "type";
                      description
                        "Configured Route target Entry";
                      leaf type {
                        type Bgp-vrf-route-target;
                        description "Type of RT";
                      }
    
                      list as-or-four-byte-as {
                        when
                          "../type = 'as' or ../type = 'four-byte-as'" {
                          description
                            "../Type = AS or ../Type = FourByteAS";
                        }
                        key "as-xx as as-index stitching-rt";
                        description
                          "as or four byte as";
                        leaf as-xx {
                          type uint32 {
                            range "0";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as {
                          type uint32 {
                            range
                              "1..4294967295";
                          }
                          description
                            "AS number";
                        }
    
                        leaf as-index {
                          type Route-target-as-index;
                          description
                            "AS number Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list as-or-four-byte-as
    
                      list ipv4-address {
                        when
                          "../type = 'ipv4-address'" {
                          description
                            "../Type = IPV4Address";
                        }
                        key "address address-index stitching-rt";
                        description
                          "ipv4 address";
                        leaf address {
                          type inet:ipv4-address-no-zone;
                          description
                            "IP address";
                        }
    
                        leaf address-index {
                          type Route-target-addr-index;
                          description
                            "IP address Index";
                        }
    
                        leaf stitching-rt {
                          type uint32 {
                            range "0..1";
                          }
                          description
                            "Stitching RT";
                        }
                      }  // list ipv4-address
                    }  // list route-target
                  }  // container route-targets
                }  // container export-route-targets
    
                container vrf-to-global-export-route-policy {
                  presence
                    "Indicates a vrf-to-global-export-route-policy node is configured.";
                  description
                    "Route policy for vrf to global export filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Vrf to global export route policy";
                  }
    
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to Default VRF.FALSE Disable imported VPN
    paths to be exported to Default VRF.";
                  }
                }  // container vrf-to-global-export-route-policy
    
                container export-vrf-options {
                  description
                    "Export VRF options";
                  leaf allow-imported-vpn {
                    type boolean;
                    description
                      "TRUE Enable imported VPN paths to be exported
    to non-default VRFFALSE Disable imported VPN
    paths to be exported to non-default VRF";
                  }
    
                  leaf import-stitching-rt {
                    type boolean;
                    description
                      "TRUE Use stitchng RTs to import extranet
    pathsFALSE Use regular RTs to import extranet
    paths";
                  }
    
                  leaf disable-adv-source-vrf-vni {
                    type boolean;
                    description
                      "TRUE Disallow advertisement of source vrf vni
    for leaked pathsFALSE Allow advertisement of
    source vrf vni  for leaked paths";
                  }
                }  // container export-vrf-options
    
                container global-to-vrf-import-route-policy {
                  presence
                    "Indicates a global-to-vrf-import-route-policy node is configured.";
                  description
                    "Route policy for global to vrf import filtering";
                  leaf route-policy-name {
                    type string;
                    mandatory true;
                    description
                      "Global to vrf import route policy";
                  }
    
                  leaf advertise-as-vpn {
                    type boolean;
                    description
                      "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                  }
                }  // container global-to-vrf-import-route-policy
    
                leaf export-route-policy {
                  type string;
                  description
                    "Route policy for export filtering";
                }
    
                leaf import-route-policy {
                  type string;
                  description
                    "Route policy for import filtering";
                }
    
                leaf import-vrf-options {
                  type boolean;
                  description
                    "TRUE Enable advertising imported paths to
    PEsFALSE Disable advertising imported paths to
    PEs";
                }
    
                leaf import-from-bridge-domain {
                  type boolean;
                  description
                    "TRUE Enable advertising local EVPN paths to PEs
    .FALSE Disable advertising local EVPN paths to
    PEs.";
                }
              }  // container bgp
            }  // list af
          }  // container afs
        }  // container global-af
    
        container srlg {
          status deprecated;
          description
            "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-vrf-cfg.yang which will provide
    the compatible functionalities.  SRLG
    configuration commands";
          container interfaces {
            description
              "Set of interfaces configured with SRLG";
            list interface {
              key "interface-name";
              description
                "Interface configurations";
              container include-optical {
                presence
                  "Contains mandatory nodes that used to set default values";
                description
                  "Include optical configuration for an interface";
                leaf enable {
                  type empty;
                  description
                    "Enable SRLG interface include optical";
                }
    
                leaf priority {
                  type Srlg-priority;
                  mandatory true;
                  description
                    "Priority for optical domain values";
                }
              }  // container include-optical
    
              container interface-group {
                description
                  "Group configuration for an interface";
                container group-names {
                  description
                    "Set of group name under an interface";
                  list group-name {
                    key "group-name-index";
                    description
                      "Group name included under interface";
                    leaf group-name-index {
                      type uint32 {
                        range "1";
                      }
                      description
                        "Group name index";
                    }
    
                    leaf group-name {
                      type string;
                      mandatory true;
                      description "Group name";
                    }
    
                    leaf srlg-priority {
                      type Srlg-priority;
                      mandatory true;
                      description
                        "SRLG priority";
                    }
                  }  // list group-name
                }  // container group-names
    
                leaf enable {
                  type empty;
                  description
                    "Enable SRLG interface group submode";
                }
              }  // container interface-group
    
              container values {
                description
                  "SRLG Value configuration for an interface";
                list value {
                  key "srlg-index";
                  description "SRLG value data";
                  leaf srlg-index {
                    type uint32 {
                      range "1..65535";
                    }
                    description "SRLG index";
                  }
    
                  leaf srlg-value {
                    type uint32 {
                      range "0..4294967295";
                    }
                    mandatory true;
                    description "SRLG value";
                  }
    
                  leaf srlg-priority {
                    type Srlg-priority;
                    mandatory true;
                    description "SRLG priority";
                  }
                }  // list value
              }  // container values
    
              container interface-srlg-names {
                description
                  "SRLG Name configuration for an interface";
                list interface-srlg-name {
                  key "srlg-name";
                  description "SRLG name data";
                  leaf srlg-name {
                    type xr:Cisco-ios-xr-string {
                      length "1..64";
                    }
                    description "SRLG name";
                  }
                }  // list interface-srlg-name
              }  // container interface-srlg-names
    
              leaf enable {
                type empty;
                description
                  "Enable SRLG interface";
              }
    
              leaf interface-name {
                type xr:Interface-name;
                description "Interface name";
              }
            }  // list interface
          }  // container interfaces
    
          container srlg-names {
            description
              "Set of SRLG name configuration";
            list srlg-name {
              key "srlg-name";
              description
                "SRLG name configuration";
              leaf srlg-value {
                type uint32 {
                  range "0..4294967295";
                }
                mandatory true;
                description
                  "SRLG network value configuration";
              }
    
              leaf srlg-description {
                type string;
                description
                  "SRLG description configuration";
              }
    
              leaf srlg-name {
                type xr:Cisco-ios-xr-string {
                  length "1..64";
                }
                description "SRLG name";
              }
            }  // list srlg-name
          }  // container srlg-names
    
          container groups {
            description
              "Set of groups configured with SRLG";
            list group {
              key "group-name";
              description "Group configurations";
              container group-values {
                description
                  "Set of SRLG values configured under a group";
                list group-value {
                  key "srlg-index";
                  description
                    "Group SRLG values with attribute";
                  leaf srlg-index {
                    type uint32 {
                      range "1..65535";
                    }
                    description "SRLG index";
                  }
    
                  leaf srlg-value {
                    type uint32 {
                      range "0..4294967295";
                    }
                    mandatory true;
                    description "SRLG value";
                  }
    
                  leaf srlg-priority {
                    type Srlg-priority;
                    mandatory true;
                    description "SRLG priority";
                  }
                }  // list group-value
              }  // container group-values
    
              leaf enable {
                type empty;
                description "Enable SRLG group";
              }
    
              leaf group-name {
                type xr:Cisco-ios-xr-string;
                description "Group name";
              }
            }  // list group
          }  // container groups
    
          container inherit-nodes {
            description
              "Set of inherit nodes configured with SRLG";
            list inherit-node {
              key "inherit-node-name";
              description
                "Inherit node configurations";
              container inherit-node-values {
                description
                  "Set of SRLG values configured under an inherit
    node";
                list inherit-node-value {
                  key "srlg-index";
                  description
                    "Inherit node SRLG value with attributes";
                  leaf srlg-index {
                    type uint32 {
                      range "1..65535";
                    }
                    description "SRLG index";
                  }
    
                  leaf srlg-value {
                    type uint32 {
                      range "0..4294967295";
                    }
                    mandatory true;
                    description "SRLG value";
                  }
    
                  leaf srlg-priority {
                    type Srlg-priority;
                    mandatory true;
                    description "SRLG priority";
                  }
                }  // list inherit-node-value
              }  // container inherit-node-values
    
              leaf enable {
                type empty;
                description
                  "Enable SRLG inherit node";
              }
    
              leaf inherit-node-name {
                type xr:Pq-node-id;
                description
                  "The inherit node name";
              }
            }  // list inherit-node
          }  // container inherit-nodes
    
          leaf enable {
            type empty;
            description "Enable SRLG";
          }
        }  // container srlg
    
        container vrf-groups {
          status deprecated;
          description
            "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-vrf-cfg.yang which will provide
    the compatible functionalities.  Set of VRF
    groups configured";
          list vrf-group {
            key "vrf-group-name";
            description
              "VRF group configuration";
            container vrfs {
              description
                "Set of VRFs configured under a VRF group";
              list vrf {
                key "vrf-name";
                description "VRF configuration";
                leaf vrf-name {
                  type xr:Cisco-ios-xr-string {
                    length "1..32";
                  }
                  description "VRF name";
                }
              }  // list vrf
            }  // container vrfs
    
            leaf enable {
              type empty;
              description "Enable VRF group";
            }
    
            leaf vrf-group-name {
              type xr:Cisco-ios-xr-string {
                length "1..32";
              }
              description "VRF group name";
            }
          }  // list vrf-group
        }  // container vrf-groups
    
        container selective-vrf-download {
          status deprecated;
          description
            "This model is deprecated and is replaced by
    Cisco-IOS-XR-um-vrf-cfg.yang which will provide
    the compatible functionalities.  Selective VRF
    download configuration";
          leaf disable {
            type empty;
            description
              "Disable selective VRF download";
          }
        }  // container selective-vrf-download
      }  // module Cisco-IOS-XR-infra-rsi-cfg
    

© 2023 YumaWorks, Inc. All rights reserved.