Revision 882b662f snf-cyclades-app/synnefo/neutron/models.py
b/snf-cyclades-app/synnefo/neutron/models.py | ||
---|---|---|
214 | 214 |
|
215 | 215 |
|
216 | 216 |
class Subnet(models.Model): |
217 |
SUBNET_NAME_LENGTH = 128 |
|
218 |
|
|
217 | 219 |
subnet_id = models.CharField('ID of the subnet', max_length=128, |
218 | 220 |
null=True, db_index=True, primary_key=True) |
219 | 221 |
network = models.ForeignKey('Network') |
220 | 222 |
|
221 |
name = models.CharField('Network Name', max_length=128)
|
|
223 |
name = models.CharField('Network Name', max_length=SUBNET_NAME_LENGTH)
|
|
222 | 224 |
ipversion = models.IntegerField('IP Version', default=4) |
223 | 225 |
cidr = models.CharField('Subnet', max_length=32, null=True) |
224 | 226 |
gateway = models.CharField('Gateway', max_length=32, null=True) |
Also available in: Unified diff