michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 62 forks source link

Support subinterfaces in check filters #36

Closed markgoddard closed 6 years ago

markgoddard commented 6 years ago

Linux subinterfaces have a colon in their name, e.g. eth1:1. Ansible fact names cannot contain dashes (-) or colons (:), so these characters are replaced by an underscore. The check_* filters have been fixed to support colons in addition to the already supported dashes.

Subinterfaces are effectively secondary IP addresses on another interface - they therefore do not have 'active' or 'type' fields in their ansible fact.

Fixes: #35