I have followed some other posts regarding interface changes using the CLI remediation script in the compliance report rules.
The config successfully identifies the interface blocks that need changing and executing the change on each block but I'm struggling to see a practical way to save the config after the last block is executed.
${ConfigBlockStartLine}
no ip helper-address 1.1.1.1
ip helper-address 2.2.2.2
end (or exit)
wr mem
The "end wr mem" just repeats on every block during the preview, which would naturally cause issues executing the next block or going back into config mode
I was looking for some other $ commands to indicate when commands should be entered outside the block but couldn't find anything that works. It simply takes the strings literally into each block
Anybody found a way to work around this? Another way would be to use a script but I'm not sure how I could apply the logic in the rule into the script and the CLI commands just seem a practical and easy way to implement this if wasn't for the issue above
