From f9007c5f5e6e7957ab1c955c10b3842dca7b253d Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Sat, 17 Nov 2018 11:03:08 +0100
Subject: T1016: fix IPv4/IPv6 dhcp relay restart command

Current implementation referred to a no longer existing Perl script to
restart the IPv4 and IPv6 instance of dhcrelay.

> restart dhcp relay-agent
> restart dhcpv6 relay-agent
---
 op-mode-definitions/dhcp.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'op-mode-definitions')

diff --git a/op-mode-definitions/dhcp.xml b/op-mode-definitions/dhcp.xml
index eb57f8f1f..a7d09304e 100644
--- a/op-mode-definitions/dhcp.xml
+++ b/op-mode-definitions/dhcp.xml
@@ -83,7 +83,7 @@
             <properties>
               <help>Restart the DHCP server process</help>
             </properties>
-            <command>sudo /opt/vyatta/sbin/dhcrelay-starter.pl --op-mode --init='/opt/vyatta/sbin/dhcrelay.init'</command>
+            <command>sudo ${vyos_op_scripts_dir}/restart_dhcp_relay.py --ipv4</command>
           </node>
         </children>
       </node>
@@ -102,7 +102,7 @@
             <properties>
               <help>Restart the DHCP server process</help>
             </properties>
-            <command>sudo /opt/vyatta/sbin/dhcv6relay-starter.pl --op_mode --config_action ACTIVE</command>
+            <command>sudo ${vyos_op_scripts_dir}/restart_dhcp_relay.py --ipv6</command>
           </node>
         </children>
       </node>
-- 
cgit v1.2.3