MCPcopy
hub / github.com/fabiolb/fabio / startBGP

Method startBGP

bgp/bgp_nonwindows.go:167–176  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

165}
166
167func (bgph *BGPHandler) startBGP(ctx context.Context) error {
168 return bgph.server.StartBgp(ctx, &api.StartBgpRequest{
169 Global: &api.Global{
170 Asn: uint32(bgph.config.Asn),
171 RouterId: bgph.config.RouterID,
172 ListenPort: int32(bgph.config.ListenPort),
173 ListenAddresses: bgph.config.ListenAddresses,
174 },
175 })
176}
177
178func (bgph *BGPHandler) setPolicies() error {
179 // Create a policy that denies all routes from any neighbor.

Callers 2

StartMethod · 0.95
TestBGPHandlerFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBGPHandlerFunction · 0.76