Page MenuHomePhabricator

Wrong configuration generated for DHCPv6 Relay
Closed, ResolvedPublicBUG

Description

Hello!

In the situation, when we want to use more than one DHCPv6 "upper" interface in DHCPv6-Relay, dhcpv6_relay.py generates wrong OPTIONS. Multiple upstream_addr is joining with -u but must be joined with -u (with additional space at the start). In another case, dhcrelay can't start, because OPTIONS looks like:

OPTIONS="-6 -l XXXX:XXXX:XXXX%eth1  -u XXXX:XXXX:XXXX%eth2-u XXXX:XXXX:XXXX%eth3"

Also, we can't configure multiple upstream DHCPv6 servers in config on the same upstream-interface: instead of adding new IPv6 addresses to an upstream-interface configuration, they are replacing.

Details

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

Event Timeline

zsdc created this task.Apr 3 2019, 9:12 AM
c-po claimed this task.Apr 3 2019, 10:56 AM
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved this task from Need Triage to VyOS 1.2.1 on the VyOS 1.2 Crux board.
c-po edited projects, added VyOS 1.2 Crux (VyOS 1.2.1); removed VyOS 1.2 Crux.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.1) board.
c-po closed this task as Resolved.
c-po triaged this task as Normal priority.
zsdc reopened this task as Confirmed.Apr 5 2019, 2:06 PM

Sorry, I must reopen this task. Absolutely the same situation with multiple "lower" interfaces:

OPTIONS="-6 -l ::%eth1.100-l ::%eth1.102 -u 2001:db8:0:feed::2%eth2.88 -u 2001:db8:0:feed::3%eth2.88 "
                         ^^
                         here
c-po added a comment.Apr 5 2019, 10:05 PM

Thanks for reopening and reporting.

Fixed on both current and crux

c-po closed this task as Resolved.Apr 5 2019, 10:05 PM