Skip to content

Convert banner delimiter #67

Description

@qduk

Environment

  • netutils version: 0.2.3

Proposed Functionality

When pulling device configuration via different methods (FTP, SSH, etc) the delimiter character differs. The goal would be to find the banner delimiter in the configuration and convert it between ^, ^C, ETX.

Use Case

  • 'ETX' is when FTP, TFTP, etc
  • '^' is the config standard for applying configuration.
  • '^C' is the config standard that shows in the config.

Whenever comparing or reasonably wanting to leverage a single config to both compare and push configurations, this would allow easy replacement of delimiters.

API

def etx_to_caret()
def etx_to_caretc()
def caret_to_etx()

OR

def delimiter_change(s_type=caret, d_type=etx)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions