diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-07 06:54:39 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-07 06:54:39 +0000 |
commit | d542bf338aa1638b082a141163db5437ce7a33a9 (patch) | |
tree | f0d928d37de22b0d24f590ea73b2cf45247bc854 /interface-definitions/service-event-handler.xml.in | |
parent | cfcd75b993725fe0b8d88129b14aee28f3f35cb2 (diff) | |
download | vyos-1x-d542bf338aa1638b082a141163db5437ce7a33a9.tar.gz vyos-1x-d542bf338aa1638b082a141163db5437ce7a33a9.zip |
event-handler: T3083: Move system to service event-handler
Move 'system event-handler' to 'service event-handler'
Diffstat (limited to 'interface-definitions/service-event-handler.xml.in')
-rw-r--r-- | interface-definitions/service-event-handler.xml.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/interface-definitions/service-event-handler.xml.in b/interface-definitions/service-event-handler.xml.in new file mode 100644 index 000000000..0ed26b213 --- /dev/null +++ b/interface-definitions/service-event-handler.xml.in @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interfaceDefinition> + <node name="service"> + <children> + <tagNode name="event-handler" owner="${vyos_conf_scripts_dir}/service_event_handler.py"> + <properties> + <help>Event handler name</help> + </properties> + <children> + <leafNode name="pattern"> + <properties> + <help>Match pattern (regex)</help> + </properties> + </leafNode> + <leafNode name="script"> + <properties> + <help>Event handler script file</help> + <constraint> + <validator name="script"/> + </constraint> + </properties> + </leafNode> + </children> + </tagNode> + </children> + </node> +</interfaceDefinition> |