blob: 549b9ad92482e6a7ef3ff55af29dcdb4387900fc (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<tagNode name="file">
<properties>
<help>Show the contents of a file, a directory or an image</help>
<completionHelp><imagePath/></completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/file.py --show $3</command>
</tagNode>
</children>
</node>
<node name="copy">
<properties>
<help>Copy an object</help>
</properties>
<children>
<tagNode name="file">
<properties>
<help>Copy a file or a directory</help>
<completionHelp><imagePath/></completionHelp>
</properties>
<children>
<tagNode name="to">
<properties>
<help>Destination path</help>
<completionHelp><imagePath/></completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/file.py --copy $3 $5
</command>
</tagNode>
</children>
</tagNode>
</children>
</node>
<node name="delete">
<properties>
<help>Delete an object</help>
</properties>
<children>
<tagNode name="file">
<properties>
<help>Delete a local file, possibly from an image</help>
<completionHelp><imagePath/></completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/file.py --delete $3</command>
</tagNode>
</children>
</node>
<node name="clone">
<properties>
<help>Clone an object</help>
</properties>
<children>
<node name="system">
<properties>
<help>Clone a system object</help>
</properties>
<children>
<tagNode name="config">
<properties>
<help>Clone the current system configuration to an image</help>
<completionHelp>
<script>${vyos_completion_dir}/list_images.py --no-running</script>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/file.py --clone $4</command>
<children>
<tagNode name="from">
<properties>
<help>Clone system configuration from an image to another one</help>
<completionHelp>
<list>running</list>
<script>${vyos_completion_dir}/list_images.py</script>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/file.py --clone-from $6 $4</command>
</tagNode>
</children>
</tagNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|