summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-openvpn.xml.in
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-08-16 20:27:34 +0000
committerViacheslav <v.gletenko@vyos.io>2021-08-16 20:27:34 +0000
commit94ed90e7a09b1c8fb4bfc8ad5df9ec0e1b4a15bb (patch)
treef6d51dd2e050efaba7a66f7c7e2444764c4bc5dc /interface-definitions/interfaces-openvpn.xml.in
parent2c17993105b635c3c157e9f528a017bc9e0b556b (diff)
downloadvyos-1x-94ed90e7a09b1c8fb4bfc8ad5df9ec0e1b4a15bb.tar.gz
vyos-1x-94ed90e7a09b1c8fb4bfc8ad5df9ec0e1b4a15bb.zip
openvpn: T690: Add metric for pushed routes
Diffstat (limited to 'interface-definitions/interfaces-openvpn.xml.in')
-rw-r--r--interface-definitions/interfaces-openvpn.xml.in20
1 files changed, 17 insertions, 3 deletions
diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in
index 7ff08ac86..286b10f9a 100644
--- a/interface-definitions/interfaces-openvpn.xml.in
+++ b/interface-definitions/interfaces-openvpn.xml.in
@@ -571,7 +571,7 @@
<multi/>
</properties>
</leafNode>
- <leafNode name="push-route">
+ <tagNode name="push-route">
<properties>
<help>Route to be pushed to all clients</help>
<valueHelp>
@@ -585,9 +585,23 @@
<constraint>
<validator name="ip-prefix"/>
</constraint>
- <multi/>
</properties>
- </leafNode>
+ <children>
+ <leafNode name="metric">
+ <properties>
+ <help>Set metric for this route</help>
+ <valueHelp>
+ <format>0-4294967295</format>
+ <description>Metric for this route</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-4294967295"/>
+ </constraint>
+ </properties>
+ <defaultValue>0</defaultValue>
+ </leafNode>
+ </children>
+ </tagNode>
<leafNode name="reject-unconfigured-clients">
<properties>
<help>Reject connections from clients that are not explicitly configured</help>