Add API sample tests to FixedIPs extension

Partially implements blueprint nova-api-samples
Bug 1091739

Change-Id: Ie10fd85199ec10de29e99338c748f34cc04aeeb6
This commit is contained in:
ivan-zhu
2012-12-29 16:34:27 +08:00
parent 078af24f86
commit e1abfa390d
4 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
{
"reserve": "None"
}

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<reserve>None</reserve>

View File

@@ -0,0 +1,8 @@
{
"fixed_ip": {
"address": "192.168.1.1",
"cidr": "192.168.1.0/24",
"host": "host",
"hostname": "openstack"
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<fixed_ip>
<cidr>192.168.1.0/24</cidr>
<hostname>openstack</hostname>
<host>host</host>
<address>192.168.1.1</address>
</fixed_ip>