klish-plugin-infix: Prettify 'show ip brief'

- Version sort interfaces ("e2" is listed before "e10")
- Remove "@dsa" from switch interfaces
This commit is contained in:
Tobias Waldekranz
2024-03-13 11:01:15 +01:00
parent 2e3d8881cc
commit 8fa910e8d9
+1 -1
View File
@@ -360,7 +360,7 @@
<SWITCH name="optional" min="0">
<COMMAND name="brief" help="Simplified (human-readable) output" mode="switch">
<ACTION sym="script">ip -color -br addr</ACTION>
<ACTION sym="script">ip -color -br addr | sort -V | sed 's/@dsa[0-9]/ /'</ACTION>
</COMMAND>
<COMMAND name="detailed" help="Detailed (full) output" mode="switch">