summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2024-03-27 17:16:53 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2024-04-03 11:32:47 +0000
commit5cb8e78626988b9bad6dfe9122101c36d116afbf (patch)
treefb2b4bcd3e0823b37806d1ceb10eea727d7e88a9 /interface-definitions
parent0fcab52921f27f8d2df9038a193be66c2ba18d11 (diff)
downloadvyos-1x-5cb8e78626988b9bad6dfe9122101c36d116afbf.tar.gz
vyos-1x-5cb8e78626988b9bad6dfe9122101c36d116afbf.zip
T6068: dhcp-server: add command <set service dhcp-server high-availability mode> so user can define what type of ha use: active-active or active-passive
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service_dhcp-server.xml.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/interface-definitions/service_dhcp-server.xml.in b/interface-definitions/service_dhcp-server.xml.in
index 2afa05a8a..cb5f9a804 100644
--- a/interface-definitions/service_dhcp-server.xml.in
+++ b/interface-definitions/service_dhcp-server.xml.in
@@ -22,6 +22,27 @@
</properties>
<children>
#include <include/source-address-ipv4.xml.i>
+ <leafNode name="mode">
+ <properties>
+ <help>Configure high availability mode</help>
+ <completionHelp>
+ <list>active-active active-passive</list>
+ </completionHelp>
+ <valueHelp>
+ <format>active-active</format>
+ <description>Both server attend DHCP requests</description>
+ </valueHelp>
+ <valueHelp>
+ <format>active-passive</format>
+ <description>Only primary server attends DHCP requests</description>
+ </valueHelp>
+ <constraint>
+ <regex>(active-active|active-passive)</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid DHCP high availability mode</constraintErrorMessage>
+ </properties>
+ <defaultValue>active-active</defaultValue>
+ </leafNode>
<leafNode name="remote">
<properties>
<help>IPv4 remote address used for connection</help>