Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker] Create network request #279

Open
Tracked by #271
joshuachp opened this issue Sep 29, 2023 · 1 comment · May be fixed by #304
Open
Tracked by #271

[Docker] Create network request #279

joshuachp opened this issue Sep 29, 2023 · 1 comment · May be fixed by #304
Labels
enhancement New feature or request
Milestone

Comments

@joshuachp
Copy link
Collaborator

joshuachp commented Sep 29, 2023

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

Interfaces

Create Network request

{
  "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

{
  "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 joshuachp added this to the v0.8 milestone Sep 29, 2023
@joshuachp joshuachp added the enhancement New feature or request label Sep 29, 2023
@joshuachp
Copy link
Collaborator Author

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

@joshuachp joshuachp linked a pull request Nov 9, 2023 that will close this issue
@harlem88 harlem88 modified the milestones: v0.8, v0.9 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants