oxidized icon indicating copy to clipboard operation
oxidized copied to clipboard

Vyatta/VyOS will fail prompt detection on Vyatta 1.5+ rolling

Open Znuff opened this issue 1 year ago • 1 comments

As per title, the change in this pull https://github.com/ytti/oxidized/commit/0a4b73d65dd6e982f7efd8f839f774c615e892a4 have broken the prompt detection for Vyatta 1.5+ rolling.

I had to override it with model/vyatta.rb:

require 'oxidized/model/vyatta.rb'

class Vyatta
  prompt /@.*(:~\$|>)/
end

Also, the output seems to include some ANSI escape codes, as my config gets retrieved as:

# [?1h=
Version:          VyOS 1.5-rolling-202407171706[m
# Release train:    current[m
# Release flavor:   generic[m
# [m
# Built by:         [email protected][m
# Built on:         Wed 17 Jul 2024 17:49 UTC[m
# Build UUID:       5f886798-85fc-4c20-ac53-8629ec6c8f5c[m
# Build commit ID:  31684479b205ca[m
# [m
# Architecture:     x86_64[m
# Boot via:         installed image[m
# System type:      VMware guest[m
# [m
# Hardware vendor:  VMware, Inc.[m
# Hardware model:   VMware Virtual Platform[m
# Hardware S/N:     VMware-42 06 10 db 54 82 5d b5-47 a3 90 4f cc 2e d1 43[m
# Hardware UUID:    db100642-8254-b55d-47a3-904fcc2ed143[m
# [m
# Copyright:        VyOS maintainers and contributors[m

Znuff avatar Aug 12 '24 13:08 Znuff

This issue is stale because it has been open 90 days with no activity.

github-actions[bot] avatar Dec 05 '24 02:12 github-actions[bot]

i tested my change: Add vyos #3618 against VyOS 1.5-stream-2025-Q2 But in theory this should only fix the escape characters. I could not replicate the issue with the prompt detection

nicolasberens avatar Aug 21 '25 15:08 nicolasberens

Closed by PR #3618

robertcheramy avatar Oct 07 '25 05:10 robertcheramy