summaryrefslogtreecommitdiff
path: root/interface-definitions/lldp.xml.in
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 /interface-definitions/lldp.xml.in
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 'interface-definitions/lldp.xml.in')
-rw-r--r--interface-definitions/lldp.xml.in317
1 files changed, 317 insertions, 0 deletions
diff --git a/interface-definitions/lldp.xml.in b/interface-definitions/lldp.xml.in
new file mode 100644
index 000000000..b44f4baf6
--- /dev/null
+++ b/interface-definitions/lldp.xml.in
@@ -0,0 +1,317 @@
+<?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>&lt;intf&gt;</format>
+ <description>Location data for a specific interface</description>
+ </valueHelp>
+ <completionHelp>
+ <script>${vyatta_sbindir}/vyatta-interfaces.pl --show all</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="disable">
+ <properties>
+ <help>Disable lldp on this interface</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <node name="location">
+ <properties>
+ <help>LLDP-MED location data [REQUIRED]</help>
+ </properties>
+ <children>
+ <node name="civic-based">
+ <properties>
+ <help>Civic-based location data</help>
+ </properties>
+ <children>
+ <tagNode name="ca-type">
+ <properties>
+ <help>LLDP-MED Civic Address type [REQUIRED]</help>
+ <valueHelp>
+ <format>0</format>
+ <description>Language</description>
+ </valueHelp>
+ <valueHelp>
+ <format>1</format>
+ <description>National subdivisions</description>
+ </valueHelp>
+ <valueHelp>
+ <format>2</format>
+ <description>County, parish, district</description>
+ </valueHelp>
+ <valueHelp>
+ <format>3</format>
+ <description>City, township</description>
+ </valueHelp>
+ <valueHelp>
+ <format>4</format>
+ <description>City division, borough, ward</description>
+ </valueHelp>
+ <valueHelp>
+ <format>5</format>
+ <description>Neighborhood, block</description>
+ </valueHelp>
+ <valueHelp>
+ <format>6</format>
+ <description>Street</description>
+ </valueHelp>
+ <valueHelp>
+ <format>16</format>
+ <description>Leading street direction</description>
+ </valueHelp>
+ <valueHelp>
+ <format>17</format>
+ <description>Trailing street suffix</description>
+ </valueHelp>
+ <valueHelp>
+ <format>18</format>
+ <description>Street suffix</description>
+ </valueHelp>
+ <valueHelp>
+ <format>19</format>
+ <description>House number</description>
+ </valueHelp>
+ <valueHelp>
+ <format>20</format>
+ <description>House number suffix</description>
+ </valueHelp>
+ <valueHelp>
+ <format>21</format>
+ <description>Landmark or vanity address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>22</format>
+ <description>Additional location info</description>
+ </valueHelp>
+ <valueHelp>
+ <format>23</format>
+ <description>Name</description>
+ </valueHelp>
+ <valueHelp>
+ <format>24</format>
+ <description>Postal/ZIP code</description>
+ </valueHelp>
+ <valueHelp>
+ <format>25</format>
+ <description>Building</description>
+ </valueHelp>
+ <valueHelp>
+ <format>26</format>
+ <description>Unit</description>
+ </valueHelp>
+ <valueHelp>
+ <format>27</format>
+ <description>Floor</description>
+ </valueHelp>
+ <valueHelp>
+ <format>28</format>
+ <description>Room number</description>
+ </valueHelp>
+ <valueHelp>
+ <format>29</format>
+ <description>Place type</description>
+ </valueHelp>
+ <valueHelp>
+ <format>128</format>
+ <description>Script</description>
+ </valueHelp>
+ <constraintErrorMessage>ca-type must between 0-128</constraintErrorMessage>
+ <constraint>
+ <validator name="numeric" argument="--range 0-128"/>
+ </constraint>
+ </properties>
+ <children>
+ <leafNode name="ca-value">
+ <properties>
+ <help>Civic address value for ca-type [REQUIRED]</help>
+ <constraintErrorMessage>ca-value must be less than 256 characters</constraintErrorMessage>
+ <constraint>
+ <regex>^[A-Za-z0-9\ \-\_\.\,]{0,255}$</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <leafNode name="country-code">
+ <properties>
+ <help>Country code [REQUIRED]</help>
+ <valueHelp>
+ <format>&lt;AA&gt;</format>
+ <description>Two letter ISO 3166 country code</description>
+ </valueHelp>
+ <constraintErrorMessage>country-code must be 2 characters</constraintErrorMessage>
+ <constraint>
+ <regex>^[a-zA-Z]{2}$</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ <node name="coordinate-based">
+ <properties>
+ <help>Coordinate based location</help>
+ </properties>
+ <children>
+ <leafNode name="altitude">
+ <properties>
+ <help>Altitude in meters</help>
+ <valueHelp>
+ <format>[+-]&lt;meters&gt;</format>
+ <description>Altitude in meters</description>
+ </valueHelp>
+ <constraintErrorMessage>Altitude should be a positive or negative number</constraintErrorMessage>
+ <constraint>
+ <validator name="numeric"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="datum">
+ <properties>
+ <help>Coordinate datum type</help>
+ <valueHelp>
+ <format>WGS84</format>
+ <description>WGS84 (default)</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>
+ </leafNode>
+ <leafNode name="latitude">
+ <properties>
+ <help>Latitude [REQUIRED]</help>
+ <valueHelp>
+ <format>&lt;latitude&gt;</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 [REQUIRED]</help>
+ <valueHelp>
+ <format>&lt;longitude&gt;</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>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>
+ <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>
+ </properties>
+ </leafNode>
+ <node name="snmp">
+ <properties>
+ <help>SNMP parameters for LLDP</help>
+ </properties>
+ <children>
+ <leafNode name="enable">
+ <properties>
+ <help>Enable SNMP queries of the LLDP database</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>