From 83a51a045de5db99014f6886f5aca9b792200928 Mon Sep 17 00:00:00 2001 From: Andrew Topp Date: Sun, 9 Jun 2024 02:18:45 +1000 Subject: 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. --- op-mode-definitions/lldp.xml.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'op-mode-definitions') 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 @@ ${vyos_op_scripts_dir}/lldp.py show_neighbors + + + Show extended detail for LLDP neighbors + + ${vyos_op_scripts_dir}/lldp.py show_neighbors --detail + Show LLDP for specified interface @@ -21,6 +27,17 @@ ${vyos_op_scripts_dir}/lldp.py show_neighbors --interface $5 + + + + Show detailed LLDP for specified interface + + + + + ${vyos_op_scripts_dir}/lldp.py show_neighbors --interface $5 --detail + + -- cgit v1.2.3