Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
1772b1b2
Commit
1772b1b2
authored
Aug 28, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3963 from djoreilly/quantum-net-doc
quantum_network: fix some doc mistakes
parents
faf82bf8
993413e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
library/cloud/quantum_network
+15
-10
No files found.
library/cloud/quantum_network
View file @
1772b1b2
...
@@ -44,6 +44,11 @@ options:
...
@@ -44,6 +44,11 @@ options:
- The tenant name of the login user
- The tenant name of the login user
required: true
required: true
default: 'yes'
default: 'yes'
tenant_name:
description:
- The name of the tenant for whom the network is created
required: false
default: None
auth_url:
auth_url:
description:
description:
- The keystone url for authentication
- The keystone url for authentication
...
@@ -99,15 +104,15 @@ requirements: ["quantumclient", "keystoneclient"]
...
@@ -99,15 +104,15 @@ requirements: ["quantumclient", "keystoneclient"]
'''
'''
EXAMPLES
=
'''
EXAMPLES
=
'''
# Create
s an external,public network
# Create
a GRE backed Quantum network with tunnel id 1 for tenant1
- quantum_network:
state=present login_username=admin login_password=admin
- quantum_network:
name=t1network tenant_name=tenant1 state=present
provider_network_type=gre
login_tenant_name=admin
provider_network_type=gre
provider_segmentation_id=1
provider_segmentation_id=1 tenant_name=tenant1 name=t1network"
login_username=admin login_password=admin login_tenant_name=admin
# Create
ss a GRE nework with tunnel id of 1 for tenant 1
# Create
an external network
- quantum_network:
state=present login_username=admin login_password=admin
- quantum_network:
name=external_network state=present
provider_network_type=local
login_tenant_name=admin
provider_network_type=local
router_external=yes
provider_segmentation_id=1 router_external=yes name=external_network
login_username=admin login_password=admin login_tenant_name=admin
'''
'''
_os_keystone
=
None
_os_keystone
=
None
...
@@ -130,7 +135,7 @@ def _get_endpoint(module, ksclient):
...
@@ -130,7 +135,7 @@ def _get_endpoint(module, ksclient):
try
:
try
:
endpoint
=
ksclient
.
service_catalog
.
url_for
(
service_type
=
'network'
,
endpoint_type
=
'publicURL'
)
endpoint
=
ksclient
.
service_catalog
.
url_for
(
service_type
=
'network'
,
endpoint_type
=
'publicURL'
)
except
Exception
as
e
:
except
Exception
as
e
:
module
.
fail_json
(
msg
=
"Error getting endpoint for
glance
:
%
s "
%
e
.
message
)
module
.
fail_json
(
msg
=
"Error getting endpoint for
Quantum
:
%
s "
%
e
.
message
)
return
endpoint
return
endpoint
def
_get_quantum_client
(
module
,
kwargs
):
def
_get_quantum_client
(
module
,
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment