1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

4 commits

Author SHA1 Message Date
Joren Vrancken
b954917761 Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
Eitan Akman
fb7882bf86 Issue : Add 'not_contains' method to parsing.py ()
* Issue : Add 'not_contains' method to parsing.py

* Issue  Adds self.negate to Conditional class in lib/ansible/module_utils/network/common/parsing.py

* Issue  Fix singleton-comparison issue per sanity tests

* Issue  'test/integration/targets/nxos_command/tests/cli/not_comparison_operator.yaml' integration test

* Issue  Add unit tests to '../../test/units/module_utils/network/common/test_parsing.py'

* Issue  Fix singleton comparison issue

* Fix E302 expected 2 blank lines, found 1

* Issue  Add license header to unit tests

* Issue  Move integration test to 'test/integration/targets/nxos_command/tests/common/'; remove unnecessary comment from unit test

* Issue  remove unnecessary comment from unit test
2018-06-27 10:21:17 +05:30
Sloane Hertel
d877c146ab [cloud] ec2_group fix CIDR with host bits set - fixes ()
* WIP adds network subnetting functions

* adds functions to convert between netmask and masklen
* adds functions to verify netmask and masklen
* adds function to dtermine network and subnet from address / mask pair

* network_common: add a function to get the first 48 bits in a IPv6 address.

ec2_group: only use network bits of a CIDR.

* Add tests for CIDRs with host bits set.

* ec2_group: add warning if CIDR isn't the networking address.

* Fix pep8.

* Improve wording.

* fix import for network utils

* Update tests to use pytest instead of unittest

* add test for to_ipv6_network()

* Fix PEP8
2017-12-20 14:57:47 -05:00
Ganesh Nalawade
11c9ad23d5
Refactor common network shared and platform utils code into package ()
* Refactor common network shared and platform specific code into package (part-1)

As per proposal  refactor common network shared and platform specific
code into sub-package.
https://github.com/ansible/proposals/issues/76

*  ansible.module_utils.network.common - command shared functions
*  ansible.module_utils.network.{{ platform }} - where platform is platform specific shared functions

*  Fix review comments

* Fix review comments
2017-12-03 21:42:30 +05:30