The ios_l2_interface vlan_range_to_list function may not cast a null variable in integer #43878
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
cisco
Cisco technologies
ios
Cisco IOS community
module
This issue/PR relates to a module.
networking
Network category
support:network
This issue/PR relates to code supported by the Ansible Network Team.
traceback
This issue/PR includes a traceback.
SUMMARY
In our infrastructure we can have devices configured with a list of vlans whose string ends with a comma.
When splitting the string, the last element is then equal to None which can not be cast to integer
ISSUE TYPE
COMPONENT NAME
ios_l2_interface
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Red Hat Enterprise Linux Server release 6.9 (Santiago)
STEPS TO REPRODUCE
having in the configuration a string of vlan like :
"228-230,370,378,379,381,385,500,501,580-584,600,646,"
EXPECTED RESULTS
The vlan string is parsed correctly and the function handle all the cases.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: