summaryrefslogtreecommitdiff
path: root/op-mode-definitions/openconnect.xml.in
blob: 6b0082b4cd78abc3f51cd4668e222c47558ccd42 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="openconnect-server">
        <properties>
          <help>Show OpenConnect server information</help>
        </properties>
        <children>
          <leafNode name="sessions">
            <properties>
              <help>Show active OpenConnect server sessions</help>
            </properties>
            <command>${vyos_op_scripts_dir}/openconnect-control.py --action="show_sessions"</command>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
  <node name="restart">
    <children>
      <leafNode name="openconnect-server">
        <properties>
          <help>Restart openconnect server process</help>
        </properties>
        <command>${vyos_op_scripts_dir}/openconnect-control.py --action="restart"</command>
      </leafNode>
    </children>
  </node>
</interfaceDefinition>