Skip to content

Conversation

fdmsantos
Copy link
Contributor

To permit define Fixed Ip on instance creation.

$options = [
    'name'    => 'test',
    'imageId' => 'xxxxxxx',
    'flavorId' => 'xxxxxxxxxxxx',
    'blockDeviceMapping' => [[
        "bootIndex"       => 0,
        "uuid"            => 'xxxxxxxxxxxxxx',
        "sourceType"      => "image",
        "volumeSize"      => 20,
        "destinationType" => "volume",
        'deleteOnTermination' => true
    ]],
    'networks' => [
        [
            'uuid' => 'xxxxxxxxxxxxx',
            'fixedIp' => '10.0.0.254'
        ]
    ]
];

$openstack->computeV2()->createServer($options);

@coveralls
Copy link

coveralls commented Nov 16, 2018

Pull Request Test Coverage Report for Build 631

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 96.08%

Files with Coverage Reduction New Missed Lines %
src/Common/JsonSchema/JsonPatch.php 1 100.0%
Totals Coverage Status
Change from base Build 624: -0.06%
Covered Lines: 1691
Relevant Lines: 1760

💛 - Coveralls

@pioziol123
Copy link

Why did coverage fail? This change is very useful to me.

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

Successfully merging this pull request may close these issues.

3 participants