Revision a4658bbe snf-cyclades-app/synnefo/management/common.py
b/snf-cyclades-app/synnefo/management/common.py | ||
---|---|---|
52 | 52 |
return vm.operstate |
53 | 53 |
|
54 | 54 |
|
55 |
def validate_network_info(options): |
|
56 |
subnet = options['subnet'] |
|
57 |
gateway = options['gateway'] |
|
58 |
subnet6 = options['subnet6'] |
|
59 |
gateway6 = options['gateway6'] |
|
60 |
|
|
61 |
try: |
|
62 |
util.validate_network_params(subnet, gateway) |
|
63 |
except (faults.BadRequest, faults.OverLimit) as e: |
|
64 |
raise CommandError(e) |
|
65 |
|
|
66 |
return subnet, gateway, subnet6, gateway6 |
|
67 |
|
|
68 |
|
|
69 | 55 |
def get_backend(backend_id): |
70 | 56 |
try: |
71 | 57 |
backend_id = int(backend_id) |
Also available in: Unified diff