{"action":"created","comment":{"url":"https://api.github.com/repos/subutai-io/base/pulls/comments/89716376","pull_request_review_id":10253673,"id":89716376,"diff_hunk":"@@ -159,4 +161,23 @@ public static TunnelInfoDto parseResult( String link, String result, ConfigManag\n         }\n         return tunnelInfoDto;\n     }\n+\n+\n+    public static void deleteAllTunnelsForIp( final Set<ResourceHost> resourceHosts, final String ip )\n+    {\n+        String deleteTunnelCMD = \"subutai tunnel del %s\";\n+\n+        ResourceHost resourceHost = resourceHosts.iterator().next();\n+\n+        CommandResult result =\n+                execute( resourceHost, String.format( \"subutai tunnel list | grep %s | awk '{print $2}'\", ip ) );","path":"management/server/core/hub-manager/hub-manager-impl/src/main/java/io/subutai/core/hubmanager/impl/tunnel/TunnelHelper.java","position":22,"original_position":22,"commit_id":"3e1f8cfbc9235cc296931174b28579bed7a3109d","original_commit_id":"3e1f8cfbc9235cc296931174b28579bed7a3109d","user":{"login":"Dilshat","id":3367326,"avatar_url":"https://avatars.githubusercontent.com/u/3367326?v=3","gravatar_id":"","url":"https://api.github.com/users/Dilshat","html_url":"https://github.com/Dilshat","followers_url":"https://api.github.com/users/Dilshat/followers","following_url":"https://api.github.com/users/Dilshat/following{/other_user}","gists_url":"https://api.github.com/users/Dilshat/gists{/gist_id}","starred_url":"https://api.github.com/users/Dilshat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dilshat/subscriptions","organizations_url":"https://api.github.com/users/Dilshat/orgs","repos_url":"https://api.github.com/users/Dilshat/repos","events_url":"https://api.github.com/users/Dilshat/events{/privacy}","received_events_url":"https://api.github.com/users/Dilshat/received_events","type":"User","site_admin":false},"body":"Please extract this command into static final String","created_at":"2016-11-28T04:21:33Z","updated_at":"2016-11-28T04:21:33Z","html_url":"https://github.com/subutai-io/base/pull/1502#discussion_r89716376","pull_request_url":"https://api.github.com/repos/subutai-io/base/pulls/1502","_links":{"self":{"href":"https://api.github.com/repos/subutai-io/base/pulls/comments/89716376"},"html":{"href":"https://github.com/subutai-io/base/pull/1502#discussion_r89716376"},"pull_request":{"href":"https://api.github.com/repos/subutai-io/base/pulls/1502"}}},"pull_request":{"url":"https://api.github.com/repos/subutai-io/base/pulls/1502","id":95405175,"html_url":"https://github.com/subutai-io/base/pull/1502","diff_url":"https://github.com/subutai-io/base/pull/1502.diff","patch_url":"https://github.com/subutai-io/base/pull/1502.patch","issue_url":"https://api.github.com/repos/subutai-io/base/issues/1502","number":1502,"state":"open","locked":false,"title":"Tunnel fixes","user":{"login":"absidish","id":8696139,"avatar_url":"https://avatars.githubusercontent.com/u/8696139?v=3","gravatar_id":"","url":"https://api.github.com/users/absidish","html_url":"https://github.com/absidish","followers_url":"https://api.github.com/users/absidish/followers","following_url":"https://api.github.com/users/absidish/following{/other_user}","gists_url":"https://api.github.com/users/absidish/gists{/gist_id}","starred_url":"https://api.github.com/users/absidish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/absidish/subscriptions","organizations_url":"https://api.github.com/users/absidish/orgs","repos_url":"https://api.github.com/users/absidish/repos","events_url":"https://api.github.com/users/absidish/events{/privacy}","received_events_url":"https://api.github.com/users/absidish/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-27T14:55:37Z","updated_at":"2016-11-28T04:21:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa9e898815e951b1d1f1fa8f01239cbb3c4fdf54","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/subutai-io/base/pulls/1502/commits","review_comments_url":"https://api.github.com/repos/subutai-io/base/pulls/1502/comments","review_comment_url":"https://api.github.com/repos/subutai-io/base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/subutai-io/base/issues/1502/comments","statuses_url":"https://api.github.com/repos/subutai-io/base/statuses/3e1f8cfbc9235cc296931174b28579bed7a3109d","head":{"label":"subutai-io:tunnel-fixes","ref":"tunnel-fixes","sha":"3e1f8cfbc9235cc296931174b28579bed7a3109d","user":{"login":"subutai-io","id":16947005,"avatar_url":"https://avatars.githubusercontent.com/u/16947005?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai-io","html_url":"https://github.com/subutai-io","followers_url":"https://api.github.com/users/subutai-io/followers","following_url":"https://api.github.com/users/subutai-io/following{/other_user}","gists_url":"https://api.github.com/users/subutai-io/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai-io/subscriptions","organizations_url":"https://api.github.com/users/subutai-io/orgs","repos_url":"https://api.github.com/users/subutai-io/repos","events_url":"https://api.github.com/users/subutai-io/events{/privacy}","received_events_url":"https://api.github.com/users/subutai-io/received_events","type":"Organization","site_admin":false},"repo":{"id":50718196,"name":"base","full_name":"subutai-io/base","owner":{"login":"subutai-io","id":16947005,"avatar_url":"https://avatars.githubusercontent.com/u/16947005?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai-io","html_url":"https://github.com/subutai-io","followers_url":"https://api.github.com/users/subutai-io/followers","following_url":"https://api.github.com/users/subutai-io/following{/other_user}","gists_url":"https://api.github.com/users/subutai-io/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai-io/subscriptions","organizations_url":"https://api.github.com/users/subutai-io/orgs","repos_url":"https://api.github.com/users/subutai-io/repos","events_url":"https://api.github.com/users/subutai-io/events{/privacy}","received_events_url":"https://api.github.com/users/subutai-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/subutai-io/base","description":"Subutai is a next generation peer to peer (P2P) cloud computing and Internet of Thing platform. Subutai peers collaborate and share resources to create secure virtual environments tying together the shared network and machine resources across peers.","fork":false,"url":"https://api.github.com/repos/subutai-io/base","forks_url":"https://api.github.com/repos/subutai-io/base/forks","keys_url":"https://api.github.com/repos/subutai-io/base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/subutai-io/base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/subutai-io/base/teams","hooks_url":"https://api.github.com/repos/subutai-io/base/hooks","issue_events_url":"https://api.github.com/repos/subutai-io/base/issues/events{/number}","events_url":"https://api.github.com/repos/subutai-io/base/events","assignees_url":"https://api.github.com/repos/subutai-io/base/assignees{/user}","branches_url":"https://api.github.com/repos/subutai-io/base/branches{/branch}","tags_url":"https://api.github.com/repos/subutai-io/base/tags","blobs_url":"https://api.github.com/repos/subutai-io/base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/subutai-io/base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/subutai-io/base/git/refs{/sha}","trees_url":"https://api.github.com/repos/subutai-io/base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/subutai-io/base/statuses/{sha}","languages_url":"https://api.github.com/repos/subutai-io/base/languages","stargazers_url":"https://api.github.com/repos/subutai-io/base/stargazers","contributors_url":"https://api.github.com/repos/subutai-io/base/contributors","subscribers_url":"https://api.github.com/repos/subutai-io/base/subscribers","subscription_url":"https://api.github.com/repos/subutai-io/base/subscription","commits_url":"https://api.github.com/repos/subutai-io/base/commits{/sha}","git_commits_url":"https://api.github.com/repos/subutai-io/base/git/commits{/sha}","comments_url":"https://api.github.com/repos/subutai-io/base/comments{/number}","issue_comment_url":"https://api.github.com/repos/subutai-io/base/issues/comments{/number}","contents_url":"https://api.github.com/repos/subutai-io/base/contents/{+path}","compare_url":"https://api.github.com/repos/subutai-io/base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/subutai-io/base/merges","archive_url":"https://api.github.com/repos/subutai-io/base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/subutai-io/base/downloads","issues_url":"https://api.github.com/repos/subutai-io/base/issues{/number}","pulls_url":"https://api.github.com/repos/subutai-io/base/pulls{/number}","milestones_url":"https://api.github.com/repos/subutai-io/base/milestones{/number}","notifications_url":"https://api.github.com/repos/subutai-io/base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/subutai-io/base/labels{/name}","releases_url":"https://api.github.com/repos/subutai-io/base/releases{/id}","deployments_url":"https://api.github.com/repos/subutai-io/base/deployments","created_at":"2016-01-30T09:26:02Z","updated_at":"2016-11-26T16:37:18Z","pushed_at":"2016-11-28T04:12:47Z","git_url":"git://github.com/subutai-io/base.git","ssh_url":"git@github.com:subutai-io/base.git","clone_url":"https://github.com/subutai-io/base.git","svn_url":"https://github.com/subutai-io/base","homepage":"https://subutai.io","size":113111,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":41,"forks":9,"open_issues":41,"watchers":17,"default_branch":"master"}},"base":{"label":"subutai-io:dev","ref":"dev","sha":"74692d09494b3973bbc84ce79bdd36c636175d9f","user":{"login":"subutai-io","id":16947005,"avatar_url":"https://avatars.githubusercontent.com/u/16947005?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai-io","html_url":"https://github.com/subutai-io","followers_url":"https://api.github.com/users/subutai-io/followers","following_url":"https://api.github.com/users/subutai-io/following{/other_user}","gists_url":"https://api.github.com/users/subutai-io/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai-io/subscriptions","organizations_url":"https://api.github.com/users/subutai-io/orgs","repos_url":"https://api.github.com/users/subutai-io/repos","events_url":"https://api.github.com/users/subutai-io/events{/privacy}","received_events_url":"https://api.github.com/users/subutai-io/received_events","type":"Organization","site_admin":false},"repo":{"id":50718196,"name":"base","full_name":"subutai-io/base","owner":{"login":"subutai-io","id":16947005,"avatar_url":"https://avatars.githubusercontent.com/u/16947005?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai-io","html_url":"https://github.com/subutai-io","followers_url":"https://api.github.com/users/subutai-io/followers","following_url":"https://api.github.com/users/subutai-io/following{/other_user}","gists_url":"https://api.github.com/users/subutai-io/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai-io/subscriptions","organizations_url":"https://api.github.com/users/subutai-io/orgs","repos_url":"https://api.github.com/users/subutai-io/repos","events_url":"https://api.github.com/users/subutai-io/events{/privacy}","received_events_url":"https://api.github.com/users/subutai-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/subutai-io/base","description":"Subutai is a next generation peer to peer (P2P) cloud computing and Internet of Thing platform. Subutai peers collaborate and share resources to create secure virtual environments tying together the shared network and machine resources across peers.","fork":false,"url":"https://api.github.com/repos/subutai-io/base","forks_url":"https://api.github.com/repos/subutai-io/base/forks","keys_url":"https://api.github.com/repos/subutai-io/base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/subutai-io/base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/subutai-io/base/teams","hooks_url":"https://api.github.com/repos/subutai-io/base/hooks","issue_events_url":"https://api.github.com/repos/subutai-io/base/issues/events{/number}","events_url":"https://api.github.com/repos/subutai-io/base/events","assignees_url":"https://api.github.com/repos/subutai-io/base/assignees{/user}","branches_url":"https://api.github.com/repos/subutai-io/base/branches{/branch}","tags_url":"https://api.github.com/repos/subutai-io/base/tags","blobs_url":"https://api.github.com/repos/subutai-io/base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/subutai-io/base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/subutai-io/base/git/refs{/sha}","trees_url":"https://api.github.com/repos/subutai-io/base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/subutai-io/base/statuses/{sha}","languages_url":"https://api.github.com/repos/subutai-io/base/languages","stargazers_url":"https://api.github.com/repos/subutai-io/base/stargazers","contributors_url":"https://api.github.com/repos/subutai-io/base/contributors","subscribers_url":"https://api.github.com/repos/subutai-io/base/subscribers","subscription_url":"https://api.github.com/repos/subutai-io/base/subscription","commits_url":"https://api.github.com/repos/subutai-io/base/commits{/sha}","git_commits_url":"https://api.github.com/repos/subutai-io/base/git/commits{/sha}","comments_url":"https://api.github.com/repos/subutai-io/base/comments{/number}","issue_comment_url":"https://api.github.com/repos/subutai-io/base/issues/comments{/number}","contents_url":"https://api.github.com/repos/subutai-io/base/contents/{+path}","compare_url":"https://api.github.com/repos/subutai-io/base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/subutai-io/base/merges","archive_url":"https://api.github.com/repos/subutai-io/base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/subutai-io/base/downloads","issues_url":"https://api.github.com/repos/subutai-io/base/issues{/number}","pulls_url":"https://api.github.com/repos/subutai-io/base/pulls{/number}","milestones_url":"https://api.github.com/repos/subutai-io/base/milestones{/number}","notifications_url":"https://api.github.com/repos/subutai-io/base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/subutai-io/base/labels{/name}","releases_url":"https://api.github.com/repos/subutai-io/base/releases{/id}","deployments_url":"https://api.github.com/repos/subutai-io/base/deployments","created_at":"2016-01-30T09:26:02Z","updated_at":"2016-11-26T16:37:18Z","pushed_at":"2016-11-28T04:12:47Z","git_url":"git://github.com/subutai-io/base.git","ssh_url":"git@github.com:subutai-io/base.git","clone_url":"https://github.com/subutai-io/base.git","svn_url":"https://github.com/subutai-io/base","homepage":"https://subutai.io","size":113111,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":41,"forks":9,"open_issues":41,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/subutai-io/base/pulls/1502"},"html":{"href":"https://github.com/subutai-io/base/pull/1502"},"issue":{"href":"https://api.github.com/repos/subutai-io/base/issues/1502"},"comments":{"href":"https://api.github.com/repos/subutai-io/base/issues/1502/comments"},"review_comments":{"href":"https://api.github.com/repos/subutai-io/base/pulls/1502/comments"},"review_comment":{"href":"https://api.github.com/repos/subutai-io/base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/subutai-io/base/pulls/1502/commits"},"statuses":{"href":"https://api.github.com/repos/subutai-io/base/statuses/3e1f8cfbc9235cc296931174b28579bed7a3109d"}}}}
{"actor":{"display_login":"Dilshat"}}