joyent/smartos-live — Issue #7: vmadm ignores 'hostname' and 'resolvers' unless 'default-gateway' and 'gateway' are set
Author: trisk
Created: 2011-10-16 05:08:42+00:00
State: open

https://github.com/joyent/smartos-live/blob/master/src/vmadmd.js#L1428

vmadmd uses the 'default-gateway' VM property and and 'gateway' per-NIC property to try to locate the primary interface and only provide a hostname and dns_ip for it. It should just choose the first NIC if 'default-gateway' is not set, and also not rely on 'gateway' to be set.