Revision b6426ead snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py
b/snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py | ||
---|---|---|
36 | 36 |
""" |
37 | 37 |
import logging |
38 | 38 |
from optparse import make_option |
39 |
from django.core.management.base import BaseCommand |
|
39 |
|
|
40 | 40 |
from synnefo.logic import reconciliation |
41 |
from snf_django.management.commands import SynnefoCommand |
|
41 | 42 |
|
42 | 43 |
|
43 |
class Command(BaseCommand):
|
|
44 |
class Command(SynnefoCommand):
|
|
44 | 45 |
help = """Reconcile contents of Synnefo DB with state of Ganeti backend |
45 | 46 |
|
46 | 47 |
Network reconciliation can detect and fix the following cases: |
... | ... | |
53 | 54 |
""" |
54 | 55 |
|
55 | 56 |
can_import_settings = True |
56 |
option_list = BaseCommand.option_list + (
|
|
57 |
option_list = SynnefoCommand.option_list + (
|
|
57 | 58 |
make_option('--fix-all', action='store_true', |
58 | 59 |
dest='fix', default=False, |
59 | 60 |
help='Fix all issues.'), |
Also available in: Unified diff