Revision 624f0d07

b/snf-cyclades-app/synnefo/logic/subnets.py
113 113
    else:
114 114
        validate_subnet_params(subnet=cidr, gateway=gateway)
115 115

  
116
    name = utils.check_name_length(name, Subnet.SUBNET_NAME_LENGTH, "Subnet "
117
                                   "name is too long")
116
    utils.check_name_length(name, Subnet.SUBNET_NAME_LENGTH, "Subnet "
117
                            "name is too long")
118 118
    sub = Subnet.objects.create(name=name, network=network, cidr=cidr,
119 119
                                ipversion=ipversion, gateway=gateway,
120 120
                                userid=network.userid, public=network.public,

Also available in: Unified diff