ONC: Fix Static-/Saved-/IPConfig.
commitfaf50c40335fd2055c8beed69c0f630bd442d880
authorpneubeck <pneubeck@chromium.org>
Tue, 9 Sep 2014 10:46:01 +0000 (9 03:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Sep 2014 10:48:00 +0000 (9 10:48 +0000)
tree0dfdfbb72d3bb1b0f098122ebf92d08a538c8574
parent457b0a1c94129337a08d0efcc3fd016205a981b4
ONC: Fix Static-/Saved-/IPConfig.

Before commit 41ec57e48ebd467c7a3b169a5598fb8038f54232,
IPConfigs was the field in ONC meant for configuring ip configuration of a network.
This was changed to:
- IPConfigs is the set of currently active ip configurations (it can be more than one if IPv4 and IPv6 are coexisting in parallel) reported by ChromeOS
- StaticIPConfig (note that it's a single configuration, not multiple as before) is the writable field that the user or policy can set
- SavedIPConfig is the configuration received via DHCP and reported by ChromeOS.

This change updates the different ONC functions to these new field definitions.

Effectively this also allows setting the IPConfig of a network through ONC import, the networkingPrivate API, and through policy (there's no server support though).

BUG=410877

Review URL: https://codereview.chromium.org/540333002

Cr-Commit-Position: refs/heads/master@{#293915}
21 files changed:
chromeos/network/onc/onc_merger_unittest.cc
chromeos/network/onc/onc_normalizer.cc
chromeos/network/onc/onc_signature.cc
chromeos/network/onc/onc_translator_onc_to_shill.cc
chromeos/network/onc/onc_translator_shill_to_onc.cc
chromeos/network/onc/onc_validator.cc
chromeos/network/onc/onc_validator_unittest.cc
chromeos/test/data/network/augmented_merge.json
chromeos/test/data/network/device_policy.onc
chromeos/test/data/network/ethernet.onc
chromeos/test/data/network/invalid_settings_with_repairs.json
chromeos/test/data/network/managed_toplevel1.onc
chromeos/test/data/network/managed_vpn.onc
chromeos/test/data/network/managed_vpn_without_recommended.onc
chromeos/test/data/network/repaired_toplevel_partially_invalid.onc
chromeos/test/data/network/shill_ethernet.json
chromeos/test/data/network/toplevel_partially_invalid.onc
chromeos/test/data/network/translation_of_shill_ethernet.onc
chromeos/test/data/network/translation_of_shill_ethernet_with_ipconfig.onc
chromeos/test/data/network/user.onc
chromeos/test/data/network/vpn_active_settings.onc