diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-28 17:23:23 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-28 17:23:23 +0200 |
commit | 9ff733fc5336444fd1806b9008450692f66ffc8d (patch) | |
tree | 7109d255ceddad2a21e5c2058128bd2384e2b2ee /op-mode-definitions/dhcp.xml | |
parent | df751f6ed14ef5ab28bb626ef4b554d98d823fc9 (diff) | |
download | vyos-1x-9ff733fc5336444fd1806b9008450692f66ffc8d.tar.gz vyos-1x-9ff733fc5336444fd1806b9008450692f66ffc8d.zip |
dhcp: dhcpv6: T2506: add client restart to op-mode
Diffstat (limited to 'op-mode-definitions/dhcp.xml')
-rw-r--r-- | op-mode-definitions/dhcp.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml b/op-mode-definitions/dhcp.xml index 2013d0014..1302151e9 100644 --- a/op-mode-definitions/dhcp.xml +++ b/op-mode-definitions/dhcp.xml @@ -161,4 +161,40 @@ </node> </children> </node> + <node name="renew"> + <children> + <node name="dhcp"> + <properties> + <help>Renew DHCP client lease</help> + </properties> + <children> + <tagNode name="interface"> + <properties> + <help>Renew DHCP client lease for specified interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + </properties> + <command>sudo systemctl restart "dhclient@$4.service"</command> + </tagNode> + </children> + </node> + <node name="dhcpv6"> + <properties> + <help>Renew DHCPv6 client lease</help> + </properties> + <children> + <tagNode name="interface"> + <properties> + <help>Renew DHCPv6 client lease for specified interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + </properties> + <command>sudo systemctl restart "dhcp6c@$4.service"</command> + </tagNode> + </children> + </node> + </children> + </node> </interfaceDefinition> |