diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-30 23:25:20 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-01-01 09:25:32 +0100 |
commit | c9eaafd9f808aba8d29be73054e11d37577e539a (patch) | |
tree | aeccfda0a305cf6aca41630900e75bd32961a911 /interface-definitions/lldp.xml.in | |
parent | 2078253176046ea4d07e69caeb7932ea439b5614 (diff) | |
download | vyos-1x-c9eaafd9f808aba8d29be73054e11d37577e539a.tar.gz vyos-1x-c9eaafd9f808aba8d29be73054e11d37577e539a.zip |
T5474: establish common file name pattern for XML conf mode commands
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.
Example:
set interfaces ethernet -> interfaces_ethernet.xml.in
set interfaces bond -> interfaces_bond.xml.in
set service dhcp-server -> service_dhcp-server-xml.in
(cherry picked from commit 4ef110fd2c501b718344c72d495ad7e16d2bd465)
Diffstat (limited to 'interface-definitions/lldp.xml.in')
-rw-r--r-- | interface-definitions/lldp.xml.in | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/interface-definitions/lldp.xml.in b/interface-definitions/lldp.xml.in deleted file mode 100644 index 25fb575b6..000000000 --- a/interface-definitions/lldp.xml.in +++ /dev/null @@ -1,188 +0,0 @@ -<?xml version="1.0"?> -<interfaceDefinition> - <node name="service"> - <children> - <node name="lldp" owner="${vyos_conf_scripts_dir}/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> - </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> |