summaryrefslogtreecommitdiff
path: root/templates/interfaces/bridge
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-02-20 15:53:24 +0100
committerDaniil Baturin <daniil@baturin.org>2015-02-20 15:53:24 +0100
commit09ba12d596a2516ef98c48dba9a7f2276472f487 (patch)
tree3903b326d279ebf27b95170ed43c2194d6a0c302 /templates/interfaces/bridge
parentecb11362e4b99540c004c24df5be64dd0d4b3795 (diff)
downloadvyatta-cfg-system-09ba12d596a2516ef98c48dba9a7f2276472f487.tar.gz
vyatta-cfg-system-09ba12d596a2516ef98c48dba9a7f2276472f487.zip
Bug #492: fail commit in case of DHCPv6 configuration errors.
Diffstat (limited to 'templates/interfaces/bridge')
-rw-r--r--templates/interfaces/bridge/node.tag/dhcpv6-options/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def b/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def
index 87e69255..225bd926 100644
--- a/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/bridge/node.tag/dhcpv6-options/node.def
@@ -44,6 +44,9 @@ end:
echo "Re-starting DHCPv6 client on ${ifname}..."
sudo /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --stop --start \
--ifname $ifname $arg1 $arg2
+ if [ $? != 0 ]; then
+ exit 1
+ fi
echo "Done."
exit 0