This module contains general data definitions for use in BGP policy. It can be imported by modules that make use of BGP attributes
openconfig-types
openconfig-inet-types
openconfig-extensions
description:
Type to describe the direction of NLRI transmission
type: enumeration
description:
Type definition for well-known IETF community attribute
values
type: identityref
description:
Type definition for standard commmunity attributes represented as
a integer value, or a string of the form N:M where N and M are
integers between 0 and 65535.
type: union
type: uint32
type: string
description:
Type definition for extended community attributes. In the case that
common communities are utilised, they are represented as a string
of the form:
- <2b AS>:<4b value> per RFC4360 section 3.1
- <4b IPv4>:<2b value> per RFC4360 section 3.2
- <4b AS>:<2b value> per RFC5668 section 2.
- route-target:<2b AS>:<4b value> per RFC4360 section 4
- route-target:<4b IPv4>:<2b value> per RFC4360 section 4
- route-origin:<2b ASN>:<4b value> per RFC4360 section 5
- route-origin:<4b IPv4>:<2b value> per RFC4360 section 5
- color:
type: union
type: string
type: string
type: string
type: string
type: string
type: string
type: string
type: string
type: string
type: string
type: string
description:
A type definition utilised to define the extended community
in a context where the system is receiving the extended
community from an external source, such that the value may be
unknown. In the case that the received extended community is
unknown it is defined to be a 8-octet quantity formatted
according to RFC4360:
Type Field: 1 or 2 octets.
Value Field: Remaining octets.
The high-order octet of the type field is encoded such that
bit 0 indicates whether the extended community type is IANA
assigned; and bit 1 indicates whether the extended community
is transitive. The remaining bits of the high-order type
field must be interpreted to determine whether the low-order
type field should be parsed, or whether the entire remainder
of the extended community is a value.
type: union
type: bgp-ext-community-type
type: binary
description:
Type definition for communities specified as regular
expression patterns. The regular expression must be a
POSIX extended regular expression with some limitations
which are commonly found in device implementations described
in draft-ietf-idr-bgp-model.
type: oc-types:posix-eregexp
description:
Type definition for standard BGP origin attribute
type: enumeration
description:
Labels a peer or peer group as explicitly internal or
external
type: enumeration
description:
Set of options for configuring how private AS path numbers
are removed from advertisements
type: identityref
description:
Union type for route reflector cluster ids:
option 1: 4-byte number
option 2: IP address
type: union
type: uint32
type: oc-inet:ipv4-address
description:
type describing variations of community attributes:
STANDARD: standard BGP community [rfc1997]
EXTENDED: extended BGP community [rfc4360]
LARGE: large BGP community [rfc8092]
type: enumeration
description:
Defines the types of BGP AS path segments.
type: enumeration
description:
Base identity for a BGP capability
description:
Multi-protocol extensions to BGP
base identity: BGP_CAPABILITY
description:
The BGP route-refresh functionality
base identity: BGP_CAPABILITY
description:
4-byte (32-bit) AS number functionality
base identity: BGP_CAPABILITY
description:
Graceful restart functionality
base identity: BGP_CAPABILITY
description:
BGP add-paths
base identity: BGP_CAPABILITY
description:
BGP Extended Next Hop Encoding functionality
base identity: BGP_CAPABILITY
description:
Base identity type for AFI,SAFI tuples for BGP-4
description:
IPv4 unicast (AFI,SAFI = 1,1)
base identity: AFI_SAFI_TYPE
description:
IPv6 unicast (AFI,SAFI = 2,1)
base identity: AFI_SAFI_TYPE
description:
Labeled IPv4 unicast (AFI,SAFI = 1,4)
base identity: AFI_SAFI_TYPE
description:
Labeled IPv6 unicast (AFI,SAFI = 2,4)
base identity: AFI_SAFI_TYPE
description:
Unicast IPv4 MPLS L3VPN (AFI,SAFI = 1,128)
base identity: AFI_SAFI_TYPE
description:
Unicast IPv6 MPLS L3VPN (AFI,SAFI = 2,128)
base identity: AFI_SAFI_TYPE
description:
Multicast IPv4 MPLS L3VPN (AFI,SAFI = 1,129)
base identity: AFI_SAFI_TYPE
description:
Multicast IPv6 MPLS L3VPN (AFI,SAFI = 2,129)
base identity: AFI_SAFI_TYPE
description:
BGP-signalled VPLS (AFI,SAFI = 25,65)
base identity: AFI_SAFI_TYPE
description:
BGP MPLS Based Ethernet VPN (AFI,SAFI = 25,70)
base identity: AFI_SAFI_TYPE
description:
Segment Routing Traffic Engineering (SRTE) Policy
for IPv4 (AFI,SAFI = 1,73)
base identity: AFI_SAFI_TYPE
description:
Segment Routing Traffic Engineering (SRTE) Policy
for IPv6 (AFI,SAFI = 2,73)
base identity: AFI_SAFI_TYPE
description:
IPv4 dissemination of flow specification rules
(AFI,SAFI = 1,133)
base identity: AFI_SAFI_TYPE
description:
IPv4 dissemination of flow specification rules
(AFI,SAFI = 1,134)
base identity: AFI_SAFI_TYPE
description:
BGP-LS (AFI,SAFI = 16388,71)
base identity: AFI_SAFI_TYPE
description:
BGP-LS-VPN (AFI,SAFI = 16388,72)
base identity: AFI_SAFI_TYPE
description:
BGP-LS SPF (AFI,SAFI = 16388,TBD)
base identity: AFI_SAFI_TYPE
description:
Reserved communities within the standard community space
defined by RFC1997. These communities must fall within the
range 0x00000000 to 0xFFFFFFFF
description:
Do not export NLRI received carrying this community outside
the bounds of this autonomous system, or this confederation if
the local autonomous system is a confederation member AS. This
community has a value of 0xFFFFFF01.
base identity: BGP_WELL_KNOWN_STD_COMMUNITY
description:
All NLRI received carrying this community must not be
advertised to other BGP peers. This community has a value of
0xFFFFFF02.
base identity: BGP_WELL_KNOWN_STD_COMMUNITY
description:
All NLRI received carrying this community must not be
advertised to external BGP peers - including over confederation
sub-AS boundaries. This community has a value of 0xFFFFFF03.
base identity: BGP_WELL_KNOWN_STD_COMMUNITY
description:
An autonomous system receiving NLRI tagged with this community
is advised not to readvertise the NLRI to external bi-lateral
peer autonomous systems. An AS may also filter received NLRI
from bilateral peer sessions when they are tagged with this
community value
base identity: BGP_WELL_KNOWN_STD_COMMUNITY
description:
An autonomous system which supports the graceful shutdown
receiver procedure receiving NLRI tagged with this community
will set LOCAL_PREF to a low value for those NLRI. This
community has a value of 0xFFFF0000.
base identity: BGP_WELL_KNOWN_STD_COMMUNITY
description:
Base identity for options for removing private autonomous
system numbers from the AS_PATH attribute
description:
Strip all private autonmous system numbers from the AS_PATH.
This action is performed regardless of the other content of the
AS_PATH attribute, and for all instances of private AS numbers
within that attribute.
base identity: REMOVE_PRIVATE_AS_OPTION
description:
Replace all instances of private autonomous system numbers in
the AS_PATH with the local BGP speaker's autonomous system
number. This action is performed regardless of the other
content of the AS_PATH attribute, and for all instances of
private AS number within that attribute.
base identity: REMOVE_PRIVATE_AS_OPTION
description:
Indicates the error type in a BGP NOTIFICATION message
description:
Errors detected while processing the Message Header
base identity: BGP_ERROR_CODE
description:
Errors detected while processing the OPEN message
base identity: BGP_ERROR_CODE
description:
Errors detected while processing the UPDATE message
base identity: BGP_ERROR_CODE
description:
Indicates that the system did not receive successive
KEEPALIVE, UPDATE, and/or NOTIFICATION messages within the
period specified in the Hold Time field of the OPEN message
base identity: BGP_ERROR_CODE
description:
Error detected by the BGP Finite State Machine
(e.g., receipt of an unexpected event)
base identity: BGP_ERROR_CODE
description:
Sent by a BGP peer to close its BGP connection in absence of
any fatal errors. If the BGP speaker terminates its
connection with a neihbor because the number of prefixes
received exceeds the configured upper bound, the speaker must
send the neighbor a NOTIFICATION message with the Cease
error code.
base identity: BGP_ERROR_CODE
description:
The length, excluding the fixed-size message header, of the
received ROUTE-REFRESH message with Message Subtype 1 and 2 is
not 4. Applicable only when a BGP speaker has received the
'Enhanced Route Refresh Capability' from a peer
base identity: BGP_ERROR_CODE
description:
Provides more specific information about the nature of the
error reported in a NOTIFICATION message. Each Error
Code may have one or more Error Subcodes associated with it.
description:
The error subcode field is unspecific when the NOTIFICATION
message does not include any specific error subcode (i.e..,
value 0).
base identity: BGP_ERROR_SUBCODE
description:
Error subcode definitions for Message Header error
notifications
base identity: BGP_ERROR_SUBCODE
description:
Error subcode definitions for OPEN message error
notifications
base identity: BGP_ERROR_SUBCODE
description:
Error subcode definitions for UPDATE message error
notifications
base identity: BGP_ERROR_SUBCODE
description:
Error subcode definitions for BGP finite state machine
errors.
base identity: BGP_ERROR_SUBCODE
description:
Error subcode definitions for Cease notification messages
base identity: BGP_ERROR_SUBCODE
description:
Error subcode definitions for the ROUTE-REFRESH message
error
base identity: BGP_ERROR_SUBCODE
This module describes a YANG model for BGP protocol configuration.It is a limited subset of all of the configuration parameters available in the variety of vendor implementations, hence it is expected that it would be augmented with vendor- specific configuration data as needed. Additional modules or submodules to handle other aspects of BGP configuration, including policy, VRFs, VPNs, and additional address families are also expected.
This model supports the following BGP configuration level hierarchy:
BGP | +-> [ global BGP configuration ] +-> AFI / SAFI global +-> peer group +-> [ peer group config ] +-> AFI / SAFI [ per-AFI overrides ] +-> neighbor +-> [ neighbor config ] +-> [ optional pointer to peer-group ] +-> AFI / SAFI [ per-AFI overrides ]
Most BGP features can be configured at multiple levels in the BGP configuration level hierarchy. The common inheritance model allows the more specific configuration (e.g. neighbor) to inherit from or override the less specific configuration (e.g. global). Leaf present at one level overrides leafs present at higher levels, whereas leaf not present inherits its value from the leaf present at the next higher level in the hierarchy.
openconfig-extensions
openconfig-rib-bgp