cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From René Moser (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-8817) listFirewallRules response JSON startport/endport not an int
Date Mon, 07 Sep 2015 14:11:45 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-8817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

René Moser updated CLOUDSTACK-8817:
-----------------------------------
    Description: 
h2. Summary
listFirewallRules returns endpoint and startpoint values as String.

h2. Excpected results
{code}
{
  "count": 1 
  "firewallrule": [
    {
      "cidrlist": "0.0.0.0/0", 
      "endport": 22, 
      "fordisplay": true, 
      "id": "126dccd4-ed9a-42a5-bd25-204aab8c8f03", 
      "ipaddress": "10.101.0.21", 
      "ipaddressid": "c70e7a84-4fa2-40a0-a70d-f64101663f21", 
      "networkid": "b0c50de4-015e-4b28-a12a-8955698ebc2a", 
      "protocol": "tcp", 
      "startport": 22, 
      "state": "Active", 
      "tags": []
    }
  ]
}
{code}

h2. Actuall results

{code}
{
  "count": 1 
  "firewallrule": [
    {
      "cidrlist": "0.0.0.0/0", 
      "endport": "22", 
      "fordisplay": true, 
      "id": "126dccd4-ed9a-42a5-bd25-204aab8c8f03", 
      "ipaddress": "10.101.0.21", 
      "ipaddressid": "c70e7a84-4fa2-40a0-a70d-f64101663f21", 
      "networkid": "b0c50de4-015e-4b28-a12a-8955698ebc2a", 
      "protocol": "tcp", 
      "startport": "22", 
      "state": "Active", 
      "tags": []
    }
  ]
}
{code}

  was:

## Summary
listFirewallRules returns endpoint and startpoint values as String.

## Excpected results
~~~
{
  "count": 1 
  "firewallrule": [
    {
      "cidrlist": "0.0.0.0/0", 
      "endport": 22, 
      "fordisplay": true, 
      "id": "126dccd4-ed9a-42a5-bd25-204aab8c8f03", 
      "ipaddress": "10.101.0.21", 
      "ipaddressid": "c70e7a84-4fa2-40a0-a70d-f64101663f21", 
      "networkid": "b0c50de4-015e-4b28-a12a-8955698ebc2a", 
      "protocol": "tcp", 
      "startport": 22, 
      "state": "Active", 
      "tags": []
    }
  ]
}
~~~

## Actuall results
~~~
{
  "count": 1 
  "firewallrule": [
    {
      "cidrlist": "0.0.0.0/0", 
      "endport": "22", 
      "fordisplay": true, 
      "id": "126dccd4-ed9a-42a5-bd25-204aab8c8f03", 
      "ipaddress": "10.101.0.21", 
      "ipaddressid": "c70e7a84-4fa2-40a0-a70d-f64101663f21", 
      "networkid": "b0c50de4-015e-4b28-a12a-8955698ebc2a", 
      "protocol": "tcp", 
      "startport": "22", 
      "state": "Active", 
      "tags": []
    }
  ]
}
~~~


> listFirewallRules response JSON startport/endport not an int
> ------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8817
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8817
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.6.0
>            Reporter: René Moser
>            Priority: Trivial
>
> h2. Summary
> listFirewallRules returns endpoint and startpoint values as String.
> h2. Excpected results
> {code}
> {
>   "count": 1 
>   "firewallrule": [
>     {
>       "cidrlist": "0.0.0.0/0", 
>       "endport": 22, 
>       "fordisplay": true, 
>       "id": "126dccd4-ed9a-42a5-bd25-204aab8c8f03", 
>       "ipaddress": "10.101.0.21", 
>       "ipaddressid": "c70e7a84-4fa2-40a0-a70d-f64101663f21", 
>       "networkid": "b0c50de4-015e-4b28-a12a-8955698ebc2a", 
>       "protocol": "tcp", 
>       "startport": 22, 
>       "state": "Active", 
>       "tags": []
>     }
>   ]
> }
> {code}
> h2. Actuall results
> {code}
> {
>   "count": 1 
>   "firewallrule": [
>     {
>       "cidrlist": "0.0.0.0/0", 
>       "endport": "22", 
>       "fordisplay": true, 
>       "id": "126dccd4-ed9a-42a5-bd25-204aab8c8f03", 
>       "ipaddress": "10.101.0.21", 
>       "ipaddressid": "c70e7a84-4fa2-40a0-a70d-f64101663f21", 
>       "networkid": "b0c50de4-015e-4b28-a12a-8955698ebc2a", 
>       "protocol": "tcp", 
>       "startport": "22", 
>       "state": "Active", 
>       "tags": []
>     }
>   ]
> }
> {code}



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

Mime
View raw message