summaryrefslogtreecommitdiff
path: root/op-mode-definitions/add-system-image.xml
blob: a39f4cc22c5c07b72d505eab4831242d53f56eb7 (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 --url "$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 --url "$4" --username "$6" --password "$8"</command>
                  </tagNode>
                </children>
              </tagNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>