For example, this command
set system static-host-mapping host-name asa inet 18.104.22.168
Results in the following /etc/hosts file:
### Autogenerated by host_name.py ### 127.0.0.1 localhost router.xx.xx.xx # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters22.214.171.124 comcast #vyatta entry
Note that if you fix it manually by editing /etc/hosts directly, it seems that the 'set system static-host-mapping...' command edits /etc/hosts properly. However, the problem returns after a reboot.
I think there needs to be an additional newline on line 46 of host_name.py.