summaryrefslogtreecommitdiff
path: root/interface-definitions/include/haproxy
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-08-19 14:24:33 +0100
committerGitHub <noreply@github.com>2025-08-19 14:24:33 +0100
commit4da82c6cfd8d46acbc198a0ecaf8b61763b62692 (patch)
treeb71924a0abf54a2b2f04227032173780b31127d1 /interface-definitions/include/haproxy
parent69cd4845861c88285ab496339f19103dec7a32b6 (diff)
parent45d87b6fd2502d679be1d8f2de05508fdc1e9889 (diff)
downloadvyos-1x-4da82c6cfd8d46acbc198a0ecaf8b61763b62692.tar.gz
vyos-1x-4da82c6cfd8d46acbc198a0ecaf8b61763b62692.zip
Merge pull request #4659 from sarthurdev/T7715
haproxy: T7715: Add rule matching on subdomains
Diffstat (limited to 'interface-definitions/include/haproxy')
-rw-r--r--interface-definitions/include/haproxy/rule-backend.xml.i14
-rw-r--r--interface-definitions/include/haproxy/rule-frontend.xml.i14
-rw-r--r--interface-definitions/include/haproxy/rule-match-domain.xml.i21
3 files changed, 23 insertions, 26 deletions
diff --git a/interface-definitions/include/haproxy/rule-backend.xml.i b/interface-definitions/include/haproxy/rule-backend.xml.i
index 5faf09a96..20263c23c 100644
--- a/interface-definitions/include/haproxy/rule-backend.xml.i
+++ b/interface-definitions/include/haproxy/rule-backend.xml.i
@@ -12,19 +12,7 @@
<constraintErrorMessage>Proxy rule number must be between 1 and 10000</constraintErrorMessage>
</properties>
<children>
- <leafNode name="domain-name">
- <properties>
- <help>Domain name to match</help>
- <valueHelp>
- <format>txt</format>
- <description>Domain address to match</description>
- </valueHelp>
- <constraint>
- <validator name="fqdn"/>
- </constraint>
- <multi/>
- </properties>
- </leafNode>
+ #include <include/haproxy/rule-match-domain.xml.i>
<node name="set">
<properties>
<help>Proxy modifications</help>
diff --git a/interface-definitions/include/haproxy/rule-frontend.xml.i b/interface-definitions/include/haproxy/rule-frontend.xml.i
index d2e7a38c3..6237fd44b 100644
--- a/interface-definitions/include/haproxy/rule-frontend.xml.i
+++ b/interface-definitions/include/haproxy/rule-frontend.xml.i
@@ -12,19 +12,7 @@
<constraintErrorMessage>Proxy rule number must be between 1 and 10000</constraintErrorMessage>
</properties>
<children>
- <leafNode name="domain-name">
- <properties>
- <help>Domain name to match</help>
- <valueHelp>
- <format>txt</format>
- <description>Domain address to match</description>
- </valueHelp>
- <constraint>
- <validator name="fqdn"/>
- </constraint>
- <multi/>
- </properties>
- </leafNode>
+ #include <include/haproxy/rule-match-domain.xml.i>
<node name="set">
<properties>
<help>Proxy modifications</help>
diff --git a/interface-definitions/include/haproxy/rule-match-domain.xml.i b/interface-definitions/include/haproxy/rule-match-domain.xml.i
new file mode 100644
index 000000000..2ec61a940
--- /dev/null
+++ b/interface-definitions/include/haproxy/rule-match-domain.xml.i
@@ -0,0 +1,21 @@
+<!-- include start from haproxy/rule-match-domain.xml.i -->
+<leafNode name="domain-name">
+ <properties>
+ <help>Domain name to match</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Domain address to match</description>
+ </valueHelp>
+ <constraint>
+ <validator name="fqdn"/>
+ </constraint>
+ <multi/>
+ </properties>
+</leafNode>
+<leafNode name="wildcard-domain">
+ <properties>
+ <help>Match subdomains of specified domain(s)</help>
+ <valueless/>
+ </properties>
+</leafNode>
+<!-- include end -->