summaryrefslogtreecommitdiff
path: root/interface-definitions/service_ipoe-server.xml.in
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-11-18 13:02:39 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2024-11-21 14:15:34 +0200
commite8e72e27a7f45607e75cb68b836108213481e1b8 (patch)
treec6b789830e6d301a45df0488d7675706ae4f72c9 /interface-definitions/service_ipoe-server.xml.in
parentc6a097ee7d9b6d2f4c4b8ee63ca45ccfb6fdda34 (diff)
downloadvyos-1x-e8e72e27a7f45607e75cb68b836108213481e1b8.tar.gz
vyos-1x-e8e72e27a7f45607e75cb68b836108213481e1b8.zip
ipoe_server: T6872: Add the ability to configure LUA scripts and username
Diffstat (limited to 'interface-definitions/service_ipoe-server.xml.in')
-rw-r--r--interface-definitions/service_ipoe-server.xml.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/interface-definitions/service_ipoe-server.xml.in b/interface-definitions/service_ipoe-server.xml.in
index 25bc43cc6..27a654f92 100644
--- a/interface-definitions/service_ipoe-server.xml.in
+++ b/interface-definitions/service_ipoe-server.xml.in
@@ -174,10 +174,34 @@
</leafNode>
</children>
</node>
+ <leafNode name="lua-username">
+ <properties>
+ <help>Username function</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Name of the function in the Lua file to construct usernames with</description>
+ </valueHelp>
+ <constraint>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
+ </constraint>
+ </properties>
+ </leafNode>
#include <include/accel-ppp/vlan.xml.i>
#include <include/accel-ppp/vlan-mon.xml.i>
</children>
</tagNode>
+ <leafNode name="lua-file">
+ <properties>
+ <help>Lua script file for constructing user names</help>
+ <valueHelp>
+ <format>filename</format>
+ <description>File with Lua script in /config/scripts directory</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-path" argument="--strict --parent-dir /config/scripts"/>
+ </constraint>
+ </properties>
+ </leafNode>
#include <include/accel-ppp/client-ip-pool.xml.i>
#include <include/accel-ppp/client-ipv6-pool.xml.i>
#include <include/accel-ppp/default-pool.xml.i>