summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
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/ethernet
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/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def3
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def3
4 files changed, 12 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def
index 87e69255..225bd926 100644
--- a/templates/interfaces/ethernet/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/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
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
index 947bc5de..86b5560f 100644
--- a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/dhcpv6-options/node.def
@@ -43,5 +43,8 @@ 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
exit 0
diff --git a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
index a3de12ce..ef4c13ad 100644
--- a/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif-s/node.tag/vif-c/node.tag/dhcpv6-options/node.def
@@ -43,5 +43,8 @@ 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
exit 0
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
index 947bc5de..86b5560f 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/dhcpv6-options/node.def
@@ -43,5 +43,8 @@ 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
exit 0