summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-11-26 07:51:38 +0100
committerGitHub <noreply@github.com>2024-11-26 07:51:38 +0100
commit2ad3c2860cd19708118d3328106e51605f96c288 (patch)
tree7d366d9f6f6e31a8677f7378be469cdf315459cc /interface-definitions
parentf3a46fc296a488b3748182288b1cff4df39c4971 (diff)
parente8e72e27a7f45607e75cb68b836108213481e1b8 (diff)
downloadvyos-1x-2ad3c2860cd19708118d3328106e51605f96c288.tar.gz
vyos-1x-2ad3c2860cd19708118d3328106e51605f96c288.zip
Merge pull request #4196 from natali-rs1985/T6872
ipoe_server: T6872: Add the ability to configure LUA scripts and username
Diffstat (limited to 'interface-definitions')
-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>