summaryrefslogtreecommitdiff
path: root/op-mode-definitions/lldp.xml.in
diff options
context:
space:
mode:
authorAndrew Topp <andrewt@telekinetica.net>2024-06-09 02:18:45 +1000
committerAndrew Topp <andrewt@telekinetica.net>2024-06-11 21:53:28 +1000
commit83a51a045de5db99014f6886f5aca9b792200928 (patch)
treebe8ffe4191489cf8e7a58e3530587b639beca84d /op-mode-definitions/lldp.xml.in
parentdd813e5b79d612106b0bc7a064f9633be5da9571 (diff)
downloadvyos-1x-83a51a045de5db99014f6886f5aca9b792200928.tar.gz
vyos-1x-83a51a045de5db99014f6886f5aca9b792200928.zip
T6045: Recreate show lldp detail views & improve remote port selection
If the remote device has explicitly sent the interface name as the portID, we should use that first as the interface name, before working through the previous priority order. I've brought back LLDP detail views directly calling lldpcli. This can be extended to render a template from op_mode/lldp.py, but lldpcli isn't bad at rendering readable info. Raw mode (including detailed raw) is still accessible for programmatic access.
Diffstat (limited to 'op-mode-definitions/lldp.xml.in')
-rw-r--r--op-mode-definitions/lldp.xml.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/lldp.xml.in b/op-mode-definitions/lldp.xml.in
index 985262a89..dc1331cc8 100644
--- a/op-mode-definitions/lldp.xml.in
+++ b/op-mode-definitions/lldp.xml.in
@@ -13,6 +13,12 @@
</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>
@@ -21,6 +27,17 @@
</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>