1. 21 Jun, 2016 1 commit
    • Thomas Markwalder's avatar
      [4277] Bare bones implementation of PgSqlHostDataSource · 33428957
      Thomas Markwalder authored
      src/lib/dhcpsrv
          pgsql_host_data_source.c
          pgsql_host_data_source.h  - new files, preliminary implementation
      
      src/lib/dhcpsrv/Makefile.am
          Added new files pgsql_host_data_source.cc, pgsql_host_data_source.h
      
      src/lib/dhcpsrv/dhcpsrv_messages.mes
          Added log messages DHCPSRV_PGSQL_HOST_DB_GET_VERSION, DHCPSRV_PGSQL_START_TRANSACTION
      
      src/lib/dhcpsrv/pgsql_connection.cc
      src/lib/dhcpsrv/pgsql_connection.h
          Added PgSqlTransaction
          Added PgSqlConnection::startTransaction()
      
      src/lib/dhcpsrv/pgsql_exchange.cc
      src/lib/dhcpsrv/pgsql_exchange.h
          PsqlBindArray
          - Added storage of conversion strings used for bound values
          - Added add() variants for uint8_t, IOAddress, uint8_t buffer
          - Added templated variant for miscellaneous types
      
          PgSqlExchange
          - Removed getColumnValue variants for various integers, replaced
          with templated version for miscellaneous types
      
      src/lib/dhcpsrv/pgsql_lease_mgr.cc
          Added todo comment to remember to account for hwaddr columns added to lease6
      
      src/lib/dhcpsrv/tests/pgsql_exchange_unittest.cc
          TEST(PsqlBindArray, basicOperation) - new test to exercise bind functions
      33428957
  2. 08 Jun, 2016 1 commit
  3. 06 Jun, 2016 1 commit
  4. 25 May, 2016 1 commit
  5. 19 May, 2016 1 commit
  6. 05 Apr, 2016 1 commit
  7. 31 Mar, 2016 1 commit
  8. 16 Dec, 2015 2 commits
  9. 14 Dec, 2015 2 commits
  10. 11 Dec, 2015 2 commits
    • Thomas Markwalder's avatar
      [4216] Fixed up log message · dea9eb2c
      Thomas Markwalder authored
          Added mention of hosts db to message text for DHCPSRV_MYSQL_HOST_DB_GET_VERSION
      dea9eb2c
    • Thomas Markwalder's avatar
      [4216] Addressed review comments · 39525b94
      Thomas Markwalder authored
      src/lib/dhcpsrv/host_data_source_factory.cc
          HostDataSourceFactory::create(const std::string& dbaccess)
              - Removed logging from exception throwing conditions
              - Minor clean up of the method itself
      
      src/lib/dhcpsrv/dhcpsrv_messages.mes
          Removed obsoleted error messages:
              DHCPSRV_HOSTDB_NOTYPE
              DHCPSRV_UNKNOWN_HOST_DB
      39525b94
  11. 09 Dec, 2015 1 commit
  12. 04 Dec, 2015 1 commit
  13. 17 Nov, 2015 1 commit
  14. 11 Nov, 2015 3 commits
    • Thomas Markwalder's avatar
      [master] Removed periods from log messages · 5810e81a
      Thomas Markwalder authored
          src/lib/dhcpsrv/dhcpsrv_messages.mes
      5810e81a
    • 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
  15. 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
  16. 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
  17. 28 Oct, 2015 1 commit
    • Stephen Morris's avatar
      [3259] Updates to handle new syntax only · ee8fe286
      Stephen Morris authored
      As some incompatible changes have already been made to the hooks
      interface (removal of the setSkip method), it seems pointless to
      support both old and new hoos-libraries syntax.  These modifications
      remove support for the old syntax.
      ee8fe286
  18. 27 Oct, 2015 2 commits
  19. 26 Oct, 2015 1 commit
  20. 23 Oct, 2015 1 commit
    • Thomas Markwalder's avatar
      [3780] MySQL and Postgres lease managers now exit on fatal error detection · be964a2b
      Thomas Markwalder authored
      src/lib/dhcpsrv/dhcpsrv_messages.mes
          added messages DHCPSRV_MYSQL_FATAL_ERROR, DHCPSRV_PGSQL_FATAL_ERROR
      
      src/lib/dhcpsrv/mysql_lease_mgr.cc
          added MySQL client error code include
      
          MySqlLeaseMgr::checkError() - method is no longer inlined in
          the header.  Expanded to detect unrecoverable errors, log
          them and call exit().
      
      src/lib/dhcpsrv/mysql_lease_mgr.h
          Removed inline implemenation of MySqlLeaseMgr::checkError(),
          and expanded commentary
      
      src/lib/dhcpsrv/pgsql_lease_mgr.cc
          PgSqlLeaseMgr::addLeaseCommon() - now uses checkStatementError()
      
          PgSqlLeaseMgr::checkStatementError() - Expanded to detect
          unrecoverable errors, log them and call exit().
      
      src/lib/dhcpsrv/pgsql_lease_mgr.h
          Expanded commentary for PgSqlLeaseMgr::checkStatementError()
      be964a2b
  21. 21 Oct, 2015 2 commits
  22. 20 Oct, 2015 1 commit
    • Marcin Siodelski's avatar
      [3977] Name change requests are now generated when lease is reused. · 5de74693
      Marcin Siodelski authored
      This change triggered a lot of code refactoring for generating the
      NameChangeRequests. Long story short is that the functions responsible
      for generating NCRs from the lease information have been moved to
      the libdhcpsrv where they better fit and where they may be used
      by both allocation engine and the servers.
      5de74693
  23. 13 Oct, 2015 1 commit
  24. 25 Sep, 2015 1 commit
  25. 18 Sep, 2015 1 commit
  26. 08 Sep, 2015 1 commit
  27. 07 Sep, 2015 1 commit
  28. 02 Sep, 2015 1 commit
  29. 21 Aug, 2015 1 commit
  30. 12 Jun, 2015 1 commit
  31. 11 Jun, 2015 1 commit
  32. 02 Apr, 2015 1 commit
  33. 05 Mar, 2015 1 commit