summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-07 10:51:49 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-07 10:51:49 +0200
commit8ddac94cc942e328edc3e138eb92df97ef72c694 (patch)
treef1f47ea51f9bec5f5e01beffba20f825d645d8d0
parent459e32b3697396d032d50e9b5b5ab98518ce5cec (diff)
downloadvyos-1x-8ddac94cc942e328edc3e138eb92df97ef72c694.tar.gz
vyos-1x-8ddac94cc942e328edc3e138eb92df97ef72c694.zip
op-mode: ethernet: T2546: do not display fixed offload options
[fixed] options returned by ethtool -k mean that they can not be change and thus offloading can neither be enabled nor disabled. It makes no sense to display those parameters at all.
-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 6068f9e57..1a767b094 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"</command>
+ <command>/sbin/ethtool -k "$4" | sed -e '/fixed/d'</command>
</leafNode>
</children>
</node>