Revision 04fe9a86 snf-cyclades-app/synnefo/api/networks.py

b/snf-cyclades-app/synnefo/api/networks.py
153 153
        # TODO: Fix this temp values:
154 154
        subnet = d.get('subnet', '192.168.1.0/24')
155 155
        gateway = d.get('gateway', None)
156
        type = d.get('type', 'PRIVATE_FILTERED')
156
        type = d.get('type', 'PRIVATE_VLAN')
157 157
        dhcp = d.get('dhcp', True)
158 158
    except (KeyError, ValueError):
159 159
        raise BadRequest('Malformed request.')
......
164 164
        pass
165 165
        # raise Exception (user can not create public)
166 166
    if type == 'PRIVATE_FILTERED':
167
        link = BridgePool.get_available().value
167
        link = settings.GANETI_PRIVATE_BRIDGE
168 168
        mac_prefix = MacPrefixPool.get_available().value
169 169
        state = 'PENDING'
170
    else:
171
        link = settings.GANETI_PRIVATE_BRIDGE
170
    else: # PRIVATE_VLAN
171
        link = BridgePool.get_available().value
172 172
        # Physical-Vlans are pre-provisioned
173 173
        state = 'ACTIVE'
174 174

  

Also available in: Unified diff