diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-04 12:32:29 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-04 12:32:29 +0200 |
commit | 25c8e1609b59478f8b109c3ef4cb5cd7d947e3a0 (patch) | |
tree | f8f33e34f671810f09106b1e26be5b694bb7efaa | |
parent | dd833b361dd773ed461b4db3efe335d9ecfdb479 (diff) | |
download | vyos-1x-25c8e1609b59478f8b109c3ef4cb5cd7d947e3a0.tar.gz vyos-1x-25c8e1609b59478f8b109c3ef4cb5cd7d947e3a0.zip |
l2tp: pptp: pppoe-server: T2953: use common Accel-PPP MTU include file
-rw-r--r-- | interface-definitions/include/accel-mtu-128-16384.xml.i | 9 | ||||
-rw-r--r-- | interface-definitions/service_pppoe-server.xml.in | 10 | ||||
-rw-r--r-- | interface-definitions/vpn_l2tp.xml.in | 9 | ||||
-rw-r--r-- | interface-definitions/vpn_pptp.xml.in | 9 |
4 files changed, 12 insertions, 25 deletions
diff --git a/interface-definitions/include/accel-mtu-128-16384.xml.i b/interface-definitions/include/accel-mtu-128-16384.xml.i new file mode 100644 index 000000000..72ab550f9 --- /dev/null +++ b/interface-definitions/include/accel-mtu-128-16384.xml.i @@ -0,0 +1,9 @@ + <leafNode name="mtu">
+ <properties>
+ <help>Maximum Transmission Unit (MTU) - default 1492</help>
+ <constraint>
+ <validator name="numeric" argument="--range 128-16384"/>
+ </constraint>
+ </properties>
+ <defaultValue>1492</defaultValue>
+ </leafNode>
diff --git a/interface-definitions/service_pppoe-server.xml.in b/interface-definitions/service_pppoe-server.xml.in index c6a3c18a6..6d11f41a0 100644 --- a/interface-definitions/service_pppoe-server.xml.in +++ b/interface-definitions/service_pppoe-server.xml.in @@ -96,15 +96,7 @@ </children> </tagNode> #include <include/accel-gateway-address.xml.i> - <leafNode name="mtu"> - <properties> - <help>Maximum Transmission Unit (MTU) - default 1492</help> - <constraint> - <validator name="numeric" argument="--range 128-16384"/> - </constraint> - </properties> - <defaultValue>1492</defaultValue> - </leafNode> + #include <include/accel-mtu-128-16384.xml.i> <node name="limits"> <properties> <help>Limits the connection rate from a single source</help> diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index dcac92326..8802c0564 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -12,14 +12,7 @@ <help>Remote access L2TP VPN</help> </properties> <children> - <leafNode name="mtu"> - <properties> - <help>Maximum Transmission Unit (MTU)</help> - <constraint> - <validator name="numeric" argument="--range 128-16384"/> - </constraint> - </properties> - </leafNode> + #include <include/accel-mtu-128-16384.xml.i> <leafNode name="outside-address"> <properties> <help>External IP address to which VPN clients will connect</help> diff --git a/interface-definitions/vpn_pptp.xml.in b/interface-definitions/vpn_pptp.xml.in index 466fbf36d..b17138e33 100644 --- a/interface-definitions/vpn_pptp.xml.in +++ b/interface-definitions/vpn_pptp.xml.in @@ -12,14 +12,7 @@ <help>Remote access PPTP VPN</help> </properties> <children> - <leafNode name="mtu"> - <properties> - <help>Maximum Transmission Unit (MTU)</help> - <constraint> - <validator name="numeric" argument="--range 128-16384"/> - </constraint> - </properties> - </leafNode> + #include <include/accel-mtu-128-16384.xml.i> <leafNode name="outside-address"> <properties> <help>External IP address to which VPN clients will connect</help> |