Skip to content

add prompt stripping to nokia srl #3529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

jeffkala
Copy link
Contributor

@jeffkala jeffkala commented Nov 8, 2024

fixes #3522 Uses prompt stripping logic similar to what was done in Juniper.

previous output from a show command had first line of prompt included

{
  "basic system info": {
    "Hostname": "srl1",
    "Chassis Type": "7220 IXR-D2L",
    "Part Number": "Sim Part No.",
    "Serial Number": "Sim Serial No.",
    "System HW MAC Address": "1A:66:00:FF:00:00",
    "OS": "SR Linux",
    "Software Version": "v24.7.2",
    "Build Number": "319-g64b71941f7",
    "Architecture": "<Unknown>",
    "Last Booted": "2024-11-08T16:06:30.680Z",
    "Total Memory": "<Unknown>",
    "Free Memory": "<Unknown>"
  }
}
--{ running }--[  ]--

This change strips the trailing prompt lines.

{
  "basic system info": {
    "Hostname": "srl1",
    "Chassis Type": "7220 IXR-D2L",
    "Part Number": "Sim Part No.",
    "Serial Number": "Sim Serial No.",
    "System HW MAC Address": "1A:66:00:FF:00:00",
    "OS": "SR Linux",
    "Software Version": "v24.7.2",
    "Build Number": "319-g64b71941f7",
    "Architecture": "<Unknown>",
    "Last Booted": "2024-11-08T16:06:30.680Z",
    "Total Memory": "<Unknown>",
    "Free Memory": "<Unknown>"
  }
}

@ktbyers
Copy link
Owner

ktbyers commented Nov 8, 2024

Superseded by #3531

@ktbyers ktbyers closed this Nov 8, 2024
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.

Nokia SR Linux Multiline Prompt Issues
2 participants