summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-04 17:11:21 +0200
committerGitHub <noreply@github.com>2024-04-04 17:11:21 +0200
commite7891a830aa25ae13ccfbe7b401a8262908387d9 (patch)
tree7265200f33e44fa3235bdf981822f2a245c654d2 /interface-definitions
parentfe87ed94a3af6b97d2481e96c63d48ba87849627 (diff)
parent5cb8e78626988b9bad6dfe9122101c36d116afbf (diff)
downloadvyos-1x-e7891a830aa25ae13ccfbe7b401a8262908387d9.tar.gz
vyos-1x-e7891a830aa25ae13ccfbe7b401a8262908387d9.zip
Merge pull request #3214 from nicolas-fort/T6068-kea
T6068: dhcp-server: add command <set service dhcp-server high-availability mode>
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>