summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2025-07-15 12:31:07 +0300
committerOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2025-07-28 13:23:13 +0300
commitcdb97173c8ba251c577e30bb324555a418c32828 (patch)
tree2e7097915bea996714fcf30e9f72faf903d7b38f /interface-definitions
parentfc5ea5bdf1a1fb0092d2f4847b100b29f1ac25a4 (diff)
downloadvyos-1x-cdb97173c8ba251c577e30bb324555a418c32828.tar.gz
vyos-1x-cdb97173c8ba251c577e30bb324555a418c32828.zip
ipsec: T7593: Add dynamic prefix for local and remote traffic selectors
In case when there is no local/remote prefix configured in a tunnel settings, a protocol configured for such tunnel is ignored. The correct way to generate the configuration is to set the prefix to `dynamic` if it was not set. The correct config for the described case is: ``` local_ts = dynamic[gre/] remote_ts = dynamic[gre/] ```
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/vpn_ipsec.xml.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in
index a54b16736..517bf89fd 100644
--- a/interface-definitions/vpn_ipsec.xml.in
+++ b/interface-definitions/vpn_ipsec.xml.in
@@ -1228,6 +1228,13 @@
#include <include/generic-disable-node.xml.i>
#include <include/ipsec/esp-group.xml.i>
#include <include/ipsec/local-traffic-selector.xml.i>
+ <node name="local">
+ <children>
+ <leafNode name="prefix">
+ <defaultValue>dynamic</defaultValue>
+ </leafNode>
+ </children>
+ </node>
#include <include/ip-protocol.xml.i>
<leafNode name="priority">
<properties>
@@ -1264,6 +1271,7 @@
</constraint>
<multi/>
</properties>
+ <defaultValue>dynamic</defaultValue>
</leafNode>
</children>
</node>