caption: Device network hostname template
desc: |-
Setting the policy to a string applies the string as the device hostname during DHCP request. The string can have variables <ph name="ASSET_ID_PLACEHOLDER">${ASSET_ID}</ph>, <ph name="SERIAL_NUM_PLACEHOLDER">${SERIAL_NUM}</ph>, <ph name="MAC_ADDR_PLACEHOLDER">${MAC_ADDR}</ph>, <ph name="MACHINE_NAME_PLACEHOLDER">${MACHINE_NAME}</ph>, <ph name="LOCATION_PLACEHOLDER">${LOCATION}</ph> to be replaced with values on the device before using it as a hostname. The resulting substitution should be a valid hostname (per RFC 1035, section 3.1).
Leaving the policy unset or if the value after substitution isn't a valid hostname, no hostname is set in DHCP request.
device_only: true
example_value: chromebook-${ASSET_ID}
features:
dynamic_refresh: true
per_profile: false
owners:
- [email protected]
schema:
type: string
supported_on:
- chrome_os:65-
tags: []
type: string
generate_device_proto: False