{"action":"created","comment":{"url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/comments/86084618","pull_request_review_id":6759967,"id":86084618,"diff_hunk":"@@ -0,0 +1,63 @@\n+// Copyright 2010 The Go Authors. All rights reserved.\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+package main\n+\n+import (\n+\t\"encoding/json\"\n+\t\"io\"\n+\t\"log\"\n+\t\"net/http\"\n+\t\"strconv\"\n+)\n+\n+type vmResp struct {\n+\tVm   string `json:\"vm\"`\n+\tIp   string `json:\"ip\"`\n+\tPlen int    `json:\"plen\"`\n+\tGw   string `json:\"gw\"`\n+\tDns  string `json:\"dns\"`\n+}\n+\n+type statusResp struct {\n+\tStatus string `json:\"status\"`\n+}\n+\n+var addr int = 3","path":"pkg/network/opencontrail/cni/contrail-server.go","position":27,"original_position":27,"commit_id":"c9f879585e52c3630caeb1872a080d075097b69e","original_commit_id":"c9f879585e52c3630caeb1872a080d075097b69e","user":{"login":"praveenkv","id":5640518,"avatar_url":"https://avatars.githubusercontent.com/u/5640518?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenkv","html_url":"https://github.com/praveenkv","followers_url":"https://api.github.com/users/praveenkv/followers","following_url":"https://api.github.com/users/praveenkv/following{/other_user}","gists_url":"https://api.github.com/users/praveenkv/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenkv/subscriptions","organizations_url":"https://api.github.com/users/praveenkv/orgs","repos_url":"https://api.github.com/users/praveenkv/repos","events_url":"https://api.github.com/users/praveenkv/events{/privacy}","received_events_url":"https://api.github.com/users/praveenkv/received_events","type":"User","site_admin":false},"body":"Want it to be global variable so that we keep giving incremental addresses everytime. This is only a test-code. Moved contrail-server.go to test/ directory in subsequent commit","created_at":"2016-11-02T07:25:32Z","updated_at":"2016-11-02T07:25:33Z","html_url":"https://github.com/Juniper/contrail-kubernetes/pull/106#discussion_r86084618","pull_request_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/comments/86084618"},"html":{"href":"https://github.com/Juniper/contrail-kubernetes/pull/106#discussion_r86084618"},"pull_request":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106","id":90506864,"html_url":"https://github.com/Juniper/contrail-kubernetes/pull/106","diff_url":"https://github.com/Juniper/contrail-kubernetes/pull/106.diff","patch_url":"https://github.com/Juniper/contrail-kubernetes/pull/106.patch","issue_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues/106","number":106,"state":"open","locked":false,"title":"Cni plugin suport","user":{"login":"praveenkv","id":5640518,"avatar_url":"https://avatars.githubusercontent.com/u/5640518?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenkv","html_url":"https://github.com/praveenkv","followers_url":"https://api.github.com/users/praveenkv/followers","following_url":"https://api.github.com/users/praveenkv/following{/other_user}","gists_url":"https://api.github.com/users/praveenkv/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenkv/subscriptions","organizations_url":"https://api.github.com/users/praveenkv/orgs","repos_url":"https://api.github.com/users/praveenkv/repos","events_url":"https://api.github.com/users/praveenkv/events{/privacy}","received_events_url":"https://api.github.com/users/praveenkv/received_events","type":"User","site_admin":false},"body":"CNI plugin implementation for contrail\n\nIt has 3 modules\n1. args : Responsible to parse arguments including CNI environment variables and config json\n2. cni : Responsible to implement CNI part including creating tap interface, assign mac-address\n3. ipc : Responsible for IPC between CNI and vrouter-agent\n\nThe plugin runs following algorithm for port-add\n1. Query the configuration for port from vrouter-agent\n2. Create TAP interface. Assign mac-address for interface from (1)\n3. Create port-configuration file in /var/lib/contrail/port directory\n4. Send port-add command to vrouter-agent\n\nThe plugin runs following algorithm for port-del\n1. Remove the port-config file from /var/lib/contrail/port directory\n2. Send port-delete command to vrouter-agent\n","created_at":"2016-10-23T06:38:52Z","updated_at":"2016-11-02T07:25:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3f4abf55cb6104be9bee8c5dcb84bb1d222f794","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106/commits","review_comments_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106/comments","review_comment_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues/106/comments","statuses_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/statuses/c9f879585e52c3630caeb1872a080d075097b69e","head":{"label":"praveenkv:cni-dev","ref":"cni-dev","sha":"c9f879585e52c3630caeb1872a080d075097b69e","user":{"login":"praveenkv","id":5640518,"avatar_url":"https://avatars.githubusercontent.com/u/5640518?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenkv","html_url":"https://github.com/praveenkv","followers_url":"https://api.github.com/users/praveenkv/followers","following_url":"https://api.github.com/users/praveenkv/following{/other_user}","gists_url":"https://api.github.com/users/praveenkv/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenkv/subscriptions","organizations_url":"https://api.github.com/users/praveenkv/orgs","repos_url":"https://api.github.com/users/praveenkv/repos","events_url":"https://api.github.com/users/praveenkv/events{/privacy}","received_events_url":"https://api.github.com/users/praveenkv/received_events","type":"User","site_admin":false},"repo":{"id":69144948,"name":"contrail-kubernetes","full_name":"praveenkv/contrail-kubernetes","owner":{"login":"praveenkv","id":5640518,"avatar_url":"https://avatars.githubusercontent.com/u/5640518?v=3","gravatar_id":"","url":"https://api.github.com/users/praveenkv","html_url":"https://github.com/praveenkv","followers_url":"https://api.github.com/users/praveenkv/followers","following_url":"https://api.github.com/users/praveenkv/following{/other_user}","gists_url":"https://api.github.com/users/praveenkv/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenkv/subscriptions","organizations_url":"https://api.github.com/users/praveenkv/orgs","repos_url":"https://api.github.com/users/praveenkv/repos","events_url":"https://api.github.com/users/praveenkv/events{/privacy}","received_events_url":"https://api.github.com/users/praveenkv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/praveenkv/contrail-kubernetes","description":"OpenContrail Kubernetes integration","fork":true,"url":"https://api.github.com/repos/praveenkv/contrail-kubernetes","forks_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/forks","keys_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/teams","hooks_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/hooks","issue_events_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/events","assignees_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/tags","blobs_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/languages","stargazers_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/stargazers","contributors_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/contributors","subscribers_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/subscribers","subscription_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/subscription","commits_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/merges","archive_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/downloads","issues_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/praveenkv/contrail-kubernetes/deployments","created_at":"2016-09-25T05:07:18Z","updated_at":"2016-09-25T05:07:21Z","pushed_at":"2016-10-23T05:24:45Z","git_url":"git://github.com/praveenkv/contrail-kubernetes.git","ssh_url":"git@github.com:praveenkv/contrail-kubernetes.git","clone_url":"https://github.com/praveenkv/contrail-kubernetes.git","svn_url":"https://github.com/praveenkv/contrail-kubernetes","homepage":null,"size":51095,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Juniper:master","ref":"master","sha":"4abefc13baeab1f425219c24d3d53bc0468179e2","user":{"login":"Juniper","id":3935164,"avatar_url":"https://avatars.githubusercontent.com/u/3935164?v=3","gravatar_id":"","url":"https://api.github.com/users/Juniper","html_url":"https://github.com/Juniper","followers_url":"https://api.github.com/users/Juniper/followers","following_url":"https://api.github.com/users/Juniper/following{/other_user}","gists_url":"https://api.github.com/users/Juniper/gists{/gist_id}","starred_url":"https://api.github.com/users/Juniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juniper/subscriptions","organizations_url":"https://api.github.com/users/Juniper/orgs","repos_url":"https://api.github.com/users/Juniper/repos","events_url":"https://api.github.com/users/Juniper/events{/privacy}","received_events_url":"https://api.github.com/users/Juniper/received_events","type":"Organization","site_admin":false},"repo":{"id":33574117,"name":"contrail-kubernetes","full_name":"Juniper/contrail-kubernetes","owner":{"login":"Juniper","id":3935164,"avatar_url":"https://avatars.githubusercontent.com/u/3935164?v=3","gravatar_id":"","url":"https://api.github.com/users/Juniper","html_url":"https://github.com/Juniper","followers_url":"https://api.github.com/users/Juniper/followers","following_url":"https://api.github.com/users/Juniper/following{/other_user}","gists_url":"https://api.github.com/users/Juniper/gists{/gist_id}","starred_url":"https://api.github.com/users/Juniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juniper/subscriptions","organizations_url":"https://api.github.com/users/Juniper/orgs","repos_url":"https://api.github.com/users/Juniper/repos","events_url":"https://api.github.com/users/Juniper/events{/privacy}","received_events_url":"https://api.github.com/users/Juniper/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Juniper/contrail-kubernetes","description":"OpenContrail Kubernetes integration","fork":false,"url":"https://api.github.com/repos/Juniper/contrail-kubernetes","forks_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/forks","keys_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/teams","hooks_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/hooks","issue_events_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/events","assignees_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/tags","blobs_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/languages","stargazers_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/stargazers","contributors_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/contributors","subscribers_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/subscribers","subscription_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/subscription","commits_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/merges","archive_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/downloads","issues_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/Juniper/contrail-kubernetes/deployments","created_at":"2015-04-07T23:42:50Z","updated_at":"2016-10-24T18:02:11Z","pushed_at":"2016-10-24T18:02:09Z","git_url":"git://github.com/Juniper/contrail-kubernetes.git","ssh_url":"git@github.com:Juniper/contrail-kubernetes.git","clone_url":"https://github.com/Juniper/contrail-kubernetes.git","svn_url":"https://github.com/Juniper/contrail-kubernetes","homepage":null,"size":51153,"stargazers_count":33,"watchers_count":33,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":9,"forks":24,"open_issues":9,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106"},"html":{"href":"https://github.com/Juniper/contrail-kubernetes/pull/106"},"issue":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues/106"},"comments":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/Juniper/contrail-kubernetes/statuses/c9f879585e52c3630caeb1872a080d075097b69e"}}}}
{"actor":{"display_login":"praveenkv"}}