Page MenuHomeVyOS Platform

set system static-host-mapping doesn't allow IPv4 and IPv6 for same name.
Closed, ResolvedPublicBUG


An apparent bug in VyOS 1.3:

set system static-host-mapping host-name myhost inet
set system static-host-mapping host-name myhost inet 2001:db8:abcd::1

What shows:
cat /etc/hosts
2001:db8:abcd::1 myhost

What should show:
cat /etc/hosts myhost
2001:db8:abcd::1 myhost

I think if you just added an inet6 parameter to the host-name leaf then that would work.

Currently the 'inet' parameters accepts both IPv4 and IPv6 addresses.
With the change to have both 'inet' and 'inet6' then 'inet' would be ONLY for IPv4 and the inet6 would be ONLY for IPv6 addresses.


Difficulty level
Easy (less than an hour)
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

Event Timeline

c-po changed the task status from Open to In progress.Jul 5 2022, 7:06 AM
c-po claimed this task.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.2) board.

Confirmed that issue is resolved.

Works correctly now.


dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.Sep 5 2022, 11:06 AM
dmbaturin changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).