{"action":"created","issue":{"url":"https://api.github.com/repos/digitalocean/godo/issues/149","repository_url":"https://api.github.com/repos/digitalocean/godo","labels_url":"https://api.github.com/repos/digitalocean/godo/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/digitalocean/godo/issues/149/comments","events_url":"https://api.github.com/repos/digitalocean/godo/issues/149/events","html_url":"https://github.com/digitalocean/godo/issues/149","id":250775281,"number":149,"title":"Firewall portrange inconsistent for create and list","user":{"login":"prateekgogia","id":5033759,"avatar_url":"https://avatars3.githubusercontent.com/u/5033759?v=4","gravatar_id":"","url":"https://api.github.com/users/prateekgogia","html_url":"https://github.com/prateekgogia","followers_url":"https://api.github.com/users/prateekgogia/followers","following_url":"https://api.github.com/users/prateekgogia/following{/other_user}","gists_url":"https://api.github.com/users/prateekgogia/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekgogia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekgogia/subscriptions","organizations_url":"https://api.github.com/users/prateekgogia/orgs","repos_url":"https://api.github.com/users/prateekgogia/repos","events_url":"https://api.github.com/users/prateekgogia/events{/privacy}","received_events_url":"https://api.github.com/users/prateekgogia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-16T22:12:20Z","updated_at":"2017-08-17T15:40:19Z","closed_at":null,"body":"When using the `Firewalls.Create` command, it doesn't accept TCP port range to be 0, needs to be `all`. Doing a list of firewalls, returns portRange to be \"all\", instead of 0. This makes it harder to reconcile, whether configuration is consistent and on the client side needs to create a mapping to create with portRange set to `all,` and expect return to be set to 0.\r\n```\r\n Sample response after creating a firewall --\r\ngodo.InboundRule{Protocol:\"tcp\", PortRange:\"0\", Sources:godo.Sources{Addresses:[\"0.0.0.0/0\"]}}]\r\n```\r\n```\r\n Sample request for creating a firewall --\r\ngodo.InboundRule{Protocol:\"tcp\", PortRange:\"all\", Sources:godo.Sources{Addresses:[\"0.0.0.0/0\"]}}]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/digitalocean/godo/issues/comments/323111148","html_url":"https://github.com/digitalocean/godo/issues/149#issuecomment-323111148","issue_url":"https://api.github.com/repos/digitalocean/godo/issues/149","id":323111148,"user":{"login":"viola","id":63791,"avatar_url":"https://avatars1.githubusercontent.com/u/63791?v=4","gravatar_id":"","url":"https://api.github.com/users/viola","html_url":"https://github.com/viola","followers_url":"https://api.github.com/users/viola/followers","following_url":"https://api.github.com/users/viola/following{/other_user}","gists_url":"https://api.github.com/users/viola/gists{/gist_id}","starred_url":"https://api.github.com/users/viola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viola/subscriptions","organizations_url":"https://api.github.com/users/viola/orgs","repos_url":"https://api.github.com/users/viola/repos","events_url":"https://api.github.com/users/viola/events{/privacy}","received_events_url":"https://api.github.com/users/viola/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T15:40:19Z","updated_at":"2017-08-17T15:40:19Z","body":"@prateekgogia thank you for raising this issue. We're actively looking into it and discussing a solution. We'll keep you updated when a fix is in place."}}
{"actor":{"display_login":"viola"}}