api

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetPeerHandler added in v1.15.1

func NewGetPeerHandler(c *agent.Controller) restapi.GetBgpPeersHandler

func NewGetRoutePoliciesHandler added in v1.15.1

func NewGetRoutePoliciesHandler(c *agent.Controller) restapi.GetBgpRoutePoliciesHandler

func NewGetRoutesHandler added in v1.15.1

func NewGetRoutesHandler(c *agent.Controller) restapi.GetBgpRoutesHandler

func ToAPIFamily

func ToAPIFamily(f *types.Family) (*models.BgpFamily, error)

func ToAPIPath

func ToAPIPath(p *types.Path) (*models.BgpPath, error)

func ToAPIPaths

func ToAPIPaths(ps []*types.Path) ([]*models.BgpPath, error)

func ToAPIRoute

func ToAPIRoute(r *types.Route, routerASN int64, neighbor string) (*models.BgpRoute, error)

func ToAPIRoutePolicies added in v1.15.0

func ToAPIRoutePolicies(policies []*types.RoutePolicy, routerASN int64) []*models.BgpRoutePolicy

func ToAPIRoutePolicy added in v1.15.0

func ToAPIRoutePolicy(policy *types.RoutePolicy, routerASN int64) *models.BgpRoutePolicy

func ToAPIRoutePolicyStatement added in v1.15.0

func ToAPIRoutePolicyStatement(s *types.RoutePolicyStatement) *models.BgpRoutePolicyStatement

func ToAPIRoutePolicyStatements added in v1.15.0

func ToAPIRoutePolicyStatements(statements []*types.RoutePolicyStatement) []*models.BgpRoutePolicyStatement

func ToAPIRoutes

func ToAPIRoutes(rs []*types.Route, routerASN int64, neighbor string) ([]*models.BgpRoute, error)

func ToAgentFamily

func ToAgentFamily(m *models.BgpFamily) (*types.Family, error)

func ToAgentGetRoutesRequest

func ToAgentGetRoutesRequest(params restapi.GetBgpRoutesParams) (*types.GetRoutesRequest, error)

func ToAgentMatchPrefixes added in v1.15.0

func ToAgentMatchPrefixes(prefixes []*models.BgpRoutePolicyPrefixMatch) ([]*types.RoutePolicyPrefixMatch, error)

func ToAgentPath

func ToAgentPath(m *models.BgpPath) (*types.Path, error)

func ToAgentPaths

func ToAgentPaths(ms []*models.BgpPath) ([]*types.Path, error)

func ToAgentRoute

func ToAgentRoute(m *models.BgpRoute) (*types.Route, error)

func ToAgentRoutePolicies added in v1.15.0

func ToAgentRoutePolicies(policies []*models.BgpRoutePolicy) ([]*types.RoutePolicy, error)

func ToAgentRoutePolicy added in v1.15.0

func ToAgentRoutePolicy(policy *models.BgpRoutePolicy) (*types.RoutePolicy, error)

func ToAgentRoutePolicyAction added in v1.15.0

func ToAgentRoutePolicyAction(a string) types.RoutePolicyAction

func ToAgentRoutePolicyStatement added in v1.15.0

func ToAgentRoutePolicyStatement(s *models.BgpRoutePolicyStatement) (*types.RoutePolicyStatement, error)

func ToAgentRoutePolicyStatements added in v1.15.0

func ToAgentRoutePolicyStatements(statements []*models.BgpRoutePolicyStatement) ([]*types.RoutePolicyStatement, error)

func ToAgentRoutePolicyType added in v1.15.0

func ToAgentRoutePolicyType(t string) types.RoutePolicyType

func ToAgentRoutes

func ToAgentRoutes(ms []*models.BgpRoute) ([]*types.Route, error)

func ToApiMatchPrefixes added in v1.15.0

func ToApiMatchPrefixes(prefixes []*types.RoutePolicyPrefixMatch) []*models.BgpRoutePolicyPrefixMatch

func ToApiRoutePolicyAction added in v1.15.0

func ToApiRoutePolicyAction(a types.RoutePolicyAction) string

func ToApiRoutePolicyType added in v1.15.0

func ToApiRoutePolicyType(t types.RoutePolicyType) string

Types

type BGPHandlerInParams added in v1.15.1

type BGPHandlerInParams struct {
	Controller *agent.Controller
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL