summaryrefslogtreecommitdiff
path: root/op-mode-definitions/system-activation.xml.in
blob: 7a6ee17f6c9fb89abddd6ec2ed658887c53f25c0 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<interfaceDefinition>
  <node name="set">
    <properties>
      <help>Set parameters and behaviors</help>
    </properties>
    <children>
      <node name="system">
        <properties>
          <help>Set system operational parameters</help>
        </properties>
        <children>
          <node name="activation">
            <properties>
              <help>Activation units at boot</help>
            </properties>
            <children>
              <tagNode name="unit">
                <properties>
                  <help>Unit name</help>
                  <completionHelp>
                    <script>${vyos_op_scripts_dir}/activation.py show_list</script>
                  </completionHelp>
                </properties>
                <children>
                  <tagNode name="active">
                    <properties>
                      <help>Execute on reboot</help>
                      <completionHelp>
                        <script>${vyos_op_scripts_dir}/activation.py show_opts</script>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/activation.py set_active --name "${5}" --value "${7}"</command>
                  </tagNode>
                </children>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
  <node name="show">
    <children>
      <node name="system">
        <properties>
          <help>Show system information</help>
        </properties>
        <children>
          <node name="activation">
            <properties>
              <help>Activation scripts at boot</help>
            </properties>
            <command>${vyos_op_scripts_dir}/activation.py show</command>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>