How veesix-networks/osvbng works
osvbng is a virtual broadband network gateway. Its principal workflow is subscriber access over IPoE/DHCP, PPPoE, or L2TP, with session provisioning, routing, and services such as QoS and CGNAT; operators configure and inspect it through the CLI/API. The graph reflects README capabilities and the sampled daemon, API, routing, HA, and VRF code. Many runtime internals are unsampled, so their detailed call paths are omitted.
Main entry points: main.go Gateway Daemon · handlers.go Northbound API · context.go Address Allocator · manager.go High Availability
Components 21
Gateway Runtime
- Subscriber Access
internal/ipoe/session.go - PPPoE Sessions
internal/pppoe/session.go - L2TP Sessions
internal/l2tp/session.go - Gateway Daemon
cmd/osvbngd/main.go - Component Orchestrator
pkg/component/orchestrator.go - Dataplane
internal/dataplane/component.go
Network Services
- Routing Services
internal/routing/component.go - VRF Manager
pkg/vrfmgr/manager.go - EVPN Manager
pkg/evpnmgr/manager.go - VPP Southbound
pkg/southbound/vpp/routing.go - CGNAT
internal/cgnat/component.go - L2 Wholesale Gateway
internal/l2gw/component.go - Hierarchical QoS
pkg/handlers/show/qos
Management Plane
- osvbngcli
cmd/osvbngcli/main.go - Northbound API
plugins/northbound/api/handlers.go - Configuration Management
pkg/configmgr/conf.go - Operational Show
pkg/handlers/show/handler.go
State and HA
- High Availability
pkg/ha/manager.go - Address Allocator
pkg/allocator/context.go - DHCP Relay
pkg/dhcp/relay/client.go
Other components
- Operator
Connections 15
- Gateway Daemon → Component Orchestrator: starts components
cmd/osvbngd/main.go - Gateway Daemon → Subscriber Access: registers runtime
- Gateway Daemon → PPPoE Sessions: registers runtime
- Gateway Daemon → Routing Services: registers runtime
- Operator → osvbngcli: runs commands
- osvbngcli → Northbound API: sends requests
- Northbound API → Operational Show: executes show
plugins/northbound/api/handlers.go - Northbound API → Configuration Management: reads configuration
plugins/northbound/api/handlers.go - Operational Show → Routing Services: queries routes
- High Availability → Dataplane: sets SRG state
pkg/ha/manager.go - High Availability → Address Allocator: sets direction
pkg/ha/manager.go - VRF Manager → VPP Southbound: creates IP tables
pkg/vrfmgr/manager.go - Subscriber Access → Address Allocator: allocates addresses
- PPPoE Sessions → Address Allocator: allocates addresses
- Gateway Daemon → L2TP Sessions: configures sessions
cmd/osvbngd/main.go