1. 18 Apr, 2015 1 commit
  2. 17 Apr, 2015 1 commit
  3. 20 Mar, 2015 2 commits
  4. 19 Mar, 2015 3 commits
    • Thomas Markwalder's avatar
      [3689] Added host renew and rebind tests · 2d290633
      Thomas Markwalder authored
      tests/dhcp6_client.cc
      tests/dhcp6_client.h
          added Dhcp6Client::doRenew()
      
      tests/host_unittest.cc
          added TEST_F(HostTest, sarrAndRenew)
          added TEST_F(HostTest, sarrAndRebind)
      2d290633
    • Thomas Markwalder's avatar
      [3689] Added new host test file · 57b308ff
      Thomas Markwalder authored
      Addressing more review comments...
      
      new file - host_unittest.cc
          contains Dhcp6Client based host reservation tests
      
      dhcp6_client.cc
      dhcp6_client.h
          added setDuid(str) method to allow duid to be set to
          specific value
      
      dhcp6_srv_unittest.cc -
          deleted host reservation tests, now in host_unittest.cc
      
      dhcp6_test_utils.cc
      dhcp6_test_utils.h
          deleted createHost6() method
      57b308ff
    • Thomas Markwalder's avatar
      [3689] Revamped host reservation tests which involve FQDN · 973bb3ae
      Thomas Markwalder authored
      fqdn_unittest.cc -
          removed use of createHost6 in host reservation tests.
      973bb3ae
  5. 18 Mar, 2015 8 commits
  6. 17 Mar, 2015 8 commits
    • Shawn Routhier's avatar
      [3705] Fix up some typos during review · 23d3c6fd
      Shawn Routhier authored
      23d3c6fd
    • Thomas Markwalder's avatar
      [3689] Removed call to findReservation from AllocateEngine::allocateLeases6() · 5493c969
      Thomas Markwalder authored
      src/lib/dhcpsrv/alloc_engine.h
      src/lib/dhcpsrv/alloc_engine.cc
          allocateLeases6()
              - removed find_reservation parameter from allocateLeases6
              - removed logic that called findReservation(), this eliminates
              inadvertanly stomping an already populated host in the context.
              Places burden of doing the reservation lookup always on the caller.
      
      src/bin/dhcp6/dhcp6_srv.cc
          removed obsolete boolean parameter from allocateLeases6 calls
      
      src/lib/dhcpsrv/tests/alloc_engine_utils.h
      src/lib/dhcpsrv/tests/alloc_engine_utils.cc
         AllocEngine6Test::findReservation() - new method which calls
         engine's findReservation() and fills in context hostname accordingly.
      
      src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
          added calls to AlloceEnginetTest::findReservation where needed
      5493c969
    • Thomas Markwalder's avatar
      [3689] Added host reservation tests · c387c4ca
      Thomas Markwalder authored
      src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
          added tests:
          TEST_F(Dhcpv6SrvTest, hostReservationWithHostName)
          TEST_F(Dhcpv6SrvTest, hostReservationWithoutHostName)
      
      src/bin/dhcp6/tests/dhcp6_test_utils.h
      src/bin/dhcp6/tests/dhcp6_test_utils.cc
          Dhcpv6SrvTest::createHost6() - this method was moved
          here from FqdnDhcpv6SrvTest()
      
      src/bin/dhcp6/tests/fqdn_unittest.cc
          added tests:
          TEST_F(FqdnDhcpv6SrvTest, hostnameReservationSuffix)
          TEST_F(FqdnDhcpv6SrvTest, hostnameReservationNoSuffix)
          TEST_F(FqdnDhcpv6SrvTest, hostnameReservationDdnsDisabled)
      c387c4ca
    • Thomas Markwalder's avatar
      [3689] Use context instead of subnet, duid params · d05f8676
      Thomas Markwalder authored
      src/bin/dhcp6/dhcp6_srv.h
      src/bin/dhcp6/dhcp6_srv.cc
      
      replaced parameters subnet and duid with a single paramter for context in
      several methods:
          assignIA_NA()
          assignIA_PD()
          extendIA_NA()
          extendIA_PD()
          extendLeases()
      
      appendRequestedVendorOptions() - added context parameter, removed
      redundant call to selectSubnet
      
      processClientFqdn() -
          Now sets the hostname value in the context in addition to processing FQDN.
          This centralizes the logic to handle both, since they are tightly coupled
          and can be influenced by a host reservation.
      
          Note that when the host name from the reservation is being used in place
          of the client FQDN, the qualyfing suffix is always appended to the hostname.
          This is consistent with the DHCPv4 behavior.
      d05f8676
    • Marcin Siodelski's avatar
      81b59799
    • Marcin Siodelski's avatar
    • Marcin Siodelski's avatar
      [3705] Minor fixes for the review. · d7fb6191
      Marcin Siodelski authored
      d7fb6191
    • Marcin Siodelski's avatar
      [3705] Address review comments. · b55dd296
      Marcin Siodelski authored
      b55dd296
  7. 13 Mar, 2015 1 commit
  8. 12 Mar, 2015 1 commit
  9. 10 Mar, 2015 1 commit
  10. 06 Mar, 2015 3 commits
  11. 05 Mar, 2015 2 commits
  12. 03 Mar, 2015 1 commit
  13. 20 Feb, 2015 2 commits
  14. 18 Feb, 2015 2 commits
  15. 16 Feb, 2015 2 commits
    • Tomek Mrugalski's avatar
      7beb4f3c
    • Tomek Mrugalski's avatar
      [3565] Changes after review: · b505c120
      Tomek Mrugalski authored
      - Documentation for reservation-mode added
      - spec files updated
      - unit-tests for HR no longer use eth0 or eth1
      - @todos added when allow_new_leases_in_renewals_ is expected to be used
      - HR unit-test no longer uses at()
      - Copyright years updated
      - getOptionalParam() used when handling reservation-mode
      - hrModeFromText() moved to SubnetConfigParser
      - hrModeFromText() starts with lowercase and has its documentation expanded
      b505c120
  16. 14 Feb, 2015 1 commit
  17. 13 Feb, 2015 1 commit