Attributes

Leafs

Children

class BgpRib.AfiSafis.AfiSafi.Ipv4Unicast.Neighbors.Neighbor.AdjRibInPre.Routes.Route.Attributes

Bases: Entity

Class Hierarchy: BgpRib AfiSafis AfiSafi Ipv4Unicast Neighbors Neighbor AdjRibInPre Routes Route Attributes

This class represents state data.

Base BGP route attributes associated with this route

origin

BGP attribute defining the origin of the path information

type: BgpOriginAttrType

config: False

as_path

String representation of the BGP AS path attribute as concatenated AS path segments. Each segment of the AS_PATH should be formatted as follows based on the segment type (#### denotes a single AS number): AS_SEQ: #### #### ##### AS_SET: { #### #### } AS_CONFED_SEQUENCE: ( #### #### ) AS_CONFED_SET: [ #### #### ] AS_PATH segment types are described in RFC 5065. In the Adj-RIB-In or Adj-RIB-Out, this leaf should show the received or sent AS_PATH value, respectively. For example, if the local router is not 4-byte capable, this value should consist of 2-octet ASNs or the AS_TRANS (AS 23456) values received or sent in route updates. In the Loc-RIB, this leaf should reflect the effective AS path for the route, e.g., a 4-octet value if the local router is 4-octet capable

type: str

config: False

as4_path

This string represents the AS path encoded with 4-octet AS numbers in the optional transitive AS4_PATH attribute. This value is populated with the received or sent attribute in Adj-RIB-In or Adj-RIB-Out, respectively. It should not be populated in Loc-RIB since the Loc-RIB is expected to store the effective AS-Path in the as-path leaf regardless of being 4-octet or 2-octet

type: str

config: False

next_hop

BGP next hop attribute defining the IP address of the router that should be used as the next hop to the destination

type: union of the below types:

type: str

pattern: (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?

type: str

pattern: ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?

config: False

med

BGP multi-exit discriminator attribute used in BGP route selection process

type: int

range: 0..4294967295

config: False

local_pref

BGP local preference attribute sent to internal peers to indicate

type: int

range: 0..4294967295

config: False

atomic_aggr

BGP attribute indicating that the prefix is an atomic aggregate, i.e., the peer selected a less specific route without selecting a more specific route that is included in it

type: bool

config: False

aggregator

BGP attribute indicating the prefix has been aggregated by the specified AS and router

type: Aggregator

config: False

community

List of standard BGP community attributes

type: union of the below types:

type: list of int

range: 65536..4294901759

type: list of str

pattern: ^(6553[0-5]|655[0-2][0-9]|654[0-9]{2}|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{1,3}|[0-9]):(6553[0-5]|655[0-2][0-9]|654[0-9]{2}|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{1,3}|[0-9])$

config: False