{"action":"created","comment":{"url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/comments/33932791","id":33932791,"diff_hunk":"@@ -834,16 +834,16 @@ def show(uuid=nil)\n Network UUID:\n   <%= nw.canonical_uuid %>\n Dynamic IP Address Range:\n-<%- unless nw.ipv4_u32_dynamic_range_array.empty? -%>\n-  <%= IPAddress::IPv4::parse_u32(nw.ipv4_u32_dynamic_range_array.shift) %> - <%= IPAddress::IPv4::parse_u32(nw.ipv4_u32_dynamic_range_array.last) %>\n-<%- end -%>\n+<%- nw.dhcp_range_dataset.each { |r| -%>\n+  <%= r.range_begin.to_s %> - <%= r.range_end.to_s %>\n+<%- }\n __END\n       else\n         cond = {}\n         nw = M::Network.filter(cond).all\n         print ERB.new(<<__END, nil, '-').result(binding)\n <%- nw.each { |row| -%>\n-<%= row.canonical_uuid %>\\t<%= IPAddress::IPv4::parse_u32(row.ipv4_u32_dynamic_range_array.shift) %>\\t<%= IPAddress::IPv4::parse_u32(row.ipv4_u32_dynamic_range_array.last) %>\n+<%= row.canonical_uuid %>\\t<%= r.dhcp_range_dataset.count %>","path":"dcmgr/lib/dcmgr/cli/network.rb","position":17,"original_position":17,"commit_id":"ef69897a0e0965de25e862ac0f095226e112c56d","original_commit_id":"ef69897a0e0965de25e862ac0f095226e112c56d","user":{"login":"hansode","id":76867,"avatar_url":"https://avatars.githubusercontent.com/u/76867?v=3","gravatar_id":"","url":"https://api.github.com/users/hansode","html_url":"https://github.com/hansode","followers_url":"https://api.github.com/users/hansode/followers","following_url":"https://api.github.com/users/hansode/following{/other_user}","gists_url":"https://api.github.com/users/hansode/gists{/gist_id}","starred_url":"https://api.github.com/users/hansode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansode/subscriptions","organizations_url":"https://api.github.com/users/hansode/orgs","repos_url":"https://api.github.com/users/hansode/repos","events_url":"https://api.github.com/users/hansode/events{/privacy}","received_events_url":"https://api.github.com/users/hansode/received_events","type":"User","site_admin":false},"body":"it must keep output format.","created_at":"2015-07-06T13:24:14Z","updated_at":"2015-07-06T13:24:14Z","html_url":"https://github.com/axsh/wakame-vdc/pull/618#discussion_r33932791","pull_request_url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618","_links":{"self":{"href":"https://api.github.com/repos/axsh/wakame-vdc/pulls/comments/33932791"},"html":{"href":"https://github.com/axsh/wakame-vdc/pull/618#discussion_r33932791"},"pull_request":{"href":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618"}}},"pull_request":{"url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618","id":37659682,"html_url":"https://github.com/axsh/wakame-vdc/pull/618","diff_url":"https://github.com/axsh/wakame-vdc/pull/618.diff","patch_url":"https://github.com/axsh/wakame-vdc/pull/618.patch","issue_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/618","number":618,"state":"closed","locked":false,"title":"Fix vdcmgr dhcp show","user":{"login":"Metallion","id":629110,"avatar_url":"https://avatars.githubusercontent.com/u/629110?v=3","gravatar_id":"","url":"https://api.github.com/users/Metallion","html_url":"https://github.com/Metallion","followers_url":"https://api.github.com/users/Metallion/followers","following_url":"https://api.github.com/users/Metallion/following{/other_user}","gists_url":"https://api.github.com/users/Metallion/gists{/gist_id}","starred_url":"https://api.github.com/users/Metallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metallion/subscriptions","organizations_url":"https://api.github.com/users/Metallion/orgs","repos_url":"https://api.github.com/users/Metallion/repos","events_url":"https://api.github.com/users/Metallion/events{/privacy}","received_events_url":"https://api.github.com/users/Metallion/received_events","type":"User","site_admin":false},"body":"Same as https://github.com/axsh/wakame-vdc/pull/595 but merging to `develop` instead of `master`.","created_at":"2015-06-15T05:39:03Z","updated_at":"2015-07-06T13:24:14Z","closed_at":"2015-06-15T05:39:29Z","merged_at":"2015-06-15T05:39:29Z","merge_commit_sha":"63087efa81dd4c8fc854339a7776101e9d1ad393","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618/commits","review_comments_url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618/comments","review_comment_url":"https://api.github.com/repos/axsh/wakame-vdc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/618/comments","statuses_url":"https://api.github.com/repos/axsh/wakame-vdc/statuses/ef69897a0e0965de25e862ac0f095226e112c56d","head":{"label":"axsh:fix-vdcmgr-dhcp-show","ref":"fix-vdcmgr-dhcp-show","sha":"ef69897a0e0965de25e862ac0f095226e112c56d","user":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"repo":{"id":610415,"name":"wakame-vdc","full_name":"axsh/wakame-vdc","owner":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/axsh/wakame-vdc","description":" Datacenter Hypervisor - Open Source Cloud Computing / IaaS","fork":false,"url":"https://api.github.com/repos/axsh/wakame-vdc","forks_url":"https://api.github.com/repos/axsh/wakame-vdc/forks","keys_url":"https://api.github.com/repos/axsh/wakame-vdc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/axsh/wakame-vdc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/axsh/wakame-vdc/teams","hooks_url":"https://api.github.com/repos/axsh/wakame-vdc/hooks","issue_events_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/events{/number}","events_url":"https://api.github.com/repos/axsh/wakame-vdc/events","assignees_url":"https://api.github.com/repos/axsh/wakame-vdc/assignees{/user}","branches_url":"https://api.github.com/repos/axsh/wakame-vdc/branches{/branch}","tags_url":"https://api.github.com/repos/axsh/wakame-vdc/tags","blobs_url":"https://api.github.com/repos/axsh/wakame-vdc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/axsh/wakame-vdc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/axsh/wakame-vdc/git/refs{/sha}","trees_url":"https://api.github.com/repos/axsh/wakame-vdc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/axsh/wakame-vdc/statuses/{sha}","languages_url":"https://api.github.com/repos/axsh/wakame-vdc/languages","stargazers_url":"https://api.github.com/repos/axsh/wakame-vdc/stargazers","contributors_url":"https://api.github.com/repos/axsh/wakame-vdc/contributors","subscribers_url":"https://api.github.com/repos/axsh/wakame-vdc/subscribers","subscription_url":"https://api.github.com/repos/axsh/wakame-vdc/subscription","commits_url":"https://api.github.com/repos/axsh/wakame-vdc/commits{/sha}","git_commits_url":"https://api.github.com/repos/axsh/wakame-vdc/git/commits{/sha}","comments_url":"https://api.github.com/repos/axsh/wakame-vdc/comments{/number}","issue_comment_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/comments{/number}","contents_url":"https://api.github.com/repos/axsh/wakame-vdc/contents/{+path}","compare_url":"https://api.github.com/repos/axsh/wakame-vdc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/axsh/wakame-vdc/merges","archive_url":"https://api.github.com/repos/axsh/wakame-vdc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/axsh/wakame-vdc/downloads","issues_url":"https://api.github.com/repos/axsh/wakame-vdc/issues{/number}","pulls_url":"https://api.github.com/repos/axsh/wakame-vdc/pulls{/number}","milestones_url":"https://api.github.com/repos/axsh/wakame-vdc/milestones{/number}","notifications_url":"https://api.github.com/repos/axsh/wakame-vdc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/axsh/wakame-vdc/labels{/name}","releases_url":"https://api.github.com/repos/axsh/wakame-vdc/releases{/id}","created_at":"2010-04-14T16:46:01Z","updated_at":"2015-07-06T05:18:56Z","pushed_at":"2015-07-06T11:27:02Z","git_url":"git://github.com/axsh/wakame-vdc.git","ssh_url":"git@github.com:axsh/wakame-vdc.git","clone_url":"https://github.com/axsh/wakame-vdc.git","svn_url":"https://github.com/axsh/wakame-vdc","homepage":"http://wakame-vdc.org","size":57624,"stargazers_count":97,"watchers_count":97,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":25,"mirror_url":null,"open_issues_count":72,"forks":25,"open_issues":72,"watchers":97,"default_branch":"develop"}},"base":{"label":"axsh:develop","ref":"develop","sha":"1931e3e1c450ff4b05f9470b1abb29e86534e19a","user":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"repo":{"id":610415,"name":"wakame-vdc","full_name":"axsh/wakame-vdc","owner":{"login":"axsh","id":95230,"avatar_url":"https://avatars.githubusercontent.com/u/95230?v=3","gravatar_id":"","url":"https://api.github.com/users/axsh","html_url":"https://github.com/axsh","followers_url":"https://api.github.com/users/axsh/followers","following_url":"https://api.github.com/users/axsh/following{/other_user}","gists_url":"https://api.github.com/users/axsh/gists{/gist_id}","starred_url":"https://api.github.com/users/axsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axsh/subscriptions","organizations_url":"https://api.github.com/users/axsh/orgs","repos_url":"https://api.github.com/users/axsh/repos","events_url":"https://api.github.com/users/axsh/events{/privacy}","received_events_url":"https://api.github.com/users/axsh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/axsh/wakame-vdc","description":" Datacenter Hypervisor - Open Source Cloud Computing / IaaS","fork":false,"url":"https://api.github.com/repos/axsh/wakame-vdc","forks_url":"https://api.github.com/repos/axsh/wakame-vdc/forks","keys_url":"https://api.github.com/repos/axsh/wakame-vdc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/axsh/wakame-vdc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/axsh/wakame-vdc/teams","hooks_url":"https://api.github.com/repos/axsh/wakame-vdc/hooks","issue_events_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/events{/number}","events_url":"https://api.github.com/repos/axsh/wakame-vdc/events","assignees_url":"https://api.github.com/repos/axsh/wakame-vdc/assignees{/user}","branches_url":"https://api.github.com/repos/axsh/wakame-vdc/branches{/branch}","tags_url":"https://api.github.com/repos/axsh/wakame-vdc/tags","blobs_url":"https://api.github.com/repos/axsh/wakame-vdc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/axsh/wakame-vdc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/axsh/wakame-vdc/git/refs{/sha}","trees_url":"https://api.github.com/repos/axsh/wakame-vdc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/axsh/wakame-vdc/statuses/{sha}","languages_url":"https://api.github.com/repos/axsh/wakame-vdc/languages","stargazers_url":"https://api.github.com/repos/axsh/wakame-vdc/stargazers","contributors_url":"https://api.github.com/repos/axsh/wakame-vdc/contributors","subscribers_url":"https://api.github.com/repos/axsh/wakame-vdc/subscribers","subscription_url":"https://api.github.com/repos/axsh/wakame-vdc/subscription","commits_url":"https://api.github.com/repos/axsh/wakame-vdc/commits{/sha}","git_commits_url":"https://api.github.com/repos/axsh/wakame-vdc/git/commits{/sha}","comments_url":"https://api.github.com/repos/axsh/wakame-vdc/comments{/number}","issue_comment_url":"https://api.github.com/repos/axsh/wakame-vdc/issues/comments{/number}","contents_url":"https://api.github.com/repos/axsh/wakame-vdc/contents/{+path}","compare_url":"https://api.github.com/repos/axsh/wakame-vdc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/axsh/wakame-vdc/merges","archive_url":"https://api.github.com/repos/axsh/wakame-vdc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/axsh/wakame-vdc/downloads","issues_url":"https://api.github.com/repos/axsh/wakame-vdc/issues{/number}","pulls_url":"https://api.github.com/repos/axsh/wakame-vdc/pulls{/number}","milestones_url":"https://api.github.com/repos/axsh/wakame-vdc/milestones{/number}","notifications_url":"https://api.github.com/repos/axsh/wakame-vdc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/axsh/wakame-vdc/labels{/name}","releases_url":"https://api.github.com/repos/axsh/wakame-vdc/releases{/id}","created_at":"2010-04-14T16:46:01Z","updated_at":"2015-07-06T05:18:56Z","pushed_at":"2015-07-06T11:27:02Z","git_url":"git://github.com/axsh/wakame-vdc.git","ssh_url":"git@github.com:axsh/wakame-vdc.git","clone_url":"https://github.com/axsh/wakame-vdc.git","svn_url":"https://github.com/axsh/wakame-vdc","homepage":"http://wakame-vdc.org","size":57624,"stargazers_count":97,"watchers_count":97,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":25,"mirror_url":null,"open_issues_count":72,"forks":25,"open_issues":72,"watchers":97,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618"},"html":{"href":"https://github.com/axsh/wakame-vdc/pull/618"},"issue":{"href":"https://api.github.com/repos/axsh/wakame-vdc/issues/618"},"comments":{"href":"https://api.github.com/repos/axsh/wakame-vdc/issues/618/comments"},"review_comments":{"href":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618/comments"},"review_comment":{"href":"https://api.github.com/repos/axsh/wakame-vdc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/axsh/wakame-vdc/pulls/618/commits"},"statuses":{"href":"https://api.github.com/repos/axsh/wakame-vdc/statuses/ef69897a0e0965de25e862ac0f095226e112c56d"}}}}