1. 28 Oct, 2016 1 commit
  2. 21 Mar, 2016 1 commit
  3. 16 Dec, 2015 1 commit
  4. 11 Nov, 2015 2 commits
    • Thomas Markwalder's avatar
      [3601] More review comments · 71e6ef87
      Thomas Markwalder authored
      Minor log message and comment wording
      71e6ef87
    • Thomas Markwalder's avatar
      [3601] Addressed additional review comments · 2023588f
      Thomas Markwalder authored
      doc/guide/admin.xml
      src/lib/dhcpsrv/dhcpsrv_messages.mes
      src/lib/dhcpsrv/lease_file_loader.h
          minor clean up, typos
      
      src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
      src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
          removed unnecessary use of scoped_ptr
      
      src/lib/util/csv_file.cc
          CSVRow::trim() - replaced use of std::vector<>::erase with resise
      
      src/lib/util/versioned_csv_file.h
      src/lib/util/versioned_csv_file.cc
          VersionedCSVFile::next() - reorganized to use input_schema_state_
          VersionedCSVFile::columnCountError() - new convenience method
          minor cleanups
      2023588f
  5. 10 Nov, 2015 1 commit
    • Thomas Markwalder's avatar
      [3601] Addressed review comments, added ability to downgrade · 91a4978e
      Thomas Markwalder authored
      Several minor cleanup items based on review comments.  Implemented
      support for downgrading files from newer schema versions:
      
      doc/guide/admin.xml
          amended text on upgrading memfile to discuss downgrading
      
      src/lib/dhcpsrv/dhcpsrv_messages.mes
      src/lib/dhcpsrv/lease_file_loader.h
          revamped log messages to accomodate downgrading
      
      src/lib/dhcpsrv/memfile_lease_mgr.cc
      src/lib/dhcpsrv/memfile_lease_mgr.h
          added commentary to MemfileLeaseMgr ctor
          automatic conversion logic accomdates both upgrading and downgrading
      
      src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
      src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
          replaced tooManyHeaderColumns test with downGrade test
      
      src/lib/util/csv_file.h
      src/lib/util/csv_file.cc
          added CSVRow::trim()
      
      src/lib/util/tests/csv_file_unittest.cc
          added CSVRow.trim test
      
      src/lib/util/tests/versioned_csv_file_unittest.cc
          added VersionedCSVFileTest.currentSchemaTest test
          replaced tooManyHeaderColumns test with downGrading test
          revamped tests to check  getInputSchemaState() and needsConversion()
      
      src/lib/util/versioned_csv_file.h
          Updated commentary to describe downgrade support
      
      src/lib/util/versioned_csv_file.cc
          enum InputSchemaState
          input_schema_state_
          input_header_count_
          getInputHeaderCount()
          getInputSchemaState()
          needsConversion()
      
          next(CSVRow& row) - now supports downgrading rows
          validateHeder() -  now throws if called when no schema has been defined,
          and supports downgrading rows
      91a4978e
  6. 03 Nov, 2015 1 commit
    • Thomas Markwalder's avatar
      [3601] Memfile_LeaseMgr now runs LFC automatically if lease files need upgrading · 64a51b84
      Thomas Markwalder authored
      Memfile_LeaseMgr loads the lease files during instantiation. If it detects
      that any of the files loaded are out of date, it will invoke LFC directly,
      whether or not LFC is enabled.
      
      src/lib/dhcpsrv/dhcpsrv_messages.mes
          added two new log messages:
              DHCPRSV_MEMFILE_UPGRADING_LEASE_FILES
              DHCPSRV_MEMFILE_NEEDS_UPGRADING
      
      src/lib/dhcpsrv/lease_file_loader.h
          LeaseFileLoader::load() - emits DHCPSRV_MEMFILE_NEEDS_UPGRADING log
          when an out of date file is detected
      
      src/lib/dhcpsrv/memfile_lease_mgr.cc
          LFCSetup::setup() - added run_once_now parameter, which causes the
          method to invoke the LFC callback immediately, regardless of the value
          of LFC interval.
          Memfile_LeaseMgr::Memfile_LeaseMgr() - added logic to track if
          files loaded need upgrading and pass that into lfcSetup()
      
          Memfile_LeaseMgr::loadLeasesFromFiles() - change to return a boolean
          true if any of the files loaded need upgrading.
      
          Memfile_LeaseMgr::lfcSetup() - added upgrade_needed parameter, which
          is passed through to LFCSetup::setup() as "run_once_now"
      64a51b84
  7. 27 Jun, 2015 1 commit
  8. 12 May, 2015 1 commit
  9. 11 Feb, 2015 1 commit
    • Shawn Routhier's avatar
      [trac3667] Complete logging work and add soem stats · 6c4cc8c9
      Shawn Routhier authored
      Complete the current working on using the basic logging system
      for messages from LFC
      
      Add lease_stats to provide a class to gather statistics
      about reading and writing leases to files.  Currently this
      is used by the CSV file code and output by LFC.  The
      information counted is: number of attempts, number of leases
      and number of errors generated during reads and writes.
      6c4cc8c9
  10. 05 Feb, 2015 2 commits
  11. 04 Feb, 2015 1 commit
  12. 03 Feb, 2015 1 commit
    • Shawn Routhier's avatar
      [trac3665] Dump leases from storage to file and use this in LFC · 3e0491cb
      Shawn Routhier authored
      Add the write method to lease_file_loader to dump the leaes files
      from a storage container into a file.
      
      Update the LFC code to use the lease_file_loader functions to
      load the leases from the appropriate files and then to write
      them to the output file and finally to move the file around.
      3e0491cb
  13. 14 Jan, 2015 1 commit
  14. 09 Jan, 2015 1 commit