<?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>