summaryrefslogtreecommitdiff
path: root/op-mode-definitions/add-system-image.xml
blob: 2809f6050514063ee819341167a252c2c7947f6e (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="add">
    <children>
      <node name="system">
        <properties>
          <help>Add item to a system facility</help>
        </properties>
        <children>
          <tagNode name="image">
            <properties>
              <help>Add a new image to the system</help>
              <completionHelp>
                  <list>/path/to/vyos-image.iso http://example.com/vyos-image.iso</list>
              </completionHelp>
            </properties>
            <command>sudo ${vyatta_sbindir}/install-image "$4"</command>
            <children>
              <tagNode name="username">
                <properties>
                  <help>Username for authentication</help>
                </properties>
                <children>
                  <tagNode name="password">
                    <properties>
                      <help>Password to use with authentication</help>
                    </properties>
                    <command>sudo ${vyatta_sbindir}/install-image "$4" "$6" "$8"</command>
                  </tagNode>
                </children>
              </tagNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>