Commit 974eb2b
committed
incusd/device/nic_physical: Fix inheritance from network
With the reworked validation we weren't correctly pulling in
network-wide settings anymore as the list of optional fields has now
been trimmed down to correctly align with the type of instances being
run.
Introduce an internal networkFields list which lists the properties to
be inherited from the network, then ensure the user doesn't get to set
those when linked to a managed network and finally use that list to
import those properties from the network if set there.
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>1 parent b030aad commit 974eb2b
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | | - | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
174 | | - | |
175 | | - | |
| 177 | + | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
0 commit comments