Revision 99718617 snf-cyclades-app/synnefo/api/subnets.py

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

  
110 110
    name = subnet.get('name', None)
111 111
    ipversion = subnet.get('ip_version', 4)
112
    gateway = subnet.get('gateway_ip', None)
112
    # If no gateway is specified, send an empty string, because None is used
113
    # if the user wants no gateway at all
114
    gateway = subnet.get('gateway_ip', "")
113 115
    dhcp = subnet.get('enable_dhcp', True)
114 116
    slac = subnet.get('enable_slac', None)
115 117
    dns = subnet.get('dns_nameservers', None)

Also available in: Unified diff