1. 05 Feb, 2019 1 commit
  2. 02 Feb, 2019 1 commit
    • Thomas Markwalder's avatar
      [#399,!215] kea-dhcp4 now merges in config backend shared netwokrs · 6dc4c06c
      Thomas Markwalder authored
      src/lib/dhcpsrv/cfg_shared_networks.*
          CfgSharedNetworks4::merge() - new method to merge
          shared network configs
      
      src/lib/dhcpsrv/cfg_subnets4.*
          CfgSubnets4::merge() - reworked to reflect new rules
      
      src/lib/dhcpsrv/srv_config.cc
          SrvConfig::merge() - now merges shared networks
      
      src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
          checkMergedSubnet() - convenience function for
          verifying subnet content
      
          TEST(CfgSubnets4Test, mergeSubnets) - revamped to
          reflect new network assigment rules
      
      src/bin/dhcp4/tests/config_backend_unittest.cc
          TEST_F(Dhcp4CBTest, mergeSharedNetworks)  - enabled test
      6dc4c06c
  3. 09 Jan, 2019 1 commit
    • Thomas Markwalder's avatar
      [#365,!194] kea-dhcp4 can be configured to calculate T1 and T2 · 9a7cd6e0
      Thomas Markwalder authored
      doc/guide/dhcp4-srv.xml
          Updated user guide with new parameters and details on rules
      
      src/lib/cc/data.cc
          DoubleElement::toJSON(std::ostream& ss) - modified to ensure whole number
           values are suffixed with ".0"
      
      src/lib/utils/doubles.h - new file
         provides a function for equating doubles within a given tolerance
      
      src/lib/cc/simple_parser.*
          SimpleParser::getDouble() - new method for fetching real number
          parameters as DoulbeElements
      
      src/lib/dhcpsrv/network.*
          Added members and support for new paramters to Network4:
              calculate_tee_times_, t1_percent_, t2_percent_
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
      src/lib/dhcpsrv/parsers/simple_parser4.cc
          Added support for new parameters to Subnet4ConfigParser
      
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
      src/bin/dhcp4/json_config_parser.cc
          Added parser support for calculate-tee-times, t1-percent, and t2-percent
      
      src/bin/dhcp4/dhcp4_srv.*
          Dhcpv4Srv::setTeeTimes(lease, subnet, resp) - new method for
          determining T1 adn T2 values
      9a7cd6e0
  4. 07 Nov, 2018 1 commit
  5. 25 May, 2018 1 commit
    • Thomas Markwalder's avatar
      [5596] renew-timer and rebind-timer now optional for DHCPv4 · dec8d15f
      Thomas Markwalder authored
      v4 Parsing now allows renew/rebind timers to be unspecified,
      and kea-dhcp4 logic now matchs ISC DHCP:
      
      1. Send T2 only if it is specified and is less than lease lifetime
      2. Send T1 only if it is specified and is less than either T2
      if specified, or lease lifetime in the absence of T2
      
      doc/guide/dhcp4-srv.xml
          Updated discussion of rebind/renew-timers
      
      src/bin/dhcp4/dhcp4_srv.cc
          Dhcpv4Srv::assignLease() - modified to sanity check
          T1 and T2
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp4/tests/get_config_unittest.cc
      src/bin/dhcp4/tests/simple_parser4_unittest.cc
      src/bin/dhcp6/tests/get_config_unittest.cc
      src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
      src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
          updated numerous tests
      
      src/lib/dhcpsrv/network.cc
          Network::toElement() - only outputs T1, T2, and
          valid lifetime if they are specified
      
      src/lib/dhcpsrv/network.h
          Network() - inits t1_, t2_, and valid_ to unspecified
          Triplet value
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          Subnet4ConfigParser::initSubnet() - allow renew-timer and
          rebind-timer to be optional
      
      src/lib/dhcpsrv/parsers/simple_parser4.cc
          SimpleDefaults SimpleParser4::GLOBAL4_DEFAULTS - removed
          entries for renew-timer and rebind-timer
      dec8d15f
  6. 24 May, 2018 1 commit
  7. 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
  8. 21 Oct, 2017 1 commit
  9. 07 Sep, 2017 1 commit
  10. 05 Sep, 2017 1 commit
  11. 01 Sep, 2017 1 commit