Revision b6426ead snf-cyclades-app/synnefo/logic/management/commands/pool-show.py
b/snf-cyclades-app/synnefo/logic/management/commands/pool-show.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 | 35 |
from optparse import make_option |
36 | 36 |
|
37 | 37 |
from synnefo.db.pools import bitarray_to_map |
38 | 38 |
from synnefo.management import pprint, common |
39 |
from snf_django.management.commands import SynnefoCommand |
|
39 | 40 |
|
40 | 41 |
POOL_CHOICES = ['bridge', 'mac-prefix'] |
41 | 42 |
|
42 | 43 |
|
43 |
class Command(BaseCommand):
|
|
44 |
class Command(SynnefoCommand):
|
|
44 | 45 |
args = "<pool ID>" |
45 | 46 |
help = "Show a pool" |
46 | 47 |
output_transaction = True |
47 |
option_list = BaseCommand.option_list + (
|
|
48 |
option_list = SynnefoCommand.option_list + (
|
|
48 | 49 |
make_option('--type', dest='type', |
49 | 50 |
choices=POOL_CHOICES, |
50 | 51 |
help="Type of pool" |
Also available in: Unified diff