Documentation ¶
Index ¶
- func GetNativeNlri(p *api.Path) (bgp.AddrPrefixInterface, error)
- func GetNativePathAttributes(p *api.Path) ([]bgp.PathAttributeInterface, error)
- func MarshalCapabilities(values []bgp.ParameterCapabilityInterface) ([]*any.Any, error)
- func MarshalCapability(value bgp.ParameterCapabilityInterface) (*any.Any, error)
- func MarshalFlowSpecRules(values []bgp.FlowSpecComponentInterface) []*any.Any
- func MarshalNLRI(value bgp.AddrPrefixInterface) *any.Any
- func MarshalNLRIs(values []bgp.AddrPrefixInterface) []*any.Any
- func MarshalPathAttributes(attrList []bgp.PathAttributeInterface) []*any.Any
- func MarshalRD(rd bgp.RouteDistinguisherInterface) *any.Any
- func MarshalRT(rt bgp.ExtendedCommunityInterface) *any.Any
- func MarshalRTs(values []bgp.ExtendedCommunityInterface) []*any.Any
- func NewAddPathCapability(a *bgp.CapAddPath) *api.AddPathCapability
- func NewAggregatorAttributeFromNative(a *bgp.PathAttributeAggregator) *api.AggregatorAttribute
- func NewAigpAttributeFromNative(a *bgp.PathAttributeAigp) *api.AigpAttribute
- func NewAs4AggregatorAttributeFromNative(a *bgp.PathAttributeAs4Aggregator) *api.As4AggregatorAttribute
- func NewAs4PathAttributeFromNative(a *bgp.PathAttributeAs4Path) *api.As4PathAttribute
- func NewAsPathAttributeFromNative(a *bgp.PathAttributeAsPath) *api.AsPathAttribute
- func NewAtomicAggregateAttributeFromNative(a *bgp.PathAttributeAtomicAggregate) *api.AtomicAggregateAttribute
- func NewCarryingLabelInfoCapability(a *bgp.CapCarryingLabelInfo) *api.CarryingLabelInfoCapability
- func NewClusterListAttributeFromNative(a *bgp.PathAttributeClusterList) *api.ClusterListAttribute
- func NewCommunitiesAttributeFromNative(a *bgp.PathAttributeCommunities) *api.CommunitiesAttribute
- func NewEnhancedRouteRefreshCapability(a *bgp.CapEnhancedRouteRefresh) *api.EnhancedRouteRefreshCapability
- func NewEthernetSegmentIdentifierFromNative(a *bgp.EthernetSegmentIdentifier) *api.EthernetSegmentIdentifier
- func NewExtendedCommunitiesAttributeFromNative(a *bgp.PathAttributeExtendedCommunities) *api.ExtendedCommunitiesAttribute
- func NewExtendedNexthopCapability(a *bgp.CapExtendedNexthop) *api.ExtendedNexthopCapability
- func NewFourOctetASNumberCapability(a *bgp.CapFourOctetASNumber) *api.FourOctetASNumberCapability
- func NewGracefulRestartCapability(a *bgp.CapGracefulRestart) *api.GracefulRestartCapability
- func NewIP6ExtendedCommunitiesAttributeFromNative(a *bgp.PathAttributeIP6ExtendedCommunities) *api.IP6ExtendedCommunitiesAttribute
- func NewLargeCommunitiesAttributeFromNative(a *bgp.PathAttributeLargeCommunities) *api.LargeCommunitiesAttribute
- func NewLocalPrefAttributeFromNative(a *bgp.PathAttributeLocalPref) *api.LocalPrefAttribute
- func NewLongLivedGracefulRestartCapability(a *bgp.CapLongLivedGracefulRestart) *api.LongLivedGracefulRestartCapability
- func NewMpReachNLRIAttributeFromNative(a *bgp.PathAttributeMpReachNLRI) *api.MpReachNLRIAttribute
- func NewMpUnreachNLRIAttributeFromNative(a *bgp.PathAttributeMpUnreachNLRI) *api.MpUnreachNLRIAttribute
- func NewMultiExitDiscAttributeFromNative(a *bgp.PathAttributeMultiExitDisc) *api.MultiExitDiscAttribute
- func NewMultiProtocolCapability(a *bgp.CapMultiProtocol) *api.MultiProtocolCapability
- func NewNextHopAttributeFromNative(a *bgp.PathAttributeNextHop) *api.NextHopAttribute
- func NewOriginAttributeFromNative(a *bgp.PathAttributeOrigin) *api.OriginAttribute
- func NewOriginatorIdAttributeFromNative(a *bgp.PathAttributeOriginatorId) *api.OriginatorIdAttribute
- func NewPath(nlri bgp.AddrPrefixInterface, isWithdraw bool, ...) *api.Path
- func NewPmsiTunnelAttributeFromNative(a *bgp.PathAttributePmsiTunnel) *api.PmsiTunnelAttribute
- func NewRouteRefreshCapability(a *bgp.CapRouteRefresh) *api.RouteRefreshCapability
- func NewRouteRefreshCiscoCapability(a *bgp.CapRouteRefreshCisco) *api.RouteRefreshCiscoCapability
- func NewTunnelEncapAttributeFromNative(a *bgp.PathAttributeTunnelEncap) *api.TunnelEncapAttribute
- func NewUnknownAttributeFromNative(a *bgp.PathAttributeUnknown) *api.UnknownAttribute
- 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 *any.Any) (bgp.PathAttributeInterface, error)
- func UnmarshalCapabilities(values []*any.Any) ([]bgp.ParameterCapabilityInterface, error)
- func UnmarshalFlowSpecRules(values []*any.Any) ([]bgp.FlowSpecComponentInterface, error)
- func UnmarshalNLRI(rf bgp.RouteFamily, an *any.Any) (bgp.AddrPrefixInterface, error)
- func UnmarshalNLRIs(rf bgp.RouteFamily, values []*any.Any) ([]bgp.AddrPrefixInterface, error)
- func UnmarshalPathAttributes(values []*any.Any) ([]bgp.PathAttributeInterface, error)
- func UnmarshalRD(a *any.Any) (bgp.RouteDistinguisherInterface, error)
- func UnmarshalRT(a *any.Any) (bgp.ExtendedCommunityInterface, error)
- func UnmarshalRTs(values []*any.Any) ([]bgp.ExtendedCommunityInterface, error)
- type Destination
- type Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNativeNlri ¶
func GetNativeNlri(p *api.Path) (bgp.AddrPrefixInterface, error)
func GetNativePathAttributes ¶
func GetNativePathAttributes(p *api.Path) ([]bgp.PathAttributeInterface, error)
func MarshalCapabilities ¶
func MarshalCapabilities(values []bgp.ParameterCapabilityInterface) ([]*any.Any, error)
func MarshalCapability ¶
func MarshalCapability(value bgp.ParameterCapabilityInterface) (*any.Any, error)
func MarshalFlowSpecRules ¶
func MarshalFlowSpecRules(values []bgp.FlowSpecComponentInterface) []*any.Any
func MarshalNLRI ¶
func MarshalNLRI(value bgp.AddrPrefixInterface) *any.Any
func MarshalNLRIs ¶
func MarshalNLRIs(values []bgp.AddrPrefixInterface) []*any.Any
func MarshalPathAttributes ¶
func MarshalPathAttributes(attrList []bgp.PathAttributeInterface) []*any.Any
func MarshalRTs ¶
func MarshalRTs(values []bgp.ExtendedCommunityInterface) []*any.Any
func NewAddPathCapability ¶
func NewAddPathCapability(a *bgp.CapAddPath) *api.AddPathCapability
func NewAggregatorAttributeFromNative ¶
func NewAggregatorAttributeFromNative(a *bgp.PathAttributeAggregator) *api.AggregatorAttribute
func NewAigpAttributeFromNative ¶
func NewAigpAttributeFromNative(a *bgp.PathAttributeAigp) *api.AigpAttribute
func NewAs4AggregatorAttributeFromNative ¶
func NewAs4AggregatorAttributeFromNative(a *bgp.PathAttributeAs4Aggregator) *api.As4AggregatorAttribute
func NewAs4PathAttributeFromNative ¶
func NewAs4PathAttributeFromNative(a *bgp.PathAttributeAs4Path) *api.As4PathAttribute
func NewAsPathAttributeFromNative ¶
func NewAsPathAttributeFromNative(a *bgp.PathAttributeAsPath) *api.AsPathAttribute
func NewAtomicAggregateAttributeFromNative ¶
func NewAtomicAggregateAttributeFromNative(a *bgp.PathAttributeAtomicAggregate) *api.AtomicAggregateAttribute
func NewCarryingLabelInfoCapability ¶
func NewCarryingLabelInfoCapability(a *bgp.CapCarryingLabelInfo) *api.CarryingLabelInfoCapability
func NewClusterListAttributeFromNative ¶
func NewClusterListAttributeFromNative(a *bgp.PathAttributeClusterList) *api.ClusterListAttribute
func NewCommunitiesAttributeFromNative ¶
func NewCommunitiesAttributeFromNative(a *bgp.PathAttributeCommunities) *api.CommunitiesAttribute
func NewEnhancedRouteRefreshCapability ¶
func NewEnhancedRouteRefreshCapability(a *bgp.CapEnhancedRouteRefresh) *api.EnhancedRouteRefreshCapability
func NewEthernetSegmentIdentifierFromNative ¶
func NewEthernetSegmentIdentifierFromNative(a *bgp.EthernetSegmentIdentifier) *api.EthernetSegmentIdentifier
func NewExtendedCommunitiesAttributeFromNative ¶
func NewExtendedCommunitiesAttributeFromNative(a *bgp.PathAttributeExtendedCommunities) *api.ExtendedCommunitiesAttribute
func NewExtendedNexthopCapability ¶
func NewExtendedNexthopCapability(a *bgp.CapExtendedNexthop) *api.ExtendedNexthopCapability
func NewFourOctetASNumberCapability ¶
func NewFourOctetASNumberCapability(a *bgp.CapFourOctetASNumber) *api.FourOctetASNumberCapability
func NewGracefulRestartCapability ¶
func NewGracefulRestartCapability(a *bgp.CapGracefulRestart) *api.GracefulRestartCapability
func NewIP6ExtendedCommunitiesAttributeFromNative ¶
func NewIP6ExtendedCommunitiesAttributeFromNative(a *bgp.PathAttributeIP6ExtendedCommunities) *api.IP6ExtendedCommunitiesAttribute
func NewLargeCommunitiesAttributeFromNative ¶
func NewLargeCommunitiesAttributeFromNative(a *bgp.PathAttributeLargeCommunities) *api.LargeCommunitiesAttribute
func NewLocalPrefAttributeFromNative ¶
func NewLocalPrefAttributeFromNative(a *bgp.PathAttributeLocalPref) *api.LocalPrefAttribute
func NewLongLivedGracefulRestartCapability ¶
func NewLongLivedGracefulRestartCapability(a *bgp.CapLongLivedGracefulRestart) *api.LongLivedGracefulRestartCapability
func NewMpReachNLRIAttributeFromNative ¶
func NewMpReachNLRIAttributeFromNative(a *bgp.PathAttributeMpReachNLRI) *api.MpReachNLRIAttribute
func NewMpUnreachNLRIAttributeFromNative ¶
func NewMpUnreachNLRIAttributeFromNative(a *bgp.PathAttributeMpUnreachNLRI) *api.MpUnreachNLRIAttribute
func NewMultiExitDiscAttributeFromNative ¶
func NewMultiExitDiscAttributeFromNative(a *bgp.PathAttributeMultiExitDisc) *api.MultiExitDiscAttribute
func NewMultiProtocolCapability ¶
func NewMultiProtocolCapability(a *bgp.CapMultiProtocol) *api.MultiProtocolCapability
func NewNextHopAttributeFromNative ¶
func NewNextHopAttributeFromNative(a *bgp.PathAttributeNextHop) *api.NextHopAttribute
func NewOriginAttributeFromNative ¶
func NewOriginAttributeFromNative(a *bgp.PathAttributeOrigin) *api.OriginAttribute
func NewOriginatorIdAttributeFromNative ¶
func NewOriginatorIdAttributeFromNative(a *bgp.PathAttributeOriginatorId) *api.OriginatorIdAttribute
func NewPath ¶
func NewPath(nlri bgp.AddrPrefixInterface, isWithdraw bool, attrs []bgp.PathAttributeInterface, age time.Time) *api.Path
func NewPmsiTunnelAttributeFromNative ¶
func NewPmsiTunnelAttributeFromNative(a *bgp.PathAttributePmsiTunnel) *api.PmsiTunnelAttribute
func NewRouteRefreshCapability ¶
func NewRouteRefreshCapability(a *bgp.CapRouteRefresh) *api.RouteRefreshCapability
func NewRouteRefreshCiscoCapability ¶
func NewRouteRefreshCiscoCapability(a *bgp.CapRouteRefreshCisco) *api.RouteRefreshCiscoCapability
func NewTunnelEncapAttributeFromNative ¶
func NewTunnelEncapAttributeFromNative(a *bgp.PathAttributeTunnelEncap) *api.TunnelEncapAttribute
func NewUnknownAttributeFromNative ¶
func NewUnknownAttributeFromNative(a *bgp.PathAttributeUnknown) *api.UnknownAttribute
func NewUnknownCapability ¶
func NewUnknownCapability(a *bgp.CapUnknown) *api.UnknownCapability
func ToRouteFamily ¶
func ToRouteFamily(f *api.Family) bgp.RouteFamily
func UnmarshalAttribute ¶
func UnmarshalAttribute(an *any.Any) (bgp.PathAttributeInterface, error)
func UnmarshalCapabilities ¶
func UnmarshalCapabilities(values []*any.Any) ([]bgp.ParameterCapabilityInterface, error)
func UnmarshalFlowSpecRules ¶
func UnmarshalFlowSpecRules(values []*any.Any) ([]bgp.FlowSpecComponentInterface, error)
func UnmarshalNLRI ¶
func UnmarshalNLRI(rf bgp.RouteFamily, an *any.Any) (bgp.AddrPrefixInterface, error)
func UnmarshalNLRIs ¶
func UnmarshalNLRIs(rf bgp.RouteFamily, values []*any.Any) ([]bgp.AddrPrefixInterface, error)
func UnmarshalPathAttributes ¶
func UnmarshalPathAttributes(values []*any.Any) ([]bgp.PathAttributeInterface, error)
func UnmarshalRD ¶
func UnmarshalRD(a *any.Any) (bgp.RouteDistinguisherInterface, error)
func UnmarshalRT ¶
func UnmarshalRT(a *any.Any) (bgp.ExtendedCommunityInterface, error)
func UnmarshalRTs ¶
func UnmarshalRTs(values []*any.Any) ([]bgp.ExtendedCommunityInterface, error)
Types ¶
type Destination ¶
type Destination struct {
Paths []*Path
}
func NewDestination ¶
func NewDestination(dst *api.Destination) *Destination
func (*Destination) MarshalJSON ¶
func (d *Destination) MarshalJSON() ([]byte, error)
type Path ¶
type Path struct { Nlri bgp.AddrPrefixInterface `json:"nlri"` Age int64 `json:"age"` Best bool `json:"best"` Attrs []bgp.PathAttributeInterface `json:"attrs"` Stale bool `json:"stale"` Withdrawal bool `json:"withdrawal,omitempty"` SourceID net.IP `json:"source-id,omitempty"` NeighborIP net.IP `json:"neighbor-ip,omitempty"` }
workaround. This for the json format compatibility. Once we update senario tests, we can remove this.
Click to show internal directories.
Click to hide internal directories.