onc_to_shill: Set defaults for {IPAddress,NameServers}ConfigType
In onc to shill translation, set IPAddressConfigType and
NameServersConfigType to "DHCP" in the resulting ONC data if no value is
provided by shill.
The default of "DHCP" is consistent with go/onc and with shill behavior.
This is important so that these values always have a value when policy
decoration happens (the shill -> onc translated ONC is an input to
policy_util::CreateManagedONC invoked in
ManagedNetworkConfigurationHandlerImpl).
The UI can then depend on these always having an ActiveValue, so
cros_network_config.mojom has been changed to set the corresponding
{ip_address,name_servers}_config_type fields as mandatory.
Bug: 1108922, 1109660, 1109670
Test: unit tests + manual on DuT (network settings)
Change-Id: I6111a3c7f6af64fac22ea33347dd17774bbda4c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2530330Reviewed-by:
Steven Bennetts <stevenjb@chromium.org>
Reviewed-by:
Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Pavol Marko <pmarko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827390}
Showing
Please register or sign in to comment