edgehog-device-manager / edgehog-device-runtime

Edgehog Device Runtime is a portable middleware written in Rust, that enables remote device management on Linux-based systems.
Apache License 2.0
12 stars 10 forks source link

[Docker] Create network request #279

Open joshuachp opened 1 year ago

joshuachp commented 1 year ago

Create the structure to receive the CreateNetowrkRequest and publish the AvailableNetworks property.

Interfaces

### Create Network request ```json { "interface_name": "io.edgehog.devicemanager.apps.CreateNetworkRequest", "version_major": 0, "version_minor": 1, "type": "datastream", "ownership": "server", "aggregation": "object", "mappings": [ { "endpoint": "/network/id", "type": "string" }, { "endpoint": "/network/driver", "type": "string" }, { "endpoint": "/network/checkDuplicate", "type": "boolean" }, { "endpoint": "/network/internal", "type": "boolean" }, { "endpoint": "/network/enableIpv6", "type": "boolean" } ] } ``` ### Available Networks ```json { "interface_name": "io.edgehog.devicemanager.apps.AvailableNetworks", "version_major": 0, "version_minor": 1, "type": "properties", "ownership": "device", "mappings": [ { "endpoint": "/%{network_id}/id", "type": "string" }, { "endpoint": "/%{network_id}/driver", "type": "string" }, { "endpoint": "/%{network_id}/checkDuplicate", "type": "boolean" }, { "endpoint": "/%{network_id}/internal", "type": "boolean" }, { "endpoint": "/%{network_id}/enableIpv6", "type": "boolean" } ] } ```

joshuachp commented 10 months ago

I added the id to the available network to save the volume id returned upon creation