Skip to content

Commit

Permalink
Added netaddr as a requirement in ansible.utils.ipaddr (#385)
Browse files Browse the repository at this point in the history
* Added requirement on netaddr

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Added changelog

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* minor changes

* Added requirement on netaddr to ansible.utils.ipaddr

* changes

* minor change

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Benoît Geeraerts <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 7, 2025
1 parent dda46ee commit 256e787
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/ipaddr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- Adds netaddr as requirements in ansible.utils.ipaddr.
6 changes: 6 additions & 0 deletions docs/ansible.utils.ipaddr_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Synopsis



Requirements
------------
The below requirements are needed on the local Ansible controller node that executes this filter.

- netaddr>=0.10.1


Parameters
----------
Expand Down
2 changes: 2 additions & 0 deletions plugins/filter/ipaddr.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class mac_linux(netaddr.mac_unix):
type: str
description: type of filter. example ipaddr, ipv4, ipv6, ipwrap
notes:
requirements:
- netaddr>=0.10.1
"""

EXAMPLES = r"""
Expand Down

0 comments on commit 256e787

Please sign in to comment.