summaryrefslogtreecommitdiff
path: root/interface-definitions/service-event-handler.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-06-07 08:54:32 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-06-07 08:54:32 +0000
commit03d236f3905ac84db293d1dab8ac78556fb2bdbf (patch)
tree0b60927f767fd3fd9a2ed65b2b731ab0f464755d /interface-definitions/service-event-handler.xml.in
parentd542bf338aa1638b082a141163db5437ce7a33a9 (diff)
downloadvyos-1x-03d236f3905ac84db293d1dab8ac78556fb2bdbf.tar.gz
vyos-1x-03d236f3905ac84db293d1dab8ac78556fb2bdbf.zip
event-handler: T3083: Add arguments and environment options XML
Diffstat (limited to 'interface-definitions/service-event-handler.xml.in')
-rw-r--r--interface-definitions/service-event-handler.xml.in34
1 files changed, 29 insertions, 5 deletions
diff --git a/interface-definitions/service-event-handler.xml.in b/interface-definitions/service-event-handler.xml.in
index 0ed26b213..3e96013c7 100644
--- a/interface-definitions/service-event-handler.xml.in
+++ b/interface-definitions/service-event-handler.xml.in
@@ -12,14 +12,38 @@
<help>Match pattern (regex)</help>
</properties>
</leafNode>
- <leafNode name="script">
+ <node name="script">
<properties>
<help>Event handler script file</help>
- <constraint>
- <validator name="script"/>
- </constraint>
</properties>
- </leafNode>
+ <children>
+ <leafNode name="arguments">
+ <properties>
+ <help>Script arguments</help>
+ </properties>
+ </leafNode>
+ <tagNode name="environment">
+ <properties>
+ <help>Script environment arguments</help>
+ </properties>
+ <children>
+ <leafNode name="value">
+ <properties>
+ <help>Environment value</help>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <leafNode name="path">
+ <properties>
+ <help>Path to the script</help>
+ <constraint>
+ <validator name="script"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
</children>
</tagNode>
</children>