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

Improve Networking-related Options #44

Open
aznashwan opened this issue Jul 19, 2019 · 1 comment
Open

Improve Networking-related Options #44

aznashwan opened this issue Jul 19, 2019 · 1 comment

Comments

@aznashwan
Copy link
Member

aznashwan commented Jul 19, 2019

Allow users to more granularly select networking-related options for Migrated/Replicated by adding a new networking_options parameter to the Migrations/Replicas APIs.

The options in the payload should include (but is not limited to) the following example:

{
  "networking_options": {
    "instance_name_or_id": {
      // applied to all NICs by default
      "dhcp_configuration": "enum(USE_DHCP | USE_STATIC_IPS | IGNORE)",  
      "nic_options": [{
        "id": "<ID of NIC, can optionally be its MAC>",
        "mapped_network": "<identifier of mapped network>",
        "dhcp_configuration": "enum(USE_DHCP | USE_STATIC_IPS | IGNORE)",
        // NOTE: some platforms allow for assigning an IP from the platform-level
        //  to the VM. For those which don't, using dhcp_configuration=USE_DHCP
        // with 'new_ip_address' will not be allowed.
        "new_ip_address": "<optional new IP address to set the NIC>",
        "new_mac_address": "<optional_new_MAC_address>",
        "associate_public_ip": true,
        // NOTE: only required if 'associate_public_ip'=True
        "public_network_identifier": "<ID of public network to associate PIP from"
      },
      {
        "id": ...
      }]
    }
  }
}

These will be passed directly to both the OSMorphing tools during the set_net_config() call, as well as the providers themselves.

@aznashwan
Copy link
Member Author

Partially addressed by #50, new options still need adding though,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant