-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstreaming patches: filter_by_networks #212
Comments
darix
added a commit
to darix/salt
that referenced
this issue
Feb 20, 2020
If no filter is specified all all items are returned. ``` {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} ``` Fixes openSUSE#212
darix
added a commit
to darix/salt
that referenced
this issue
Feb 24, 2020
If no filter is specified all all items are returned. ``` {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} ``` Fixes openSUSE#212
agraul
pushed a commit
that referenced
this issue
Mar 17, 2020
If no filter is specified all all items are returned. ``` {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} ``` Fixes #212
agraul
added a commit
to darix/salt
that referenced
this issue
Apr 21, 2020
IPs are filtered out if they don't belong to any of the given networks. If `None` is passed as the network, all IPs are returned. An empty list rejects all IPs. Example: {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} Fixes openSUSE#212 Co-authored-by: Alexander Graul <agraul@suse.com>
agraul
added a commit
to agraul/salt-1
that referenced
this issue
Apr 27, 2020
IPs are filtered out if they don't belong to any of the given networks. If `None` is passed as the network, all IPs are returned. An empty list rejects all IPs. Example: {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} Fixes openSUSE#212 Co-authored-by: Alexander Graul <agraul@suse.com>
agraul
added a commit
to agraul/salt-1
that referenced
this issue
Apr 27, 2020
IPs are filtered out if they don't belong to any of the given networks. If `None` is passed as the network, all IPs are returned. An empty list rejects all IPs. Example: {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} Fixes openSUSE#212 Co-authored-by: Alexander Graul <agraul@suse.com>
agraul
added a commit
to agraul/salt-1
that referenced
this issue
Apr 27, 2020
IPs are filtered out if they don't belong to any of the given networks. If `None` is passed as the network, all IPs are returned. An empty list rejects all IPs. Example: {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} Fixes openSUSE#212 Co-authored-by: Alexander Graul <agraul@suse.com>
meaksh
pushed a commit
that referenced
this issue
May 7, 2020
IPs are filtered out if they don't belong to any of the given networks. If `None` is passed as the network, all IPs are returned. An empty list rejects all IPs. Example: {% set networks = ['192.168.0.0/24', 'fe80::/64'] %} {{ grains['ip_interfaces'] | filter_by_networks(networks) }} {{ grains['ipv6'] | filter_by_networks(networks) }} {{ grains['ipv4'] | filter_by_networks(networks) }} Fixes #212 Co-authored-by: Alexander Graul <agraul@suse.com> Add unit tests for filter_by_networks
I think this issue can be closed. Please re-open if you think we still need it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: