Page MenuHomeVyOS Platform

Error when committing dhcpv6-relay configuration.
Closed, ResolvedPublicBUG

Description

On v1.2.1, Build ID '85838104-ce3a-4024-a6be-bfe527dd1eeb', VMware, when I configure a dhcpv6 listen-interface and an upstream interface then commit, I get the following error:

[ Service dhcpv6-relay ]

Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/dhcpv6_relay.py", line 113, in <module> c =get_config()
File "/usr/libexec/vyos/conf_mode/dhcpv6_relay.py", line 56, in get_config listen= addr + '%' + intf
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

[[service dhcpv6-relay]] failed
Commit failed

It worked fine in v1.1.8, configuration the same.

Sample Configuration (device is in a closed network so I have to recreate it here)

ethernet eth0 {
	address 10.10.5.254/24
	address 2001:105::254/64
	duplex auto
	hw-id 00:50:56:80:cb:a3
	ipv6 {
	    dup-addr-detect-transmits 1
	    router-advert {
		cur-hop-limit 64
		link-mtu 0
		managed-flag true
		max-interval 600
		other-config-flag false
		prefix 2001:105::/64 {
			autonomous-flag false
			on-link-flag true
			valid-lifetime 2592000
		}
		reachable-time 0
		retrans-timer 0
		send-advert true
	    }
	}
	smp-affinity auto
	speed auto
}
ethernet eth1 {
	address 1.5.0.17/30
	address 2001:1516::17/64
	duplex auto
	hw-id 00:50:56:80:f6:0a
	smp-affinity auto
	speed auto
}

Whereas eth1 is the upstream interface, eth0 is the LAN interface, and the dhcpv6 server is 2001:100::100. The following dhvp6-relay commands are entered which create the error when committing:

set service dhcpv6-relay upstream-interface eth1 address 2001:100::100
set service dhcpv6-relay listen-interface eth0

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.2.1
Why the issue appeared?
Will be filled on close

Event Timeline

Got it to work correctly by adding the address of the listen-interface onto eth0

set service dhcpv6-relay listen-interface eth0 address 2001:105::254

Thanks - but still there should not be a Python error and also a user error message

c-po reassigned this task from c-po to Dmitry.
c-po moved this task from Need Triage to VyOS 1.2.3 on the VyOS 1.2 Crux board.
c-po edited projects, added VyOS 1.2 Crux (VyOS 1.2.3); removed VyOS 1.2 Crux.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.3) board.
c-po added a subscriber: c-po.