~smoser/cloud-init/trunk.smartos-fabric

Viewing all changes in revision 1254.

  • Committer: Scott Moser
  • Date: 2016-06-23 23:18:58 UTC
  • Revision ID: smoser@ubuntu.com-20160623231858-w7ff8exg0fz2k8d0
use the first ipv4 or ipv6 gateway on the 'primary' nic default gateway

documentation is not terribly clear, but what we have right now
is to ignore gateways on any device not marked 'primary'.

Since there is no real 'destintation' (a cidr) for the 'gateway',
we have to interpret 'gateway' as 'default gateway'.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: