summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-01-15 12:22:22 -0800
committerhagbard <vyosdev@derith.de>2019-01-15 12:22:22 -0800
commit5dc05b81da218114e75adb5176ca02640823f2bf (patch)
tree2ef1403f4d5ee7244e116fa701f19c8daf4ebe19 /templates/interfaces
parent749d923ee9704624a476bef17d66d752aff6bf0d (diff)
downloadvyatta-cfg-system-5dc05b81da218114e75adb5176ca02640823f2bf.tar.gz
vyatta-cfg-system-5dc05b81da218114e75adb5176ca02640823f2bf.zip
Fix: T1181 - enable/disable interface doesn't restart dhclient on enable
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/disable/node.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/disable/node.def b/templates/interfaces/ethernet/node.tag/disable/node.def
index c948e970..418fe24c 100644
--- a/templates/interfaces/ethernet/node.tag/disable/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable/node.def
@@ -14,3 +14,7 @@ delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
fi
affinity=$VAR(../smp-affinity/@)
sudo /opt/vyatta/sbin/irq-affinity.pl $VAR(../@) ${affinity:-auto}
+ s=$(cli-shell-api showCfg interfaces ethernet $VAR(../@) address | awk '{print $2}')
+ if [ "$s" == "dhcp" ]; then
+ /etc/netplug/linkup.d/dhclient $VAR(../@)
+ fi