Revision f6f81cd3 kamaki/clients/cyclades/__init__.py
b/kamaki/clients/cyclades/__init__.py | ||
---|---|---|
152 | 152 |
|
153 | 153 |
:param geteway: (str) |
154 | 154 |
|
155 |
:param type: (str) |
|
155 |
:param type: (str) if None, will use MAC_FILTERED as default |
|
156 |
Valid values: CUSTOM, IP_LESS_ROUTED, MAC_FILTERED, PHYSICAL_VLAN |
|
156 | 157 |
|
157 | 158 |
:param dhcp: (bool) |
158 | 159 |
|
... | ... | |
163 | 164 |
net['cidr'] = cidr |
164 | 165 |
if gateway: |
165 | 166 |
net['gateway'] = gateway |
166 |
if type: |
|
167 |
net['type'] = type |
|
167 |
net['type'] = type or 'MAC_FILTERED' |
|
168 | 168 |
net['dhcp'] = True if dhcp else False |
169 | 169 |
req = dict(network=net) |
170 | 170 |
r = self.networks_post(json_data=req, success=202) |
Also available in: Unified diff