Revision 8c911970 snf-cyclades-app/synnefo/logic/management/commands/pool-list.py
b/snf-cyclades-app/synnefo/logic/management/commands/pool-list.py | ||
---|---|---|
31 | 31 |
# interpreted as representing official policies, either expressed |
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 |
from django.core.management.base import BaseCommand
|
|
34 |
from snf_django.management.commands import SynnefoCommand
|
|
35 | 35 |
from optparse import make_option |
36 | 36 |
from synnefo.management.common import pool_table_from_type |
37 | 37 |
|
38 | 38 |
POOL_CHOICES = ['bridge', 'mac-prefix'] |
39 | 39 |
|
40 | 40 |
|
41 |
class Command(BaseCommand):
|
|
41 |
class Command(SynnefoCommand):
|
|
42 | 42 |
help = "List available pools" |
43 | 43 |
output_transaction = True |
44 |
option_list = BaseCommand.option_list + (
|
|
44 |
option_list = SynnefoCommand.option_list + (
|
|
45 | 45 |
make_option('--type', dest='type', |
46 | 46 |
choices=POOL_CHOICES, |
47 | 47 |
help="Type of pool" |
Also available in: Unified diff