netutils icon indicating copy to clipboard operation
netutils copied to clipboard

When the compliance rules with "banner" congif to match, it will failed to exec compliance

Open alicechiou opened this issue 2 years ago • 3 comments

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

  1. add a device which backup config has "banner exec" value.
  2. add a device which intended config has "banner exec" value.
  3. add a compliance feature called "test", and setup a compliance rule which config to match value is "banner exec",
  4. execute config compliance

image

image

image

alicechiou avatar Oct 25 '23 05:10 alicechiou

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?

itdependsnetworks avatar Oct 25 '23 13:10 itdependsnetworks

Also what platform is TestSwitch_as_3 ? IOS, NXOS, Arista etc.

jeffkala avatar Oct 26 '23 19:10 jeffkala

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 image

And I can set the compliance rule with value: banner exec ^C and it can be compared and showed in the config compliance page. image

But if I changed the value to banner motd ^C, it would be failed.

alicechiou avatar Oct 27 '23 01:10 alicechiou

fixed in #509

jeffkala avatar Apr 25 '24 19:04 jeffkala