summaryrefslogtreecommitdiff
path: root/op-mode-definitions/add-system-image.xml.in
blob: 67d8aa3b466b513b42485c93d14ec42f11f0425c (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
62
<?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="vrf">
                <properties>
                  <help>Download image via specified VRF</help>
                  <completionHelp>
                    <path>vrf name</path>
                  </completionHelp>
                </properties>
                <command>sudo ${vyatta_sbindir}/install-image --url "${4}" --vrf "${6}"</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}" --vrf "${6}" --username "${8}" --password "${10}"</command>
                      </tagNode>
                    </children>
                  </tagNode>
                </children>
              </tagNode>
              <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>