~raharper/cloud-init/trunk.smartos-sdc-nics-fix

Viewing all changes in revision 1243.

  • Committer: Ryan Harper
  • Date: 2016-06-17 15:00:09 UTC
  • Revision ID: ryan.harper@canonical.com-20160617150009-vl6wwb0lk284zqu8
smartos: update sdc:nics json conversion to network config

Update sdc:nics json conversion to network yaml.
 - 'primary' key is a boolean, when true, the 'gateways' key is to be used
 - a nic may not include a 'gateways' key
 - 'ips' list may include 'dhcp'
 - values in 'ips' are in CIDR notation, drop/ignore netmask values

Add additional test-cases for coverage.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: