summaryrefslogtreecommitdiff
path: root/op-mode-definitions/wireless.xml.in
blob: 5d9db154408b9a116c134a9aa77e5cac9f5d3fed (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="clear">
    <children>
      <node name="interfaces">
        <children>
          <node name="wireless">
            <properties>
              <help>Clear wireless interface information</help>
            </properties>
            <children>
              <leafNode name="counters">
                <properties>
                  <help>Clear all wireless interface counters</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/show_interfaces.py --action=clear --intf-type="$3"</command>
              </leafNode>
            </children>
          </node>
          <tagNode name="wireless">
            <properties>
              <help>Clear interface information for a given wireless interface</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces.py --type wireless</script>
              </completionHelp>
            </properties>
            <children>
              <leafNode name="counters">
                <properties>
                  <help>Clear all wireless interface counters</help>
                </properties>
                <command>sudo ${vyos_op_scripts_dir}/show_interfaces.py --action=clear --intf="$4"</command>
              </leafNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>