summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@poessinger.com>2023-01-05 07:18:30 +0100
committerGitHub <noreply@github.com>2023-01-05 07:18:30 +0100
commit542d9498e494ed74c23568962a192357ac47c084 (patch)
tree2a559e9de9b38c6a91214205caca7129d440fa13 /interface-definitions
parentd1ef90e1eb51334b99ad716969e17c7f257e1a39 (diff)
parentdafb0da26d9c27e2a2e836fc56175af5da039479 (diff)
downloadvyos-1x-542d9498e494ed74c23568962a192357ac47c084.tar.gz
vyos-1x-542d9498e494ed74c23568962a192357ac47c084.zip
Merge pull request #1710 from dmbaturin/routing-table-descriptions
T4883: add a description field for routing tables
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/protocols-static.xml.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/protocols-static.xml.in b/interface-definitions/protocols-static.xml.in
index e89433022..033c7759e 100644
--- a/interface-definitions/protocols-static.xml.in
+++ b/interface-definitions/protocols-static.xml.in
@@ -26,6 +26,20 @@
</constraint>
</properties>
<children>
+ <leafNode name="description">
+ <properties>
+ <help>Table description</help>
+ <constraint>
+ <!--
+ iproute2 only considers the first "word" until whitespace in the name field
+ but does not complain about special characters.
+ We put an artificial limit here to make table descriptions potentially valid node names
+ to avoid quoting and simplify future syntax changes if we decide to make any.
+ -->
+ <regex>[a-zA-Z0-9_\-]+</regex>
+ </constraint>
+ </properties>
+ </leafNode>
#include <include/static/static-route.xml.i>
#include <include/static/static-route6.xml.i>
</children>