Skip to content

Allow netutils to handle multiple consecutive banners. #859

Description

@swanandtambe

Environment

  • netutils version: 1.17.3

Proposed Functionality

Allow netutils to handle multiple consecutive banners.

Use Case

Cisco IOS supports many (7) banners. Configs with more banners will fail config compliance with the error “RENDER COMPLIANCE TASK GROUP failed: Unable to parse banner end.” This happens even if the compliance rule is specific to the banner like “banner login ^C”

Sample config

banner exec ^C
******************************************************************************
*                                                                            *
*                   WARNING         WARNING         WARNING                  *
*                                                                            *
*       This is a private computer system, owned by org, which may        *
*       be accessed and used ("use") only for org business purposes.      *
*       Unauthorized use may subject violators to discipline, up to          *
*       and including termination and other legal action. All information    *
*       on this computer system may be monitored, intercepted, recorded,     *
*       read, copied and/or disclosed as deemed appropriate by org.       *
*       Use of this computer system by any other person, whether             *
*       authorized or unauthorized, constitutes consent to these terms.      *
*                                                                            *
******************************************************************************
^C
banner login ^C
******************************************************************************
*                                                                            *
*                   WARNING         WARNING         WARNING                  *
*                                                                            *
*       This is a private computer system, owned by org, which may        *
*       be accessed and used ("use") only for org business purposes.      *
*       Unauthorized use may subject violators to discipline, up to          *
*       and including termination and other legal action. All information    *
*       on this computer system may be monitored, intercepted, recorded,     *
*       read, copied and/or disclosed as deemed appropriate by org.       *
*       Use of this computer system by any other person, whether             *
*       authorized or unauthorized, constitutes consent to these terms.      *
*                                                                            *
******************************************************************************
^C
banner motd ^C
******************************************************************************
*                                                                            *
*                   WARNING         WARNING         WARNING                  *
*                                                                            *
*       This is a private computer system, owned by org, which may        *
*       be accessed and used ("use") only for org business purposes.      *
*       Unauthorized use may subject violators to discipline, up to          *
*       and including termination and other legal action. All information    *
*       on this computer system may be monitored, intercepted, recorded,     *
*       read, copied and/or disclosed as deemed appropriate by org.       *
*       Use of this computer system by any other person, whether             *
*       authorized or unauthorized, constitutes consent to these terms.      *
*                                                                            *
******************************************************************************

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions