You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to keep a series of eg. class-maps and policy-maps in sync with a template/config file, it would be awesome if ios_config would be able to accept src config file and match == exact, so that Ansible would automatically remove stuff from policies beyond just ensuring presence of the lines in the src config.
This would apply generically to all indented segments of the config, such as zone based firewall, interface templates etc etc.
ISSUE TYPE
Feature Idea
COMPONENT NAME
ios_config
ADDITIONAL INFORMATION
ios_config can ensure the lines from my template is present, but it could also ensure leftovers are removed within indented config blocks - it cannot (of course) remove entire config blocks which are removed from templates naturally.
The alternative to this, would be to do per-config-block tasks with individual parent/lines, and if I prefer to have eg. all my base QoS config bits in a single j2 template, then it gets hard to manage.
It would also allow me to reuse templates with eg. DNA Center, so they are in sync across all tools managing config
class-map match-any MARK_BUSINESS_INTERNET
match protocol ms-lync-video
match protocol ms-lync
match protocol ms-services
match protocol ms-teams
match protocol ms-teams-video
match protocol ms-office-365
match protocol ms-office-web-apps
class-map match-any MARK_EMAIL
match protocol outlook-web-service
match ip dscp ef
policy-map REMARK_INCOMING_LAN
class MARK_BUSINESS_INTERNET
set dscp af41
class MARK_EMAIL
set dscp af32
The text was updated successfully, but these errors were encountered:
SUMMARY
In order to keep a series of eg. class-maps and policy-maps in sync with a template/config file, it would be awesome if ios_config would be able to accept src config file and match == exact, so that Ansible would automatically remove stuff from policies beyond just ensuring presence of the lines in the src config.
This would apply generically to all indented segments of the config, such as zone based firewall, interface templates etc etc.
ISSUE TYPE
COMPONENT NAME
ios_config
ADDITIONAL INFORMATION
ios_config can ensure the lines from my template is present, but it could also ensure leftovers are removed within indented config blocks - it cannot (of course) remove entire config blocks which are removed from templates naturally.
The alternative to this, would be to do per-config-block tasks with individual parent/lines, and if I prefer to have eg. all my base QoS config bits in a single j2 template, then it gets hard to manage.
It would also allow me to reuse templates with eg. DNA Center, so they are in sync across all tools managing config
The text was updated successfully, but these errors were encountered: