Documentation ¶
Index ¶
- func NewGetPeerHandler(c *agent.Controller) restapi.GetBgpPeersHandler
- func NewGetRoutePoliciesHandler(c *agent.Controller) restapi.GetBgpRoutePoliciesHandler
- func NewGetRoutesHandler(c *agent.Controller) restapi.GetBgpRoutesHandler
- func ToAPIFamily(f *types.Family) (*models.BgpFamily, error)
- func ToAPIPath(p *types.Path) (*models.BgpPath, error)
- func ToAPIPaths(ps []*types.Path) ([]*models.BgpPath, error)
- func ToAPIRoute(r *types.Route, routerASN int64, neighbor string) (*models.BgpRoute, error)
- func ToAPIRoutePolicies(policies []*types.RoutePolicy, routerASN int64) []*models.BgpRoutePolicy
- func ToAPIRoutePolicy(policy *types.RoutePolicy, routerASN int64) *models.BgpRoutePolicy
- func ToAPIRoutePolicyStatement(s *types.RoutePolicyStatement) *models.BgpRoutePolicyStatement
- func ToAPIRoutePolicyStatements(statements []*types.RoutePolicyStatement) []*models.BgpRoutePolicyStatement
- func ToAPIRoutes(rs []*types.Route, routerASN int64, neighbor string) ([]*models.BgpRoute, error)
- func ToAgentFamily(m *models.BgpFamily) (*types.Family, error)
- func ToAgentGetRoutesRequest(params restapi.GetBgpRoutesParams) (*types.GetRoutesRequest, error)
- func ToAgentMatchPrefixes(prefixes []*models.BgpRoutePolicyPrefixMatch) ([]*types.RoutePolicyPrefixMatch, error)
- func ToAgentPath(m *models.BgpPath) (*types.Path, error)
- func ToAgentPaths(ms []*models.BgpPath) ([]*types.Path, error)
- func ToAgentRoute(m *models.BgpRoute) (*types.Route, error)
- func ToAgentRoutePolicies(policies []*models.BgpRoutePolicy) ([]*types.RoutePolicy, error)
- func ToAgentRoutePolicy(policy *models.BgpRoutePolicy) (*types.RoutePolicy, error)
- func ToAgentRoutePolicyAction(a string) types.RoutePolicyAction
- func ToAgentRoutePolicyStatement(s *models.BgpRoutePolicyStatement) (*types.RoutePolicyStatement, error)
- func ToAgentRoutePolicyStatements(statements []*models.BgpRoutePolicyStatement) ([]*types.RoutePolicyStatement, error)
- func ToAgentRoutePolicyType(t string) types.RoutePolicyType
- func ToAgentRoutes(ms []*models.BgpRoute) ([]*types.Route, error)
- func ToApiMatchPrefixes(prefixes []*types.RoutePolicyPrefixMatch) []*models.BgpRoutePolicyPrefixMatch
- func ToApiRoutePolicyAction(a types.RoutePolicyAction) string
- func ToApiRoutePolicyType(t types.RoutePolicyType) string
- type BGPHandlerInParams
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 ToAPIRoute ¶
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 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 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 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
}
Click to show internal directories.
Click to hide internal directories.