{"action":"opened","issue":{"url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/865","repository_url":"https://api.github.com/repos/F5Networks/f5-ansible","labels_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/865/comments","events_url":"https://api.github.com/repos/F5Networks/f5-ansible/issues/865/events","html_url":"https://github.com/F5Networks/f5-ansible/issues/865","id":350754797,"node_id":"MDU6SXNzdWUzNTA3NTQ3OTc=","number":865,"title":"Issue with adding subnet in  bigip_static_route","user":{"login":"ishuguru","id":39456041,"node_id":"MDQ6VXNlcjM5NDU2MDQx","avatar_url":"https://avatars1.githubusercontent.com/u/39456041?v=4","gravatar_id":"","url":"https://api.github.com/users/ishuguru","html_url":"https://github.com/ishuguru","followers_url":"https://api.github.com/users/ishuguru/followers","following_url":"https://api.github.com/users/ishuguru/following{/other_user}","gists_url":"https://api.github.com/users/ishuguru/gists{/gist_id}","starred_url":"https://api.github.com/users/ishuguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishuguru/subscriptions","organizations_url":"https://api.github.com/users/ishuguru/orgs","repos_url":"https://api.github.com/users/ishuguru/repos","events_url":"https://api.github.com/users/ishuguru/events{/privacy}","received_events_url":"https://api.github.com/users/ishuguru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-15T10:07:16Z","updated_at":"2018-08-15T10:07:16Z","closed_at":null,"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 - Bug Report\r\n\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/role/task -->\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.7.0.dev0\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.5\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\nBIP-IP 13.1.0.8 Build 0.0.3\r\n\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\nf5-sdk==3.0.18\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\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\nRed Hat 7.5\r\n\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nI try to add a /24 as a static route, but it use the netmask 255.255.255.255 even if i write 255.255.255.0\r\nit work with /32 mask, but i want to add a route for the entire network\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\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n---\r\n-  name: yoyo\r\n   connection: local\r\n   hosts: [ltm-dev]\r\n   gather_facts: False\r\n\r\n   vars_prompt:\r\n    - name: \"password\"\r\n      prompts: \"enter password\"\r\n      private: yes\r\n\r\n   vars:\r\n    provider_bigip:\r\n      user: mrcool\r\n      password: \"{{ password }}\"\r\n      server_port: 443\r\n   tasks:\r\n    - name: add static route\r\n      bigip_static_route:\r\n        destination: 192.168.0.0\r\n        netmask: 255.255.255.0\r\n        gateway_address: 1.1.1.1\r\n        name: 123\r\n        server: \"{{inventory_hostname}}\"\r\n        provider: \"{{ provider_bigip }}\"\r\n        validate_certs: no\r\n      delegate_to: localhost\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\nThe route added as a /24 mask\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\nIt gets a /32 mask\r\nTASK [add static route] **************************************************************************************************************\r\nchanged: [ltm01 -> localhost] => {\r\n    \"changed\": true, \r\n    \"destination\": \"192.168.0.0/32\", \r\n    \"gateway_address\": \"1.1.1.1\", \r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"description\": null, \r\n            \"destination\": \"192.168.0.0\", \r\n            \"gateway_address\": \"1.1.1.1\", \r\n            \"mtu\": null, \r\n            \"name\": \"mang\", \r\n            \"netmask\": \"255.255.255.0\", \r\n            \"partition\": \"Common\", \r\n            \"password\": null, \r\n            \"pool\": null, \r\n            \"provider\": {\r\n                \"password\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \r\n                \"server\": \"ltm01\", \r\n                \"server_port\": 443, \r\n                \"ssh_keyfile\": null, \r\n                \"timeout\": null, \r\n                \"transport\": \"rest\", \r\n                \"user\": \"mrcool\", \r\n                \"validate_certs\": false\r\n            }, \r\n            \"reject\": null, \r\n            \"route_domain\": null, \r\n            \"server\": \"ltm01\", \r\n            \"server_port\": null, \r\n            \"state\": \"present\", \r\n            \"transport\": null, \r\n            \"user\": null, \r\n            \"validate_certs\": false, \r\n            \"vlan\": null\r\n        }\r\n    }, \r\n    \"netmask\": 32\r\n}\r\nchanged: [ltm01 -> localhost] => {\r\n    \"changed\": true, \r\n    \"destination\": \"192.168.0.0/32\", \r\n    \"gateway_address\": \"1.1.1.1\", \r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"description\": null, \r\n            \"destination\": \"192.168.0.0\", \r\n            \"gateway_address\": \"1.1.1.1\", \r\n            \"mtu\": null, \r\n            \"name\": \"123\", \r\n            \"netmask\": \"255.255.255.0\", \r\n            \"partition\": \"Common\", \r\n            \"password\": null, \r\n            \"pool\": null, \r\n            \"provider\": {\r\n                \"password\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \r\n                \"server\": \"ltm01\", \r\n                \"server_port\": 443, \r\n                \"ssh_keyfile\": null, \r\n                \"timeout\": null, \r\n                \"transport\": \"rest\", \r\n                \"user\": \"mrcool\", \r\n                \"validate_certs\": false\r\n            }, \r\n            \"reject\": null, \r\n            \"route_domain\": null, \r\n            \"server\": \"ltm01\", \r\n            \"server_port\": null, \r\n            \"state\": \"present\", \r\n            \"transport\": null, \r\n            \"user\": null, \r\n            \"validate_certs\": false, \r\n            \"vlan\": null\r\n        }\r\n    }, \r\n    \"netmask\": 32\r\n}\r\nMETA: ran handlers\r\nMETA: ran handlers\r\n\r\nPLAY RECAP ********************************************************************************************************************************************************\r\nltm01 : ok=1    changed=1    unreachable=0    failed=0   \r\nltm01 : ok=1    changed=1    unreachable=0    failed=0   \r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"}}
{"actor":{"display_login":"ishuguru"}}