Bgp peer
BGP Peer types that are used in input forms.
IPv4BGPPeer
Bases: BaseModel
IPv4 BGP Peer model for use in input forms.
Source code in gso/utils/types/bgp_peer.py
families
property
Convert the add multicast boolean into a list of address families.
ip_type
property
Return the IP version number of this BGP peer.
This is not an attribute of the class, as that would make it appear in input forms, which we want to avoid.
IPv6BGPPeer
Bases: BaseModel
IPv6 BGP Peer model for use in input forms.
Source code in gso/utils/types/bgp_peer.py
families
property
Convert the add multicast boolean into a list of address families.
ip_type
property
Return the IP version number of this BGP peer.
This is not an attribute of the class, as that would make it appear in input forms, which we want to avoid.
BGPPeerImportModelSimple
Bases: BaseModel
BGP Peer model excluding prefix limit field.
This model is used in import workflows where the IP families are already known and don't have to be calculated from an input form.
Source code in gso/utils/types/bgp_peer.py
BGPPeerImportModelFull
Bases: BGPPeerImportModelSimple
BGP Peer import model including all fields.