{"action":"created","comment":{"url":"https://api.github.com/repos/joyent/sdc-adminui/pulls/comments/71714735","id":71714735,"diff_hunk":"@@ -121,6 +121,23 @@ function list(req, res, next) {\n                 } ]));\n         }\n         return listVmsWithIP(ip);\n+    } else if (params.mac) {\n+        req.sdc[req.dc].napi.getNic(params.mac, function (error, nic) {\n+            if (error) {\n+                return next(error);\n+            }\n+            var vmUuid = nic.belongs_to_uuid;\n+            if (vmUuid) {\n+                return req.sdc[req.dc].vmapi.getVm({uuid: vmUuid}, function (error, vm) {\n+                    if (error) {\n+                        return next(error);\n+                    }\n+                    res.send([vm]);\n+                    next();","path":"lib/vms.js","position":16,"original_position":16,"commit_id":"601a5d81b4e131f0a89c8ddb79a7eaac9179dd76","original_commit_id":"601a5d81b4e131f0a89c8ddb79a7eaac9179dd76","user":{"login":"dan-luk","id":5175301,"avatar_url":"https://avatars.githubusercontent.com/u/5175301?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-luk","html_url":"https://github.com/dan-luk","followers_url":"https://api.github.com/users/dan-luk/followers","following_url":"https://api.github.com/users/dan-luk/following{/other_user}","gists_url":"https://api.github.com/users/dan-luk/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-luk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-luk/subscriptions","organizations_url":"https://api.github.com/users/dan-luk/orgs","repos_url":"https://api.github.com/users/dan-luk/repos","events_url":"https://api.github.com/users/dan-luk/events{/privacy}","received_events_url":"https://api.github.com/users/dan-luk/received_events","type":"User","site_admin":false},"body":"return","created_at":"2016-07-21T14:24:35Z","updated_at":"2016-07-21T14:24:35Z","html_url":"https://github.com/joyent/sdc-adminui/pull/214#discussion_r71714735","pull_request_url":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214","_links":{"self":{"href":"https://api.github.com/repos/joyent/sdc-adminui/pulls/comments/71714735"},"html":{"href":"https://github.com/joyent/sdc-adminui/pull/214#discussion_r71714735"},"pull_request":{"href":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214","id":78178581,"html_url":"https://github.com/joyent/sdc-adminui/pull/214","diff_url":"https://github.com/joyent/sdc-adminui/pull/214.diff","patch_url":"https://github.com/joyent/sdc-adminui/pull/214.patch","issue_url":"https://api.github.com/repos/joyent/sdc-adminui/issues/214","number":214,"state":"open","locked":false,"title":"ADMINUI-2315 Make MAC addresses searchable in AdminUI","user":{"login":"Arc311","id":8842416,"avatar_url":"https://avatars.githubusercontent.com/u/8842416?v=3","gravatar_id":"","url":"https://api.github.com/users/Arc311","html_url":"https://github.com/Arc311","followers_url":"https://api.github.com/users/Arc311/followers","following_url":"https://api.github.com/users/Arc311/following{/other_user}","gists_url":"https://api.github.com/users/Arc311/gists{/gist_id}","starred_url":"https://api.github.com/users/Arc311/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arc311/subscriptions","organizations_url":"https://api.github.com/users/Arc311/orgs","repos_url":"https://api.github.com/users/Arc311/repos","events_url":"https://api.github.com/users/Arc311/events{/privacy}","received_events_url":"https://api.github.com/users/Arc311/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-20T16:31:02Z","updated_at":"2016-07-21T14:24:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d8a535da997b4d03e23cd353d8a7e0a4300320e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214/commits","review_comments_url":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214/comments","review_comment_url":"https://api.github.com/repos/joyent/sdc-adminui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joyent/sdc-adminui/issues/214/comments","statuses_url":"https://api.github.com/repos/joyent/sdc-adminui/statuses/601a5d81b4e131f0a89c8ddb79a7eaac9179dd76","head":{"label":"dan-luk:dev-2315","ref":"dev-2315","sha":"601a5d81b4e131f0a89c8ddb79a7eaac9179dd76","user":{"login":"dan-luk","id":5175301,"avatar_url":"https://avatars.githubusercontent.com/u/5175301?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-luk","html_url":"https://github.com/dan-luk","followers_url":"https://api.github.com/users/dan-luk/followers","following_url":"https://api.github.com/users/dan-luk/following{/other_user}","gists_url":"https://api.github.com/users/dan-luk/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-luk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-luk/subscriptions","organizations_url":"https://api.github.com/users/dan-luk/orgs","repos_url":"https://api.github.com/users/dan-luk/repos","events_url":"https://api.github.com/users/dan-luk/events{/privacy}","received_events_url":"https://api.github.com/users/dan-luk/received_events","type":"User","site_admin":false},"repo":{"id":35810925,"name":"sdc-adminui","full_name":"dan-luk/sdc-adminui","owner":{"login":"dan-luk","id":5175301,"avatar_url":"https://avatars.githubusercontent.com/u/5175301?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-luk","html_url":"https://github.com/dan-luk","followers_url":"https://api.github.com/users/dan-luk/followers","following_url":"https://api.github.com/users/dan-luk/following{/other_user}","gists_url":"https://api.github.com/users/dan-luk/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-luk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-luk/subscriptions","organizations_url":"https://api.github.com/users/dan-luk/orgs","repos_url":"https://api.github.com/users/dan-luk/repos","events_url":"https://api.github.com/users/dan-luk/events{/privacy}","received_events_url":"https://api.github.com/users/dan-luk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dan-luk/sdc-adminui","description":"Operations UI for SDC","fork":true,"url":"https://api.github.com/repos/dan-luk/sdc-adminui","forks_url":"https://api.github.com/repos/dan-luk/sdc-adminui/forks","keys_url":"https://api.github.com/repos/dan-luk/sdc-adminui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dan-luk/sdc-adminui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dan-luk/sdc-adminui/teams","hooks_url":"https://api.github.com/repos/dan-luk/sdc-adminui/hooks","issue_events_url":"https://api.github.com/repos/dan-luk/sdc-adminui/issues/events{/number}","events_url":"https://api.github.com/repos/dan-luk/sdc-adminui/events","assignees_url":"https://api.github.com/repos/dan-luk/sdc-adminui/assignees{/user}","branches_url":"https://api.github.com/repos/dan-luk/sdc-adminui/branches{/branch}","tags_url":"https://api.github.com/repos/dan-luk/sdc-adminui/tags","blobs_url":"https://api.github.com/repos/dan-luk/sdc-adminui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dan-luk/sdc-adminui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dan-luk/sdc-adminui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dan-luk/sdc-adminui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dan-luk/sdc-adminui/statuses/{sha}","languages_url":"https://api.github.com/repos/dan-luk/sdc-adminui/languages","stargazers_url":"https://api.github.com/repos/dan-luk/sdc-adminui/stargazers","contributors_url":"https://api.github.com/repos/dan-luk/sdc-adminui/contributors","subscribers_url":"https://api.github.com/repos/dan-luk/sdc-adminui/subscribers","subscription_url":"https://api.github.com/repos/dan-luk/sdc-adminui/subscription","commits_url":"https://api.github.com/repos/dan-luk/sdc-adminui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dan-luk/sdc-adminui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dan-luk/sdc-adminui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dan-luk/sdc-adminui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dan-luk/sdc-adminui/contents/{+path}","compare_url":"https://api.github.com/repos/dan-luk/sdc-adminui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dan-luk/sdc-adminui/merges","archive_url":"https://api.github.com/repos/dan-luk/sdc-adminui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dan-luk/sdc-adminui/downloads","issues_url":"https://api.github.com/repos/dan-luk/sdc-adminui/issues{/number}","pulls_url":"https://api.github.com/repos/dan-luk/sdc-adminui/pulls{/number}","milestones_url":"https://api.github.com/repos/dan-luk/sdc-adminui/milestones{/number}","notifications_url":"https://api.github.com/repos/dan-luk/sdc-adminui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dan-luk/sdc-adminui/labels{/name}","releases_url":"https://api.github.com/repos/dan-luk/sdc-adminui/releases{/id}","deployments_url":"https://api.github.com/repos/dan-luk/sdc-adminui/deployments","created_at":"2015-05-18T10:12:17Z","updated_at":"2016-01-22T08:52:55Z","pushed_at":"2016-07-21T13:07:46Z","git_url":"git://github.com/dan-luk/sdc-adminui.git","ssh_url":"git@github.com:dan-luk/sdc-adminui.git","clone_url":"https://github.com/dan-luk/sdc-adminui.git","svn_url":"https://github.com/dan-luk/sdc-adminui","homepage":null,"size":14617,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":84,"forks":0,"open_issues":84,"watchers":0,"default_branch":"master"}},"base":{"label":"joyent:master","ref":"master","sha":"c3ff5e521d3d8937adccafeb06ab8fa44d895c31","user":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"repo":{"id":23416190,"name":"sdc-adminui","full_name":"joyent/sdc-adminui","owner":{"login":"joyent","id":10161,"avatar_url":"https://avatars.githubusercontent.com/u/10161?v=3","gravatar_id":"","url":"https://api.github.com/users/joyent","html_url":"https://github.com/joyent","followers_url":"https://api.github.com/users/joyent/followers","following_url":"https://api.github.com/users/joyent/following{/other_user}","gists_url":"https://api.github.com/users/joyent/gists{/gist_id}","starred_url":"https://api.github.com/users/joyent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyent/subscriptions","organizations_url":"https://api.github.com/users/joyent/orgs","repos_url":"https://api.github.com/users/joyent/repos","events_url":"https://api.github.com/users/joyent/events{/privacy}","received_events_url":"https://api.github.com/users/joyent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joyent/sdc-adminui","description":"Operator portal for SmartDataCenter","fork":false,"url":"https://api.github.com/repos/joyent/sdc-adminui","forks_url":"https://api.github.com/repos/joyent/sdc-adminui/forks","keys_url":"https://api.github.com/repos/joyent/sdc-adminui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joyent/sdc-adminui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joyent/sdc-adminui/teams","hooks_url":"https://api.github.com/repos/joyent/sdc-adminui/hooks","issue_events_url":"https://api.github.com/repos/joyent/sdc-adminui/issues/events{/number}","events_url":"https://api.github.com/repos/joyent/sdc-adminui/events","assignees_url":"https://api.github.com/repos/joyent/sdc-adminui/assignees{/user}","branches_url":"https://api.github.com/repos/joyent/sdc-adminui/branches{/branch}","tags_url":"https://api.github.com/repos/joyent/sdc-adminui/tags","blobs_url":"https://api.github.com/repos/joyent/sdc-adminui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joyent/sdc-adminui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joyent/sdc-adminui/git/refs{/sha}","trees_url":"https://api.github.com/repos/joyent/sdc-adminui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joyent/sdc-adminui/statuses/{sha}","languages_url":"https://api.github.com/repos/joyent/sdc-adminui/languages","stargazers_url":"https://api.github.com/repos/joyent/sdc-adminui/stargazers","contributors_url":"https://api.github.com/repos/joyent/sdc-adminui/contributors","subscribers_url":"https://api.github.com/repos/joyent/sdc-adminui/subscribers","subscription_url":"https://api.github.com/repos/joyent/sdc-adminui/subscription","commits_url":"https://api.github.com/repos/joyent/sdc-adminui/commits{/sha}","git_commits_url":"https://api.github.com/repos/joyent/sdc-adminui/git/commits{/sha}","comments_url":"https://api.github.com/repos/joyent/sdc-adminui/comments{/number}","issue_comment_url":"https://api.github.com/repos/joyent/sdc-adminui/issues/comments{/number}","contents_url":"https://api.github.com/repos/joyent/sdc-adminui/contents/{+path}","compare_url":"https://api.github.com/repos/joyent/sdc-adminui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joyent/sdc-adminui/merges","archive_url":"https://api.github.com/repos/joyent/sdc-adminui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joyent/sdc-adminui/downloads","issues_url":"https://api.github.com/repos/joyent/sdc-adminui/issues{/number}","pulls_url":"https://api.github.com/repos/joyent/sdc-adminui/pulls{/number}","milestones_url":"https://api.github.com/repos/joyent/sdc-adminui/milestones{/number}","notifications_url":"https://api.github.com/repos/joyent/sdc-adminui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joyent/sdc-adminui/labels{/name}","releases_url":"https://api.github.com/repos/joyent/sdc-adminui/releases{/id}","deployments_url":"https://api.github.com/repos/joyent/sdc-adminui/deployments","created_at":"2014-08-28T05:18:06Z","updated_at":"2016-07-01T17:36:31Z","pushed_at":"2016-07-21T13:07:47Z","git_url":"git://github.com/joyent/sdc-adminui.git","ssh_url":"git@github.com:joyent/sdc-adminui.git","clone_url":"https://github.com/joyent/sdc-adminui.git","svn_url":"https://github.com/joyent/sdc-adminui","homepage":"","size":14667,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":8,"forks":14,"open_issues":8,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214"},"html":{"href":"https://github.com/joyent/sdc-adminui/pull/214"},"issue":{"href":"https://api.github.com/repos/joyent/sdc-adminui/issues/214"},"comments":{"href":"https://api.github.com/repos/joyent/sdc-adminui/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/joyent/sdc-adminui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joyent/sdc-adminui/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/joyent/sdc-adminui/statuses/601a5d81b4e131f0a89c8ddb79a7eaac9179dd76"}}}}
{"actor":{"display_login":"dan-luk"}}