From: Francis Dupont Date: Sat, 1 Aug 2020 11:24:06 +0000 (+0200) Subject: [#1329] Added pool setting subnet X-Git-Tag: Kea-1.8.0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33888bed9e3057f57c12a3925a6519039302fc1c;p=thirdparty%2Fkea.git [#1329] Added pool setting subnet --- diff --git a/doc/devel/images/currentHost4.png b/doc/devel/images/currentHost4.png index 301a1d5c8b..1e6e379f77 100644 Binary files a/doc/devel/images/currentHost4.png and b/doc/devel/images/currentHost4.png differ diff --git a/doc/devel/images/currentHost4.svg b/doc/devel/images/currentHost4.svg index 5855335d76..f41db828d7 100644 --- a/doc/devel/images/currentHost4.svg +++ b/doc/devel/images/currentHost4.svg @@ -1,19 +1,22 @@ -currentHost DHCPv4 (Kea 1.7.11)Subnet SelectionSet subnet to the selected subnetHas client a lease for its client id?Iterate on allowed subnets for client idSet subnet to the by client id leaseHas client a matching lease?Iterate on allowed subnets for hardware addressSet subnet to the matching leaseHas an address reservation?Set subnet to address reservation subnetGet subnet host reservation modeIs subnet host reservation mode global?Get global host reservationGet subnet host reservationReturn current host reservationSubnet SelectionSet subnet to the selected subnetHas client a lease for its client id?Iterate on allowed subnets for client idSet subnet to the by client id leaseHas client a matching lease?Iterate on allowed subnets for hardware addressSet subnet to the matching leaseHas an address reservation?Set subnet to address reservation subnetIs the address in an allowed pool?Iterate on allowed subnets with poolSet subnet to address pool subnetGet subnet host reservation modeIs subnet host reservation mode global?Get global host reservationGet subnet host reservationReturn current host reservationno client id optionfound a leasenot foundyesnoyesnoreturn global host reservationreturn subnet host reservationyesnopool check is not in all branchesaddress not in an allowed pooladdress in an allowed poolno allowed poolyesnoreturn global host reservationreturn subnet host reservation found_hwaddr : found a lease found_hwaddr ----> hasAddressReservation hwaddr_iterate --> hasAddressReservation : not found hasAddressReservation --> setAddressReservation : yes -hasAddressReservation --> getHRmode : no -setAddressReservation --> getHRmode +hasAddressReservation --> pool : no +setAddressReservation --> pool +pool --> pool_iterate +pool ---> getHRmode : pool check is not in all branches +pool_iterate -> pool_iterate : address not in an allowed pool +pool_iterate --> inAllowedPool : address in an allowed pool +pool_iterate ---> getHRmode : no allowed pool +inAllowedPool --> getHRmode getHRmode --> checkHRmode checkHRmode --> global : yes checkHRmode --> bySubnet : no