summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-05-06 10:51:25 -0700
committerChristian Poessinger <christian@poessinger.com>2019-05-08 20:33:24 +0200
commit9fe070d531f278943a5576db160ecc6b2a9a75c7 (patch)
tree915e9a4451987ccd66bcb7d16756966e9d7cb3ae
parent73fe7fafbbd88079c7048d7380fae8c81f6834aa (diff)
downloadvyatta-cfg-system-9fe070d531f278943a5576db160ecc6b2a9a75c7.tar.gz
vyatta-cfg-system-9fe070d531f278943a5576db160ecc6b2a9a75c7.zip
[interfaces-vif] T1367 - VIF deletion fails inconsistently
(cherry picked from commit 6a91f381b534f1513c5a6b6dd5392819791371ab)
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/mtu/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/mtu/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/mtu/node.def
index b3f3e7c7..21a10350 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/mtu/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/mtu/node.def
@@ -6,4 +6,4 @@ syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "MTU must be between 68 and
update: sudo ip link set $VAR(../../@).$VAR(../@) mtu $VAR(@)
delete: [ -d /sys/class/net/$VAR(../../@).$VAR(../@) ] || exit 0
- sudo ip link set $VAR(../../@).$VAR(../@) mtu 1500
+ sudo ip link set $VAR(../../@).$VAR(../@) mtu `cat /sys/class/net/$VAR(../../@)/mtu`