Revision 9621c777 snf-cyclades-app/synnefo/api/management/commands/network-modify.py
b/snf-cyclades-app/synnefo/api/management/commands/network-modify.py | ||
---|---|---|
38 | 38 |
from synnefo.db.models import Network, pooled_rapi_client |
39 | 39 |
from synnefo.management.common import validate_network_info, get_network |
40 | 40 |
|
41 |
HELP_MSG = \ |
|
42 |
"""Modify a network. |
|
41 |
HELP_MSG = """Modify a network. |
|
43 | 42 |
|
44 | 43 |
This management command will only modify the state of the network in Cyclades |
45 | 44 |
DB. The state of the network in the Ganeti backends will remain unchanged. You |
... | ... | |
57 | 56 |
output_transaction = True |
58 | 57 |
|
59 | 58 |
option_list = BaseCommand.option_list + ( |
60 |
make_option('--name', |
|
59 |
make_option( |
|
60 |
'--name', |
|
61 | 61 |
dest='name', |
62 | 62 |
metavar='NAME', |
63 | 63 |
help="Set network's name"), |
64 |
make_option('--userid', |
|
64 |
make_option( |
|
65 |
'--userid', |
|
65 | 66 |
dest='userid', |
66 | 67 |
help="Set the userid of the network owner"), |
67 |
make_option('--subnet', |
|
68 |
make_option( |
|
69 |
'--subnet', |
|
68 | 70 |
dest='subnet', |
69 | 71 |
help="Set network's subnet"), |
70 |
make_option('--gateway', |
|
72 |
make_option( |
|
73 |
'--gateway', |
|
71 | 74 |
dest='gateway', |
72 | 75 |
help="Set network's gateway"), |
73 |
make_option('--subnet6', |
|
76 |
make_option( |
|
77 |
'--subnet6', |
|
74 | 78 |
dest='subnet6', |
75 | 79 |
help="Set network's IPv6 subnet"), |
76 |
make_option('--gateway6', |
|
80 |
make_option( |
|
81 |
'--gateway6', |
|
77 | 82 |
dest='gateway6', |
78 | 83 |
help="Set network's IPv6 gateway"), |
79 |
make_option('--dhcp', |
|
84 |
make_option( |
|
85 |
'--dhcp', |
|
80 | 86 |
dest='dhcp', |
81 | 87 |
help="Set if network will use nfdhcp"), |
82 |
make_option('--state', |
|
88 |
make_option( |
|
89 |
'--state', |
|
83 | 90 |
dest='state', |
84 | 91 |
metavar='STATE', |
85 | 92 |
help="Set network's state"), |
86 |
make_option('--link', |
|
93 |
make_option( |
|
94 |
'--link', |
|
87 | 95 |
dest='link', |
88 | 96 |
help="Set the connectivity link"), |
89 |
make_option('--mac-prefix', |
|
97 |
make_option( |
|
98 |
'--mac-prefix', |
|
90 | 99 |
dest="mac_prefix", |
91 | 100 |
help="Set the MAC prefix"), |
92 |
make_option('--add-reserved-ips', |
|
101 |
make_option( |
|
102 |
'--add-reserved-ips', |
|
93 | 103 |
dest="add_reserved_ips", |
94 | 104 |
help="Comma seperated list of IPs to externally reserve."), |
95 |
make_option('--remove-reserved-ips', |
|
105 |
make_option( |
|
106 |
'--remove-reserved-ips', |
|
96 | 107 |
dest="remove_reserved_ips", |
97 | 108 |
help="Comma seperated list of IPs to externally release."), |
98 | 109 |
|
Also available in: Unified diff