Changeset 6199
- Timestamp:
- Aug 15, 2008, 7:22:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exodus/models.py
r6191 r6199 6 6 7 7 class NICType(models.Model): 8 type = models.CharField(max length=10)8 type = models.CharField(max_length=10) 9 9 class Admin: 10 10 pass … … 14 14 15 15 class Polar(models.Model): 16 polar = models.CharField(max length=10)16 polar = models.CharField(max_length=10) 17 17 class Admin: 18 18 pass … … 22 22 23 23 class Status(models.Model): 24 status = models.CharField(max length=200)24 status = models.CharField(max_length=200) 25 25 class Admin: 26 26 pass … … 30 30 31 31 class Mode(models.Model): 32 mode = models.CharField(max length=10)32 mode = models.CharField(max_length=10) 33 33 class Admin: 34 34 pass … … 41 41 42 42 class Antenna(models.Model): 43 type = models.CharField(max length=20)44 gain = models.IntegerField(max length=3)43 type = models.CharField(max_length=20) 44 gain = models.IntegerField(max_length=3) 45 45 class Admin: 46 46 pass … … 50 50 51 51 class LinkType(models.Model): 52 type = models.CharField(max length=10)52 type = models.CharField(max_length=10) 53 53 class Admin: 54 54 pass … … 58 58 59 59 class Location(models.Model): 60 description = models.CharField(max length=200)61 coordinateX = models.IntegerField(max length=10)62 coordinateY = models.IntegerField(max length=10)60 description = models.CharField(max_length=200) 61 coordinateX = models.IntegerField(max_length=10) 62 coordinateY = models.IntegerField(max_length=10) 63 63 class Admin: 64 64 pass … … 69 69 70 70 class Network(models.Model): 71 domainname = models.CharField(max length=50)71 domainname = models.CharField(max_length=50) 72 72 ipspacestart = models.IPAddressField() 73 73 netmask = models.IntegerField() … … 81 81 82 82 class Node(models.Model): 83 name = models.CharField(max length=30, unique=True)83 name = models.CharField(max_length=30, unique=True) 84 84 location = models.ForeignKey(Location) 85 85 status = models.ForeignKey(Status) … … 97 97 98 98 class NIC(models.Model): 99 iface = models.CharField(max length=10)99 iface = models.CharField(max_length=10) 100 100 polar = models.ForeignKey(Polar, blank=True, null=True) 101 shortdesc = models.CharField(max length=10)102 desc = models.CharField(max length=200)103 ssid = models.CharField(max length=30, blank=True, null=True)101 shortdesc = models.CharField(max_length=10) 102 desc = models.CharField(max_length=200) 103 ssid = models.CharField(max_length=30, blank=True, null=True) 104 104 mode = models.ForeignKey(Mode, blank=True, null=True) 105 105 status = models.ForeignKey(Status) … … 132 132 133 133 class Link(models.Model): 134 shortdesc = models.CharField(max length=10)135 desc = models.CharField(max length=100)134 shortdesc = models.CharField(max_length=10) 135 desc = models.CharField(max_length=100) 136 136 ip = models.IPAddressField() 137 137 status = models.ForeignKey(Status) … … 145 145 146 146 class DhcpStatic(models.Model): 147 hostname = models.CharField(max length=10)148 macaddress = models.CharField(max length=17)147 hostname = models.CharField(max_length=10) 148 macaddress = models.CharField(max_length=17) 149 149 address = models.IPAddressField() 150 150 link = models.ForeignKey(LinkPool)
Note:
See TracChangeset
for help on using the changeset viewer.