Discover Packages
github.com/lxlee1102/vpp-agent
examples
grpc_vpp
remote_client
command
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Jul 20, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
GRPC remote client example
The example uses vpp-agent as a GRPC server. The configuration uses GRPC service to call remote
procedure in the agent to create desired configuration. The example shows how to create data change
and resync request.
How to run example:
Run vpp-agent with GRPC server enabled - start it with the grpc configuration file with endpoint
defined.
vpp-agent --grpc-config=/opt/vpp-agent/dev/grpc.conf
Run GRPC client (example):
go run main.go
Two 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
The example creates resync request with configuration which is then updated with data change request.
Expand ▾
Collapse ▴
Documentation
¶
Example remote_client demonstrates remote VPP config management
via clientv1 using GPRC transport.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.