diff options
author | Viacheslav <v.gletenko@vyos.io> | 2021-09-03 16:50:02 +0000 |
---|---|---|
committer | Viacheslav <v.gletenko@vyos.io> | 2021-09-03 16:50:02 +0000 |
commit | 213b6dd23ad6e327652878aa3b1d7ff66b8cd0b7 (patch) | |
tree | 8577fd7cde614de81efcb7ab1d88e3b04a5e25f2 /interface-definitions/interfaces-openvpn.xml.in | |
parent | a654886f23aada50b4f1a951c7c45a98f962341c (diff) | |
download | vyos-1x-213b6dd23ad6e327652878aa3b1d7ff66b8cd0b7.tar.gz vyos-1x-213b6dd23ad6e327652878aa3b1d7ff66b8cd0b7.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.in | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in index bf199f472..40f8fe65c 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>u32: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> |