-class Host(Sequence):
- def __init__(self, name, address, subnet, public_key):
- self.name = name
- self.address = address
- self.subnet = subnet
- self.public_key = public_key
- self._delete = False
-
- def as_tuple(self):
- return(self.name, self.address, self.subnet, self.public_key)
+class Host(Item):
+ name = Field(HostName(not_empty=True))
+ address = Field(Any(HostName, FullyQualifiedHostName, IPAddress))
+ subnet = Field(CIDR)