summaryrefslogtreecommitdiffstats
path: root/doc/sphinx/uml/appendRequestedOptions.uml
blob: 80a21d9e1962c6fa058bfc914664656d0920bcf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@startuml

Title Append requested options algorithm (Kea 1.8.0)

:get configured option list;

:get parameter request list (PRL) from query;

while (for each item from configured option list)
  :get configured options in dhcp4 space;
  while (for each persistent option)
    :push back option code to PRL;
  endwhile
endwhile

while (for each code in PRL)
  if (option is not set in response) then (yes)
    while (for each item from configured option list)
      :get configured options in dhcp4 space;
      if (found) then (first)
        :add option to response;
      else (not found or already found)
      endif
    endwhile
  else (no)
  endif
endwhile
->done;
stop

@enduml