Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F119064265
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
8 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/interface-definitions/service_lldp.xml.in b/interface-definitions/service_lldp.xml.in
index 1a06e0cb3..51a9f9cce 100644
--- a/interface-definitions/service_lldp.xml.in
+++ b/interface-definitions/service_lldp.xml.in
@@ -1,188 +1,192 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="service">
<children>
<node name="lldp" owner="${vyos_conf_scripts_dir}/service_lldp.py">
<properties>
<help>LLDP settings</help>
<priority>985</priority>
</properties>
<children>
<tagNode name="interface">
<properties>
<help>Location data for interface</help>
<valueHelp>
<format>all</format>
<description>Location data all interfaces</description>
</valueHelp>
<valueHelp>
<format>txt</format>
<description>Location data for a specific interface</description>
</valueHelp>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces</script>
<list>all</list>
</completionHelp>
+ <constraint>
+ #include <include/constraint/interface-name.xml.i>
+ <regex>all</regex>
+ </constraint>
</properties>
<children>
#include <include/generic-disable-node.xml.i>
<node name="location">
<properties>
<help>LLDP-MED location data</help>
</properties>
<children>
<node name="coordinate-based">
<properties>
<help>Coordinate based location</help>
</properties>
<children>
<leafNode name="altitude">
<properties>
<help>Altitude in meters</help>
<valueHelp>
<format>0</format>
<description>No altitude</description>
</valueHelp>
<valueHelp>
<format>[+-]<meters></format>
<description>Altitude in meters</description>
</valueHelp>
<constraintErrorMessage>Altitude should be a positive or negative number</constraintErrorMessage>
<constraint>
<validator name="numeric"/>
</constraint>
</properties>
<defaultValue>0</defaultValue>
</leafNode>
<leafNode name="datum">
<properties>
<help>Coordinate datum type</help>
<valueHelp>
<format>WGS84</format>
<description>WGS84</description>
</valueHelp>
<valueHelp>
<format>NAD83</format>
<description>NAD83</description>
</valueHelp>
<valueHelp>
<format>MLLW</format>
<description>NAD83/MLLW</description>
</valueHelp>
<completionHelp>
<list>WGS84 NAD83 MLLW</list>
</completionHelp>
<constraintErrorMessage>Datum should be WGS84, NAD83, or MLLW</constraintErrorMessage>
<constraint>
<regex>(WGS84|NAD83|MLLW)</regex>
</constraint>
</properties>
<defaultValue>WGS84</defaultValue>
</leafNode>
<leafNode name="latitude">
<properties>
<help>Latitude</help>
<valueHelp>
<format><latitude></format>
<description>Latitude (example "37.524449N")</description>
</valueHelp>
<constraintErrorMessage>Latitude should be a number followed by S or N</constraintErrorMessage>
<constraint>
<regex>(\d+)(\.\d+)?[nNsS]</regex>
</constraint>
</properties>
</leafNode>
<leafNode name="longitude">
<properties>
<help>Longitude</help>
<valueHelp>
<format><longitude></format>
<description>Longitude (example "122.267255W")</description>
</valueHelp>
<constraintErrorMessage>Longiture should be a number followed by E or W</constraintErrorMessage>
<constraint>
<regex>(\d+)(\.\d+)?[eEwW]</regex>
</constraint>
</properties>
</leafNode>
</children>
</node>
<leafNode name="elin">
<properties>
<help>ECS ELIN (Emergency location identifier number)</help>
<valueHelp>
<format>u32:0-9999999999</format>
<description>Emergency Call Service ELIN number (between 10-25 numbers)</description>
</valueHelp>
<constraint>
<regex>[0-9]{10,25}</regex>
</constraint>
<constraintErrorMessage>ELIN number must be between 10-25 numbers</constraintErrorMessage>
</properties>
</leafNode>
</children>
</node>
</children>
</tagNode>
<node name="legacy-protocols">
<properties>
<help>Legacy (vendor specific) protocols</help>
</properties>
<children>
<leafNode name="cdp">
<properties>
<help>Listen for CDP for Cisco routers/switches</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="edp">
<properties>
<help>Listen for EDP for Extreme routers/switches</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="fdp">
<properties>
<help>Listen for FDP for Foundry routers/switches</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="sonmp">
<properties>
<help>Listen for SONMP for Nortel routers/switches</help>
<valueless/>
</properties>
</leafNode>
</children>
</node>
<leafNode name="management-address">
<properties>
<help>Management IP Address</help>
<completionHelp>
<script>${vyos_completion_dir}/list_local_ips.sh --both</script>
</completionHelp>
<valueHelp>
<format>ipv4</format>
<description>IPv4 Management Address</description>
</valueHelp>
<valueHelp>
<format>ipv6</format>
<description>IPv6 Management Address</description>
</valueHelp>
<constraint>
<validator name="ip-address"/>
</constraint>
<multi/>
</properties>
</leafNode>
<leafNode name="snmp">
<properties>
<help>Enable SNMP queries of the LLDP database</help>
<valueless/>
</properties>
</leafNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Nov 6, 9:44 AM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4609320
Default Alt Text
(8 KB)
Attached To
Mode
rVYOSONEX vyos-1x
Attached
Detach File
Event Timeline
Log In to Comment