summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-ethernet.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-07 10:59:17 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-07 11:10:01 +0200
commit11794077958f0bcfa20949ff5cd4247f1494eb82 (patch)
tree26a1c902ef20149fcbfc4b579caa51f3488fa6c1 /op-mode-definitions/show-interfaces-ethernet.xml
parent8ddac94cc942e328edc3e138eb92df97ef72c694 (diff)
downloadvyos-1x-11794077958f0bcfa20949ff5cd4247f1494eb82.tar.gz
vyos-1x-11794077958f0bcfa20949ff5cd4247f1494eb82.zip
op-mode: ethernet: T2546: present offload output in table
- remove first line from output (sed -e 1d) - remove leading tab indention (sed -e 's/^\t*//g') - remove colons (sed -e 's/://') - align output vertically (column -t -s' ')
Diffstat (limited to 'op-mode-definitions/show-interfaces-ethernet.xml')
-rw-r--r--op-mode-definitions/show-interfaces-ethernet.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/show-interfaces-ethernet.xml b/op-mode-definitions/show-interfaces-ethernet.xml
index 1a767b094..80f07c2bd 100644
--- a/op-mode-definitions/show-interfaces-ethernet.xml
+++ b/op-mode-definitions/show-interfaces-ethernet.xml
@@ -35,7 +35,7 @@
<properties>
<help>Show physical device offloading capabilities</help>
</properties>
- <command>/sbin/ethtool -k "$4" | sed -e '/fixed/d'</command>
+ <command>/sbin/ethtool -k "$4" | sed -e 1d -e '/fixed/d' -e 's/^\t*//g' -e 's/://' | column -t -s' '</command>
</leafNode>
</children>
</node>