diff options
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> |