1. 27 Apr, 2018 1 commit
  2. 26 Apr, 2018 4 commits
    • Thomas Markwalder's avatar
    • Thomas Markwalder's avatar
      [5535] kea-dhcp6 parsing now supports relay "ip-addresses" · e564f4da
      Thomas Markwalder authored
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
          Modified to support "ip-address" and
          "ip-addresses" under "relay"
      
      src/bin/dhcp6/tests/get_config_unittest.cc
          Updated per process.
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
          void checkResult() - modified to output parsing error text
      
          TEST_F(Dhcp6ParserTest, subnetRelayInfo)
          TEST_F(Dhcp6ParserTest, sharedNetworksDerive)
          - updated to use new Network methods
      
          TEST_F(Dhcp6ParserTest, subnetRelayInfoList) - new test
          to verify a list of addresses in relay
      e564f4da
    • Thomas Markwalder's avatar
      [5535] kea-dhcp4 parsing now supports relay "ip-addresses" · c71f3d38
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Modified to support "ip-address" and
          "ip-addresses" under "relay"
      
      src/bin/dhcp4/tests/get_config_unittest.cc
          Updated per process.
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          void checkResult() - modified to output parsing error text
      
          TEST_F(Dhcp4ParserTest, subnetRelayInfo)
          TEST_F(Dhcp4ParserTest, classifySubnets)
          - updated to use new Network methods
      
          TEST_F(Dhcp4ParserTest, subnetRelayInfoList) - new test
          to verify a list of addresses in relay
      c71f3d38
    • Thomas Markwalder's avatar
      [5535] RelayInfo parsing handles both ip-address and ip-addresses · 0e5e017d
      Thomas Markwalder authored
      src/lib/dhcpsrv/parsers/dhcp_parsers.*
          RelayInfoParser::parse() - reworked to support either
          ip-address or ip-addresses
      
          RelayInfoParser::addAddress() - new parser helper method
      
      src/lib/dhcpsrv/parsers/shared_network_parser.cc
          SharedNetwork4Parser::parse()
          SharedNetwork6Parser::parse()
          - both now parse "relay" element (was missing)
      
      src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
          Modified to support testing "relay" element parsing
          Added new tests:
              TEST_F(SharedNetwork4ParserTest, relayInfoTests)
              TEST_F(SharedNetwork6ParserTest, relayInfoTests)
      0e5e017d
  3. 25 Apr, 2018 1 commit
    • Thomas Markwalder's avatar
      [5535] dhcpsrv now supports multiple relay addresses in RelayInfo · 9e362be0
      Thomas Markwalder authored
      src/lib/dhcpsrv/network.*
          Network::RelayInfo
          - modified to support a list of IP addresses
          - added methods:
              addAddress(const asiolink::IOAddress& addr)
              bool hasAddresses()
              bool containsAddress(const asiolink::IOAddress& addr)
              +const IOAddressList& getAddresses()
      
          Network
          - added wrapper methods for convenience:
              addRelayAddress(const asiolink::IOAddress& addr)
              bool hasRelays()
              bool hasRelayAddress(const asiolink::IOAddress& addr)
              const IOAddressList& getRelayAddresses()
      
          - toElement() - modified to output ip-addresses list
      
          Updated the following accordingly:
              src/lib/dhcpsrv/cfg_subnets4.cc
              src/lib/dhcpsrv/cfg_subnets6.cc
              src/lib/dhcpsrv/parsers/dhcp_parsers.cc
              src/lib/dhcpsrv/subnet.cc
              src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
              src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
              src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
              src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc
              src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
              src/lib/dhcpsrv/tests/shared_network_unittest.cc
              src/lib/dhcpsrv/tests/subnet_unittest.cc
      9e362be0
  4. 18 Apr, 2018 2 commits
  5. 12 Apr, 2018 2 commits
  6. 11 Apr, 2018 9 commits
  7. 10 Apr, 2018 1 commit
  8. 09 Apr, 2018 5 commits
    • Thomas Markwalder's avatar
      [5556a] Commentary changes · 50b0a070
      Thomas Markwalder authored
      50b0a070
    • Thomas Markwalder's avatar
      [5556a] Addressed review comments · 76ddd1ff
      Thomas Markwalder authored
      src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
          LeaseMgrDbLostCallbackTest::testNoCallbackOnOpenFailure() {
          - removed before hand checks for socket descriptor, grab
          the most recently opend descriptor after connecting to the db
          and assume its the SQL client's
      
          - test return value of close() rather then errno
      
      src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.h
          LeaseMgrDbLostCallbackTest
          - constructor and destructor clear
          DatabaseConnection::db_lost_callback
      
      src/lib/dhcpsrv/tests/host_mgr_unittest.cc
          HostMgrDbLostCallbackTest
          - Setup and Teardown methods clear DatabaseConnection::db_lost_callback
      
          HostMgrDbLostCallbackTest::testDbLostCallback()
          - removed before hand checks for socket descriptor, grab
          the most recently opend descriptor after connecting to the db
          and assume its the SQL client's
      
          - test return value of close() rather then errno
      
      src/lib/dhcpsrv/tests/test_utils.cc
          int findLastSocketFd()
          - iterate over all descriptors rather than stopping at first invalid
      76ddd1ff
    • Marcin Siodelski's avatar
      dec1eb86
    • Francis Dupont's avatar
      [5556a] Postgresql -> PostgreSQL · 5cf5d9c9
      Francis Dupont authored
      5cf5d9c9
    • Francis Dupont's avatar
  9. 07 Apr, 2018 4 commits
  10. 06 Apr, 2018 6 commits
    • Thomas Markwalder's avatar
      [5556a] MySQL lease and host backends now support configurable auto-reconnect · f09bf17e
      Thomas Markwalder authored
          src/lib/dhcpsrv/mysql_connection.h
              MySqlConnection::checkError<>() - modified to invoke
              db lost callback
      
          src/lib/dhcpsrv/dhcpsrv_messages.mes
              Updated log messages
      
          src/lib/dhcpsrv/mysql_lease_mgr.cc
              MySqlLeaseMgr::getVersion() - updated to use checkError()
      
          src/lib/dhcpsrv/pgsql_connection.*
              PgSqlResult::PgSqlResult(PGresult *result) - now supports
              construction with null PGresult. This is to accomodate rare
              cases when PQ* statements can return NULL.
      
          src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.*
              class LeaseMgrDbLostCallbackTest - new test fixture for
              testing LeaseMgr DBLostCallback behavior
      
          src/lib/dhcpsrv/tests/host_mgr_unittest.cc
              class HostMgrDbLostCallbackTest
              class MySQLHostMgrDbLostCallbackTest
              class PostgreSQLHostMgrDbLostCallbackTest
              - new test fixtures for testing HostMgr DBLostCallback behavior
      
          src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
              class MySQLLeaseMgrDbLostCallbackTest - new test fixture for
              testing MySQL LeaseMgr DBLostCallback behavior
      
          src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
              class PgSqlLeaseMgrDbLostCallbackTest - new test fixture for
              testing Postgresql LeaseMgr DBLostCallback behavior
      
          src/lib/dhcpsrv/tests/test_utils.*
              int findLastSocketFd() - new function used for finding what
              should be the fd of the SQL client socket
      
          doc/guide/dhcp4-srv.xml
          doc/guide/dhcp6-srv.xml
              Updated lease and host database parameter sections
      f09bf17e
    • Thomas Markwalder's avatar
      [master] Fixed broken Postgresql lease6 queries · f1184cb0
      Thomas Markwalder authored
          Two Postgresql lease manager v6 queries were missing hardware address
          columns recently added, causing unit tests to fall down.
      f1184cb0
    • Francis Dupont's avatar
      [trac5374] regen flex/bison · c78317c0
      Francis Dupont authored
      c78317c0
    • Francis Dupont's avatar
    • Marcin Siodelski's avatar
      5d0f9963
    • Francis Dupont's avatar
      [5374] spelling (in test code) · be354058
      Francis Dupont authored
      be354058
  11. 05 Apr, 2018 4 commits
  12. 04 Apr, 2018 1 commit