Skip to content

Workflow shared models

Shared models for workflows.

BGPPeerModelSimple

Bases: BaseModel

BGP Peer model excluding prefix limit field.

Source code in gso/utils/workflow_shared_models.py
class BGPPeerModelSimple(BaseModel):
    """BGP Peer model excluding prefix limit field."""

    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
    ttl_security: NonNegativeInt | None = None

BGPPeerModelFull

Bases: BGPPeerModelSimple

BGP Peer model including all fields.

Source code in gso/utils/workflow_shared_models.py
class BGPPeerModelFull(BGPPeerModelSimple):
    """BGP Peer model including all fields."""

    prefix_limit: NonNegativeInt | None = None