def _aa_default_lease_time(self): """ The default-lease-time statement default-lease-time time; Time should be the length in seconds that will be assigned to a lease if the client requesting the lease does not ask for a specific expiration time. """ self.is_option = False self.is_statement = True self.has_validator = True val = self._get_value() if not is_int32(val): raise ValidationError("{0} is not a valid time-offset " "as it must be a 32 bit " "intenger".format(val))
def _aa_time_offset(self): """ The time-offset option option time-offset 28800; The time offset field specifies the offset of the client's subnet in seconds from Coordinated Universal Time (UTC). The offset is expressed as a two's complement 32-bit integer. A positive offset indicates a location east of the zero meridian and a negative offset indicates a location west of the zero meridian. """ self.is_option = True self.is_statement = False self.has_validator = True val = self._get_value() if not is_int32(val): raise ValidationError("{0} is not a valid time-offset " "as it must be a 32 bit " "intenger".format(val))