{"action":"created","comment":{"url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/comments/44790328","id":44790328,"diff_hunk":"@@ -547,5 +547,109 @@ def redistribute=(should)\n     def default_redistribute\n       config_get_default('bgp_af', 'redistribute')\n     end\n+\n+    # route target both auto(Getter/Setter/Default)\n+    def route_target_both_auto\n+      config_get('bgp_af', 'route_target_both_auto', @get_args)\n+    end\n+\n+    def route_target_both_auto=(enable)\n+      @set_args[:state] = (enable ? '' : 'no')\n+      config_set('bgp_af', 'route_target_both_auto', @set_args)\n+      set_args_keys_default\n+    end\n+\n+    def default_route_target_both_auto\n+      config_get_default('bgp_af', 'route_target_both_auto')\n+    end\n+\n+    # route target both auto evpn(Getter/Setter/Default)\n+    def route_target_both_auto_evpn\n+      config_get('bgp_af', 'route_target_both_auto_evpn', @get_args)\n+    end\n+\n+    def route_target_both_auto_evpn=(enable)\n+      @set_args[:state] = (enable ? '' : 'no')\n+      config_set('bgp_af', 'route_target_both_auto_evpn', @set_args)\n+      set_args_keys_default\n+    end\n+\n+    def default_route_target_both_auto_evpn\n+      config_get_default('bgp_af', 'route_target_both_auto_evpn')\n+    end\n+\n+    # route target export\n+    def route_target_export\n+      cmds = config_get('bgp_af', 'route_target_export', @get_args)\n+      cmds.empty? ? [] : cmds.sort\n+    end\n+\n+    def route_target_export=(should)\n+      route_target_delta(should, route_target_export, 'route_target_export')\n+    end\n+\n+    def default_route_target_export\n+      config_get_default('bgp_af', 'route_target_export')\n+    end\n+\n+    # route target export_evpn\n+    def route_target_export_evpn\n+      cmds = config_get('bgp_af', 'route_target_export_evpn', @get_args)\n+      cmds.empty? ? [] : cmds.sort\n+    end\n+\n+    def route_target_export_evpn=(should)\n+      route_target_delta(should, route_target_export_evpn,\n+                         'route_target_export_evpn')\n+    end\n+\n+    def default_route_target_export_evpn\n+      config_get_default('bgp_af', 'route_target_export_evpn')\n+    end\n+\n+    # route target import\n+    def route_target_import\n+      cmds = config_get('bgp_af', 'route_target_import', @get_args)\n+      cmds.empty? ? [] : cmds.sort\n+    end\n+\n+    def route_target_import=(should)\n+      route_target_delta(should, route_target_import, 'route_target_import')\n+    end\n+\n+    def default_route_target_import\n+      config_get_default('bgp_af', 'route_target_import')\n+    end\n+\n+    # route target import_evpn\n+    def route_target_import_evpn\n+      cmds = config_get('bgp_af', 'route_target_import_evpn', @get_args)\n+      cmds.empty? ? [] : cmds.sort\n+    end\n+\n+    def route_target_import_evpn=(should)\n+      route_target_delta(should, route_target_import_evpn,\n+                         'route_target_import_evpn')\n+    end\n+\n+    def default_route_target_import_evpn\n+      config_get_default('bgp_af', 'route_target_import_evpn')\n+    end\n+\n+    def route_target_delta(should, is, prop)\n+      puts \"delta #{should} is #{is}\"","path":"lib/cisco_node_utils/bgp_af.rb","position":94,"original_position":94,"commit_id":"a502c76f3081b194df864eeedd9ee461b522f01e","original_commit_id":"a502c76f3081b194df864eeedd9ee461b522f01e","user":{"login":"chrisvanheuveln","id":12087548,"avatar_url":"https://avatars.githubusercontent.com/u/12087548?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvanheuveln","html_url":"https://github.com/chrisvanheuveln","followers_url":"https://api.github.com/users/chrisvanheuveln/followers","following_url":"https://api.github.com/users/chrisvanheuveln/following{/other_user}","gists_url":"https://api.github.com/users/chrisvanheuveln/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvanheuveln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvanheuveln/subscriptions","organizations_url":"https://api.github.com/users/chrisvanheuveln/orgs","repos_url":"https://api.github.com/users/chrisvanheuveln/repos","events_url":"https://api.github.com/users/chrisvanheuveln/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvanheuveln/received_events","type":"User","site_admin":false},"body":"Remove the puts line","created_at":"2015-11-13T15:00:45Z","updated_at":"2015-11-13T15:00:45Z","html_url":"https://github.com/cisco/cisco-network-node-utils/pull/77#discussion_r44790328","pull_request_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/comments/44790328"},"html":{"href":"https://github.com/cisco/cisco-network-node-utils/pull/77#discussion_r44790328"},"pull_request":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77","id":50476516,"html_url":"https://github.com/cisco/cisco-network-node-utils/pull/77","diff_url":"https://github.com/cisco/cisco-network-node-utils/pull/77.diff","patch_url":"https://github.com/cisco/cisco-network-node-utils/pull/77.patch","issue_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/77","number":77,"state":"open","locked":false,"title":"route distinguisher to bgp and route target to bgp_af","user":{"login":"andy91315","id":1629644,"avatar_url":"https://avatars.githubusercontent.com/u/1629644?v=3","gravatar_id":"","url":"https://api.github.com/users/andy91315","html_url":"https://github.com/andy91315","followers_url":"https://api.github.com/users/andy91315/followers","following_url":"https://api.github.com/users/andy91315/following{/other_user}","gists_url":"https://api.github.com/users/andy91315/gists{/gist_id}","starred_url":"https://api.github.com/users/andy91315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy91315/subscriptions","organizations_url":"https://api.github.com/users/andy91315/orgs","repos_url":"https://api.github.com/users/andy91315/repos","events_url":"https://api.github.com/users/andy91315/events{/privacy}","received_events_url":"https://api.github.com/users/andy91315/received_events","type":"User","site_admin":false},"body":"1. pass minitest\r\nroute distinguisher:\r\nTestRouterBgp#test_routerbgp_set_get_route_distinguisher = 11.09 s = .\r\nTestRouterBgp#test_routerbgp_get_route_distinguisher_not_configured = 7.66 s =\r\nTestRouterBgp#test_routerbgp_default_route_distinguisher = 7.38 s =\r\n\r\nroute target:\r\nTestRouterBgpAF#test_route_target = 20.72 s = .\r\nFinished in 20.723943s, 0.0483 runs/s, 2.1231 assertions/s.\r\n1 runs, 44 assertions, 0 failures, 0 errors, 0 skips\r\n\r\n2. pass static analysis","created_at":"2015-11-12T06:33:36Z","updated_at":"2015-11-13T15:00:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06db2eeff0b3fd58070081f4c4804f46ccdf018a","assignee":{"login":"chrisvanheuveln","id":12087548,"avatar_url":"https://avatars.githubusercontent.com/u/12087548?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisvanheuveln","html_url":"https://github.com/chrisvanheuveln","followers_url":"https://api.github.com/users/chrisvanheuveln/followers","following_url":"https://api.github.com/users/chrisvanheuveln/following{/other_user}","gists_url":"https://api.github.com/users/chrisvanheuveln/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisvanheuveln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisvanheuveln/subscriptions","organizations_url":"https://api.github.com/users/chrisvanheuveln/orgs","repos_url":"https://api.github.com/users/chrisvanheuveln/repos","events_url":"https://api.github.com/users/chrisvanheuveln/events{/privacy}","received_events_url":"https://api.github.com/users/chrisvanheuveln/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77/commits","review_comments_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77/comments","review_comment_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/77/comments","statuses_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/statuses/a502c76f3081b194df864eeedd9ee461b522f01e","head":{"label":"andy91315:routetarget","ref":"routetarget","sha":"a502c76f3081b194df864eeedd9ee461b522f01e","user":{"login":"andy91315","id":1629644,"avatar_url":"https://avatars.githubusercontent.com/u/1629644?v=3","gravatar_id":"","url":"https://api.github.com/users/andy91315","html_url":"https://github.com/andy91315","followers_url":"https://api.github.com/users/andy91315/followers","following_url":"https://api.github.com/users/andy91315/following{/other_user}","gists_url":"https://api.github.com/users/andy91315/gists{/gist_id}","starred_url":"https://api.github.com/users/andy91315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy91315/subscriptions","organizations_url":"https://api.github.com/users/andy91315/orgs","repos_url":"https://api.github.com/users/andy91315/repos","events_url":"https://api.github.com/users/andy91315/events{/privacy}","received_events_url":"https://api.github.com/users/andy91315/received_events","type":"User","site_admin":false},"repo":{"id":44636922,"name":"cisco-network-node-utils","full_name":"andy91315/cisco-network-node-utils","owner":{"login":"andy91315","id":1629644,"avatar_url":"https://avatars.githubusercontent.com/u/1629644?v=3","gravatar_id":"","url":"https://api.github.com/users/andy91315","html_url":"https://github.com/andy91315","followers_url":"https://api.github.com/users/andy91315/followers","following_url":"https://api.github.com/users/andy91315/following{/other_user}","gists_url":"https://api.github.com/users/andy91315/gists{/gist_id}","starred_url":"https://api.github.com/users/andy91315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy91315/subscriptions","organizations_url":"https://api.github.com/users/andy91315/orgs","repos_url":"https://api.github.com/users/andy91315/repos","events_url":"https://api.github.com/users/andy91315/events{/privacy}","received_events_url":"https://api.github.com/users/andy91315/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andy91315/cisco-network-node-utils","description":"","fork":true,"url":"https://api.github.com/repos/andy91315/cisco-network-node-utils","forks_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/forks","keys_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/teams","hooks_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/hooks","issue_events_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/issues/events{/number}","events_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/events","assignees_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/assignees{/user}","branches_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/branches{/branch}","tags_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/tags","blobs_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/languages","stargazers_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/stargazers","contributors_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/contributors","subscribers_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/subscribers","subscription_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/subscription","commits_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/contents/{+path}","compare_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/merges","archive_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/downloads","issues_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/issues{/number}","pulls_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/labels{/name}","releases_url":"https://api.github.com/repos/andy91315/cisco-network-node-utils/releases{/id}","created_at":"2015-10-20T21:50:41Z","updated_at":"2015-10-20T21:50:41Z","pushed_at":"2015-11-13T00:13:13Z","git_url":"git://github.com/andy91315/cisco-network-node-utils.git","ssh_url":"git@github.com:andy91315/cisco-network-node-utils.git","clone_url":"https://github.com/andy91315/cisco-network-node-utils.git","svn_url":"https://github.com/andy91315/cisco-network-node-utils","homepage":null,"size":1134,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"cisco:develop","ref":"develop","sha":"0692ca45ee9a9e2df7133fd2f42428cfb8fcc172","user":{"login":"cisco","id":1376999,"avatar_url":"https://avatars.githubusercontent.com/u/1376999?v=3","gravatar_id":"","url":"https://api.github.com/users/cisco","html_url":"https://github.com/cisco","followers_url":"https://api.github.com/users/cisco/followers","following_url":"https://api.github.com/users/cisco/following{/other_user}","gists_url":"https://api.github.com/users/cisco/gists{/gist_id}","starred_url":"https://api.github.com/users/cisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisco/subscriptions","organizations_url":"https://api.github.com/users/cisco/orgs","repos_url":"https://api.github.com/users/cisco/repos","events_url":"https://api.github.com/users/cisco/events{/privacy}","received_events_url":"https://api.github.com/users/cisco/received_events","type":"Organization","site_admin":false},"repo":{"id":39565196,"name":"cisco-network-node-utils","full_name":"cisco/cisco-network-node-utils","owner":{"login":"cisco","id":1376999,"avatar_url":"https://avatars.githubusercontent.com/u/1376999?v=3","gravatar_id":"","url":"https://api.github.com/users/cisco","html_url":"https://github.com/cisco","followers_url":"https://api.github.com/users/cisco/followers","following_url":"https://api.github.com/users/cisco/following{/other_user}","gists_url":"https://api.github.com/users/cisco/gists{/gist_id}","starred_url":"https://api.github.com/users/cisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisco/subscriptions","organizations_url":"https://api.github.com/users/cisco/orgs","repos_url":"https://api.github.com/users/cisco/repos","events_url":"https://api.github.com/users/cisco/events{/privacy}","received_events_url":"https://api.github.com/users/cisco/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cisco/cisco-network-node-utils","description":"","fork":false,"url":"https://api.github.com/repos/cisco/cisco-network-node-utils","forks_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/forks","keys_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/teams","hooks_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/hooks","issue_events_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/events{/number}","events_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/events","assignees_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/assignees{/user}","branches_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/branches{/branch}","tags_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/tags","blobs_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/languages","stargazers_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/stargazers","contributors_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/contributors","subscribers_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/subscribers","subscription_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/subscription","commits_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/contents/{+path}","compare_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/merges","archive_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/downloads","issues_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues{/number}","pulls_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/labels{/name}","releases_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/releases{/id}","created_at":"2015-07-23T12:07:39Z","updated_at":"2015-11-12T06:34:19Z","pushed_at":"2015-11-13T14:45:59Z","git_url":"git://github.com/cisco/cisco-network-node-utils.git","ssh_url":"git@github.com:cisco/cisco-network-node-utils.git","clone_url":"https://github.com/cisco/cisco-network-node-utils.git","svn_url":"https://github.com/cisco/cisco-network-node-utils","homepage":null,"size":2873,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":6,"forks":22,"open_issues":6,"watchers":7,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77"},"html":{"href":"https://github.com/cisco/cisco-network-node-utils/pull/77"},"issue":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/77"},"comments":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/statuses/a502c76f3081b194df864eeedd9ee461b522f01e"}}}}