Revision 8c911970 snf-cyclades-app/synnefo/logic/management/commands/pool-create.py

b/snf-cyclades-app/synnefo/logic/management/commands/pool-create.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, CommandError
34
from django.core.management.base import CommandError
35
from snf_django.management.commands import SynnefoCommand
35 36
from optparse import make_option
36 37
from synnefo.db.utils import validate_mac
37 38
from synnefo.management.common import pool_table_from_type
......
39 40
POOL_CHOICES = ['bridge', 'mac-prefix']
40 41

  
41 42

  
42
class Command(BaseCommand):
43
class Command(SynnefoCommand):
43 44
    help = "Create a new pool of resources."
44 45
    output_transaction = True
45
    option_list = BaseCommand.option_list + (
46
    option_list = SynnefoCommand.option_list + (
46 47
        make_option("--type", dest="type",
47 48
                    choices=POOL_CHOICES,
48 49
                    help="Type of pool. Choices:"

Also available in: Unified diff