(ctx context.Context)
| 165 | } |
| 166 | |
| 167 | func (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 | |
| 178 | func (bgph *BGPHandler) setPolicies() error { |
| 179 | // Create a policy that denies all routes from any neighbor. |
no outgoing calls