op-mode: T5633, T6465: fix error when op cmd interrupted, updates some system call syntax (backport #3731) #3735
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Replaces previous PR which I closed by accident: #3700
Summary:
Add exception catching for broken pipe error to exit gracefully when user stops program output. Resolves T5633: Bug 1 and 3
Corrects syntax for invoked "show ipv6 route bgp" command
Updates syntax for invoked show system image version / show system image storage to new CLI syntax
Note: Bug 2 identified in T5633 is non-breaking but has not been solved in this PR. I've narrowed the issue down to the underlying vyatta-op-cmd-wrapper shell code. I'm proposing to open a new Maniphest ticket specifically on this bug and close T5633 when PR is merged that way it's separated from this work and still visible as a bug to be fixed in the future.
Types of changes
Related Task(s)
https://vyos.dev/T5633 bugs 1 and 3
https://vyos.dev/T6465
Related PR(s)
Component(s) name
Proposed changes
See above for changes.
How to test
Smoketest result
Checklist:
This is an automatic backport of pull request #3731 done by [Mergify](https://mergify.com).