Skip to content

Commercial peer

Commercial Peer Product Blocks.

SessionState

Bases: strEnum

Session state of the Peering connection.

Source code in gso/products/product_blocks/commercial_peer.py
class SessionState(strEnum):
    """Session state of the Peering connection."""

    PROVISIONED = "provisioning"
    """Provisioning."""
    ACTIVE = "active"
    """Active."""
    DISABLED = "disabled"
    """Disabled."""

PROVISIONED = 'provisioning' class-attribute instance-attribute

Provisioning.

ACTIVE = 'active' class-attribute instance-attribute

Active.

DISABLED = 'disabled' class-attribute instance-attribute

Disabled.

PeeringConnectionInactive

Bases: ProductBlockModel

A Peering Connection that's currently inactive. See PeeringConnectionBlock.

Source code in gso/products/product_blocks/commercial_peer.py
class PeeringConnectionInactive(
    ProductBlockModel, lifecycle=[SubscriptionLifecycle.INITIAL], product_block_name="PeeringConnectionBlock"
):
    """A Peering Connection that's currently inactive. See `PeeringConnectionBlock`."""

    bgp_session_v4: BGPSessionInactive
    bgp_session_v6: BGPSessionInactive
    minimum_hold_timer: int | None = None
    session_state: SessionState
    placement_port: IXPortBlockInactive | PrivatePeerPortBlockInactive | TransitProviderPortBlockInactive | None = None

PeeringConnectionProvisioning

Bases: PeeringConnectionInactive

A Peering Connection that's currently being provisioned. See PeeringConnectionBlock.

Source code in gso/products/product_blocks/commercial_peer.py
class PeeringConnectionProvisioning(PeeringConnectionInactive, lifecycle=[SubscriptionLifecycle.PROVISIONING]):
    """A Peering Connection that's currently being provisioned. See `PeeringConnectionBlock`."""

    bgp_session_v4: BGPSessionProvisioning
    bgp_session_v6: BGPSessionProvisioning
    minimum_hold_timer: int | None = None
    session_state: SessionState
    placement_port: (
        IXPortBlockProvisioning | PrivatePeerPortBlockProvisioning | TransitProviderPortBlockProvisioning | None
    ) = None

PeeringConnection

Bases: PeeringConnectionProvisioning

A Peering Connection that's currently active.

Source code in gso/products/product_blocks/commercial_peer.py
class PeeringConnection(PeeringConnectionProvisioning, lifecycle=[SubscriptionLifecycle.ACTIVE]):
    """A Peering Connection that's currently active."""

    bgp_session_v4: BGPSession
    bgp_session_v6: BGPSession
    minimum_hold_timer: int | None
    session_state: SessionState
    placement_port: IXPortBlock | PrivatePeerPortBlock | TransitProviderPortBlock | None

CommercialPeerBlockInactive

Bases: ProductBlockModel

A Commercial Peer that's not yet provisioned. See CommercialPeerBlock.

Source code in gso/products/product_blocks/commercial_peer.py
class CommercialPeerBlockInactive(
    ProductBlockModel, lifecycle=[SubscriptionLifecycle.INITIAL], product_block_name="CommercialPeerBlock"
):
    """A Commercial Peer that's not yet provisioned. See ``CommercialPeerBlock``."""

    peering_connection: list[PeeringConnectionInactive]
    prefix_limit: NonNegativeInt | None = None

CommercialPeerBlockProvisioning

Bases: CommercialPeerBlockInactive

An CommercialPeer that's being provisioned. See CommercialPeerBlock.

Source code in gso/products/product_blocks/commercial_peer.py
class CommercialPeerBlockProvisioning(CommercialPeerBlockInactive, lifecycle=[SubscriptionLifecycle.PROVISIONING]):
    """An CommercialPeer that's being provisioned. See ``CommercialPeerBlock``."""

    peering_connection: list[PeeringConnectionProvisioning]  # type: ignore[assignment]
    prefix_limit: NonNegativeInt | None = None

CommercialPeerBlock

Bases: CommercialPeerBlockProvisioning

An Internet Exchange Port that's active.

Attributes:

Name Type Description
peering_connection list[PeeringConnection]

The Peering connection block

prefix_limit NonNegativeInt | None

The prefix limit

Source code in gso/products/product_blocks/commercial_peer.py
class CommercialPeerBlock(CommercialPeerBlockProvisioning, lifecycle=[SubscriptionLifecycle.ACTIVE]):
    """An Internet Exchange Port that's active.

    Attributes:
        peering_connection: The Peering connection block
        prefix_limit: The prefix limit
    """

    peering_connection: list[PeeringConnection]  # type: ignore[assignment]
    prefix_limit: NonNegativeInt | None