Page MenuHomeVyOS Platform

/usr/libexec/vyos/conf_mode/host_name.py improvments
Closed, ResolvedPublicFEATURE REQUEST

Description

  • doesn't check if a change is required to write to file. set system static-host-mapping has tag nodes, resolv.conf gets rewritten multiple times even if there is no change in resolv.conf required
  • add ....

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

if host-name is not set and an IP is given to an interface script causes a an exception - maybe a default hostname could be set if the option is not in config.boot. Happens if you wipe config.boot and reboot. The default one won't have host-name configured and assigning IPs to interface still work but produce that nasty exception.

When a host-name is not present, set the same default as on a newly installed device... router or vyos.. (atm. i don't remember what it says)

I think vyos is the default, so I'll weave it into host_name.py as a default if not present in the default config.boot. Not sure why there is that difference, but on the other hand the script should and can handle missing variables.

dmbaturin claimed this task.
dmbaturin edited projects, added VyOS 1.2 Crux (VyOS 1.2.3); removed VyOS 1.3 Equuleus.
dmbaturin set Is it a breaking change? to Unspecified (possibly destroys the router).