Versions in this module Expand all Collapse all v3 v3.2.2 May 3, 2022 Changes in this version + func GetNativeNlri(p *api.Path) (bgp.AddrPrefixInterface, error) + func GetNativePathAttributes(p *api.Path) ([]bgp.PathAttributeInterface, error) + func MarshalCapabilities(values []bgp.ParameterCapabilityInterface) ([]*apb.Any, error) + func MarshalCapability(value bgp.ParameterCapabilityInterface) (*apb.Any, error) + func MarshalFlowSpecRules(values []bgp.FlowSpecComponentInterface) ([]*apb.Any, error) + func MarshalLsLinkDescriptor(n *bgp.LsLinkDescriptor) (*api.LsLinkDescriptor, error) + func MarshalLsLinkNLRI(n *bgp.LsLinkNLRI) (*apb.Any, error) + func MarshalLsNodeDescriptor(d *bgp.LsNodeDescriptor) (*api.LsNodeDescriptor, error) + func MarshalLsNodeNLRI(n *bgp.LsNodeNLRI) (*apb.Any, error) + func MarshalLsPrefixDescriptor(d *bgp.LsPrefixDescriptor) (*api.LsPrefixDescriptor, error) + func MarshalLsPrefixV4NLRI(n *bgp.LsPrefixV4NLRI) (*apb.Any, error) + func MarshalLsPrefixV6NLRI(n *bgp.LsPrefixV6NLRI) (*apb.Any, error) + func MarshalNLRI(value bgp.AddrPrefixInterface) (*apb.Any, error) + func MarshalNLRIs(values []bgp.AddrPrefixInterface) ([]*apb.Any, error) + func MarshalPathAttributes(attrList []bgp.PathAttributeInterface) ([]*apb.Any, error) + func MarshalRD(rd bgp.RouteDistinguisherInterface) (*apb.Any, error) + func MarshalRT(rt bgp.ExtendedCommunityInterface) (*apb.Any, error) + func MarshalRTs(values []bgp.ExtendedCommunityInterface) ([]*apb.Any, error) + func MarshalSRBSID(bsid *bgp.TunnelEncapSubTLVSRBSID) (*apb.Any, error) + func MarshalSRSegments(segs []bgp.TunnelEncapSubTLVInterface) ([]*apb.Any, error) + func MarshalSRv6SubSubTLVs(tlvs []bgp.PrefixSIDTLVInterface) (map[uint32]*api.SRv6TLV, error) + func MarshalSRv6SubTLVs(tlvs []bgp.PrefixSIDTLVInterface) (map[uint32]*api.SRv6TLV, error) + func MarshalSRv6TLVs(tlvs []bgp.PrefixSIDTLVInterface) ([]*apb.Any, error) + func NewAddPathCapability(a *bgp.CapAddPath) *api.AddPathCapability + func NewAggregatorAttributeFromNative(a *bgp.PathAttributeAggregator) (*api.AggregatorAttribute, error) + func NewAigpAttributeFromNative(a *bgp.PathAttributeAigp) (*api.AigpAttribute, error) + func NewAs4AggregatorAttributeFromNative(a *bgp.PathAttributeAs4Aggregator) (*api.As4AggregatorAttribute, error) + func NewAs4PathAttributeFromNative(a *bgp.PathAttributeAs4Path) (*api.As4PathAttribute, error) + func NewAsPathAttributeFromNative(a *bgp.PathAttributeAsPath) (*api.AsPathAttribute, error) + func NewAtomicAggregateAttributeFromNative(a *bgp.PathAttributeAtomicAggregate) (*api.AtomicAggregateAttribute, error) + func NewCarryingLabelInfoCapability(a *bgp.CapCarryingLabelInfo) *api.CarryingLabelInfoCapability + func NewClusterListAttributeFromNative(a *bgp.PathAttributeClusterList) (*api.ClusterListAttribute, error) + func NewCommunitiesAttributeFromNative(a *bgp.PathAttributeCommunities) (*api.CommunitiesAttribute, error) + func NewEnhancedRouteRefreshCapability(a *bgp.CapEnhancedRouteRefresh) *api.EnhancedRouteRefreshCapability + func NewEthernetSegmentIdentifierFromNative(a *bgp.EthernetSegmentIdentifier) (*api.EthernetSegmentIdentifier, error) + func NewExtendedCommunitiesAttributeFromNative(a *bgp.PathAttributeExtendedCommunities) (*api.ExtendedCommunitiesAttribute, error) + func NewExtendedNexthopCapability(a *bgp.CapExtendedNexthop) *api.ExtendedNexthopCapability + func NewFQDNCapability(a *bgp.CapFQDN) *api.FqdnCapability + func NewFourOctetASNumberCapability(a *bgp.CapFourOctetASNumber) *api.FourOctetASNCapability + func NewGracefulRestartCapability(a *bgp.CapGracefulRestart) *api.GracefulRestartCapability + func NewIP6ExtendedCommunitiesAttributeFromNative(a *bgp.PathAttributeIP6ExtendedCommunities) (*api.IP6ExtendedCommunitiesAttribute, error) + func NewLargeCommunitiesAttributeFromNative(a *bgp.PathAttributeLargeCommunities) (*api.LargeCommunitiesAttribute, error) + func NewLocalPrefAttributeFromNative(a *bgp.PathAttributeLocalPref) (*api.LocalPrefAttribute, error) + func NewLongLivedGracefulRestartCapability(a *bgp.CapLongLivedGracefulRestart) *api.LongLivedGracefulRestartCapability + func NewLsAttributeFromNative(a *bgp.PathAttributeLs) (*api.LsAttribute, error) + func NewMpReachNLRIAttributeFromNative(a *bgp.PathAttributeMpReachNLRI) (*api.MpReachNLRIAttribute, error) + func NewMpUnreachNLRIAttributeFromNative(a *bgp.PathAttributeMpUnreachNLRI) (*api.MpUnreachNLRIAttribute, error) + func NewMultiExitDiscAttributeFromNative(a *bgp.PathAttributeMultiExitDisc) (*api.MultiExitDiscAttribute, error) + func NewMultiProtocolCapability(a *bgp.CapMultiProtocol) *api.MultiProtocolCapability + func NewNextHopAttributeFromNative(a *bgp.PathAttributeNextHop) (*api.NextHopAttribute, error) + func NewOriginAttributeFromNative(a *bgp.PathAttributeOrigin) (*api.OriginAttribute, error) + func NewOriginatorIdAttributeFromNative(a *bgp.PathAttributeOriginatorId) (*api.OriginatorIdAttribute, error) + func NewPath(nlri bgp.AddrPrefixInterface, isWithdraw bool, ...) (*api.Path, error) + func NewPmsiTunnelAttributeFromNative(a *bgp.PathAttributePmsiTunnel) (*api.PmsiTunnelAttribute, error) + func NewPrefixSIDAttributeFromNative(a *bgp.PathAttributePrefixSID) (*api.PrefixSID, error) + func NewRouteRefreshCapability(a *bgp.CapRouteRefresh) *api.RouteRefreshCapability + func NewRouteRefreshCiscoCapability(a *bgp.CapRouteRefreshCisco) *api.RouteRefreshCiscoCapability + func NewTunnelEncapAttributeFromNative(a *bgp.PathAttributeTunnelEncap) (*api.TunnelEncapAttribute, error) + func NewUnknownAttributeFromNative(a *bgp.PathAttributeUnknown) (*api.UnknownAttribute, error) + func NewUnknownCapability(a *bgp.CapUnknown) *api.UnknownCapability + func ToApiFamily(afi uint16, safi uint8) *api.Family + func ToRouteFamily(f *api.Family) bgp.RouteFamily + func UnmarshalAttribute(an *apb.Any) (bgp.PathAttributeInterface, error) + func UnmarshalCapabilities(values []*apb.Any) ([]bgp.ParameterCapabilityInterface, error) + func UnmarshalFlowSpecRules(values []*apb.Any) ([]bgp.FlowSpecComponentInterface, error) + func UnmarshalNLRI(rf bgp.RouteFamily, an *apb.Any) (bgp.AddrPrefixInterface, error) + func UnmarshalNLRIs(rf bgp.RouteFamily, values []*apb.Any) ([]bgp.AddrPrefixInterface, error) + func UnmarshalPathAttributes(values []*apb.Any) ([]bgp.PathAttributeInterface, error) + func UnmarshalPrefixSID(psid *api.PrefixSID) (*bgp.PathAttributePrefixSID, error) + func UnmarshalRD(a *apb.Any) (bgp.RouteDistinguisherInterface, error) + func UnmarshalRT(a *apb.Any) (bgp.ExtendedCommunityInterface, error) + func UnmarshalRTs(values []*apb.Any) ([]bgp.ExtendedCommunityInterface, error) + func UnmarshalSRBSID(bsid *apb.Any) (bgp.TunnelEncapSubTLVInterface, error) + func UnmarshalSRSegments(s []*apb.Any) ([]bgp.TunnelEncapSubTLVInterface, error) + func UnmarshalSubSubTLVs(stlvs map[uint32]*api.SRv6TLV) (uint16, []bgp.PrefixSIDTLVInterface, error) + func UnmarshalSubTLVs(stlvs map[uint32]*api.SRv6TLV) (uint16, []bgp.PrefixSIDTLVInterface, error) + type Destination struct + Paths []*Path + func NewDestination(dst *api.Destination) *Destination + func (d *Destination) MarshalJSON() ([]byte, error) + type Path struct + Age int64 + Attrs []bgp.PathAttributeInterface + Best bool + NeighborIP net.IP + Nlri bgp.AddrPrefixInterface + SourceID net.IP + Stale bool + Withdrawal bool