summaryrefslogtreecommitdiff
path: root/op-mode-definitions/wireless.xml.in
blob: 25809e0b8e804b129af8c6332e2639496df986a4 (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 --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>