{"action":"created","issue":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/552","repository_url":"https://api.github.com/repos/F5Networks/f5-ansible","labels_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/552/comments","events_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/552/events","html_url":"https://github.com/F5Networks/f5-ansible/issues/552","id":285520202,"number":552,"title":"Enhancement - bigip_snmp.py - Support 'Allowed-addresses' in module","user":{"login":"neozoolook","id":26312551,"avatar_url":"https://avatars1.githubusercontent.com/u/26312551?v=4","gravatar_id":"","url":"https://api.github.com/users/neozoolook","html_url":"https://github.com/neozoolook","followers_url":"https://api.github.com/users/neozoolook/followers","following_url":"https://api.github.com/users/neozoolook/following{/other_user}","gists_url":"https://api.github.com/users/neozoolook/gists{/gist_id}","starred_url":"https://api.github.com/users/neozoolook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neozoolook/subscriptions","organizations_url":"https://api.github.com/users/neozoolook/orgs","repos_url":"https://api.github.com/users/neozoolook/repos","events_url":"https://api.github.com/users/neozoolook/events{/privacy}","received_events_url":"https://api.github.com/users/neozoolook/received_events","type":"User","site_admin":false},"labels":[{"id":289531857,"url":"https://api.github.com/repos/F5Networks/f5-ansible/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":655719477,"url":"https://api.github.com/repos/F5Networks/f5-ansible/labels/high","name":"high","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"caphrim007","id":46956,"avatar_url":"https://avatars1.githubusercontent.com/u/46956?v=4","gravatar_id":"","url":"https://api.github.com/users/caphrim007","html_url":"https://github.com/caphrim007","followers_url":"https://api.github.com/users/caphrim007/followers","following_url":"https://api.github.com/users/caphrim007/following{/other_user}","gists_url":"https://api.github.com/users/caphrim007/gists{/gist_id}","starred_url":"https://api.github.com/users/caphrim007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caphrim007/subscriptions","organizations_url":"https://api.github.com/users/caphrim007/orgs","repos_url":"https://api.github.com/users/caphrim007/repos","events_url":"https://api.github.com/users/caphrim007/events{/privacy}","received_events_url":"https://api.github.com/users/caphrim007/received_events","type":"User","site_admin":false},"assignees":[{"login":"caphrim007","id":46956,"avatar_url":"https://avatars1.githubusercontent.com/u/46956?v=4","gravatar_id":"","url":"https://api.github.com/users/caphrim007","html_url":"https://github.com/caphrim007","followers_url":"https://api.github.com/users/caphrim007/followers","following_url":"https://api.github.com/users/caphrim007/following{/other_user}","gists_url":"https://api.github.com/users/caphrim007/gists{/gist_id}","starred_url":"https://api.github.com/users/caphrim007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caphrim007/subscriptions","organizations_url":"https://api.github.com/users/caphrim007/orgs","repos_url":"https://api.github.com/users/caphrim007/repos","events_url":"https://api.github.com/users/caphrim007/events{/privacy}","received_events_url":"https://api.github.com/users/caphrim007/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-01-02T19:47:22Z","updated_at":"2018-02-13T21:51:37Z","closed_at":"2018-01-26T21:02:41Z","author_association":"NONE","body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Feature Idea\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/role/task -->\r\nbigip_snmp.py\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.5.0\r\n  config file = /home/pp2854/dev-vepdg-ansible/ansible-vepdg_fw/ansible.cfg\r\n  configured module search path = [u'/home/pp2854/dev-vepdg-ansible/ansible-vepdg_fw/library']\r\n  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible\r\n  executable location = /usr/local/bin/ansible\r\n  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]\r\n```\r\n\r\n##### PYTHON VERSION\r\n<!--- Paste verbatim output from “python -V” between quotes below -->\r\n```\r\nPython 2.7.12\r\n```\r\n\r\n##### BIGIP VERSION\r\n<!---\r\nPaste verbatim output from “tmsh show sys version” between quotes below\r\n-->\r\n```\r\nSys::Version\r\nMain Package\r\n  Product     BIG-IP\r\n  Version     12.1.2\r\n  Build       0.0.249\r\n  Edition     Final\r\n  Date        Wed Nov 30 16:04:00 PST 2016\r\n```\r\n\r\n##### LIBRARY VERSIONS\r\n<!---\r\nPaste verbatim output from “pip freeze | egrep '(f5-sdk|bigsuds)'” between quotes below\r\n-->\r\n```\r\nbigsuds==1.0.4\r\nf5-sdk==2.3.3\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\nstandard ansible.cfg\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nUbuntu 16.04TS\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nCurrently the bigip_snmp.py module doesn't have options to support adding an 'allowed-addresses' IP whitelese, nor does it support creation of a community with access string.  This is done post using bigip_command.py which isn't ideal.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\nCurrently we have to use bigip_command.py to get these items added into the configuration, example below;\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n---\r\n- name: Set SNMP Configuration Extras\r\n  bigip_command:\r\n    commands:\r\n      - 'modify sys snmp allowed-addresses replace-all-with { {{ snmp_whitelist }} }'\r\n      - 'modify sys snmp communities replace-all-with { {{ snmp_comm_name }} { community-name {{ snmp_community }} }}'\r\n    server: \"{{ ansible_host }}\"\r\n    user: \"{{ username }}\"\r\n    password: \"{{ password }}\"\r\n    validate_certs: \"no\"\r\n  delegate_to: localhost\r\n```\r\nhere is example of configuration on F5 using these options;\r\n```\r\nsys snmp {\r\n    agent-addresses { tcp6:161 udp6:161 }\r\n    allowed-addresses { 135.144.38.162 135.21.229.115 135.205.224.69 135.197.237.169 135.207.171.152 135.205.224.108 135.205.224.87 135.213.31.83 135.213.31.112 135.207.170.183 135.21.229.245 107.239.72.7 }\r\n    communities {\r\n        SNMP_RO {\r\n            community-name XXXXXXXXXXXXXXXXX\r\n        }\r\n    }\r\n    disk-monitors {\r\n        root {\r\n            minspace 2000\r\n            path /\r\n        }\r\n        var {\r\n            minspace 10000\r\n            path /var\r\n        }\r\n    }\r\n    process-monitors {\r\n        bigd {\r\n            process bigd\r\n        }\r\n        chmand {\r\n            process chmand\r\n        }\r\n        httpd {\r\n            max-processes infinity\r\n            process httpd\r\n        }\r\n        mcpd {\r\n            process mcpd\r\n        }\r\n        sod {\r\n            process sod\r\n        }\r\n        tmm {\r\n            max-processes infinity\r\n            process tmm\r\n        }\r\n    }\r\n    sys-contact \"ATT Labs\"\r\n    sys-location zrdm5a\r\n    traps {\r\n        dcaedev1 {\r\n            community XXXXXXXXXXXXXXXXX\r\n            host 135.21.162.4\r\n        }\r\n        dcaedev2 {\r\n            community XXXXXXXXXXXXXXXXX\r\n            host 135.144.38.162\r\n        }\r\n    }\r\n}\r\n```\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/comments/365416910","html_url":"https://github.com/F5Networks/f5-ansible/issues/552#issuecomment-365416910","issue_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/552","id":365416910,"user":{"login":"neozoolook","id":26312551,"avatar_url":"https://avatars1.githubusercontent.com/u/26312551?v=4","gravatar_id":"","url":"https://api.github.com/users/neozoolook","html_url":"https://github.com/neozoolook","followers_url":"https://api.github.com/users/neozoolook/followers","following_url":"https://api.github.com/users/neozoolook/following{/other_user}","gists_url":"https://api.github.com/users/neozoolook/gists{/gist_id}","starred_url":"https://api.github.com/users/neozoolook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neozoolook/subscriptions","organizations_url":"https://api.github.com/users/neozoolook/orgs","repos_url":"https://api.github.com/users/neozoolook/repos","events_url":"https://api.github.com/users/neozoolook/events{/privacy}","received_events_url":"https://api.github.com/users/neozoolook/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T21:51:37Z","updated_at":"2018-02-13T21:51:37Z","author_association":"NONE","body":"@caphrim007 Just tested the allowed_addresses parameter, works ok if something already in there to start with, however if the base configuration is as such;\r\n\r\n```\r\nsys snmp {\r\n    allowed-addresses none\r\n}\r\n```\r\nThen the play will fail, will issue another issue on this and link to this feature number for your reference.\r\n"}}
{"actor":{"display_login":"neozoolook"}}