{"action":"created","comment":{"url":"https://api.github.com/repos/osrg/gobgp/pulls/comments/81693231","pull_request_review_id":2654432,"id":81693231,"diff_hunk":"@@ -556,6 +557,97 @@ func NewCapRouteRefreshCisco() *CapRouteRefreshCisco {\n \t}\n }\n \n+type CapLongLivedGracefulRestartTuple struct {\n+\tAFI         uint16\n+\tSAFI        uint8\n+\tFlags       uint8\n+\tRestartTime uint32\n+}\n+\n+func (c *CapLongLivedGracefulRestartTuple) MarshalJSON() ([]byte, error) {\n+\treturn json.Marshal(struct {\n+\t\tRouteFamily RouteFamily `json:\"route_family\"`\n+\t\tFlags       uint8       `json:\"flags\"`\n+\t\tRestartTime uint32      `json:\"restart_time\"`\n+\t}{\n+\t\tRouteFamily: AfiSafiToRouteFamily(c.AFI, c.SAFI),\n+\t\tFlags:       c.Flags,\n+\t\tRestartTime: c.RestartTime,\n+\t})\n+}\n+\n+func NewCapLongLivedGracefulRestartTuple(rf RouteFamily, forward bool, restartTime uint32) *CapLongLivedGracefulRestartTuple {\n+\tafi, safi := RouteFamilyToAfiSafi(rf)\n+\tflags := 0\n+\tif forward {\n+\t\tflags = 0x80\n+\t}\n+\treturn &CapLongLivedGracefulRestartTuple{\n+\t\tAFI:         afi,\n+\t\tSAFI:        safi,\n+\t\tFlags:       uint8(flags),\n+\t\tRestartTime: restartTime,\n+\t}\n+}\n+\n+type CapLongLivedGracefulRestart struct {\n+\tDefaultParameterCapability\n+\tTuples []*CapLongLivedGracefulRestartTuple\n+}\n+\n+func (c *CapLongLivedGracefulRestart) DecodeFromBytes(data []byte) error {","path":"packet/bgp/bgp.go","position":103,"original_position":66,"commit_id":"29e7dca5e5ba59b5a8068ecb746c439bacd7dd29","original_commit_id":"3d4f08435310aefabf65b3c735489ef2af43fc17","user":{"login":"fujita","id":726426,"avatar_url":"https://avatars.githubusercontent.com/u/726426?v=3","gravatar_id":"","url":"https://api.github.com/users/fujita","html_url":"https://github.com/fujita","followers_url":"https://api.github.com/users/fujita/followers","following_url":"https://api.github.com/users/fujita/following{/other_user}","gists_url":"https://api.github.com/users/fujita/gists{/gist_id}","starred_url":"https://api.github.com/users/fujita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fujita/subscriptions","organizations_url":"https://api.github.com/users/fujita/orgs","repos_url":"https://api.github.com/users/fujita/repos","events_url":"https://api.github.com/users/fujita/events{/privacy}","received_events_url":"https://api.github.com/users/fujita/received_events","type":"User","site_admin":false},"body":"https://github.com/osrg/gobgp/commit/e847113b526d9389bd939669819c8d56854a93fb\r\n\r\nSame issue?","created_at":"2016-10-04T06:39:30Z","updated_at":"2016-10-04T06:39:51Z","html_url":"https://github.com/osrg/gobgp/pull/1125#discussion_r81693231","pull_request_url":"https://api.github.com/repos/osrg/gobgp/pulls/1125","_links":{"self":{"href":"https://api.github.com/repos/osrg/gobgp/pulls/comments/81693231"},"html":{"href":"https://github.com/osrg/gobgp/pull/1125#discussion_r81693231"},"pull_request":{"href":"https://api.github.com/repos/osrg/gobgp/pulls/1125"}}},"pull_request":{"url":"https://api.github.com/repos/osrg/gobgp/pulls/1125","id":87411213,"html_url":"https://github.com/osrg/gobgp/pull/1125","diff_url":"https://github.com/osrg/gobgp/pull/1125.diff","patch_url":"https://github.com/osrg/gobgp/pull/1125.patch","issue_url":"https://api.github.com/repos/osrg/gobgp/issues/1125","number":1125,"state":"open","locked":false,"title":"Support long lived graceful restart","user":{"login":"ishidawataru","id":5915117,"avatar_url":"https://avatars.githubusercontent.com/u/5915117?v=3","gravatar_id":"","url":"https://api.github.com/users/ishidawataru","html_url":"https://github.com/ishidawataru","followers_url":"https://api.github.com/users/ishidawataru/followers","following_url":"https://api.github.com/users/ishidawataru/following{/other_user}","gists_url":"https://api.github.com/users/ishidawataru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishidawataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishidawataru/subscriptions","organizations_url":"https://api.github.com/users/ishidawataru/orgs","repos_url":"https://api.github.com/users/ishidawataru/repos","events_url":"https://api.github.com/users/ishidawataru/events{/privacy}","received_events_url":"https://api.github.com/users/ishidawataru/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-29T23:19:11Z","updated_at":"2016-10-04T06:39:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4c152e1ddede8b04e8b2443c8c5c989dcccd31d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/osrg/gobgp/pulls/1125/commits","review_comments_url":"https://api.github.com/repos/osrg/gobgp/pulls/1125/comments","review_comment_url":"https://api.github.com/repos/osrg/gobgp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/osrg/gobgp/issues/1125/comments","statuses_url":"https://api.github.com/repos/osrg/gobgp/statuses/29e7dca5e5ba59b5a8068ecb746c439bacd7dd29","head":{"label":"ishidawataru:llgr","ref":"llgr","sha":"29e7dca5e5ba59b5a8068ecb746c439bacd7dd29","user":{"login":"ishidawataru","id":5915117,"avatar_url":"https://avatars.githubusercontent.com/u/5915117?v=3","gravatar_id":"","url":"https://api.github.com/users/ishidawataru","html_url":"https://github.com/ishidawataru","followers_url":"https://api.github.com/users/ishidawataru/followers","following_url":"https://api.github.com/users/ishidawataru/following{/other_user}","gists_url":"https://api.github.com/users/ishidawataru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishidawataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishidawataru/subscriptions","organizations_url":"https://api.github.com/users/ishidawataru/orgs","repos_url":"https://api.github.com/users/ishidawataru/repos","events_url":"https://api.github.com/users/ishidawataru/events{/privacy}","received_events_url":"https://api.github.com/users/ishidawataru/received_events","type":"User","site_admin":false},"repo":{"id":29053504,"name":"gobgp","full_name":"ishidawataru/gobgp","owner":{"login":"ishidawataru","id":5915117,"avatar_url":"https://avatars.githubusercontent.com/u/5915117?v=3","gravatar_id":"","url":"https://api.github.com/users/ishidawataru","html_url":"https://github.com/ishidawataru","followers_url":"https://api.github.com/users/ishidawataru/followers","following_url":"https://api.github.com/users/ishidawataru/following{/other_user}","gists_url":"https://api.github.com/users/ishidawataru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishidawataru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishidawataru/subscriptions","organizations_url":"https://api.github.com/users/ishidawataru/orgs","repos_url":"https://api.github.com/users/ishidawataru/repos","events_url":"https://api.github.com/users/ishidawataru/events{/privacy}","received_events_url":"https://api.github.com/users/ishidawataru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ishidawataru/gobgp","description":"","fork":true,"url":"https://api.github.com/repos/ishidawataru/gobgp","forks_url":"https://api.github.com/repos/ishidawataru/gobgp/forks","keys_url":"https://api.github.com/repos/ishidawataru/gobgp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ishidawataru/gobgp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ishidawataru/gobgp/teams","hooks_url":"https://api.github.com/repos/ishidawataru/gobgp/hooks","issue_events_url":"https://api.github.com/repos/ishidawataru/gobgp/issues/events{/number}","events_url":"https://api.github.com/repos/ishidawataru/gobgp/events","assignees_url":"https://api.github.com/repos/ishidawataru/gobgp/assignees{/user}","branches_url":"https://api.github.com/repos/ishidawataru/gobgp/branches{/branch}","tags_url":"https://api.github.com/repos/ishidawataru/gobgp/tags","blobs_url":"https://api.github.com/repos/ishidawataru/gobgp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ishidawataru/gobgp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ishidawataru/gobgp/git/refs{/sha}","trees_url":"https://api.github.com/repos/ishidawataru/gobgp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ishidawataru/gobgp/statuses/{sha}","languages_url":"https://api.github.com/repos/ishidawataru/gobgp/languages","stargazers_url":"https://api.github.com/repos/ishidawataru/gobgp/stargazers","contributors_url":"https://api.github.com/repos/ishidawataru/gobgp/contributors","subscribers_url":"https://api.github.com/repos/ishidawataru/gobgp/subscribers","subscription_url":"https://api.github.com/repos/ishidawataru/gobgp/subscription","commits_url":"https://api.github.com/repos/ishidawataru/gobgp/commits{/sha}","git_commits_url":"https://api.github.com/repos/ishidawataru/gobgp/git/commits{/sha}","comments_url":"https://api.github.com/repos/ishidawataru/gobgp/comments{/number}","issue_comment_url":"https://api.github.com/repos/ishidawataru/gobgp/issues/comments{/number}","contents_url":"https://api.github.com/repos/ishidawataru/gobgp/contents/{+path}","compare_url":"https://api.github.com/repos/ishidawataru/gobgp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ishidawataru/gobgp/merges","archive_url":"https://api.github.com/repos/ishidawataru/gobgp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ishidawataru/gobgp/downloads","issues_url":"https://api.github.com/repos/ishidawataru/gobgp/issues{/number}","pulls_url":"https://api.github.com/repos/ishidawataru/gobgp/pulls{/number}","milestones_url":"https://api.github.com/repos/ishidawataru/gobgp/milestones{/number}","notifications_url":"https://api.github.com/repos/ishidawataru/gobgp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ishidawataru/gobgp/labels{/name}","releases_url":"https://api.github.com/repos/ishidawataru/gobgp/releases{/id}","deployments_url":"https://api.github.com/repos/ishidawataru/gobgp/deployments","created_at":"2015-01-10T10:04:27Z","updated_at":"2016-01-22T16:21:56Z","pushed_at":"2016-10-04T05:48:07Z","git_url":"git://github.com/ishidawataru/gobgp.git","ssh_url":"git@github.com:ishidawataru/gobgp.git","clone_url":"https://github.com/ishidawataru/gobgp.git","svn_url":"https://github.com/ishidawataru/gobgp","homepage":null,"size":7145,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"osrg:master","ref":"master","sha":"c2ad9462d661133a72c81da73a1c964390c93001","user":{"login":"osrg","id":1179438,"avatar_url":"https://avatars.githubusercontent.com/u/1179438?v=3","gravatar_id":"","url":"https://api.github.com/users/osrg","html_url":"https://github.com/osrg","followers_url":"https://api.github.com/users/osrg/followers","following_url":"https://api.github.com/users/osrg/following{/other_user}","gists_url":"https://api.github.com/users/osrg/gists{/gist_id}","starred_url":"https://api.github.com/users/osrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osrg/subscriptions","organizations_url":"https://api.github.com/users/osrg/orgs","repos_url":"https://api.github.com/users/osrg/repos","events_url":"https://api.github.com/users/osrg/events{/privacy}","received_events_url":"https://api.github.com/users/osrg/received_events","type":"Organization","site_admin":false},"repo":{"id":24011030,"name":"gobgp","full_name":"osrg/gobgp","owner":{"login":"osrg","id":1179438,"avatar_url":"https://avatars.githubusercontent.com/u/1179438?v=3","gravatar_id":"","url":"https://api.github.com/users/osrg","html_url":"https://github.com/osrg","followers_url":"https://api.github.com/users/osrg/followers","following_url":"https://api.github.com/users/osrg/following{/other_user}","gists_url":"https://api.github.com/users/osrg/gists{/gist_id}","starred_url":"https://api.github.com/users/osrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osrg/subscriptions","organizations_url":"https://api.github.com/users/osrg/orgs","repos_url":"https://api.github.com/users/osrg/repos","events_url":"https://api.github.com/users/osrg/events{/privacy}","received_events_url":"https://api.github.com/users/osrg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/osrg/gobgp","description":"BGP implemented in the Go Programming Language","fork":false,"url":"https://api.github.com/repos/osrg/gobgp","forks_url":"https://api.github.com/repos/osrg/gobgp/forks","keys_url":"https://api.github.com/repos/osrg/gobgp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/osrg/gobgp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/osrg/gobgp/teams","hooks_url":"https://api.github.com/repos/osrg/gobgp/hooks","issue_events_url":"https://api.github.com/repos/osrg/gobgp/issues/events{/number}","events_url":"https://api.github.com/repos/osrg/gobgp/events","assignees_url":"https://api.github.com/repos/osrg/gobgp/assignees{/user}","branches_url":"https://api.github.com/repos/osrg/gobgp/branches{/branch}","tags_url":"https://api.github.com/repos/osrg/gobgp/tags","blobs_url":"https://api.github.com/repos/osrg/gobgp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/osrg/gobgp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/osrg/gobgp/git/refs{/sha}","trees_url":"https://api.github.com/repos/osrg/gobgp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/osrg/gobgp/statuses/{sha}","languages_url":"https://api.github.com/repos/osrg/gobgp/languages","stargazers_url":"https://api.github.com/repos/osrg/gobgp/stargazers","contributors_url":"https://api.github.com/repos/osrg/gobgp/contributors","subscribers_url":"https://api.github.com/repos/osrg/gobgp/subscribers","subscription_url":"https://api.github.com/repos/osrg/gobgp/subscription","commits_url":"https://api.github.com/repos/osrg/gobgp/commits{/sha}","git_commits_url":"https://api.github.com/repos/osrg/gobgp/git/commits{/sha}","comments_url":"https://api.github.com/repos/osrg/gobgp/comments{/number}","issue_comment_url":"https://api.github.com/repos/osrg/gobgp/issues/comments{/number}","contents_url":"https://api.github.com/repos/osrg/gobgp/contents/{+path}","compare_url":"https://api.github.com/repos/osrg/gobgp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/osrg/gobgp/merges","archive_url":"https://api.github.com/repos/osrg/gobgp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/osrg/gobgp/downloads","issues_url":"https://api.github.com/repos/osrg/gobgp/issues{/number}","pulls_url":"https://api.github.com/repos/osrg/gobgp/pulls{/number}","milestones_url":"https://api.github.com/repos/osrg/gobgp/milestones{/number}","notifications_url":"https://api.github.com/repos/osrg/gobgp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/osrg/gobgp/labels{/name}","releases_url":"https://api.github.com/repos/osrg/gobgp/releases{/id}","deployments_url":"https://api.github.com/repos/osrg/gobgp/deployments","created_at":"2014-09-14T01:51:58Z","updated_at":"2016-10-03T19:34:48Z","pushed_at":"2016-10-04T05:48:27Z","git_url":"git://github.com/osrg/gobgp.git","ssh_url":"git@github.com:osrg/gobgp.git","clone_url":"https://github.com/osrg/gobgp.git","svn_url":"https://github.com/osrg/gobgp","homepage":"http://osrg.github.io/gobgp/","size":11252,"stargazers_count":818,"watchers_count":818,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":101,"mirror_url":null,"open_issues_count":24,"forks":101,"open_issues":24,"watchers":818,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/osrg/gobgp/pulls/1125"},"html":{"href":"https://github.com/osrg/gobgp/pull/1125"},"issue":{"href":"https://api.github.com/repos/osrg/gobgp/issues/1125"},"comments":{"href":"https://api.github.com/repos/osrg/gobgp/issues/1125/comments"},"review_comments":{"href":"https://api.github.com/repos/osrg/gobgp/pulls/1125/comments"},"review_comment":{"href":"https://api.github.com/repos/osrg/gobgp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/osrg/gobgp/pulls/1125/commits"},"statuses":{"href":"https://api.github.com/repos/osrg/gobgp/statuses/29e7dca5e5ba59b5a8068ecb746c439bacd7dd29"}}}}
{"actor":{"display_login":"fujita"}}