1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/plugins
Steve Dodd ee6ab5d5aa Add support for IOS vlan parsing filter. (#40555)
* Add support for IOS vlan parsing filter.
Example usage below:

{% set parsed_vlans = vlans | vlan_parser %}
switchport trunk allowed vlan {{ parsed_vlans[0] }}
{% for i in range (1, parsed_vlans | count) %}
switchport trunk allowed vlan add {{ parsed_vlans[i] }}

* Update test_network.py

Add import statement for filter

* Fixed PEP8 issues relating to comments

* Fix PEP8 issues related to blank lines

* Removed magic numbers for line lengths. This should generalize support
to other IOS-like NOS that use similar methods for listing vlans. The
default arguments for line lengths will still be specific to Cisco IOS.
The unit tests for line length are still specific to Cisco IOS.
2018-10-17 20:50:28 +05:30
..
action Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
cache Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
callback Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
cliconf Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
connection Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
filter Add support for IOS vlan parsing filter. (#40555) 2018-10-17 20:50:28 +05:30
httpapi Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
inventory Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
loader_fixtures Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00
lookup Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
shell Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
strategy Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
terminal Add unit tests for junos terminal (#47103) 2018-10-16 15:14:38 +05:30
vars Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_plugins.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00