summaryrefslogtreecommitdiff
path: root/op-mode-definitions/mtr.xml.in
blob: acc4ee29d60c0920f6231035fc96d4ac62fc4a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<interfaceDefinition>
  <tagNode name="mtr">
    <properties>
      <help>Trace network path to node with mtr</help>
      <completionHelp>
        <list>&lt;hostname&gt; &lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
      </completionHelp>
    </properties>
    <command>${vyos_op_scripts_dir}/mtr.py ${@:2}</command>
    <children>
      <leafNode name="node.tag">
        <properties>
          <help>Traceroute options</help>
          <completionHelp>
            <script>${vyos_op_scripts_dir}/mtr.py --get-options "${COMP_WORDS[@]}"</script>
          </completionHelp>
        </properties>
        <command>${vyos_op_scripts_dir}/mtr.py ${@:2}</command>
      </leafNode>
    </children>
  </tagNode>
</interfaceDefinition>