Add a VppStatsRoutine() alongside main
This commit is contained in:
5
main.go
5
main.go
@ -10,6 +10,8 @@ import (
|
||||
"github.com/posteo/go-agentx"
|
||||
"github.com/posteo/go-agentx/pdu"
|
||||
"github.com/posteo/go-agentx/value"
|
||||
|
||||
"govpp-snmp-example/vppstats"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -89,6 +91,9 @@ func main() {
|
||||
log.Fatalf("Failed to register: %v", err)
|
||||
}
|
||||
|
||||
// Start VPP stats routine
|
||||
vppstats.StartStatsRoutine()
|
||||
|
||||
for {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
|
Reference in New Issue
Block a user