This module contains data definitions for BGP routing policy. It augments the base routing-policy module with BGP-specific optio...
Version: 2016-06-21
module openconfig-bgp-policy { yang-version 1; namespace "http://openconfig.net/yang/bgp-policy"; prefix oc-bgp-pol; import ietf-inet-types { prefix 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 "2016-06-21" { description "OpenConfig BGP refactor"; reference "2.1.1"; } oc-ext:openconfig-version "2.1.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 inet:ip-address-no-zone; 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.