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
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
..
cli Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
contrib Fix vmware_inventory unit tests so they run. 2018-10-09 22:52:04 -07:00
errors Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
executor Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
module_utils Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
modules Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
parsing Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
playbook Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
plugins Add support for IOS vlan parsing filter. (#40555) 2018-10-17 20:50:28 +05:30
template Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
utils Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
vars Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
ansible.cfg Fix ansible-test config management. 2017-10-04 12:52:36 -07:00
conftest.py Run unit tests in parallel. (#45812) 2018-09-18 13:58:22 -07:00
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 2017-06-14 11:08:34 -04:00