gateway undefined

This commit is contained in:
Vishvananda Ishaya 2010-06-11 10:46:41 -07:00
parent 713dd94f51
commit 146e8c99cd
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ class BaseNetwork(datastore.RedisModel):
def netmask(self):
return self.network.netmask()
@property
def gateway(self):
return self.network[1]
@property
def broadcast(self):
return self.network.broadcast()
@property