You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please implement a new filter that returns either the first or last X bits of an IP address.
Example:
I have an IP address like 1234:4321:abcd:dcba::17. Now I would like to just get the last 80 bits of the address for my firewall rule. 1234:4321:abcd:dcba::17 > expanded: 1234:4321:abcd:dcba:0000:0000:0000:17 -> filtered: dcba:0:0:0:17
ISSUE TYPE
Feature Request
COMPONENT NAME
ansible.utils.ipaddr
ADDITIONAL INFORMATION
In my case I need to derive a portion of an IP address to make a firewall rule from it.
I don't want to use the IP address itself, as it wouldn't match (Complicated IPv6 story).
So I just want to have the network portion and the interface identifier.
v8.4.0
Major Changes
-------------
fortinet.fortios
- Improve the document for adding notes and examples in Q&A for modules using Integer number as the mkey.
Minor Changes
-------------
amazon.aws
- cloudformation - Add support for ``disable_rollback`` to update stack operation (ansible-collections/amazon.aws#1681).
- ec2_key - add support for new parameter ``file_name`` to save private key in when new key is created by AWS. When this option is provided the generated private key will be removed from the module return (ansible-collections/amazon.aws#1704).
ansible.netcommon
- Add a new cliconf plugin ``default`` that can be used when no cliconf plugin is found for a given network_os. This plugin only supports ``get()``. (ansible-collections/ansible.netcommon#569)
- httpapi - Add additional option ``ca_path``, ``client_cert``, ``client_key``, and ``http_agent`` that are available in open_url but not to httpapi. (ansible-collections/ansible.netcommon#528)
- telnet - add crlf option to send CRLF instead of just LF (ansible-collections/ansible.netcommon#440).
ansible.utils
- Add ipcut filter plugin.(ansible-collections/ansible.utils#251)
- Add ipv6form filter plugin.(ansible-collections/ansible.utils#230)
arista.eos
- Add support for overridden operation in bgp_global resource module.
SUMMARY
Please implement a new filter that returns either the first or last X bits of an IP address.
Example:
I have an IP address like
1234:4321:abcd:dcba::17
. Now I would like to just get the last 80 bits of the address for my firewall rule.1234:4321:abcd:dcba::17
> expanded:1234:4321:abcd:dcba:0000:0000:0000:17
-> filtered:dcba:0:0:0:17
ISSUE TYPE
COMPONENT NAME
ansible.utils.ipaddr
ADDITIONAL INFORMATION
In my case I need to derive a portion of an IP address to make a firewall rule from it.
I don't want to use the IP address itself, as it wouldn't match (Complicated IPv6 story).
So I just want to have the network portion and the interface identifier.
Edit:
As I need that for nftables, the result needs to be in expanded format.
The text was updated successfully, but these errors were encountered: