{"action":"created","comment":{"url":"https://api.github.com/repos/google/link022/pulls/comments/194582903","pull_request_review_id":127766074,"id":194582903,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDU4MjkwMw==","diff_hunk":"@@ -0,0 +1,169 @@\n+/* Copyright 2018 Google Inc.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    https://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+// The test_kit program is a tool that tests gNMI functionalities of an AP device.\n+package main\n+\n+import (\n+\t\"encoding/json\"\n+\t\"flag\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"time\"\n+\n+\tlog \"github.com/golang/glog\"\n+\t\"google.golang.org/grpc\"\n+\n+\t\"github.com/google/gnxi/utils/credentials\"\n+\n+\t\"github.com/google/link022/testkit/common\"\n+\t\"github.com/google/link022/testkit/gnmiconfig\"\n+\n+\tpb \"github.com/openconfig/gnmi/proto/gnmi\"\n+)\n+\n+type arrayFlags []string\n+\n+func (i *arrayFlags) String() string {\n+\treturn \"my string representation\"\n+}\n+\n+func (i *arrayFlags) Set(value string) error {\n+\t*i = append(*i, value)\n+\treturn nil\n+}\n+\n+var (\n+\tgnmiTests  arrayFlags\n+\ttargetAddr = flag.String(\"target_addr\", \"localhost:10161\", \"The target address in the format of host:port\")\n+\ttargetName = flag.String(\"target_name\", \"hostname.com\", \"The target name use to verify the hostname returned by TLS handshake\")","path":"testkit/test_kit.go","position":51,"original_position":51,"commit_id":"f64d742a3d2c0f277b62b087054541dbb1469da8","original_commit_id":"4f1e60e7026b27b0356ef3a641e29da70b343787","user":{"login":"zhiweicen","id":26080599,"node_id":"MDQ6VXNlcjI2MDgwNTk5","avatar_url":"https://avatars2.githubusercontent.com/u/26080599?v=4","gravatar_id":"","url":"https://api.github.com/users/zhiweicen","html_url":"https://github.com/zhiweicen","followers_url":"https://api.github.com/users/zhiweicen/followers","following_url":"https://api.github.com/users/zhiweicen/following{/other_user}","gists_url":"https://api.github.com/users/zhiweicen/gists{/gist_id}","starred_url":"https://api.github.com/users/zhiweicen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhiweicen/subscriptions","organizations_url":"https://api.github.com/users/zhiweicen/orgs","repos_url":"https://api.github.com/users/zhiweicen/repos","events_url":"https://api.github.com/users/zhiweicen/events{/privacy}","received_events_url":"https://api.github.com/users/zhiweicen/received_events","type":"User","site_admin":false},"body":"s/use to/used to/","created_at":"2018-06-12T00:06:42Z","updated_at":"2018-06-12T00:11:22Z","html_url":"https://github.com/google/link022/pull/54#discussion_r194582903","pull_request_url":"https://api.github.com/repos/google/link022/pulls/54","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/google/link022/pulls/comments/194582903"},"html":{"href":"https://github.com/google/link022/pull/54#discussion_r194582903"},"pull_request":{"href":"https://api.github.com/repos/google/link022/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/google/link022/pulls/54","id":192869673,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODY5Njcz","html_url":"https://github.com/google/link022/pull/54","diff_url":"https://github.com/google/link022/pull/54.diff","patch_url":"https://github.com/google/link022/pull/54.patch","issue_url":"https://api.github.com/repos/google/link022/issues/54","number":54,"state":"open","locked":false,"title":"Re-organize the Link022 repo.","user":{"login":"boleifu","id":885538,"node_id":"MDQ6VXNlcjg4NTUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/885538?v=4","gravatar_id":"","url":"https://api.github.com/users/boleifu","html_url":"https://github.com/boleifu","followers_url":"https://api.github.com/users/boleifu/followers","following_url":"https://api.github.com/users/boleifu/following{/other_user}","gists_url":"https://api.github.com/users/boleifu/gists{/gist_id}","starred_url":"https://api.github.com/users/boleifu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boleifu/subscriptions","organizations_url":"https://api.github.com/users/boleifu/orgs","repos_url":"https://api.github.com/users/boleifu/repos","events_url":"https://api.github.com/users/boleifu/events{/privacy}","received_events_url":"https://api.github.com/users/boleifu/received_events","type":"User","site_admin":false},"body":"Change Summary:\r\n1. Updated README files to separate out each components.\r\n2. Added Link022 emulator.\r\n3. Sync to the latest OpenConfig model.\r\n4. Fixed incorrect model name in sample config files.\r\n5. Added gNMI test kit.","created_at":"2018-06-06T00:18:17Z","updated_at":"2018-06-12T00:11:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1375929a83cc21aa9a44bd02e6d9e8fc79e78a34","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":868591889,"node_id":"MDU6TGFiZWw4Njg1OTE4ODk=","url":"https://api.github.com/repos/google/link022/labels/cla:%20yes","name":"cla: yes","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/google/link022/pulls/54/commits","review_comments_url":"https://api.github.com/repos/google/link022/pulls/54/comments","review_comment_url":"https://api.github.com/repos/google/link022/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/link022/issues/54/comments","statuses_url":"https://api.github.com/repos/google/link022/statuses/f64d742a3d2c0f277b62b087054541dbb1469da8","head":{"label":"boleifu:master","ref":"master","sha":"f64d742a3d2c0f277b62b087054541dbb1469da8","user":{"login":"boleifu","id":885538,"node_id":"MDQ6VXNlcjg4NTUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/885538?v=4","gravatar_id":"","url":"https://api.github.com/users/boleifu","html_url":"https://github.com/boleifu","followers_url":"https://api.github.com/users/boleifu/followers","following_url":"https://api.github.com/users/boleifu/following{/other_user}","gists_url":"https://api.github.com/users/boleifu/gists{/gist_id}","starred_url":"https://api.github.com/users/boleifu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boleifu/subscriptions","organizations_url":"https://api.github.com/users/boleifu/orgs","repos_url":"https://api.github.com/users/boleifu/repos","events_url":"https://api.github.com/users/boleifu/events{/privacy}","received_events_url":"https://api.github.com/users/boleifu/received_events","type":"User","site_admin":false},"repo":{"id":106311046,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYzMTEwNDY=","name":"link022","full_name":"boleifu/link022","owner":{"login":"boleifu","id":885538,"node_id":"MDQ6VXNlcjg4NTUzOA==","avatar_url":"https://avatars3.githubusercontent.com/u/885538?v=4","gravatar_id":"","url":"https://api.github.com/users/boleifu","html_url":"https://github.com/boleifu","followers_url":"https://api.github.com/users/boleifu/followers","following_url":"https://api.github.com/users/boleifu/following{/other_user}","gists_url":"https://api.github.com/users/boleifu/gists{/gist_id}","starred_url":"https://api.github.com/users/boleifu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boleifu/subscriptions","organizations_url":"https://api.github.com/users/boleifu/orgs","repos_url":"https://api.github.com/users/boleifu/repos","events_url":"https://api.github.com/users/boleifu/events{/privacy}","received_events_url":"https://api.github.com/users/boleifu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boleifu/link022","description":null,"fork":true,"url":"https://api.github.com/repos/boleifu/link022","forks_url":"https://api.github.com/repos/boleifu/link022/forks","keys_url":"https://api.github.com/repos/boleifu/link022/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boleifu/link022/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boleifu/link022/teams","hooks_url":"https://api.github.com/repos/boleifu/link022/hooks","issue_events_url":"https://api.github.com/repos/boleifu/link022/issues/events{/number}","events_url":"https://api.github.com/repos/boleifu/link022/events","assignees_url":"https://api.github.com/repos/boleifu/link022/assignees{/user}","branches_url":"https://api.github.com/repos/boleifu/link022/branches{/branch}","tags_url":"https://api.github.com/repos/boleifu/link022/tags","blobs_url":"https://api.github.com/repos/boleifu/link022/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boleifu/link022/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boleifu/link022/git/refs{/sha}","trees_url":"https://api.github.com/repos/boleifu/link022/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boleifu/link022/statuses/{sha}","languages_url":"https://api.github.com/repos/boleifu/link022/languages","stargazers_url":"https://api.github.com/repos/boleifu/link022/stargazers","contributors_url":"https://api.github.com/repos/boleifu/link022/contributors","subscribers_url":"https://api.github.com/repos/boleifu/link022/subscribers","subscription_url":"https://api.github.com/repos/boleifu/link022/subscription","commits_url":"https://api.github.com/repos/boleifu/link022/commits{/sha}","git_commits_url":"https://api.github.com/repos/boleifu/link022/git/commits{/sha}","comments_url":"https://api.github.com/repos/boleifu/link022/comments{/number}","issue_comment_url":"https://api.github.com/repos/boleifu/link022/issues/comments{/number}","contents_url":"https://api.github.com/repos/boleifu/link022/contents/{+path}","compare_url":"https://api.github.com/repos/boleifu/link022/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boleifu/link022/merges","archive_url":"https://api.github.com/repos/boleifu/link022/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boleifu/link022/downloads","issues_url":"https://api.github.com/repos/boleifu/link022/issues{/number}","pulls_url":"https://api.github.com/repos/boleifu/link022/pulls{/number}","milestones_url":"https://api.github.com/repos/boleifu/link022/milestones{/number}","notifications_url":"https://api.github.com/repos/boleifu/link022/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boleifu/link022/labels{/name}","releases_url":"https://api.github.com/repos/boleifu/link022/releases{/id}","deployments_url":"https://api.github.com/repos/boleifu/link022/deployments","created_at":"2017-10-09T17:00:26Z","updated_at":"2018-06-11T22:52:57Z","pushed_at":"2018-06-11T22:52:55Z","git_url":"git://github.com/boleifu/link022.git","ssh_url":"git@github.com:boleifu/link022.git","clone_url":"https://github.com/boleifu/link022.git","svn_url":"https://github.com/boleifu/link022","homepage":null,"size":821,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"64f0e11ff2ccdf86f51b81d2f5848c031465d56c","user":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":106309436,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYzMDk0MzY=","name":"link022","full_name":"google/link022","owner":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/link022","description":"Link022 - an open WiFi access point","fork":false,"url":"https://api.github.com/repos/google/link022","forks_url":"https://api.github.com/repos/google/link022/forks","keys_url":"https://api.github.com/repos/google/link022/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/link022/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/link022/teams","hooks_url":"https://api.github.com/repos/google/link022/hooks","issue_events_url":"https://api.github.com/repos/google/link022/issues/events{/number}","events_url":"https://api.github.com/repos/google/link022/events","assignees_url":"https://api.github.com/repos/google/link022/assignees{/user}","branches_url":"https://api.github.com/repos/google/link022/branches{/branch}","tags_url":"https://api.github.com/repos/google/link022/tags","blobs_url":"https://api.github.com/repos/google/link022/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/link022/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/link022/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/link022/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/link022/statuses/{sha}","languages_url":"https://api.github.com/repos/google/link022/languages","stargazers_url":"https://api.github.com/repos/google/link022/stargazers","contributors_url":"https://api.github.com/repos/google/link022/contributors","subscribers_url":"https://api.github.com/repos/google/link022/subscribers","subscription_url":"https://api.github.com/repos/google/link022/subscription","commits_url":"https://api.github.com/repos/google/link022/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/link022/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/link022/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/link022/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/link022/contents/{+path}","compare_url":"https://api.github.com/repos/google/link022/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/link022/merges","archive_url":"https://api.github.com/repos/google/link022/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/link022/downloads","issues_url":"https://api.github.com/repos/google/link022/issues{/number}","pulls_url":"https://api.github.com/repos/google/link022/pulls{/number}","milestones_url":"https://api.github.com/repos/google/link022/milestones{/number}","notifications_url":"https://api.github.com/repos/google/link022/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/link022/labels{/name}","releases_url":"https://api.github.com/repos/google/link022/releases{/id}","deployments_url":"https://api.github.com/repos/google/link022/deployments","created_at":"2017-10-09T16:45:02Z","updated_at":"2018-06-11T17:37:14Z","pushed_at":"2018-06-11T22:52:57Z","git_url":"git://github.com/google/link022.git","ssh_url":"git@github.com:google/link022.git","clone_url":"https://github.com/google/link022.git","svn_url":"https://github.com/google/link022","homepage":"","size":751,"stargazers_count":62,"watchers_count":62,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":20,"open_issues":1,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/link022/pulls/54"},"html":{"href":"https://github.com/google/link022/pull/54"},"issue":{"href":"https://api.github.com/repos/google/link022/issues/54"},"comments":{"href":"https://api.github.com/repos/google/link022/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/google/link022/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/google/link022/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/link022/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/google/link022/statuses/f64d742a3d2c0f277b62b087054541dbb1469da8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"zhiweicen"}}