{"action":"reopened","number":21817,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/21817","id":107565855,"html_url":"https://github.com/ansible/ansible/pull/21817","diff_url":"https://github.com/ansible/ansible/pull/21817.diff","patch_url":"https://github.com/ansible/ansible/pull/21817.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/21817","number":21817,"state":"open","locked":false,"title":"Contributing lib/ansible/modules/network/cloudengine/ce_netstream_global.py module to manage HUAWEI data center CloudEngine","user":{"login":"QijunPan","id":24448918,"avatar_url":"https://avatars2.githubusercontent.com/u/24448918?v=3","gravatar_id":"","url":"https://api.github.com/users/QijunPan","html_url":"https://github.com/QijunPan","followers_url":"https://api.github.com/users/QijunPan/followers","following_url":"https://api.github.com/users/QijunPan/following{/other_user}","gists_url":"https://api.github.com/users/QijunPan/gists{/gist_id}","starred_url":"https://api.github.com/users/QijunPan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QijunPan/subscriptions","organizations_url":"https://api.github.com/users/QijunPan/orgs","repos_url":"https://api.github.com/users/QijunPan/repos","events_url":"https://api.github.com/users/QijunPan/events{/privacy}","received_events_url":"https://api.github.com/users/QijunPan/received_events","type":"User","site_admin":false},"body":"add ce_netstream_global module\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - New Module Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/plugin/module/task -->\r\nce_netstream_global.py\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.3.0\r\nconfig file = /etc/ansible/ansible.cfg\r\nconfigured module search path = ['/home/ansible-2.1.1.0/lib/ansible/modules/core/network/cloudengine', '/home/ansible-2.1.1.0/lib/ansible/module_utils', '/home/ansible-2.1.1.0/lib/ansible/modules', '/home/ansible-2.1.1.0', '/home/ansible-2.1.1.0/lib/ansible/utils/']\r\n```\r\n\r\n##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\n\r\n<!---\r\nIf you are fixing an existing issue, please include \"Fixes #nnn\" in your\r\ncommit message and your description; but you should still explain what\r\nthe change does.\r\n-->\r\n\r\n<!-- Paste verbatim command output below, e.g. before and after your change -->\r\n```\r\nTASK [Configure a netstream sampler at global, direction is inbound,interval is 20] ***\r\ntask path: /usr1/code/OpenNESS/code/current/KVM/intg/test/testcases/test-ce_netstream_global.yml:65\r\nUsing module file /usr/local/lib/python2.7/site-packages/ansible-2.3.0-py2.7.egg/ansible/modules/core/network/cloudengine/ce_netstream_global.py\r\n<ce_6850> ESTABLISH LOCAL CONNECTION FOR USER: root\r\n<ce_6850> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869 `\" && echo ansible-tmp-1487051678.79-275356891805869=\"` echo $HOME/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869 `\" ) && sleep 0'\r\n<ce_6850> PUT /tmp/tmpKtDLvl TO /root/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869/ce_netstream_global.py\r\n<ce_6850> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869/ /root/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869/ce_netstream_global.py && sleep 0'\r\n<ce_6850> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869/ce_netstream_global.py; rm -rf \"/root/.ansible/tmp/ansible-tmp-1487051678.79-275356891805869/\" > /dev/null 2>&1 && sleep 0'\r\nchanged: [ce_6850] => {\r\n    \"changed\": true, \r\n    \"end_state\": {\r\n        \"flexible_statistic\": [\r\n            {\r\n                \"interface\": \"all\", \r\n                \"statistics_record\": [], \r\n                \"type\": \"ip\"\r\n            }, \r\n            {\r\n                \"interface\": \"all\", \r\n                \"statistics_record\": [], \r\n                \"type\": \"vxlan\"\r\n            }\r\n        ], \r\n        \"index-switch\": [\r\n            {\r\n                \"index-switch\": \"16\", \r\n                \"type\": \"ip\"\r\n            }, \r\n            {\r\n                \"index-switch\": \"16\", \r\n                \"type\": \"vxlan\"\r\n            }\r\n        ], \r\n        \"sampler\": [\r\n            {\r\n                \"interface\": \"all\", \r\n                \"sampler_direction\": \"inbound\", \r\n                \"sampler_interval\": \"20\"\r\n            }\r\n        ], \r\n        \"statistic\": [\r\n            {\r\n                \"interface\": \"all\", \r\n                \"statistics_direction\": [], \r\n                \"type\": \"null\"\r\n            }\r\n        ]\r\n    }, \r\n    \"existing\": {\r\n        \"flexible_statistic\": [\r\n            {\r\n                \"interface\": \"all\", \r\n                \"statistics_record\": [], \r\n                \"type\": \"ip\"\r\n            }, \r\n            {\r\n                \"interface\": \"all\", \r\n                \"statistics_record\": [], \r\n                \"type\": \"vxlan\"\r\n            }\r\n        ], \r\n        \"index-switch\": [\r\n            {\r\n                \"index-switch\": \"16\", \r\n                \"type\": \"ip\"\r\n            }, \r\n            {\r\n                \"index-switch\": \"16\", \r\n                \"type\": \"vxlan\"\r\n            }\r\n        ], \r\n        \"ip_record\": [\r\n            \"test\", \r\n            \"test1\"\r\n        ], \r\n        \"sampler\": [\r\n            {\r\n                \"interface\": \"all\", \r\n                \"sampler_direction\": \"null\", \r\n                \"sampler_interval\": \"null\"\r\n            }\r\n        ], \r\n        \"statistic\": [\r\n            {\r\n                \"interface\": \"all\", \r\n                \"statistics_direction\": [], \r\n                \"type\": \"null\"\r\n            }\r\n        ], \r\n        \"vxlan_record\": [\r\n            \"test\"\r\n        ]\r\n    }, \r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"auth_pass\": null, \r\n            \"authorize\": false, \r\n            \"host\": \"ce_6850\", \r\n            \"index_switch\": \"16\", \r\n            \"interface\": \"all\", \r\n            \"password\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \r\n            \"port\": 12345, \r\n            \"provider\": null, \r\n            \"sampler_direction\": \"inbound\", \r\n            \"sampler_interval\": \"20\", \r\n            \"ssh_keyfile\": null, \r\n            \"state\": \"present\", \r\n            \"statistics_direction\": null, \r\n            \"statistics_record\": null, \r\n            \"timeout\": 10, \r\n            \"transport\": null, \r\n            \"type\": \"ip\", \r\n            \"use_ssl\": false, \r\n            \"username\": \"rootDC\", \r\n            \"validate_certs\": true\r\n        }, \r\n        \"module_name\": \"ce_netstream_global\"\r\n    }, \r\n    \"proposed\": {\r\n        \"index_switch\": \"16\", \r\n        \"interface\": \"all\", \r\n        \"sampler_direction\": \"inbound\", \r\n        \"sampler_interval\": \"20\", \r\n        \"state\": \"present\", \r\n        \"type\": \"ip\"\r\n    }, \r\n    \"updates\": [\r\n        \"netstream sampler random-packets 20 inbound\"\r\n    ]\r\n}\r\n```\r\n","created_at":"2017-02-23T06:54:17Z","updated_at":"2017-05-03T10:38:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"844b7a6c0ef752f0e883772009a0cb1f14bbbe10","assignee":{"login":"gundalow","id":940557,"avatar_url":"https://avatars2.githubusercontent.com/u/940557?v=3","gravatar_id":"","url":"https://api.github.com/users/gundalow","html_url":"https://github.com/gundalow","followers_url":"https://api.github.com/users/gundalow/followers","following_url":"https://api.github.com/users/gundalow/following{/other_user}","gists_url":"https://api.github.com/users/gundalow/gists{/gist_id}","starred_url":"https://api.github.com/users/gundalow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gundalow/subscriptions","organizations_url":"https://api.github.com/users/gundalow/orgs","repos_url":"https://api.github.com/users/gundalow/repos","events_url":"https://api.github.com/users/gundalow/events{/privacy}","received_events_url":"https://api.github.com/users/gundalow/received_events","type":"User","site_admin":false},"assignees":[{"login":"gundalow","id":940557,"avatar_url":"https://avatars2.githubusercontent.com/u/940557?v=3","gravatar_id":"","url":"https://api.github.com/users/gundalow","html_url":"https://github.com/gundalow","followers_url":"https://api.github.com/users/gundalow/followers","following_url":"https://api.github.com/users/gundalow/following{/other_user}","gists_url":"https://api.github.com/users/gundalow/gists{/gist_id}","starred_url":"https://api.github.com/users/gundalow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gundalow/subscriptions","organizations_url":"https://api.github.com/users/gundalow/orgs","repos_url":"https://api.github.com/users/gundalow/repos","events_url":"https://api.github.com/users/gundalow/events{/privacy}","received_events_url":"https://api.github.com/users/gundalow/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/21817/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/21817/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/21817/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/f2b6dec673143d5cb993248e09dbe03a225d1db5","head":{"label":"HuaweiSwitch:devel-netstream_global","ref":"devel-netstream_global","sha":"f2b6dec673143d5cb993248e09dbe03a225d1db5","user":{"login":"HuaweiSwitch","id":15951052,"avatar_url":"https://avatars2.githubusercontent.com/u/15951052?v=3","gravatar_id":"","url":"https://api.github.com/users/HuaweiSwitch","html_url":"https://github.com/HuaweiSwitch","followers_url":"https://api.github.com/users/HuaweiSwitch/followers","following_url":"https://api.github.com/users/HuaweiSwitch/following{/other_user}","gists_url":"https://api.github.com/users/HuaweiSwitch/gists{/gist_id}","starred_url":"https://api.github.com/users/HuaweiSwitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuaweiSwitch/subscriptions","organizations_url":"https://api.github.com/users/HuaweiSwitch/orgs","repos_url":"https://api.github.com/users/HuaweiSwitch/repos","events_url":"https://api.github.com/users/HuaweiSwitch/events{/privacy}","received_events_url":"https://api.github.com/users/HuaweiSwitch/received_events","type":"Organization","site_admin":false},"repo":{"id":82508894,"name":"ansible","full_name":"HuaweiSwitch/ansible","owner":{"login":"HuaweiSwitch","id":15951052,"avatar_url":"https://avatars2.githubusercontent.com/u/15951052?v=3","gravatar_id":"","url":"https://api.github.com/users/HuaweiSwitch","html_url":"https://github.com/HuaweiSwitch","followers_url":"https://api.github.com/users/HuaweiSwitch/followers","following_url":"https://api.github.com/users/HuaweiSwitch/following{/other_user}","gists_url":"https://api.github.com/users/HuaweiSwitch/gists{/gist_id}","starred_url":"https://api.github.com/users/HuaweiSwitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuaweiSwitch/subscriptions","organizations_url":"https://api.github.com/users/HuaweiSwitch/orgs","repos_url":"https://api.github.com/users/HuaweiSwitch/repos","events_url":"https://api.github.com/users/HuaweiSwitch/events{/privacy}","received_events_url":"https://api.github.com/users/HuaweiSwitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HuaweiSwitch/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":true,"url":"https://api.github.com/repos/HuaweiSwitch/ansible","forks_url":"https://api.github.com/repos/HuaweiSwitch/ansible/forks","keys_url":"https://api.github.com/repos/HuaweiSwitch/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HuaweiSwitch/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HuaweiSwitch/ansible/teams","hooks_url":"https://api.github.com/repos/HuaweiSwitch/ansible/hooks","issue_events_url":"https://api.github.com/repos/HuaweiSwitch/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/HuaweiSwitch/ansible/events","assignees_url":"https://api.github.com/repos/HuaweiSwitch/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/HuaweiSwitch/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/HuaweiSwitch/ansible/tags","blobs_url":"https://api.github.com/repos/HuaweiSwitch/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HuaweiSwitch/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HuaweiSwitch/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/HuaweiSwitch/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HuaweiSwitch/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/HuaweiSwitch/ansible/languages","stargazers_url":"https://api.github.com/repos/HuaweiSwitch/ansible/stargazers","contributors_url":"https://api.github.com/repos/HuaweiSwitch/ansible/contributors","subscribers_url":"https://api.github.com/repos/HuaweiSwitch/ansible/subscribers","subscription_url":"https://api.github.com/repos/HuaweiSwitch/ansible/subscription","commits_url":"https://api.github.com/repos/HuaweiSwitch/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/HuaweiSwitch/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/HuaweiSwitch/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/HuaweiSwitch/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/HuaweiSwitch/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/HuaweiSwitch/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HuaweiSwitch/ansible/merges","archive_url":"https://api.github.com/repos/HuaweiSwitch/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HuaweiSwitch/ansible/downloads","issues_url":"https://api.github.com/repos/HuaweiSwitch/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/HuaweiSwitch/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/HuaweiSwitch/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/HuaweiSwitch/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HuaweiSwitch/ansible/labels{/name}","releases_url":"https://api.github.com/repos/HuaweiSwitch/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/HuaweiSwitch/ansible/deployments","created_at":"2017-02-20T02:38:47Z","updated_at":"2017-02-20T02:39:04Z","pushed_at":"2017-05-03T09:16:27Z","git_url":"git://github.com/HuaweiSwitch/ansible.git","ssh_url":"git@github.com:HuaweiSwitch/ansible.git","clone_url":"https://github.com/HuaweiSwitch/ansible.git","svn_url":"https://github.com/HuaweiSwitch/ansible","homepage":"http://ansible.com/","size":66174,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"dd9a39b27b840ca3006702149a694489ab138e20","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars1.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars1.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2017-05-03T09:40:07Z","pushed_at":"2017-05-03T10:32:22Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"http://ansible.com/","size":71809,"stargazers_count":22897,"watchers_count":22897,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7581,"mirror_url":null,"open_issues_count":3031,"forks":7581,"open_issues":3031,"watchers":22897,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/21817"},"html":{"href":"https://github.com/ansible/ansible/pull/21817"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/21817"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/21817/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/21817/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/21817/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/f2b6dec673143d5cb993248e09dbe03a225d1db5"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":910,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"gundalow"}}