diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-22 15:34:49 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-22 18:14:02 +0100 |
commit | 4a75bb5a6027e1444c9ba0dbf48af30514b077bf (patch) | |
tree | 17f5153b063f2842e13b1db7aba9364401626019 /op-mode-definitions/lldp.xml | |
parent | 27a40b6b1f884de5bb231fead1e6e41be7cac5cd (diff) | |
download | vyos-1x-4a75bb5a6027e1444c9ba0dbf48af30514b077bf.tar.gz vyos-1x-4a75bb5a6027e1444c9ba0dbf48af30514b077bf.zip |
lldp: T393: first op mode command version
Diffstat (limited to 'op-mode-definitions/lldp.xml')
-rw-r--r-- | op-mode-definitions/lldp.xml | 37 |
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> |