summaryrefslogtreecommitdiff
path: root/op-mode-definitions/dhcp.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-28 14:14:19 +0100
committerGitHub <noreply@github.com>2024-03-28 14:14:19 +0100
commit9bdd00b7d6850f4ccabcc8ad53ff4f09676ba83f (patch)
treeeaf13140da518e37ce5760320c6721c3e89c9661 /op-mode-definitions/dhcp.xml.in
parent9ee515c236f9fb8cb907790b37a8f5fa54efc47a (diff)
parente37f58be928b5f86f1c599ab4386747bf45e900e (diff)
downloadvyos-1x-9bdd00b7d6850f4ccabcc8ad53ff4f09676ba83f.tar.gz
vyos-1x-9bdd00b7d6850f4ccabcc8ad53ff4f09676ba83f.zip
Merge pull request #3199 from vyos/mergify/bp/sagitta/pr-3194
op-mode: T6175: "renew dhcp interface <name>" does not check for DHCP interface (backport #3194)
Diffstat (limited to 'op-mode-definitions/dhcp.xml.in')
-rw-r--r--op-mode-definitions/dhcp.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in
index 9c2e2be76..97af506db 100644
--- a/op-mode-definitions/dhcp.xml.in
+++ b/op-mode-definitions/dhcp.xml.in
@@ -211,7 +211,7 @@
<script>${vyos_completion_dir}/list_interfaces</script>
</completionHelp>
</properties>
- <command>sudo systemctl restart "dhclient@$4.service"</command>
+ <command>sudo ${vyos_op_scripts_dir}/dhcp.py renew_client_lease --family inet --interface "$4"</command>
</tagNode>
</children>
</node>
@@ -227,7 +227,7 @@
<script>${vyos_completion_dir}/list_interfaces</script>
</completionHelp>
</properties>
- <command>sudo systemctl restart "dhcp6c@$4.service"</command>
+ <command>sudo ${vyos_op_scripts_dir}/dhcp.py renew_client_lease --family inet6 --interface "$4"</command>
</tagNode>
</children>
</node>