openconfig-bgp-policy

This module contains data definitions for BGP routing policy. It augments the base routing-policy module with BGP-specific optio...

  • Version: 2017-07-30

    openconfig-bgp-policy@2017-07-30


    
      module openconfig-bgp-policy {
    
        yang-version 1;
    
        namespace
          "http://openconfig.net/yang/bgp-policy";
    
        prefix oc-bgp-pol;
    
        import openconfig-inet-types {
          prefix oc-inet;
        }
        import openconfig-routing-policy {
          prefix oc-rpol;
        }
        import openconfig-policy-types {
          prefix oc-pol-types;
        }
        import openconfig-bgp-types {
          prefix oc-bgp-types;
        }
        import openconfig-extensions {
          prefix oc-ext;
        }
    
        organization "OpenConfig working group";
    
        contact
          "OpenConfig working group
    netopenconfig@googlegroups.com";
    
        description
          "This module contains data definitions for BGP routing policy.
    It augments the base routing-policy module with BGP-specific
    options for conditions and actions.";
    
        revision "2017-07-30" {
          description
            "Clarification of add-paths send-max leaf";
          reference
            "4.0.1";
    
        }
    
        revision "2017-07-10" {
          description
            "Add error notifications; moved add-paths config; add AS
    prepend policy features; removed unneeded config leaves";
          reference
            "4.0.0";
    
        }
    
        revision "2017-02-02" {
          description
            "Bugfix to remove remaining global-level policy data";
          reference
            "3.0.1";
    
        }
    
        revision "2017-01-26" {
          description
            "Add dynamic neighbor support, migrate to OpenConfig types";
          reference
            "3.0.0";
    
        }
    
        revision "2016-06-21" {
          description "OpenConfig BGP refactor";
          reference
            "2.1.1";
    
        }
    
        oc-ext:openconfig-version "4.0.1";
    
        typedef bgp-set-community-option-type {
          type enumeration {
            enum "ADD" {
              value 0;
              description
                "add the specified communities to the existing
    community attribute";
            }
            enum "REMOVE" {
              value 1;
              description
                "remove the specified communities from the
    existing community attribute";
            }
            enum "REPLACE" {
              value 2;
              description
                "replace the existing community attribute with
    the specified communities. If an empty set is
    specified, this removes the community attribute
    from the route.";
            }
          }
          description
            "Type definition for options when setting the community
    attribute in a policy action";
        }
    
        typedef bgp-next-hop-type {
          type union {
            type oc-inet:ip-address;
            type enumeration {
              enum "SELF" {
                value 0;
                description
                  "special designation for local router's own
    address, i.e., next-hop-self";
              }
            }
          }
          description
            "type definition for specifying next-hop in policy actions";
        }
    
        typedef bgp-set-med-type {
          type union {
            type uint32;
            type string {
              pattern '^[+-][0-9]+$';
            }
            type enumeration {
              enum "IGP" {
                value 0;
                description
                  "set the MED value to the IGP cost toward the
    next hop for the route";
              }
            }
          }
          description
            "Type definition for specifying how the BGP MED can
    be set in BGP policy actions. The three choices are to set
    the MED directly, increment/decrement using +/- notation,
    and setting it to the IGP cost (predefined value).";
        }
      }  // module openconfig-bgp-policy
    

© 2023 YumaWorks, Inc. All rights reserved.