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

     1  # Mock Plugins
     2  
     3  This is an interactive, hands-on demonstration of the KVScheduler framework,
     4  based on replicated `vpp/ifplugin` and `vpp/l2plugin`, where models were
     5  significantly simplified and instead of the actual VPP, a mock southbound plane
     6  was implemented, printing the triggered CRUD operations into the stdout
     7  instead of actually executing them.
     8  This allows you to run the example as a standalone process, without any
     9  prerequisites.
    10  
    11  The focus is on the KVScheduler and how it operates and interacts with the
    12  registered descriptors under various scenarios. From that point of view,
    13  the SB is irrelevant - the framework abstracts from the downstream interactions.
    14  
    15  Furthermore, by getting rid of all the VPP-specific implementation details,
    16  the plugins became minimalistic and can serve as templates for the development
    17  of new plugins for VPP, Linux or even for SB completely new to the agent.
    18  The code of replicated plugins is well-documented and should help you to
    19  understand why certain key aspects of plugins/descriptors/models are implemented
    20  the way they are.
    21  
    22  Build and run the example with:
    23  ```
    24  go build .
    25  ./mock_plugins
    26  ```
    27  You will be asked to select a scenario from a provided set to execute.