Comment 2 for bug 1807725

Revision history for this message
Wojtek Rakoniewski (enter2608) wrote : Re: [2.5] Machine interfaces allow '_' character, results on a interface based domain breaking bind (as it doesn't allow it for the host part).

Hi Andres,
I'm often changing interface name in linux to vlan name (not number) or similar. It is not limitation of linux. In linux you can use _ in interface name without problem, it works also with maas. When you configure interface with underscore character, maas properly configure interface names in netplan and interfaces will work properly in linux.
Problem is limitation of domain names. According to https://tools.ietf.org/html/rfc1035 only letters, digits and - character is only allowed.
I assume that in linux for interface name it is possible to use the same characters as for file names.

According to my situation I simply change naming convention and I'm not using _ characters in interface names any more, but it is new project so it is not problem to me.
For me global option to change naming behavior is not necessary. From other side maybe someone uses underscore in interface names because linux allow and it will be problem when you release new version of maas with underscore limitation.
In my opinion if you do not want to add global option better will be replace underscore character to another or remove it when generating domain names.

--
Regards,
Wojtek