The model stored in the plugin is increasing in size
Requesting a specific network element multiple times through our northbound endpoint results in increasing the size of the network elements deposited model (only within the plugin) this results in the following error: ResourceExhausted desc = gRPC: Received message larger than max (6123871 vs. 4194304)
Description
Currently if we request a network element it is fetched from the database. After that we create an object from this information internally. This process also unmarshals the configuration data (model) of the network element within the plugin. Through this process some entries in the underlying model data is duplicated and therefore the size of the model data increases.
Expected Behavior
The size of the configuration data should not increase when requesting a network element through the northbound endpoint.
Actual Behavior
Size increases and the network element cant be requested anymore.
Possible Fix
Steps to Reproduce
- Start the controller and register a network element
- Request the device multiple times e.g., through the REST API
Context
Your Environment
- Version used:
- Environment name and version (e.g. go v1.16.3 on FreeBSD 13.0-current):
- Server type and version:
- Operating System and version: