Commit Graph

50 Commits (c533f5c758f464b5a9e95d5812efb26e63c01913)

Author SHA1 Message Date
pre-commit-ci[bot] 23d80fd8cf [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-04-11 10:45:49 +00:00
KB-perByte ca31a4e474
update docs 2022-04-11 16:13:46 +05:30
pre-commit-ci[bot] 4f4db18d41 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-04-08 18:02:05 +00:00
KB-perByte 595c9ee38f
review pt 1 2022-04-08 23:31:45 +05:30
pre-commit-ci[bot] 14282909b4 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-04-07 21:28:57 +00:00
KB-perByte f337f82d59
docs and examples 2022-04-04 20:02:43 +05:30
Ashwini Mhatre 0716010fe3
Fix bugs in Ipaddr filters (#149)
Fix bugs in Ipaddr filters

SUMMARY

ipaddr - Fix input validation issues in ipaddr,ipv4,ipv6,ipwrap filters.
ipaddr - Add valid network for link-local
fixes: #148
fixes: ansible-collections/ansible.netcommon#375
fixes: ansible-collections/ansible.netcommon#350

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
2022-03-04 11:43:59 +00:00
Sagar Paul bd95db581e
minor doc fix (#140)
minor doc fix

SUMMARY

in_any_network, doc fix for redundant line

ISSUE TYPE


Docs Pull Request

COMPONENT NAME

in_any_network
ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
2022-02-10 17:35:19 +00:00
Sagar Paul 9294a2df8f
doc fixes (#134)
Minor documentation fixes

SUMMARY

Minor documentation fixes and updated doc-string

ISSUE TYPE


Docs Pull Request

Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
2022-01-31 10:30:34 +00:00
Sagar Paul 624bc76e26
Recursive filter plugins remove_keys | replace_keys | keep_keys (#110)
Recursive filter plugins remove_keys | replace_keys | keep_keys

SUMMARY

New plugins

remove_keys
replace_keys
keep_keys


ISSUE TYPE


New Module Pull Request

COMPONENT NAME


remove_keys
replace_keys
keep_keys

ADDITIONAL INFORMATION

Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2022-01-27 06:52:38 +00:00
Ashwini Mhatre ea54e97359
Add hwaddr, macaddr, slaac filter plugin (#129)
Add hwaddr, macaddr, slaac filter plugin

SUMMARY

Added hwaddr, macaddr, slaac filter plugin

ISSUE TYPE

New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
Reviewed-by: None <None>
2022-01-24 21:43:18 +00:00
Ashwini Mhatre 4488b79b04
Add ipaddr Filter plugin (#115)
Add ipaddr Filter plugin

SUMMARY

depend-on: #113

ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
Reviewed-by: None <None>
2022-01-24 11:15:16 +00:00
Ashwini Mhatre cfc7965400
Add ipwrap filter plugin (#118)
Add ipwrap filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Priyam Sahoo <None>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
Reviewed-by: None <None>
2022-01-22 11:27:27 +00:00
Ashwini Mhatre 2aa677777e
Add network_in_usable filter plugin (#126)
Add network_in_usable filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
Reviewed-by: Priyam Sahoo <None>
2022-01-21 20:12:17 +00:00
Ashwini Mhatre 3cb7ea10ca
Add previous_nth_usable filter plugin (#124)
Add previous_nth_usable filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2022-01-21 18:04:36 +00:00
Ashwini Mhatre 315200166f
Add plugin Reduce_on_network (#127)
Add plugin Reduce_on_network

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2022-01-21 10:34:01 +00:00
Ashwini Mhatre 234b0a51cf
Add network_in_network filter plugin (#125)
Add network_in_network filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2022-01-20 19:31:40 +00:00
Ashwini Mhatre 1d697455b6
Add next nth usable filter plugin (#123)
Add next nth usable filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Rohit Thakur <rohitthakur2590@outlook.com>
Reviewed-by: None <None>
Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
2022-01-20 17:30:14 +00:00
Ashwini Mhatre 80b7015fe8
Add ipsubnet filter plugin (#122)
Add ipsubnet filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: None <None>
2022-01-20 15:03:54 +00:00
Ashwini Mhatre c04c648b7a
Add IPV6 filter plugin (#121)
Add IPV6 filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: None <None>
2022-01-20 13:10:31 +00:00
Ashwini Mhatre 79b28faaaa
Add ipv4_hex filter plugin (#119)
Add ipv4_hex filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Priyam Sahoo <None>
Reviewed-by: None <None>
2022-01-20 11:48:12 +00:00
Ashwini Mhatre 458547c2b6
Add Ipmath filter plugin (#117)
Add Ipmath filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Sagar Paul <sagpaul@redhat.com>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
2022-01-20 09:49:15 +00:00
Ashwini Mhatre 22234f2963
Add cidr_merge filter plugin (#113)
Add cidr_merge filter plugin

SUMMARY

Move ipaddr plugins from netcommon to utils:
cidr_merge filter plugin

ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2022-01-20 08:02:49 +00:00
Ashwini Mhatre 7a7ad7e811
Add Nthhost filter plugin (#128)
Add Nthhost filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2022-01-19 19:10:50 +00:00
Ashwini Mhatre 02f2c62386
Add ipv4 plugin (#120)
Add IPV4 filter plugin

SUMMARY


ISSUE TYPE


New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: Priyam Sahoo <None>
Reviewed-by: None <None>
2022-01-17 11:41:11 +00:00
Rohit Thakur d206bf3d72
param_list_compare filter plugins docs updated (#91)
param_list_compare filter plugins docs updated

Signed-off-by: Rohit Thakur rohitthakur2590@outlook.com
SUMMARY


ISSUE TYPE


Docs Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: None <None>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
2021-08-27 15:27:02 +00:00
Priyam Sahoo 1b76548d9d
Added 'usable_range' filter plugin (#77)
Added 'usable_range' filter plugin

Reviewed-by: https://github.com/apps/ansible-zuul
2021-06-03 07:17:07 +00:00
Priyam Sahoo 2636312822
Added 'resolvable' test plugin (#74)
Added 'resolvable' test plugin

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-14 20:24:11 +00:00
Priyam Sahoo 86923a5f2d
Added 'subnet_of', 'supernet_of', 'unspecified' IP test plugins (#73)
Added 'subnet_of', 'supernet_of', 'unspecified' IP test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-14 14:01:41 +00:00
Priyam Sahoo e57f25a510
Added 'private', 'public', 'reserved' test plugins (#72)
Added 'private', 'public', 'reserved' test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-12 15:42:19 +00:00
Priyam Sahoo 0c315db82e
Added 'loopback', 'mac', and 'multicast' test plugins (#71)
Added 'loopback', 'mac', and 'multicast' test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-11 16:23:05 +00:00
Priyam Sahoo 842549a236
Added ipv6 test plugins (#70)
Added ipv6 test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-10 18:19:24 +00:00
Priyam Sahoo e92cc6e78d
Added ipv4 specefic test plugins (#69)
Added ipv4 specefic test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-07 18:30:00 +00:00
Priyam Sahoo 1c9866e8d8
Added 'ip', 'ip_address' test plugins (#68)
Added 'ip', 'ip_address' test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-06 11:12:27 +00:00
Priyam Sahoo c09bbacdbc
Added 'in_any_network', 'in_network', 'in_one_network' test plugins (#66)
Added 'in_any_network', 'in_network', 'in_one_network' test plugins

Reviewed-by: https://github.com/apps/ansible-zuul
2021-05-03 14:22:35 +00:00
Ashwini Mhatre 43e77543d9
Add to_xml and from_xml filter plugin (#56)
Add to_xml and from_xml filter plugin

Reviewed-by: https://github.com/apps/ansible-zuul
2021-04-09 13:20:17 +00:00
Nathaniel Case 4a66f0f160
Add pre-commit config file (#62)
Add pre-commit config file

Reviewed-by: https://github.com/apps/ansible-zuul
2021-03-31 17:43:38 +00:00
Ganesh Nalawade dccab0d9f1
Ansible 3.0.0 collection inclusion releated changes (#32)
Ansible 3.0.0 collection inclusion releated changes

Reviewed-by: https://github.com/apps/ansible-zuul
2021-01-25 11:27:04 +00:00
Ganesh Nalawade f1954296eb
Add docs for cli_parse and fact_diff (#29)
Add docs for cli_parse and fact_diff

Reviewed-by: https://github.com/apps/ansible-zuul
2020-12-08 03:32:45 +00:00
Sandra McCann c9434fa95f
[1/2]docs copyedit for the ansible.utils collection (#26)
[1/2]docs copyedit for the ansible.utils collection

Reviewed-by: https://github.com/apps/ansible-zuul
2020-12-03 06:03:43 +00:00
Bradley A. Thornton 884105f112
Add docs (#19)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-28 13:56:03 -07:00
Bradley A. Thornton c20ba34c7d
Fact diff (#15)
* Add fact_diff action

* Formatting

* Update docs

* Add skip_lines

* Update docs

* black

* bug fix

* Add units for fact_diff

* Initial changes to support plugin architecture

* Restructure docstring

* Integration test fix

* Wrap diff plugin with try/except

* Fix integration test

* Restructure code to allow for plugin failure test

* Examples, docs

* Fix debug statement

* Update examples

* Minor doc updates

* Minor doc updates

* Minor doc updates

* Add change log

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-23 04:48:16 -07:00
Bradley A. Thornton 3c42f13b30
Split filter docs (#17)
* Dedicated DOCUMENTATION for get_path

* Comment out cross collection example

* Remove sanity exception, unneeded

* Remove extra empty lines

* Dedicated DOCUMENTATION for index_of filter plugin

* Dedicated DOCUMENTATION for to_paths filter plugin

* Add rst docs for filter plugins, update README

* lint and pep8 fixes

* filter plugin doc update for wantlist

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-21 10:45:34 -07:00
Bradley A. Thornton 188463f7be
update_fact plugin + units (#10)
* update_fact plugin + units

* Update README, add doc

* Add some update_fact integration tests

* Add missing test for not (index_of)

* Update fact doc updates

* Update rst from doc

* Examples as yaml

* Some developer notes (#11)

Co-authored-by: cidrblock <brad@thethorntons.net>

* Updated self._task.args from updated_data provided back from aav

* Argspec default fix (#12)

* Return data updated with default values from aav.validate()

* Update aav docs

Co-authored-by: cidrblock <brad@thethorntons.net>

* update_fact plugin + units

* Update README, add doc

* Add some update_fact integration tests

* Add missing test for not (index_of)

* Update fact doc updates

* Update rst from doc

* Examples as yaml

* Updated self._task.args from updated_data provided back from aav

* recheck

* Plugin cleanup (#14)

* WIP

* Add argspec validation to plugins, restructure tests

* Update docs

* Pre PY3.8 compat changes

* Run black to fix quotes

* Seems the order of missing keys varies between 2.9 and 2.10

* More error ordering issues fixed during argspec validation

* More black, wrong version

Co-authored-by: cidrblock <brad@thethorntons.net>

* update_fact plugin + units

* Update README, add doc

* Add some update_fact integration tests

* Update fact doc updates

* Update rst from doc

* Examples as yaml

* Updated self._task.args from updated_data provided back from aav

* recheck

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-20 12:32:35 -07:00
Bradley A. Thornton 3011554520
Some developer notes (#11)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-20 05:35:36 -07:00
Bradley A. Thornton 12333c2386
Simple doc updates (#8)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-15 06:58:59 -07:00
Bradley A. Thornton 197b9d93b9
Add index_of plugin (#6)
* Add index_of filter/lookup plugin

* Update README

* Fix unittest import, black

* Remove true/false tests as ansible 2.9 uses jinja 2.10, need 2.11

* Add jinja > 2.11 to unit test requirements

* Reformat requirements file

* Limit unit to tests available in < jinja 2.11

* Reblack

* Remove float (j 2.11)

* Add integration tests, update docstring

* Comment out test using integer, requires jinja 2.11

* doc updates

Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-15 05:52:14 -07:00
Bradley A. Thornton 97052314c8
modify readme (#5)
Co-authored-by: cidrblock <brad@thethorntons.net>
2020-10-13 21:23:50 +00:00
cidrblock 9d3a6cad0a get_path and to_paths 2020-10-09 10:07:26 -07:00
Ganesh Nalawade 9672b6b361 Initial commit 2020-10-06 23:34:14 +05:30