MCPcopy Index your code
hub / github.com/coreswitch/zebra

github.com/coreswitch/zebra @v1.8.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.8.1 ↗ · + Follow
1,325 symbols 3,015 edges 101 files 42 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

zebra

zebra is an open source implementation as a successor of GNU Zebra and Quagga project. zebra is implemented in Go programming language to fit in container or virtual machine environment.

Getting started

zebra uses openconfigd as configuration manager. Please install openconfigd before installing zebra.

Install

Please build ribd as a first zebra module.

$ go get github.com/coreswitch/zebra/rib/ribd

Then execute ribd under root privilege.

$ sudo ${GOPATH}/bin/ribd

Using zebra

Extension points exported contracts — how you extend this code

EvpnRouteTypeInterface (Interface)
(no doc) [49 implementers]
bgp/evpn.go
BgpBody (Interface)
(no doc) [29 implementers]
bgp/message.go
Body (Interface)
(no doc) [9 implementers]
rib/zapi.go
AsSegmentInterface (Interface)
(no doc) [2 implementers]
policy/aspath.go
RouteMapMatch (Interface)
(no doc) [2 implementers]
policy/rmap.go
AsSegmentInterface (Interface)
(no doc) [2 implementers]
bgp/aspath.go
TlvInterface (Interface)
(no doc) [2 implementers]
bgp/sr.go
Watcher (Interface)
(no doc) [2 implementers]
rib/watcher.go

Core symbols most depended-on inside this repo

Error
called by 59
bgp/message.go
NewBgpError
called by 56
bgp/message.go
String
called by 50
bgp/aspath.go
NewPrefixListEntry
called by 39
policy/prefix_list.go
Match
called by 34
policy/rmap.go
Info
called by 29
bgp/attr.go
EntryAdd
called by 23
policy/prefix_list.go
VrfLookupByIndex
called by 22
rib/vrf.go

Shape

Method 717
Function 365
Struct 176
TypeAlias 37
Interface 24
FuncType 5
Class 1

Languages

Go100%
C1%

Modules by API surface

proto/zebra.pb.go171 symbols
rib/zapi.go76 symbols
bgp/message.go76 symbols
rib/server.go54 symbols
rib/netlink.go54 symbols
rib/rib.go51 symbols
bgp/attr.go49 symbols
policy/aspath.go44 symbols
bgp/fsm.go36 symbols
rib/interface.go35 symbols
bgp/aspath.go34 symbols
bgp/server.go30 symbols

For agents

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

⬇ download graph artifact