Skip to content

Workflow shared models

Shared models for workflows.

BaseBGPPeerModel

Bases: BaseModel

BGP Peer model.

Source code in gso/utils/workflow_shared_models.py
class BaseBGPPeerModel(BaseModel):
    """BGP Peer model."""

    bfd_enabled: bool = False
    has_custom_policies: bool = False
    authentication_key: str | None
    multipath_enabled: bool = False
    send_default_route: bool = False
    is_passive: bool = False
    peer_address: IPAddress
    families: list[IPFamily]
    is_multi_hop: bool
    rtbh_enabled: bool
    prefix_limit: NonNegativeInt | None = None
    ttl_security: NonNegativeInt | None = None