PUBAPI-1286: primaryIp field is empty if instance has only a single fabric interface

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2016-04-12T18:26:32.000Z
Updated at:2017-11-03T23:15:02.909Z

People

Created by:Former user
Reported by:Brian Bennett

Resolution

Duplicate: The problem is a duplicate of an existing issue.
(Resolution Date: 2016-11-25T17:48:55.000Z)

Related Issues

Description

Instance 20df4633-59f1-4559-8240-6c15aea4d50b in sw1

Via cloudapi

Phoenix:~] triton -p sw1 -a joyent_ops inst get 20df4633-59f1-4559-8240-6c15aea4d50b | json -i ips primaryIp 
[ '192.168.128.6' ]
''

Via vmapi

[ { interface: 'net0',
    mac: '90:b8:d0:28:45:2f',
    vlan_id: 2,
    nic_tag: 'sdc_overlay/14746453',
    gateway: '192.168.128.1',
    gateways: [ '192.168.128.1' ],
    netmask: '255.255.252.0',
    ip: '192.168.128.6',
    ips: [ '192.168.128.6/22' ],
    network_uuid: 'fd1c2494-15df-4195-9104-488eb6140b0e',
    mtu: 8500,
    primary: true } ]

Comments