api

package
v1.14.12 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAPIAfi

func ToAPIAfi(afi types.Afi) string

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 ToAPIRoutes

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

func ToAPISafi

func ToAPISafi(safi types.Safi) string

func ToAgentAfi

func ToAgentAfi(s string) types.Afi

func ToAgentFamily

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

func ToAgentGetRoutesRequest

func ToAgentGetRoutesRequest(params restapi.GetBgpRoutesParams) (*types.GetRoutesRequest, 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 ToAgentRoutes

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

func ToAgentSafi

func ToAgentSafi(s string) types.Safi

func ToAgentTableType

func ToAgentTableType(s string) types.TableType

Types

This section is empty.

Jump to

Keyboard shortcuts

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