Page MenuHomeVyOS Platform

Cannot configure broadcast-relay service
Closed, ResolvedPublicBUG

Description

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

[email protected]# 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]
[email protected]# show broadcast-relay
+id 1 {
+    interface eth0
+    port 65000
+}

Details

Difficulty level
Easy (less than an hour)
Version
1.2.0-rolling+201804190337
Why the issue appeared?
Implementation mistake

Event Timeline

c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.

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]
[email protected]# show service broadcast-relay
+id 1 {
+    interface vtun0
+    interface vtun1
+    interface eth0
+    port 65000
+}

Error:

[email protected]# 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.