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

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

Event Timeline

WiXZlo created this task.Apr 19 2018, 10:32 AM
c-po claimed this task.Apr 19 2018, 3:07 PM
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.

c-po moved this task from Need Triage to In Progress on the VyOS 1.2 Crux board.Apr 19 2018, 3:14 PM

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
c-po added a comment.Apr 19 2018, 7:09 PM

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

c-po moved this task from In Progress to Finished on the VyOS 1.2 Crux board.Apr 19 2018, 7:16 PM
syncer closed this task as Resolved.May 27 2018, 9:57 AM
syncer moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.0-rc1) board.