go.ligato.io/vpp-agent/v3@v3.5.0/examples/grpc_vpp/notifications/README.md (about)

     1  # GRPC notification server example
     2  
     3  The example shows how to use vpp-agent to receive VPP notifications from the vpp-agent. 
     4  Vpp-agent streams VPP notifications to all servers provided via grpc.conf file. 
     5  
     6  How to run example:
     7  1. Run vpp-agent with GRPC endpoint set.
     8  
     9  ```
    10  vpp-agent --grpc-config=/opt/vpp-agent/dev/grpc.conf
    11  ```
    12  
    13  2. Run GRPC server (example):
    14  ```
    15  go run main.go
    16  ```
    17  
    18  Several flags can be set:
    19  * `-address=<address>` - for grpc server address/socket-file (otherwise localhost will be used)
    20  * `-socket-type=<type>` - options are tcp, tcp4, tcp6, unix or unixpacket. Defaults to tcp if not set
    21  * `request-period=<time_in_sec>` - time between grpc requests
    22  
    23  The example prints all received VPP notifications.