Created
May 6, 2021 10:35
-
-
Save mirceaulinic/0a6fb950c710cf0a6899b3da2498e0aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- set cmd = 'show configuration | display set | match prod-net-master01' %} | |
{%- set cli = salt.net.cli(cmd) %} | |
{%- set ret = cli.out[cmd] %} | |
{%- for line in ret.splitlines() %} | |
{{ line | replace('set ', 'delete ') }} | |
{%- endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment