summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-bfd.xml
diff options
context:
space:
mode:
authorzsdc <taras@sentrium.io>2019-08-14 22:03:42 +0300
committerzsdc <taras@sentrium.io>2019-08-14 22:03:42 +0300
commit6492541b2ee3f7f246682d27974670bd6fbdacbe (patch)
tree03c61203e21b0a1aefc887efe5576472548af3d0 /interface-definitions/protocols-bfd.xml
parent58c5a7e668d0131de50e6f9711f029f9ff4a02ab (diff)
downloadvyos-1x-6492541b2ee3f7f246682d27974670bd6fbdacbe.tar.gz
vyos-1x-6492541b2ee3f7f246682d27974670bd6fbdacbe.zip
[bfd] T1183: Added validations and fixing bugs in BFD:
* added validations for "source address IP" and "bfd peer IP" * added check for configuring multihop together with an interface name * fixed "show protocols bfd peer X" for peers with custom options
Diffstat (limited to 'interface-definitions/protocols-bfd.xml')
-rw-r--r--interface-definitions/protocols-bfd.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/protocols-bfd.xml b/interface-definitions/protocols-bfd.xml
index f2d7d7d2f..62e2c87b9 100644
--- a/interface-definitions/protocols-bfd.xml
+++ b/interface-definitions/protocols-bfd.xml
@@ -20,6 +20,10 @@
<format>ipv6</format>
<description>BFD peer IPv6 address</description>
</valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ </constraint>
</properties>
<children>
<node name="source">
@@ -46,6 +50,10 @@
<format>ipv6</format>
<description>Local IPv6 address used to connect to the peer</description>
</valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ </constraint>
</properties>
</leafNode>
</children>