Skip to content

Conversation

@julmanglano
Copy link
Contributor

New Pull Request

Have you:

  • Updated the README if necessary?
  • Updated any configuration settings?
  • Written a unit test?

Change Notes

Added fix for finding banner delimiter when banner is at the end of the config ( IOSXR)

Justification

Closes #614

@qduk
Copy link
Collaborator

qduk commented May 22, 2025

Would it make any sense to put the call to self.set_delimeter() in self._build_banner? Or possibly a parent one?

compliance.parser_map["cisco_ios"](logging).config_lines # pylint: disable=expression-not-assigned


def test_banner_delimiter_iosxr():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests may be good, but hard for me to understand, can you add to a mock test here: https://github.com/networktocode/netutils/tree/develop/tests/unit/mock/config/parser/base/cisco_iosxr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CiscoIOSXRConfigParser fails with ValueError: empty separator when the banner is at the end of a config.

4 participants