oracle-samples / knife-oci

Chef Knife Plugin for Oracle Cloud Infrastructure
https://cloud.oracle.com/cloud-infrastructure
Other
12 stars 15 forks source link

Server list should include private and public IP addresses #6

Closed briangustafson closed 7 years ago

briangustafson commented 7 years ago

The current summary output of "knife bmcs server list" looks like:

$ knife bmcs server list Display Name ID State
ex_chef_server ocid1.instance.oc1.iad.abuwcljryfnjofebjnadx5rxkthpuystsbivxmtn3wgztzsna2ioql6g22bc RUNNING ex_node1 ocid1.instance.oc1.iad.abuwcljs7elgashma37tr5xfdeqxknmjybsnt2jy6bmrt33ca2tzfzxasgad RUNNING

Using other display modes (--format json/pp/table) will give additional info, but this is simply the contents of the instance model (https://docs.us-phoenix-1.oraclecloud.com/api/#/en/iaas/20160918/Instance/), which does not include IP addresses.

The IP addresses should be particularly useful for users who want to bootstrap existing instances.

Public and private IP addresses should be listed as part of "knife bmcs server list", at least for the summary view. In the case of multiple addresses this may need to be shown as a list within that view.

briangustafson commented 7 years ago

Fixed by @lidl as https://github.com/oracle/knife-bmcs/pull/9.