summaryrefslogtreecommitdiff
path: root/op-mode-definitions/traffic-dump.xml.in
blob: e86e697363e195dc92cca5650df2c87a827f78c4 (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="traffic">
        <properties>
          <help>Monitor traffic dumps</help>
        </properties>
        <children>
          <tagNode name="interface">
            <command>${vyos_op_scripts_dir}/tcpdump.py $4</command>
            <properties>
              <help>Monitor traffic dump from an interface</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_dumpable_interfaces.py</script>
              </completionHelp>
            </properties>
            <children>
              <leafNode name="node.tag">
                <properties>
                  <help>Traffic capture options</help>
                  <completionHelp>
                    <script>${vyos_op_scripts_dir}/tcpdump.py --get-options-nested "${COMP_WORDS[@]}"</script>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/tcpdump.py "${@:4}"</command>
              </leafNode>
            </children>
          </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>