When the compliance rules with "banner" congif to match, it will failed to exec compliance
Environment
- Python version: 3.8.13
- netutils version: 1.6.0
when I add a compliance rule which config to match value is "banner exec", t should compare the backup configuration and the intended configuration to see if the sentence "banner exec" exists
It shows the error "RENDER COMPLIANCE TASK GROUP failed: Unable to parse banner end."
Steps to Reproduce
- add a device which backup config has "banner exec" value.
- add a device which intended config has "banner exec" value.
- add a compliance feature called "test", and setup a compliance rule which config to match value is "banner exec",
- execute config compliance
banners are problematic, but we would need to see the actual banner. Can you confirm this is not an issue with the intended state vs the actual state?
Also what platform is TestSwitch_as_3 ? IOS, NXOS, Arista etc.
Hi, @jeffkala and @itdependsnetworks
Please refer to https://github.com/nautobot/nautobot-plugin-golden-config/issues/662
The platform of TestSwitch_as_3 is ios.
And I paste the value of our actual config.
In my backup config:
The value is
And I can set the compliance rule with value: banner exec ^C
and it can be compared and showed in the config compliance page.
But if I changed the value to banner motd ^C, it would be failed.
fixed in #509