diff options
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/system-event-handler.xml.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/interface-definitions/system-event-handler.xml.in b/interface-definitions/system-event-handler.xml.in new file mode 100644 index 000000000..f5d8afabd --- /dev/null +++ b/interface-definitions/system-event-handler.xml.in @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interfaceDefinition> + <node name="system"> + <children> + <tagNode name="event-handler" owner="${vyos_conf_scripts_dir}/system_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> |