Bgp session
BGP session product block.
IPFamily
Bases: strEnum
Possible IP families of a BGP peering.
Source code in gso/products/product_blocks/bgp_session.py
V4UNICAST = 'ipv4'
class-attribute
instance-attribute
Unicast IPv4
V6UNICAST = 'ipv6'
class-attribute
instance-attribute
Unicast IPv6
V4MULTICAST = 'mcast-ipv4'
class-attribute
instance-attribute
Multicast IPv4
V6MULTICAST = 'mcast-ipv6'
class-attribute
instance-attribute
Multicast IPv6
IPTypes
Bases: strEnum
Possible IP types of a BGP peering.
Source code in gso/products/product_blocks/bgp_session.py
IPV4 = 'ipv4'
class-attribute
instance-attribute
IPv4
IPV6 = 'ipv6'
class-attribute
instance-attribute
IPv6
BGPSessionInactive
Bases: ProductBlockModel
A BGP session that is currently inactive. See BGPSession
.
Source code in gso/products/product_blocks/bgp_session.py
BGPSessionProvisioning
Bases: BGPSessionInactive
A BGP session that is currently being provisioned. See BGPSession
.
Source code in gso/products/product_blocks/bgp_session.py
BGPSession
Bases: BGPSessionProvisioning
A BGP session that is currently deployed in the network.
Attributes:
Name | Type | Description |
---|---|---|
peer_address |
IPAddress
|
The peering address of the session. |
families |
list[IPFamily]
|
The list of IP families enabled for this session. |
has_custom_policies |
bool
|
Whether any custom policies exist for this session. |
authentication_key |
str | None
|
The authentication key of the BGP session. |
multipath_enabled |
bool
|
Whether multi-path is enabled. |
send_default_route |
bool
|
Whether we send a last resort route. |
is_multi_hop |
bool
|
Whether this session is multi-hop or not. Defaults to no. |
is_passive |
bool
|
Whether this is a passive session. |
rtbh_enabled |
bool
|
Whether Remote Triggered Blackhole is enabled. |
bfd_enabled |
bool
|
Settings for BFD. |
ip_type |
IPTypes
|
The IP type of the session. |
prefix_limit |
NonNegativeInt | None
|
A prefix limit, if required. |