{"action":"created","comment":{"url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/comments/42189529","id":42189529,"diff_hunk":"@@ -311,6 +311,22 @@ def default_confederation_id\n       config_get_default('bgp', 'confederation_id')\n     end\n \n+    # Enforce First As (Getter/Setter/Default)\n+    def enforce_first_as\n+      match = config_get('bgp', 'enforce_first_as', @get_args)\n+      match.nil? ? false : default_enforce_first_as","path":"lib/cisco_node_utils/bgp.rb","position":7,"original_position":7,"commit_id":"e1c483591a895d6ef8b400718ba41b5ed7a7212a","original_commit_id":"e1c483591a895d6ef8b400718ba41b5ed7a7212a","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":"Yes it is true. Does that relate to the default in yaml?","created_at":"2015-10-15T22:31:29Z","updated_at":"2015-10-15T22:31:29Z","html_url":"https://github.com/cisco/cisco-network-node-utils/pull/24#discussion_r42189529","pull_request_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/comments/42189529"},"html":{"href":"https://github.com/cisco/cisco-network-node-utils/pull/24#discussion_r42189529"},"pull_request":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24","id":47731403,"html_url":"https://github.com/cisco/cisco-network-node-utils/pull/24","diff_url":"https://github.com/cisco/cisco-network-node-utils/pull/24.diff","patch_url":"https://github.com/cisco/cisco-network-node-utils/pull/24.patch","issue_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/24","number":24,"state":"open","locked":false,"title":"enforce first as property","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":"add enforce-first-as property \r\n\r\npass static test with rubocop and pass ruby test","created_at":"2015-10-15T00:18:25Z","updated_at":"2015-10-15T22:31:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0daabbdcdeac0447dfcdd4620af9fee88127d11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24/commits","review_comments_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24/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/24/comments","statuses_url":"https://api.github.com/repos/cisco/cisco-network-node-utils/statuses/e1c483591a895d6ef8b400718ba41b5ed7a7212a","head":{"label":"andy91315:feature/bgp","ref":"feature/bgp","sha":"e1c483591a895d6ef8b400718ba41b5ed7a7212a","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":43916287,"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-08T21:05:49Z","updated_at":"2015-10-08T21:05:50Z","pushed_at":"2015-10-15T18:01:41Z","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":724,"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:feature/bgp","ref":"feature/bgp","sha":"1710ccf1f9a09bc7228fc82d60d2dca8f0304835","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-10-01T17:55:41Z","pushed_at":"2015-10-15T20:59:41Z","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":1475,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":2,"forks":12,"open_issues":2,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24"},"html":{"href":"https://github.com/cisco/cisco-network-node-utils/pull/24"},"issue":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/24"},"comments":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/pulls/24/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/24/commits"},"statuses":{"href":"https://api.github.com/repos/cisco/cisco-network-node-utils/statuses/e1c483591a895d6ef8b400718ba41b5ed7a7212a"}}}}