openconfig-bgp-global

This sub-module contains groupings that are specific to the global context of the OpenConfig BGP module

  • Version: 2016-06-21

    openconfig-bgp-global@2016-06-21


    
      submodule openconfig-bgp-global {
    
        yang-version 1;
    
        belongs-to openconfig-bgp {
            prefix oc-bgp;
        }
    
        import openconfig-extensions {
          prefix oc-ext;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import ietf-yang-types {
          prefix yang;
        }
    
        include openconfig-bgp-common;
        include openconfig-bgp-common-multiprotocol;
    
        organization "OpenConfig working group";
    
        contact
          "OpenConfig working group
        netopenconfig@googlegroups.com";
    
        description
          "This sub-module contains groupings that are specific to the
        global context of the OpenConfig BGP module";
    
        revision "2016-06-21" {
          description "OpenConfig BGP refactor";
          reference
            "2.1.1";
    
        }
    
        oc-ext:openconfig-version "2.1.1";
    
        grouping bgp-global-config {
          description
            "Global configuration options for the BGP router.";
          leaf as {
            type inet:as-number;
            mandatory true;
            description
              "Local autonomous system number of the router.  Uses
            the 32-bit as-number type from the model in RFC 6991.";
          }
    
          leaf router-id {
            type yang:dotted-quad;
            description
              "Router id of the router - an unsigned 32-bit integer
            expressed in dotted quad notation.";
            reference
              "RFC4271 - A Border Gateway Protocol 4 (BGP-4),
              Section 4.2";
    
          }
        }  // grouping bgp-global-config
    
        grouping bgp-global-state {
          description
            "Operational state parameters for the BGP neighbor";
          uses bgp-common-state;
        }  // grouping bgp-global-state
    
        grouping bgp-global-default-route-distance-config {
          description
            "Configuration options relating to the administrative distance
          (or preference) assigned to routes received from different
          sources (external, internal, and local).";
          leaf external-route-distance {
            type uint8 {
              range "1..255";
            }
            description
              "Administrative distance for routes learned from external
            BGP (eBGP).";
          }
    
          leaf internal-route-distance {
            type uint8 {
              range "1..255";
            }
            description
              "Administrative distance for routes learned from internal
            BGP (iBGP).";
          }
        }  // grouping bgp-global-default-route-distance-config
    
        grouping bgp-global-confederation-config {
          description
            "Configuration options specifying parameters when the local
          router is within an autonomous system which is part of a BGP
          confederation.";
          leaf enabled {
            type boolean;
            description
              "When this leaf is set to true it indicates that
            the local-AS is part of a BGP confederation";
          }
    
          leaf identifier {
            type inet:as-number;
            description
              "Confederation identifier for the autonomous system.";
          }
    
          leaf-list member-as {
            type inet:as-number;
            description
              "Remote autonomous systems that are to be treated
            as part of the local confederation.";
          }
        }  // grouping bgp-global-confederation-config
    
        grouping bgp-global-afi-safi-list {
          description
            "List of address-families associated with the BGP instance";
          list afi-safi {
            key "afi-safi-name";
            description
              "AFI,SAFI configuration available for the
            neighbour or group";
            leaf afi-safi-name {
              type leafref {
                path "../config/afi-safi-name";
              }
              description
                "Reference to the AFI-SAFI name used as a key
              for the AFI-SAFI list";
            }
    
            container config {
              description
                "Configuration parameters for the AFI-SAFI";
              uses bgp-common-mp-afi-safi-config;
            }  // container config
    
            container state {
              config false;
              description
                "State information relating to the AFI-SAFI";
              uses bgp-common-mp-afi-safi-config;
    
              uses bgp-common-state;
            }  // container state
    
            container graceful-restart {
              description
                "Parameters relating to BGP graceful-restart";
              container config {
                description
                  "Configuration options for BGP graceful-restart";
                uses bgp-common-mp-afi-safi-graceful-restart-config;
              }  // container config
    
              container state {
                config false;
                description
                  "State information for BGP graceful-restart";
                uses bgp-common-mp-afi-safi-graceful-restart-config;
              }  // container state
            }  // container graceful-restart
    
            uses bgp-common-route-selection-options;
    
            uses bgp-common-global-group-use-multiple-paths;
    
            uses bgp-common-mp-all-afi-safi-list-contents;
          }  // list afi-safi
        }  // grouping bgp-global-afi-safi-list
    
        grouping bgp-global-base {
          description
            "Global configuration parameters for the BGP router";
          container config {
            presence "Enable BGP";
            description
              "Configuration parameters relating to the global BGP router";
            uses bgp-global-config;
          }  // container config
    
          container state {
            config false;
            description
              "State information relating to the global BGP router";
            uses bgp-global-config;
    
            uses bgp-global-state;
          }  // container state
    
          container default-route-distance {
            description
              "Administrative distance (or preference) assigned to
            routes received from different sources
            (external, internal, and local).";
            container config {
              description
                "Configuration parameters relating to the default route
              distance";
              uses bgp-global-default-route-distance-config;
            }  // container config
    
            container state {
              config false;
              description
                "State information relating to the default route distance";
              uses bgp-global-default-route-distance-config;
            }  // container state
          }  // container default-route-distance
    
          container confederation {
            description
              "Parameters indicating whether the local system acts as part
            of a BGP confederation";
            container config {
              description
                "Configuration parameters relating to BGP confederations";
              uses bgp-global-confederation-config;
            }  // container config
    
            container state {
              config false;
              description
                "State information relating to the BGP confederations";
              uses bgp-global-confederation-config;
            }  // container state
          }  // container confederation
    
          container graceful-restart {
            description
              "Parameters relating the graceful restart mechanism for BGP";
            container config {
              description
                "Configuration parameters relating to graceful-restart";
              uses bgp-common-graceful-restart-config;
            }  // container config
    
            container state {
              config false;
              description
                "State information associated with graceful-restart";
              uses bgp-common-graceful-restart-config;
            }  // container state
          }  // container graceful-restart
    
          uses bgp-common-global-group-use-multiple-paths;
    
          uses bgp-common-route-selection-options;
    
          container afi-safis {
            description
              "Address family specific configuration";
            uses bgp-global-afi-safi-list;
          }  // container afi-safis
        }  // grouping bgp-global-base
      }  // submodule openconfig-bgp-global
    

© 2023 YumaWorks, Inc. All rights reserved.