summaryrefslogtreecommitdiff
path: root/interface-definitions/bcast-relay.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-08-28 21:58:46 +0200
committerChristian Poessinger <christian@poessinger.com>2018-08-28 22:32:01 +0200
commitfd1eabe72862ec364643a61cb94b21c330a385f5 (patch)
tree1f01208a68a02313877f416fdc2dd76682f2e208 /interface-definitions/bcast-relay.xml
parent46fa3ec53f9c301b3c58af06ba532838d42a0dc6 (diff)
downloadvyos-1x-fd1eabe72862ec364643a61cb94b21c330a385f5.tar.gz
vyos-1x-fd1eabe72862ec364643a61cb94b21c330a385f5.zip
T810: bugfix broadcast-relay address validator, add 'disable' functionality
Whole broadcast relay service can be temporary disabled via set service broadcast-relay disable Individual instances of the broadcast relay service can be disabled set service broadcast-relay id <n> disable
Diffstat (limited to 'interface-definitions/bcast-relay.xml')
-rw-r--r--interface-definitions/bcast-relay.xml20
1 files changed, 16 insertions, 4 deletions
diff --git a/interface-definitions/bcast-relay.xml b/interface-definitions/bcast-relay.xml
index 0437192fa..fdba554db 100644
--- a/interface-definitions/bcast-relay.xml
+++ b/interface-definitions/bcast-relay.xml
@@ -3,12 +3,18 @@
<interfaceDefinition>
<node name="service">
<children>
- <node name="broadcast-relay">
+ <node name="broadcast-relay" owner="${vyos_conf_scripts_dir}/bcast_relay.py">
<properties>
- <help>UDP Broadcast Relay parameters</help>
+ <help>UDP broadcast relay service</help>
</properties>
<children>
- <tagNode name="id" owner="${vyos_conf_scripts_dir}/bcast_relay.py">
+ <leafNode name="disable">
+ <properties>
+ <help>Globally disable broadcast relay service</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <tagNode name="id">
<properties>
<help>Unique ID for each UDP port to forward</help>
<valueHelp>
@@ -21,6 +27,12 @@
</constraint>
</properties>
<children>
+ <leafNode name="disable">
+ <properties>
+ <help>Disable broadcast relay service instance</help>
+ <valueless/>
+ </properties>
+ </leafNode>
<leafNode name="address">
<properties>
<help>Set source IP of forwarded packets, otherwise original senders address is used</help>
@@ -29,7 +41,7 @@
<description>Optional source address for forwarded packets</description>
</valueHelp>
<constraint>
- <validator name="ipv4"/>
+ <validator name="ipv4-address"/>
</constraint>
</properties>
</leafNode>