{"action":"closed","issue":{"url":"https://api.github.com/repos/eonpatapon/contrail-api-cli/issues/17","repository_url":"https://api.github.com/repos/eonpatapon/contrail-api-cli","labels_url":"https://api.github.com/repos/eonpatapon/contrail-api-cli/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/eonpatapon/contrail-api-cli/issues/17/comments","events_url":"https://api.github.com/repos/eonpatapon/contrail-api-cli/issues/17/events","html_url":"https://github.com/eonpatapon/contrail-api-cli/issues/17","id":166996337,"number":17,"title":"Correct AS number is not reflected in the BGP peer after BGP peer router addition using contrail-api-cli","user":{"login":"sureshkvl","id":5174614,"avatar_url":"https://avatars.githubusercontent.com/u/5174614?v=3","gravatar_id":"","url":"https://api.github.com/users/sureshkvl","html_url":"https://github.com/sureshkvl","followers_url":"https://api.github.com/users/sureshkvl/followers","following_url":"https://api.github.com/users/sureshkvl/following{/other_user}","gists_url":"https://api.github.com/users/sureshkvl/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshkvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshkvl/subscriptions","organizations_url":"https://api.github.com/users/sureshkvl/orgs","repos_url":"https://api.github.com/users/sureshkvl/repos","events_url":"https://api.github.com/users/sureshkvl/events{/privacy}","received_events_url":"https://api.github.com/users/sureshkvl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T08:35:42Z","updated_at":"2016-07-27T13:16:15Z","closed_at":"2016-07-27T13:16:15Z","body":"Issue :   \r\nGiven BGP AS number for the BGP Peer is not updated properly.\r\n\r\nWhen i add the BGP peer using  contrail CLI, the BGP Peer AS number is modified to the local AS number instead of the given one.\r\n\r\n\r\n1)\r\n\r\n/usr/bin/contrail-api-cli --ns contrail_api_cli.provision add-bgp-router  --router-ip 192.168.122.230  --router-asn  64510  mitaka6\r\n\r\n\r\nHere  mitaka6 AS Number is 64510.\r\n\r\n2)\r\n\r\n⌂119% 2d [cloud@mitak5:~/devstack] stable/mitaka* ± /usr/bin/contrail-api-cli --ns contrail_api_cli.provision list-bgp-router\r\n[\r\n  {\r\n    \"router_port\": 179,\r\n    \"router_asn\": 64513,\r\n    \"router_md5\": [],\r\n    \"router_ip\": \"192.168.122.185\",\r\n    \"router_address_families\": [\r\n      \"route-target\",\r\n      \"inet-vpn\",\r\n      \"e-vpn\",\r\n      \"erm-vpn\",\r\n      \"inet6-vpn\"\r\n    ],\r\n    \"router_type\": \"contrail\",\r\n    \"router_name\": \"mitak5\"\r\n  },\r\n  {\r\n    \"router_port\": 179,\r\n    \"router_asn\": 64513,\r\n    \"router_md5\": [],\r\n    \"router_ip\": \"192.168.122.230\",\r\n    \"router_address_families\": [\r\n      \"route-target\",\r\n      \"inet-vpn\",\r\n      \"e-vpn\",\r\n      \"erm-vpn\",\r\n      \"inet6-vpn\"\r\n    ],\r\n    \"router_type\": \"contrail\",\r\n    \"router_name\": \"mitaka6\"\r\n  }\r\n]\r\n\r\nIn this, it has been modified as 64513 (local AS number)\r\n\r\nThe log show, after the CREATE bgp router,\r\nUPDATE is called with 64513 AS number.\r\nAttached the log for reference.\r\n\r\n\r\n4. To resolve this issue, I have edited this object(using Contrail api cli)  and updated the AS number.\r\n\r\n\r\n"}}
{"actor":{"display_login":"nlewo"}}