Page MenuHomeVyOS Platform

UDP broadcast relay - missing verify() that relay interfaces have an IP address assigned
Closed, ResolvedPublicBUG

Description

In Example:

To forward all broadcast packets received on UDP port 1900 on eth3, eth4 or eth5 to all other interfaces in this configuration.

set service broadcast-relay id 1 description 'SONOS'
set service broadcast-relay id 1 interface 'eth3'
set service broadcast-relay id 1 interface 'eth4'
set service broadcast-relay id 1 interface 'eth5'
set service broadcast-relay id 1 port '1900'

When set more 2 interface, service udp broadcast not running and have error:

image.png (212×693 px, 30 KB)

And here when remove interface:

image.png (165×1 px, 19 KB)

Details

Difficulty level
Easy (less than an hour)
Version
Vyos 1.3.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.3.4

Event Timeline

if len(config.get('interface', [])) < 2 or len(config.get('interface', [])) > 2:
           raise ConfigError('Only two interfaces are required for udp broadcast relay "{instance}"')

Is it ok? @jestabro

Actually this uncovered a "bug" that there is no verify() section that validates if the configured interfaces actually have an IP address configured.

UDP broadcast relay agent won't work if there is no IP address configured.

c-po renamed this task from UDP Broadcast Broken to UDP broadcast relay - missing verify() that relay interfaces have an IP address assigned.Jun 25 2023, 4:49 PM
c-po reopened this task as In progress.
c-po claimed this task.
c-po triaged this task as Low priority.