Revision 097009bf snf-cyclades-app/synnefo/api/subnets.py

b/snf-cyclades-app/synnefo/api/subnets.py
129 129

  
130 130
    if ipversion == 6:
131 131
        networks.validate_network_params(None, None, cidr, gateway)
132
        slac = subnet.get('slac', None)
132
        slac = subnet.get('enable_slac', None)
133 133
        if slac is not None:
134
            dhcp = check_boolean_value(slac, "slac")
134
            dhcp = check_boolean_value(slac, "enable_slac")
135 135
        else:
136 136
            dhcp = check_boolean_value(subnet.get('enable_dhcp', True), "dhcp")
137 137
    else:
......
278 278
                       'allocation_pools': pools if pools is not None else []})
279 279

  
280 280
    if subnet.ipversion == 6:
281
        dictionary['slac'] = subnet.dhcp
281
        dictionary['enable_slac'] = subnet.dhcp
282 282

  
283 283
    return dictionary
284 284

  

Also available in: Unified diff