diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-05 21:01:31 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-05 22:42:29 +0100 |
commit | 96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a (patch) | |
tree | 8d2ddfca0ce711059081a4ce9d65ef2f80449248 /interface-definitions/include/static-route6.xml.i | |
parent | 44f6896311a559687458a4a6c4fadb86b0a91646 (diff) | |
download | vyos-1x-96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a.tar.gz vyos-1x-96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a.zip |
xml: add new common "interface-name" validator
Diffstat (limited to 'interface-definitions/include/static-route6.xml.i')
-rw-r--r-- | interface-definitions/include/static-route6.xml.i | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interface-definitions/include/static-route6.xml.i b/interface-definitions/include/static-route6.xml.i index 1ff6bbead..25d4d22a2 100644 --- a/interface-definitions/include/static-route6.xml.i +++ b/interface-definitions/include/static-route6.xml.i @@ -42,13 +42,13 @@ <description>Gateway interface name</description>
</valueHelp>
<constraint>
- <regex>^(br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo$</regex>
+ <validator name="interface-name"/>
</constraint>
</properties>
<children>
#include <include/generic-disable-node.xml.i>
#include <include/static-route-distance.xml.i>
- #include <include/static-route-next-hop-vrf.xml.i>
+ #include <include/static-route-vrf.xml.i>
</children>
</tagNode>
<tagNode name="next-hop">
@@ -65,8 +65,8 @@ <children>
#include <include/generic-disable-node.xml.i>
#include <include/static-route-distance.xml.i>
- #include <include/static-route-next-hop-interface.xml.i>
- #include <include/static-route-next-hop-vrf.xml.i>
+ #include <include/static-route-interface.xml.i>
+ #include <include/static-route-vrf.xml.i>
</children>
</tagNode>
</children>
|