Discover Packages
github.imxd.top/ligato/vpp-agent
examples
grpc_vpp
notifications
command
Version:
v2.0.0-alpha+incompatible
Opens a new window with list of versions in this module.
Published: Oct 15, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
GRPC notification server example
The example shows how to use vpp-agent to receive VPP notifications from the vpp-agent.
Vpp-agent streams VPP notifications to all servers provided via grpc.conf file.
How to run example:
Run vpp-agent with GRPC endpoint set.
vpp-agent --grpc-config=/opt/vpp-agent/dev/grpc.conf
Run GRPC server (example):
go run main.go
Several flags can be set:
-address=<address>
- for grpc server address/socket-file (otherwise localhost will be used)
-socket-type=<type>
- options are tcp, tcp4, tcp6, unix or unixpacket. Defaults to tcp if not set
request-period=<time_in_sec>
- time between grpc requests
The example prints all received VPP notifications.
Expand ▾
Collapse ▴
Documentation
¶
Example statistics app demonstrates usage of grpc to stream vpp statistics.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.