{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/comments/59609450","id":59609450,"diff_hunk":"@@ -555,6 +560,11 @@ int main(int argc, char **argv)\n     getRequest = new swss::ConsumerTable(db, \"GETREQUEST\");\n     getResponse  = new swss::ProducerTable(db, \"GETRESPONSE\");\n \n+#ifdef MLNXSAI\n+    std::string mlnx_config_file = \"/etc/ssw/ACS-MSN2700/sai_2700.xml\";","path":"syncd/syncd.cpp","position":31,"original_position":31,"commit_id":"75ad48857406007f3a0f82c9eea405b503df59bc","original_commit_id":"75ad48857406007f3a0f82c9eea405b503df59bc","user":{"login":"stcheng","id":2702699,"avatar_url":"https://avatars.githubusercontent.com/u/2702699?v=3","gravatar_id":"","url":"https://api.github.com/users/stcheng","html_url":"https://github.com/stcheng","followers_url":"https://api.github.com/users/stcheng/followers","following_url":"https://api.github.com/users/stcheng/following{/other_user}","gists_url":"https://api.github.com/users/stcheng/gists{/gist_id}","starred_url":"https://api.github.com/users/stcheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcheng/subscriptions","organizations_url":"https://api.github.com/users/stcheng/orgs","repos_url":"https://api.github.com/users/stcheng/repos","events_url":"https://api.github.com/users/stcheng/events{/privacy}","received_events_url":"https://api.github.com/users/stcheng/received_events","type":"User","site_admin":false},"body":"yes. that's what i'm thinking about.\r\nlater we either parsing a config file or getting the info from cmd. \r\nI'll also update the configure.ac file later.","created_at":"2016-04-13T19:24:17Z","updated_at":"2016-04-13T19:24:17Z","html_url":"https://github.com/Azure/sonic-sairedis/pull/4#discussion_r59609450","pull_request_url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/comments/59609450"},"html":{"href":"https://github.com/Azure/sonic-sairedis/pull/4#discussion_r59609450"},"pull_request":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4","id":66231593,"html_url":"https://github.com/Azure/sonic-sairedis/pull/4","diff_url":"https://github.com/Azure/sonic-sairedis/pull/4.diff","patch_url":"https://github.com/Azure/sonic-sairedis/pull/4.patch","issue_url":"https://api.github.com/repos/Azure/sonic-sairedis/issues/4","number":4,"state":"open","locked":false,"title":"syncd: adding MLNX SAI support","user":{"login":"stcheng","id":2702699,"avatar_url":"https://avatars.githubusercontent.com/u/2702699?v=3","gravatar_id":"","url":"https://api.github.com/users/stcheng","html_url":"https://github.com/stcheng","followers_url":"https://api.github.com/users/stcheng/followers","following_url":"https://api.github.com/users/stcheng/following{/other_user}","gists_url":"https://api.github.com/users/stcheng/gists{/gist_id}","starred_url":"https://api.github.com/users/stcheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcheng/subscriptions","organizations_url":"https://api.github.com/users/stcheng/orgs","repos_url":"https://api.github.com/users/stcheng/repos","events_url":"https://api.github.com/users/stcheng/events{/privacy}","received_events_url":"https://api.github.com/users/stcheng/received_events","type":"User","site_admin":false},"body":"Adding MLNX SAI support in syncd.cpp","created_at":"2016-04-12T21:31:49Z","updated_at":"2016-04-13T19:24:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2792268027ee4f489ac092110b544431b5aa1955","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/sonic-sairedis/issues/4/comments","statuses_url":"https://api.github.com/repos/Azure/sonic-sairedis/statuses/75ad48857406007f3a0f82c9eea405b503df59bc","head":{"label":"stcheng:mlnx","ref":"mlnx","sha":"75ad48857406007f3a0f82c9eea405b503df59bc","user":{"login":"stcheng","id":2702699,"avatar_url":"https://avatars.githubusercontent.com/u/2702699?v=3","gravatar_id":"","url":"https://api.github.com/users/stcheng","html_url":"https://github.com/stcheng","followers_url":"https://api.github.com/users/stcheng/followers","following_url":"https://api.github.com/users/stcheng/following{/other_user}","gists_url":"https://api.github.com/users/stcheng/gists{/gist_id}","starred_url":"https://api.github.com/users/stcheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcheng/subscriptions","organizations_url":"https://api.github.com/users/stcheng/orgs","repos_url":"https://api.github.com/users/stcheng/repos","events_url":"https://api.github.com/users/stcheng/events{/privacy}","received_events_url":"https://api.github.com/users/stcheng/received_events","type":"User","site_admin":false},"repo":{"id":56099114,"name":"sonic-sairedis","full_name":"stcheng/sonic-sairedis","owner":{"login":"stcheng","id":2702699,"avatar_url":"https://avatars.githubusercontent.com/u/2702699?v=3","gravatar_id":"","url":"https://api.github.com/users/stcheng","html_url":"https://github.com/stcheng","followers_url":"https://api.github.com/users/stcheng/followers","following_url":"https://api.github.com/users/stcheng/following{/other_user}","gists_url":"https://api.github.com/users/stcheng/gists{/gist_id}","starred_url":"https://api.github.com/users/stcheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stcheng/subscriptions","organizations_url":"https://api.github.com/users/stcheng/orgs","repos_url":"https://api.github.com/users/stcheng/repos","events_url":"https://api.github.com/users/stcheng/events{/privacy}","received_events_url":"https://api.github.com/users/stcheng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stcheng/sonic-sairedis","description":"SAI object interface to Redis database, as used in the SONiC project","fork":true,"url":"https://api.github.com/repos/stcheng/sonic-sairedis","forks_url":"https://api.github.com/repos/stcheng/sonic-sairedis/forks","keys_url":"https://api.github.com/repos/stcheng/sonic-sairedis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stcheng/sonic-sairedis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stcheng/sonic-sairedis/teams","hooks_url":"https://api.github.com/repos/stcheng/sonic-sairedis/hooks","issue_events_url":"https://api.github.com/repos/stcheng/sonic-sairedis/issues/events{/number}","events_url":"https://api.github.com/repos/stcheng/sonic-sairedis/events","assignees_url":"https://api.github.com/repos/stcheng/sonic-sairedis/assignees{/user}","branches_url":"https://api.github.com/repos/stcheng/sonic-sairedis/branches{/branch}","tags_url":"https://api.github.com/repos/stcheng/sonic-sairedis/tags","blobs_url":"https://api.github.com/repos/stcheng/sonic-sairedis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stcheng/sonic-sairedis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stcheng/sonic-sairedis/git/refs{/sha}","trees_url":"https://api.github.com/repos/stcheng/sonic-sairedis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stcheng/sonic-sairedis/statuses/{sha}","languages_url":"https://api.github.com/repos/stcheng/sonic-sairedis/languages","stargazers_url":"https://api.github.com/repos/stcheng/sonic-sairedis/stargazers","contributors_url":"https://api.github.com/repos/stcheng/sonic-sairedis/contributors","subscribers_url":"https://api.github.com/repos/stcheng/sonic-sairedis/subscribers","subscription_url":"https://api.github.com/repos/stcheng/sonic-sairedis/subscription","commits_url":"https://api.github.com/repos/stcheng/sonic-sairedis/commits{/sha}","git_commits_url":"https://api.github.com/repos/stcheng/sonic-sairedis/git/commits{/sha}","comments_url":"https://api.github.com/repos/stcheng/sonic-sairedis/comments{/number}","issue_comment_url":"https://api.github.com/repos/stcheng/sonic-sairedis/issues/comments{/number}","contents_url":"https://api.github.com/repos/stcheng/sonic-sairedis/contents/{+path}","compare_url":"https://api.github.com/repos/stcheng/sonic-sairedis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stcheng/sonic-sairedis/merges","archive_url":"https://api.github.com/repos/stcheng/sonic-sairedis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stcheng/sonic-sairedis/downloads","issues_url":"https://api.github.com/repos/stcheng/sonic-sairedis/issues{/number}","pulls_url":"https://api.github.com/repos/stcheng/sonic-sairedis/pulls{/number}","milestones_url":"https://api.github.com/repos/stcheng/sonic-sairedis/milestones{/number}","notifications_url":"https://api.github.com/repos/stcheng/sonic-sairedis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stcheng/sonic-sairedis/labels{/name}","releases_url":"https://api.github.com/repos/stcheng/sonic-sairedis/releases{/id}","deployments_url":"https://api.github.com/repos/stcheng/sonic-sairedis/deployments","created_at":"2016-04-12T21:30:28Z","updated_at":"2016-04-12T21:30:29Z","pushed_at":"2016-04-12T21:34:26Z","git_url":"git://github.com/stcheng/sonic-sairedis.git","ssh_url":"git@github.com:stcheng/sonic-sairedis.git","clone_url":"https://github.com/stcheng/sonic-sairedis.git","svn_url":"https://github.com/stcheng/sonic-sairedis","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"Azure:master","ref":"master","sha":"1bd83ea04a2a7a32ab83effa231fe1b8f7634ae9","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":53451335,"name":"sonic-sairedis","full_name":"Azure/sonic-sairedis","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/sonic-sairedis","description":"SAI object interface to Redis database, as used in the SONiC project","fork":false,"url":"https://api.github.com/repos/Azure/sonic-sairedis","forks_url":"https://api.github.com/repos/Azure/sonic-sairedis/forks","keys_url":"https://api.github.com/repos/Azure/sonic-sairedis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/sonic-sairedis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/sonic-sairedis/teams","hooks_url":"https://api.github.com/repos/Azure/sonic-sairedis/hooks","issue_events_url":"https://api.github.com/repos/Azure/sonic-sairedis/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/sonic-sairedis/events","assignees_url":"https://api.github.com/repos/Azure/sonic-sairedis/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/sonic-sairedis/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/sonic-sairedis/tags","blobs_url":"https://api.github.com/repos/Azure/sonic-sairedis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/sonic-sairedis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/sonic-sairedis/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/sonic-sairedis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/sonic-sairedis/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/sonic-sairedis/languages","stargazers_url":"https://api.github.com/repos/Azure/sonic-sairedis/stargazers","contributors_url":"https://api.github.com/repos/Azure/sonic-sairedis/contributors","subscribers_url":"https://api.github.com/repos/Azure/sonic-sairedis/subscribers","subscription_url":"https://api.github.com/repos/Azure/sonic-sairedis/subscription","commits_url":"https://api.github.com/repos/Azure/sonic-sairedis/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/sonic-sairedis/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/sonic-sairedis/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/sonic-sairedis/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/sonic-sairedis/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/sonic-sairedis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/sonic-sairedis/merges","archive_url":"https://api.github.com/repos/Azure/sonic-sairedis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/sonic-sairedis/downloads","issues_url":"https://api.github.com/repos/Azure/sonic-sairedis/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/sonic-sairedis/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/sonic-sairedis/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/sonic-sairedis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/sonic-sairedis/labels{/name}","releases_url":"https://api.github.com/repos/Azure/sonic-sairedis/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/sonic-sairedis/deployments","created_at":"2016-03-08T22:58:27Z","updated_at":"2016-03-29T22:27:18Z","pushed_at":"2016-04-12T21:31:49Z","git_url":"git://github.com/Azure/sonic-sairedis.git","ssh_url":"git@github.com:Azure/sonic-sairedis.git","clone_url":"https://github.com/Azure/sonic-sairedis.git","svn_url":"https://github.com/Azure/sonic-sairedis","homepage":null,"size":81,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4"},"html":{"href":"https://github.com/Azure/sonic-sairedis/pull/4"},"issue":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/issues/4"},"comments":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/sonic-sairedis/statuses/75ad48857406007f3a0f82c9eea405b503df59bc"}}}}