summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-22 22:16:48 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-22 22:16:48 +0100
commit5c5febcb940e2ee2f31822cce405535a8b10a5dd (patch)
tree316b86017e368e3b7bb975e016a59463eaf1dab4 /op-mode-definitions
parent03fd2b7a966575172a8eb4a3a14ccd842d21a27b (diff)
parent7158bc3cc82e1a66473ef6c65e95e00f64d42b92 (diff)
downloadvyos-1x-5c5febcb940e2ee2f31822cce405535a8b10a5dd.tar.gz
vyos-1x-5c5febcb940e2ee2f31822cce405535a8b10a5dd.zip
Merge branch 't393-lldp-rewrite' of github.com:c-po/vyos-1x into current
* 't393-lldp-rewrite' of github.com:c-po/vyos-1x: lldp: T393: support both ELIN and ccordinate based location service in MED fixup lldp: T393: support IPv6 management address lldp: T393: add Emergency Location Identifier Number (ELIN) support lldp: T393: support parsing MED values lldp: T393: use flat dictionary when generating configs lldp: T393: support listen interfaces lldp: T393: add config options to /etc/lldpd.d lldp: T393: interface disable node must be valueless lldp: T393: first op mode command version lldp: T393: first running version of lldpd lldp: T393: 'snmp enable' must be <valueless/> lldp: T393: legacy-protocols must be <valueless/> Debian: lldp: T393: add lldpd dependency lldp: T393: rename XML interface definition to xml.in Revert "[LLDP] Remove the lldp.xml interface definition to avoid template ..."
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/lldp.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/op-mode-definitions/lldp.xml b/op-mode-definitions/lldp.xml
new file mode 100644
index 000000000..105bfe237
--- /dev/null
+++ b/op-mode-definitions/lldp.xml
@@ -0,0 +1,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>