Skip to content

Commit f136f02

Browse files
authored
Add VXLAN as isolation method for physical network (#73)
1 parent ce0ea01 commit f136f02

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

plugins/modules/cs_physical_network.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
isolation_method:
4646
description:
4747
- Isolation method for the physical network.
48-
choices: [ VLAN, GRE, L3 ]
48+
choices: [ VLAN, VXLAN, GRE, L3 ]
4949
type: str
5050
network_speed:
5151
description:
@@ -122,6 +122,15 @@
122122
- internallbvm
123123
- vpcvirtualrouter
124124
125+
- name: Ensure a network is enabled with VXLAN isolation
126+
ngine_io.cloudstack.cs_physical_network:
127+
name: net01
128+
zone: zone01
129+
isolation_method: VXLAN
130+
vlan: 42-8192
131+
broadcast_domain_range: ZONE
132+
state: enabled
133+
125134
- name: Ensure a network is disabled
126135
ngine_io.cloudstack.cs_physical_network:
127136
name: net01
@@ -164,7 +173,7 @@
164173
type: str
165174
sample: ZONE
166175
isolation_method:
167-
description: isolationmethod of the network [VLAN/GRE/L3].
176+
description: isolationmethod of the network [VLAN/VXLAN/GRE/L3].
168177
returned: success
169178
type: str
170179
sample: VLAN
@@ -427,7 +436,7 @@ def main():
427436
nsps_enabled=dict(type='list', elements='str'),
428437
network_speed=dict(choices=['1G', '10G']),
429438
broadcast_domain_range=dict(choices=['POD', 'ZONE']),
430-
isolation_method=dict(choices=['VLAN', 'GRE', 'L3']),
439+
isolation_method=dict(choices=['VLAN', 'VXLAN', 'GRE', 'L3']),
431440
state=dict(choices=['present', 'enabled', 'disabled', 'absent'], default='present'),
432441
tags=dict(aliases=['tag']),
433442
poll_async=dict(type='bool', default=True),

0 commit comments

Comments
 (0)