Revision c788a761 kamaki/clients/cyclades/__init__.py
b/kamaki/clients/cyclades/__init__.py | ||
---|---|---|
342 | 342 |
|
343 | 343 |
:param delay: time interval between retries |
344 | 344 |
|
345 |
:max_wait: (int) timeout in secconds |
|
346 |
|
|
345 | 347 |
:param wait_cb: if set a progressbar is used to show progress |
346 | 348 |
|
347 | 349 |
:returns: (str) the new mode if succesfull, (bool) False if timed out |
... | ... | |
366 | 368 |
|
367 | 369 |
:param delay: time interval between retries |
368 | 370 |
|
371 |
:max_wait: (int) timeout in secconds |
|
372 |
|
|
369 | 373 |
:param wait_cb: if set a progressbar is used to show progress |
370 | 374 |
|
371 | 375 |
:returns: (str) the new mode if succesfull, (bool) False if timed out |
... | ... | |
378 | 382 |
return self._wait( |
379 | 383 |
net_id, current_status, get_status, delay, max_wait, wait_cb) |
380 | 384 |
|
385 |
def wait_firewall( |
|
386 |
self, server_id, |
|
387 |
current_status='DISABLED', delay=1, max_wait=100, wait_cb=None): |
|
388 |
"""Wait while the public network firewall status is current_status |
|
389 |
|
|
390 |
:param server_id: integer (str or int) |
|
391 |
|
|
392 |
:param current_status: (str) DISABLED | ENABLED | PROTECTED |
|
393 |
|
|
394 |
:param delay: time interval between retries |
|
395 |
|
|
396 |
:max_wait: (int) timeout in secconds |
|
397 |
|
|
398 |
:param wait_cb: if set a progressbar is used to show progress |
|
399 |
|
|
400 |
:returns: (str) the new mode if succesfull, (bool) False if timed out |
|
401 |
""" |
|
402 |
|
|
403 |
def get_status(self, server_id): |
|
404 |
return self.get_firewall_profile(server_id), None |
|
405 |
|
|
406 |
return self._wait( |
|
407 |
server_id, current_status, get_status, delay, max_wait, wait_cb) |
|
408 |
|
|
381 | 409 |
def get_floating_ip_pools(self): |
382 | 410 |
""" |
383 | 411 |
:returns: (dict) {floating_ip_pools:[{name: ...}, ...]} |
Also available in: Unified diff