summaryrefslogtreecommitdiff
path: root/op-mode-definitions/lldp.xml
blob: 105bfe23764f15b2f35e6d9c5ca704c5d2244437 (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
<?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_op.py --all</command>
            <children>
              <node name="detail">
                <properties>
                  <help>Show LLDP neighbor details</help>
                </properties>
                <command>/usr/sbin/lldpctl -f plain</command>
              </node>
              <tagNode name="interface">
                <properties>
                  <help>Show LLDP for specified interface</help>
                  <completionHelp>
                    <script>${vyos_completion_dir}/list_interfaces.py</script>
                  </completionHelp>
                </properties>
                <command>${vyos_op_scripts_dir}/lldp_op.py --interface $4</command>
              </tagNode>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>