summaryrefslogtreecommitdiffstats
path: root/doc/sphinx/uml/buildCfgOptionList.uml
blob: 1df19f84a22c87b89630442eb116d2f8be972a21 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@startuml

title buildCfgOptionList: build configured option list algorithm (Kea 1.8.0)

start
:Get (empty) configured option list;

if (no subnet) then (yes)
  :return;
  stop
else (no)
endif

if (current host reservation) then (yes)
  :push back host configured options;
else (no)
endif

if (assigned address) then (yes)
  :get pool of assigned address;
  if (pool) then (yes)
    :push back pool configured options;
  else (no)
  endif
else (no)
endif

:push back subnet configured options;

:get shared network from subnet;
if (shared network) then (yes)
  :push back shared network configured options;
else (no)
endif

while (for each query client class)
 :get client class definition from current configuration;
 if (found) then (no)
    if (built-in client class) then (yes)
    else (no)
      :log debug "class unconfigured";
    endif
  else (yes)
    :push back client class definition configured options;
  endif
endwhile

:push back global configured options;
:return;
stop

@enduml