[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704826#comment-15704826
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9630:
--------------------------------------------

Github user ustcweizhou commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1797#discussion_r89973281
  
    --- Diff: server/src/com/cloud/api/ApiResponseHelper.java ---
    @@ -3461,10 +3470,21 @@ public NicResponse createNicResponse(Nic result) {
             response.setNetmask(result.getIPv4Netmask());
             response.setMacAddress(result.getMacAddress());
     
    +        if (result.getBroadcastUri() != null) {
    +            response.setBroadcastUri(result.getBroadcastUri().toString());
    --- End diff --
    
    should these two only be visible for root admin?


> Cannot use listNics API as advertised
> -------------------------------------
>
>                 Key: CLOUDSTACK-9630
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9630
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Sudhansu Sahu
>
> listNics API for a VM, "type" was not returned within API response. 
> EXPECTED BEHAVIOR
> ==================
> The listNics API response return type of NIC (type), as specified in 
> https://cloudstack.apache.org/api/apidocs-4.8/user/listNics.html
>  
> ACTUAL BEHAVIOR
> ==================
> The listNics API response does not return type of NIC.
> (local) 🐵 > list nics virtualmachineid=a69edaf5-8f21-41ff-8c05-263dc4bd5354 
> count = 1
> nic:
> id = 211e0d46-6b94-4425-99f7-e8e9efea2472
> deviceid = 0
> gateway = 10.1.1.1
> ipaddress = 10.1.1.45
> isdefault = True
> macaddress = 02:00:06:f6:00:01
> netmask = 255.255.255.0
> networkid = c08fddf1-fd77-4810-a062-ea9d03c5c7e6
> virtualmachineid = a69edaf5-8f21-41ff-8c05-263dc4bd5354
>  
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to