Documentation ¶
Index ¶
- Constants
- type Server
- func (w *Server) NewBGPPolicyAndAssignment(name string, rulesv4 []calicov3.BGPFilterRuleV4, ...) (*watchers.BGPPrefixesPolicyAndAssignment, error)
- func (w *Server) NewBGPPolicyV4V6(CIDR string, matchOperator calicov3.BGPFilterMatchOperator, ...) (*bgpapi.DefinedSet, bgpapi.MatchSet_Type, bgpapi.RouteAction, string, error)
- func (s *Server) RestoreLocalAddresses()
- func (s *Server) ServeRouting(t *tomb.Tomb) (err error)
- func (s *Server) SetBGPConf(bgpConf *calicov3.BGPConfigurationSpec)
- func (s *Server) SetOurBGPSpec(nodeBGPSpec *common.LocalNodeSpec)
- func (w *Server) WatchBGPPath(t *tomb.Tomb) error
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 (*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 (w *Server) NewBGPPolicyV4V6(CIDR string, matchOperator calicov3.BGPFilterMatchOperator, action calicov3.BGPFilterAction) (*bgpapi.DefinedSet, bgpapi.MatchSet_Type, bgpapi.RouteAction, string, error)
func (*Server) RestoreLocalAddresses ¶
func (s *Server) RestoreLocalAddresses()
func (*Server) ServeRouting ¶
func (*Server) SetBGPConf ¶
func (s *Server) SetBGPConf(bgpConf *calicov3.BGPConfigurationSpec)
func (*Server) SetOurBGPSpec ¶
func (s *Server) SetOurBGPSpec(nodeBGPSpec *common.LocalNodeSpec)
func (*Server) WatchBGPPath ¶
watchBGPPath watches BGP routes from other peers and inject them into linux kernel TODO: multipath support
Click to show internal directories.
Click to hide internal directories.