Add vpn ip/port setting support for CloudPipe

This extends the cloudpipe REST API to allow the setting of the IP and port
for the VPN for each network in the project

/v2/{tenant_id/os-cloudpipe/configure-project # POST ip/port

This forms part of the work to provide APIs for functionality currently
implemented by nova-manage that needs direct db access so nova-manage
can eventually be removed

DocImpact
Implements: blueprint apis-for-nova-manage

Change-Id: I416c0bfbe1c88470638f1c2004d1dcaeb51a6c41
This commit is contained in:
Chris Yeoh 2012-11-12 13:04:38 +10:30
parent 0de9ee436e
commit 778aa2a895
5 changed files with 23 additions and 0 deletions

View File

@ -96,6 +96,14 @@
"namespace": "http://docs.openstack.org/compute/ext/cloudpipe/api/v1.1",
"updated": "2011-12-16T00:00:00+00:00"
},
{
"alias": "os-cloudpipe-update",
"description": "Adds the ability to set the vpn ip/port for cloudpipe instances.",
"links": [],
"name": "CloudpipeUpdate",
"namespace": "http://docs.openstack.org/compute/ext/cloudpipe-update/api/v2",
"updated": "2012-11-14T00:00:00+00:00"
},
{
"alias": "os-config-drive",
"description": "Config Drive Extension",

View File

@ -48,6 +48,9 @@
a SSH Bastion host is forthcoming.
</description>
</extension>
<extension alias="os-cloudpipe-update" updated="2012-11-14T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/cloudpipe-update/api/v2" name="CloudpipeUpdate">
<description>Adds the ability to set the vpn ip/port for cloudpipe instances.</description>
</extension>
<extension alias="os-config-drive" updated="2012-07-16T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/config_drive/api/v1.1" name="ConfigDrive">
<description>Config Drive Extension</description>
</extension>

View File

@ -0,0 +1,6 @@
{
"configure_project": {
"vpn_ip": "192.168.1.1",
"vpn_port": "2000"
}
}

View File

@ -0,0 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<configure_project>
<vpn_ip>192.168.1.1</vpn_ip>
<vpn_port>2000</vpn_port>
</configure_project>

View File

@ -87,6 +87,7 @@
"compute_extension:aggregates": "",
"compute_extension:certificates": "",
"compute_extension:cloudpipe": "",
"compute_extension:cloudpipe_update": "",
"compute_extension:config_drive": "",
"compute_extension:console_output": "",
"compute_extension:consoles": "",