summaryrefslogtreecommitdiff
path: root/op-mode-definitions/lldp.xml.in
blob: dc1331cc838e1b67eaecce6f9b2f551755293f31 (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
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="lldp">
        <properties>
          <help>Show LLDP (Link Layer Discovery Protocol)</help>
        </properties>
        <children>
          <node name="neighbors">
            <properties>
              <help>Show LLDP neighbors</help>
            </properties>
            <command>${vyos_op_scripts_dir}/lldp.py show_neighbors</command>
            <children>
              <node name="detail">
                <properties>
                  <help>Show extended detail for LLDP neighbors</help>
                </properties>
                <command>${vyos_op_scripts_dir}/lldp.py show_neighbors --detail</command>
              </node>
              <tagNode name="interface">
                <properties>
                  <help>Show LLDP for specified interface</help>
                  <completionHelp>
                    <script>${vyos_completion_dir}/list_interfaces</script>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/lldp.py show_neighbors --interface $5</command>
                <children>
                  <node name="detail">
                    <properties>
                      <help>Show detailed LLDP for specified interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces</script>
                      </completionHelp>
                    </properties>
                    <command>${vyos_op_scripts_dir}/lldp.py show_neighbors --interface $5 --detail</command>
                  </node>
                </children>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>