summaryrefslogtreecommitdiff
path: root/interface-definitions/service-event-handler.xml.in
blob: 0ed26b21398a57c010ebaca1c80f38c7c3fae860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>