Revision cc3f266e snf-cyclades-app/synnefo/api/management/commands/modifynetwork.py
b/snf-cyclades-app/synnefo/api/management/commands/modifynetwork.py | ||
---|---|---|
57 | 57 |
make_option('--gateway', |
58 | 58 |
dest='gateway', |
59 | 59 |
help="Set network's gateway"), |
60 |
make_option('--subnet6', |
|
61 |
dest='subnet6', |
|
62 |
help="Set network's IPv6 subnet"), |
|
63 |
make_option('--gateway6', |
|
64 |
dest='gateway6', |
|
65 |
help="Set network's IPv6 gateway"), |
|
60 | 66 |
make_option('--dhcp', |
61 | 67 |
dest='dhcp', |
62 | 68 |
help="Set if network will use nfdhcp"), |
... | ... | |
92 | 98 |
if gateway is not None: |
93 | 99 |
network.gateway = gateway |
94 | 100 |
|
101 |
subnet6 = options.get('subnet6') |
|
102 |
if subnet6 is not None: |
|
103 |
network.subnet6 = subnet6 |
|
104 |
|
|
105 |
gateway6 = options.get('gateway6') |
|
106 |
if gateway6 is not None: |
|
107 |
network.gateway6 = gateway6 |
|
108 |
|
|
95 | 109 |
dhcp = options.get('dhcp') |
96 | 110 |
if dhcp is not None: |
97 | 111 |
network.dhcp = dhcp |
Also available in: Unified diff