ngine_io.cloudstack.cs_traffic_type module – Manages traffic types on CloudStack Physical Networks
Note
This module is part of the ngine_io.cloudstack collection (version 2.2.4).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ngine_io.cloudstack
.
To use it in a playbook, specify: ngine_io.cloudstack.cs_traffic_type
.
New in version 0.1.0: of ngine_io.cloudstack
Requirements
The below requirements are needed on the host that executes this module.
python >= 2.6
cs >= 0.9.0
Parameters
Parameter |
Comments |
---|---|
HTTP method used to query the API endpoint. If not given, the Choices:
|
|
API key of the CloudStack API. If not given, the |
|
Secret key of the CloudStack API. If not set, the |
|
HTTP timeout in seconds. If not given, the Default: 10 |
|
URL of the CloudStack API e.g. https://cloud.example.com/client/api. If not given, the |
|
Verify CA authority cert file. If not given, the |
|
The network name label of the physical device dedicated to this traffic on a HyperV host. |
|
Use if the physical network has multiple isolation types and traffic type is public. Choices:
|
|
The network name label of the physical device dedicated to this traffic on a KVM host. |
|
The network name of the physical device dedicated to this traffic on an OVM3 host. |
|
the name of the Physical Network |
|
Poll async jobs until job has finished. Choices:
|
|
State of the traffic type Choices:
|
|
the trafficType to be added to the physical network. Choices:
|
|
The VLAN id to be used for Management traffic by VMware host. |
|
The network name label of the physical device dedicated to this traffic on a VMware host. |
|
The network name label of the physical device dedicated to this traffic on a XenServer host. |
|
Name of the zone with the physical network. |
Notes
Note
A detailed guide about cloudstack modules can be found in the CloudStack Cloud Guide.
This module supports check mode.
Examples
- name: add a traffic type
ngine_io.cloudstack.cs_traffic_type:
physical_network: public-network
traffic_type: Guest
zone: test-zone
- name: update traffic type
ngine_io.cloudstack.cs_traffic_type:
physical_network: public-network
traffic_type: Guest
kvm_networklabel: cloudbr0
zone: test-zone
- name: remove traffic type
ngine_io.cloudstack.cs_traffic_type:
physical_network: public-network
traffic_type: Public
state: absent
zone: test-zone
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The network name label of the physical device dedicated to this traffic on a HyperV host Returned: success Sample: “HyperV Internal Switch” |
|
ID of the network provider Returned: success Sample: “659c1840-9374-440d-a412-55ca360c9d3c” |
|
The network name label of the physical device dedicated to this traffic on a KVM host Returned: success Sample: “cloudbr0” |
|
The network name of the physical device dedicated to this traffic on an OVM3 host Returned: success Sample: “cloudbr0” |
|
the physical network this belongs to Returned: success Sample: “28ed70b7-9a1f-41bf-94c3-53a9f22da8b6” |
|
the trafficType that was added to the physical network Returned: success Sample: “Public” |
|
The network name label of the physical device dedicated to this traffic on a VMware host Returned: success Sample: “Management Network” |
|
The network name label of the physical device dedicated to this traffic on a XenServer host Returned: success Sample: “xenbr0” |
|
Name of zone the physical network is in. Returned: success Sample: “ch-gva-2” |
Authors
Patryk Cichy (@PatTheSilent)