ansible/lib/ansible
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 Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config Add configuration to override location of ansible-connection (#46128) 2018-10-01 14:29:59 -04:00
errors Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
executor Ensure that an empty literal list with loop skips the task (#47129) 2018-10-16 13:35:10 -05:00
galaxy Link to the Galaxy platforms list from the meta file template (#34046) 2018-09-17 13:39:54 -05:00
inventory better information for user from inventory plugins (#46766) 2018-10-12 11:27:29 -04:00
module_utils VMware: Provide facility to specify path for template (#38031) 2018-10-15 14:59:48 +05:30
modules postgresql_user: fix test errors on newer Fedora versions (#47166) 2018-10-17 14:01:11 +10:00
parsing An earlier optimization of ansible-doc -l caused failures. (#47012) 2018-10-17 11:15:59 -04:00
playbook Do not use mutable defaults in FieldAttribute, instead allow supplying a callable for defaults of mutable types. Fixes #46824 (#46833) 2018-10-12 10:43:09 -05:00
plugins Add support for IOS vlan parsing filter. (#40555) 2018-10-17 20:50:28 +05:30
template Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
utils Lenovo finetune modules (#46623) 2018-10-11 09:49:49 -04:00
vars Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
__init__.py
constants.py
release.py Codename: How Many More Times 2018-09-04 12:38:29 -04:00