blob: fc8bfa346cb8ebe77b297fb7d4e262805b3313be (
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
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="generate">
<children>
<node name="openvpn">
<properties>
<help>Generate OpenVPN client configuration ovpn file</help>
</properties>
<children>
<node name="client-config">
<properties>
<help>Generate Client config</help>
</properties>
<children>
<tagNode name="interface">
<properties>
<help>Local interface used for connection</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type openvpn</script>
</completionHelp>
</properties>
<children>
<tagNode name="ca">
<properties>
<help>CA certificate</help>
<completionHelp>
<path>pki ca</path>
</completionHelp>
</properties>
<children>
<tagNode name="certificate">
<properties>
<help>Cerificate used by client</help>
<completionHelp>
<path>pki certificate</path>
</completionHelp>
</properties>
<children>
<tagNode name="key">
<properties>
<help>Certificate key used by client</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/generate_ovpn_client_file.py --interface "$5" --ca "$7" --cert "$9" --key "${11}"</command>
</tagNode>
</children>
<command>sudo ${vyos_op_scripts_dir}/generate_ovpn_client_file.py --interface "$5" --ca "$7" --cert "$9"</command>
</tagNode>
</children>
</tagNode>
</children>
</tagNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|