This module contains data definitions for BGP routing policy. It augments the base routing-policy module with BGP-specific optio...
Version: 2020-06-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 "2020-06-30" { description "Add OpenConfig POSIX pattern extensions."; reference "6.0.2"; } revision "2019-11-28" { description "Fix quotes on literals in when statements"; reference "6.0.1"; } revision "2019-02-01" { description "Move BGP community match-set-options from policy-definitions/statements/.../bgp-conditions to defined-sets/bgp-defined-sets/community-set for wider platform support."; reference "6.0.0"; } revision "2018-11-21" { description "Add OpenConfig module metadata extensions."; reference "5.0.2"; } revision "2018-08-20" { description "Correct description of AFI-SAFI enabled leaf."; reference "5.0.1"; } revision "2018-04-11" { description "Correct naming of BGP maximum prefix warning percentage leaf."; reference "5.0.0"; } revision "2018-03-20" { description "Added SR-TE policy SAFI"; reference "4.1.0"; } 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 "6.0.2"; oc-ext:regexp-posix; oc-ext:catalog-organization "openconfig"; oc-ext:origin "openconfig"; 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 { oc-ext:posix-pattern "^[+-][0-9]+$"; 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.