... | ... | @@ -2,19 +2,47 @@ |
|
|
```mermaid
|
|
|
graph LR;
|
|
|
|
|
|
SubGraph1 --> SubGraph1Flow
|
|
|
SubGraph2 --> SubnetSelection
|
|
|
subgraph "Subnet Selection"
|
|
|
SubGraph1Flow(Iterate through subnets in insertion order)
|
|
|
SubGraph1Flow -- Choice1 --> DoChoice1
|
|
|
SubGraph1Flow -- Choice2 --> DoChoice2
|
|
|
Node10(Iterate through subnets in insertion order)
|
|
|
Node10 -- incoming interface --> Node11
|
|
|
Node10 -- ciaddr, client address --> Node11
|
|
|
Node10 -- giaddr, gateway address --> Node11
|
|
|
Node10 -- local address --> Node11
|
|
|
Node10 -- remote address --> Node11
|
|
|
Node11[Select Subnet] --> Node12{Evaluate client classes?}
|
|
|
Node12 -- Yes --> Node13
|
|
|
Node12 -- No --> Node16
|
|
|
Node13{Is client class allowed in this subnet?} -- Yes --> Node14
|
|
|
Node13 -- No --> Node10
|
|
|
Node14{check for host reservation in subnet?} -- Yes --> Node15
|
|
|
Node14 -- No --> SubGraph3[Address Assignment]
|
|
|
Node15[Check for Host Reservation] -- Reservation --> SubGraph4
|
|
|
end
|
|
|
|
|
|
|
|
|
SubGraph3 --> AddressAssignment
|
|
|
subgraph "Address Assignment"
|
|
|
SubGraph3Flow(Iterate through pools in order configured)
|
|
|
SubGraph3Flow -- Choice1 --> DoChoice11
|
|
|
SubGraph3Flow -- Choice2 --> DoChoice12
|
|
|
end
|
|
|
|
|
|
SubGraph4 --> OptionSelection
|
|
|
subgraph "Option Selection"
|
|
|
SubGraph4Flow(Iterate through subnets in insertion order)
|
|
|
SubGraph4Flow -- Choice1 --> DoChoice14
|
|
|
SubGraph4Flow -- Choice2 --> DoChoice21
|
|
|
end
|
|
|
|
|
|
|
|
|
subgraph "Client Request"
|
|
|
Node1[Request for new lease] --> Node2{Bypass global HR check?}
|
|
|
Node1[Request for new lease] --> Node2{Bypass global HR check}
|
|
|
Node2 -- Default --> Node3[Check for global HR]
|
|
|
Node2 -- Yes, reservation mode: disabled --> SubGraph2[Subnet selection]
|
|
|
Node3 --> Node4(add class = known)
|
|
|
Node4 --> Node5{Does HR include an address?}
|
|
|
Node5 -- Yes, address provided --> SubGraph4[Option Selection]
|
|
|
Node5 --> SubGraph2[Subnet selection]
|
|
|
|
|
|
end
|
... | ... | |