routing

package
v3.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0, Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RTPROT_GOBGP = 0x11
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	ShouldStop bool

	BGPConf   *calicov3.BGPConfigurationSpec
	BGPServer *bgpserver.BgpServer
	// contains filtered or unexported fields
}

func NewRoutingServer

func NewRoutingServer(vpp *vpplink.VppLink, bgpServer *bgpserver.BgpServer, log *logrus.Entry) *Server

func (*Server) NewBGPPolicyAndAssignment added in v3.26.0

func (w *Server) NewBGPPolicyAndAssignment(name string, rulesv4 []calicov3.BGPFilterRuleV4, rulesv6 []calicov3.BGPFilterRuleV6, neighborName string, dir bgpapi.PolicyDirection) (*watchers.BGPPrefixesPolicyAndAssignment, error)

func (*Server) NewBGPPolicyV4V6 added in v3.27.0

func (*Server) RestoreLocalAddresses

func (s *Server) RestoreLocalAddresses()

func (*Server) ServeRouting

func (s *Server) ServeRouting(t *tomb.Tomb) (err error)

func (*Server) SetBGPConf

func (s *Server) SetBGPConf(bgpConf *calicov3.BGPConfigurationSpec)

func (*Server) SetOurBGPSpec

func (s *Server) SetOurBGPSpec(nodeBGPSpec *common.LocalNodeSpec)

func (*Server) WatchBGPPath

func (w *Server) WatchBGPPath(t *tomb.Tomb) error

watchBGPPath watches BGP routes from other peers and inject them into linux kernel TODO: multipath support

Jump to

Keyboard shortcuts

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