Page MenuHomeVyOS Platform

Cannot configure broadcast-relay service
Closed, ResolvedPublicBUG

Description

Hello.
I got error when try commit config with broadcast-relay:

ec@vyos# commit
[ service broadcast-relay id 1 ]
Traceback (most recent call last):
  File "/opt/vyatta/sbin/vyos-config-bcast-relay.py", line 118, in <module>
    c = get_config()
  File "/opt/vyatta/sbin/vyos-config-bcast-relay.py", line 45, in get_config
    intfs_names=intfs_names.replace("'", "")
AttributeError: 'list' object has no attribute 'replace'

[[service broadcast-relay id 1]] failed
Commit failed

My config

[edit service]
ec@vyos# show broadcast-relay
+id 1 {
+    interface eth0
+    port 65000
+}

Details

Version
1.2.0-rolling+201804190337

Event Timeline

c-po edited a custom field.
c-po edited a custom field.

This is essentially a implementation and configuration bug.

The implementation bug is easy to fix and I'll try to do it tonight.

The configuration "bug" is that in order to "relay" broadcast packages you should have two interfaces configured.

With 2 and more interfaces same problem:
Config:

[edit]
ec@vyos# show service broadcast-relay
+id 1 {
+    interface vtun0
+    interface vtun1
+    interface eth0
+    port 65000
+}

Error:

ec@vyos# commit
[ service broadcast-relay id 1 ]
Traceback (most recent call last):
  File "/opt/vyatta/sbin/vyos-config-bcast-relay.py", line 118, in <module>
    c = get_config()
  File "/opt/vyatta/sbin/vyos-config-bcast-relay.py", line 45, in get_config
    intfs_names=intfs_names.replace("'", "")
AttributeError: 'list' object has no attribute 'replace'

[[service broadcast-relay id 1]] failed
Commit failed

Fixed in vyos-1x ... new ISO will be available shortly.