MCPcopy
hub / github.com/osrg/gobgp

github.com/osrg/gobgp @v4.7.0 sqlite

repository ↗ · DeepWiki ↗ · release v4.7.0 ↗
10,341 symbols 32,264 edges 198 files 1,156 documented · 11%
README

GoBGP: BGP implementation in Go

Go Report Card Tests Go Reference Releases LICENSE

GoBGP is an open source Border Gateway Protocol (BGP) implementation designed from scratch for modern environment and implemented in a modern programming language, the Go Programming Language.


Install

Try a binary release.

Documentation

Using GoBGP

Externals

Community, discussion and support

We have the Slack for questions, discussion, suggestions, etc.

You have code or documentation for GoBGP? Awesome! Send a pull request. No CLA, board members, governance, or other mess. See CONTRIBUTING.md for info on code contributing.

Licensing

GoBGP is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Extension points exported contracts — how you extend this code

PrefixSIDTLVInterface (Interface)
PrefixSIDTLVInterface defines standard set of methods to handle Prefix SID attribute's TLVs [22 implementers]
pkg/packet/bgp/prefix_sid.go
Condition (Interface)
(no doc) [15 implementers]
internal/pkg/table/policy.go
Body (Interface)
Body is an interface for zebra messages.
pkg/zebra/zapi.go
FSMTimingHook (Interface)
(no doc) [2 implementers]
pkg/server/server.go
FSMTimingsCollector (Interface)
(no doc)
pkg/metrics/metrics.go
OptionParameterInterface (Interface)
(no doc) [237 implementers]
pkg/packet/bgp/bgp.go
Action (Interface)
(no doc) [9 implementers]
internal/pkg/table/policy.go
ServerOption (FuncType)
(no doc)
pkg/server/server.go

Core symbols most depended-on inside this repo

Equal
called by 1132
pkg/config/oc/bgp_configs.go
String
called by 1004
pkg/packet/bgp/bgp.go
Equal
called by 921
internal/pkg/table/roa.go
local
called by 634
test/lib/base.py
NewIPAddrPrefix
called by 348
pkg/packet/bgp/bgp.go
Error
called by 312
pkg/packet/bgp/bgp.go
DecodeFromBytes
called by 273
pkg/packet/bgp/bgp.go
Serialize
called by 262
pkg/packet/bgp/bgp.go

Shape

Method 6,784
Function 2,037
Struct 1,153
TypeAlias 166
Class 142
Interface 53
FuncType 4
Route 2

Languages

Go88%
Python12%

Modules by API surface

api/gobgp.pb.go1,946 symbols
pkg/packet/bgp/bgp.go1,398 symbols
api/attribute.pb.go897 symbols
api/nlri.pb.go469 symbols
internal/pkg/table/policy.go400 symbols
pkg/config/oc/bgp_configs.go376 symbols
api/extcom.pb.go294 symbols
api/gobgp_grpc.pb.go286 symbols
test/scenario_test/route_server_policy_test.py242 symbols
test/scenario_test/route_server_policy_grpc_test.py240 symbols
api/capability.pb.go192 symbols
pkg/server/server.go176 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

github.com/BurntSushi/tomlv1.5.0 · 1×
github.com/beorn7/perksv1.0.1 · 1×
github.com/cespare/xxhash/v2v2.3.0 · 1×
github.com/coreos/go-systemd/v22v22.5.0 · 1×
github.com/davecgh/go-spewv1.1.1 · 1×
github.com/dgryski/go-farmv0.0.0-2024092418002 · 1×
github.com/eapache/channelsv1.1.0 · 1×
github.com/eapache/queuev1.1.0 · 1×
github.com/fsnotify/fsnotifyv1.9.0 · 1×
github.com/gaissmai/bartv0.26.1 · 1×
github.com/getsentry/sentry-gov0.34.1 · 1×
github.com/go-test/deepv1.1.1 · 1×

For agents

$ claude mcp add gobgp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact