-
- Downloads
Resolve "The model stored in the plugin is increasing in size"
This commit makes sure that the stored model data is only unmarshalled if the plugin is newly created. Otherwise we assume that the plugin represents the intended state (this is only temporary and will be changed in the future). Requesting configuration data directly from the device will now only pass that information through. Only changes triggered through the controller itself will be persisted. Additionally the handling of a subscribe response has been changed so the data is not unmarshalled into the plugins model data.
parent
cc479fd6
Branches
Tags
Pipeline #152194 failed
Stage: build
Stage: test
Stage: analyze
Stage: integration-test
Stage: deploy
Showing
- controller/interfaces/plugin/plugin.go 3 additions, 5 deletionscontroller/interfaces/plugin/plugin.go
- controller/northbound/server/networkElement.go 16 additions, 8 deletionscontroller/northbound/server/networkElement.go
- controller/nucleus/networkElementService.go 21 additions, 15 deletionscontroller/nucleus/networkElementService.go
- controller/nucleus/networkElementService_test.go 1 addition, 0 deletionscontroller/nucleus/networkElementService_test.go
- controller/nucleus/networkElementWatcher.go 0 additions, 5 deletionscontroller/nucleus/networkElementWatcher.go
- controller/nucleus/plugin.go 25 additions, 7 deletionscontroller/nucleus/plugin.go
- controller/plugin/shared/client.go 35 additions, 0 deletionscontroller/plugin/shared/client.go
- controller/plugin/shared/interface.go 9 additions, 1 deletioncontroller/plugin/shared/interface.go
- controller/plugin/shared/server.go 27 additions, 0 deletionscontroller/plugin/shared/server.go
- docker-compose.yml 3 additions, 1 deletiondocker-compose.yml
- plugins/examples/arista/cmd/main.go 2 additions, 0 deletionsplugins/examples/arista/cmd/main.go
- plugins/examples/openconfig/cmd/main.go 2 additions, 0 deletionsplugins/examples/openconfig/cmd/main.go
- plugins/sdk/deviceModel.go 5 additions, 0 deletionsplugins/sdk/deviceModel.go
- scripts/simple-dev-setup.sh 1 addition, 1 deletionscripts/simple-dev-setup.sh
Loading
Please register or sign in to comment