Commit Graph

84 Commits (c533f5c758f464b5a9e95d5812efb26e63c01913)

Author SHA1 Message Date
KB-perByte 6110081f19
sanity fix 2022-04-11 17:20:49 +05:30
KB-perByte ca31a4e474
update docs 2022-04-11 16:13:46 +05:30
KB-perByte 7801c67a5c
update err code 2022-04-11 14:57:00 +05:30
KB-perByte 1ce17fab54
update tests 2022-04-09 11:28:35 +05:30
KB-perByte 595c9ee38f
review pt 1 2022-04-08 23:31:45 +05:30
KB-perByte 89efc29ab4
update added version 2022-04-06 19:25:56 +05:30
KB-perByte f3e851d544
update review 1 2022-04-06 19:19:48 +05:30
KB-perByte ae4bfa421c
remove strings 2022-04-06 11:20:16 +05:30
KB-perByte 3f98e8ae7a
sanity and tox fixed 2022-04-05 15:44:37 +05:30
KB-perByte 02779ae85a
UTs added 2022-04-05 12:23:31 +05:30
KB-perByte 38986edc8e
doc fix 2022-04-04 21:09:45 +05:30
KB-perByte 1b34ebd896
tox fixed and docstrings 2022-04-04 21:06:58 +05:30
KB-perByte 0cbb257293
update 1 2022-04-04 20:56:07 +05:30
KB-perByte f337f82d59
docs and examples 2022-04-04 20:02:43 +05:30
KB-perByte 141c175cff
sanity fixex updated 2022-04-04 17:58:09 +05:30
KB-perByte 66bd592df4
init code 2022-04-04 17:55:01 +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
Ashwini Mhatre 9f510450f8
Improve ut coverage (#145)
Improve ut coverage

SUMMARY

Add more testcases for ipaddr filter

ISSUE TYPE

COMPONENT NAME

ipaddr.py
ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: Sagar Paul <sagpaul@redhat.com>
2022-03-01 05:06:47 +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
Nathaniel Case ad9d3e1399
New validate sub-plugin "config" (#112)
New validate sub-plugin "config"

SUMMARY


Implement ansible-collections/ansible.network#15 as a validate sub-plugin.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

validate

Reviewed-by: Ganesh Nalawade <None>
Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Nathaniel Case <this.is@nathanielca.se>
Reviewed-by: None <None>
2022-01-28 00:02:36 +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
Ashwini Mhatre f8d0e4f399
Fix issue of not running tests in network ee for some targets (#106)
Fix issue of not running tests in network ee for some targets

SUMMARY

fix issue of some integration targets was not running in network ee.

ISSUE TYPE

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: Matt Martz <matt@sivel.net>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
2021-10-27 18:12:24 +00:00
Ashwini Mhatre 7ebc8f6bd2
Bugfix: Make validate_args as generic utility function (#101)
Bugfix: Make validate_args as generic utility function

SUMMARY

fixes: #100

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
Reviewed-by: None <None>
2021-09-24 07:29:52 +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
Rohit Thakur 2f071599d0
resource_list_compare filter plugin added (#89)
resource_list_compare filter plugin added

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

resolves: #88

Test Coverage
plugins/filter/param_list_compare.py	 	95%
tests/unit/plugins/filter/test_param_list_compare.py	 	100%
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Ganesh Nalawade <None>
Reviewed-by: Bradley A. Thornton <bthornto@redhat.com>
Reviewed-by: Rohit Thakur <rohitthakur2590@outlook.com>
Reviewed-by: None <None>
2021-08-12 05:15:44 +00:00
Ashwini Mhatre 61a826c997
Update validate to use 2.11 ArgumentSpecValidator if available (#86)
Update validate to use 2.11 ArgumentSpecValidator if available

SUMMARY

fixes: #85

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Bradley A. Thornton <bthornto@redhat.com>
Reviewed-by: Ashwini Mhatre <mashu97@gmail.com>
Reviewed-by: None <None>
2021-08-03 08:04:33 +00:00
Ashwini Mhatre 45eb99fb94
Add support for the validation of formats to the json schema validator (#83)
Add support for the validation of formats to the json schema validator

SUMMARY

fixes: #81

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Ganesh Nalawade <None>
2021-06-28 13:27:51 +00:00
Priyam Sahoo e0551c0127
Fix documentation issues (#80)
Fixed documentation issues

Reviewed-by: https://github.com/apps/ansible-zuul
2021-06-21 23:48:07 +00:00
stoned 0a2e083c9b
Make to_paths handles empty list and mapping (#58)
Make to_paths handles empty list and mapping

Reviewed-by: https://github.com/apps/ansible-zuul
2021-06-17 07:26:13 +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