diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-12-15 09:59:58 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2022-12-26 13:24:08 -0500 |
commit | dafb0da26d9c27e2a2e836fc56175af5da039479 (patch) | |
tree | f086f5a19c529764e92a1918de748355d1c50ae8 /interface-definitions/protocols-static.xml.in | |
parent | 28c7960b6cc9bb05fafb0f2b8659b169b13c0071 (diff) | |
download | vyos-1x-dafb0da26d9c27e2a2e836fc56175af5da039479.tar.gz vyos-1x-dafb0da26d9c27e2a2e836fc56175af5da039479.zip |
static: T4883: add a description field for routing tables
Diffstat (limited to 'interface-definitions/protocols-static.xml.in')
-rw-r--r-- | interface-definitions/protocols-static.xml.in | 14 |
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> |