with MAAS every interface has it's own DNS name, like bond0.hostname.fqdn, bond1.300.hostname.fqdn. Without this patch vrouters are provisioned with hostname.fqdn, but registering themselves as <vhost_physical_interface_name[.optional_vlan].hostname.fqdn
in case of non-maas environment I've also added a case when vhost ip will not be resolved to a name. in that case primary name will be used.
with MAAS every interface has it's own DNS name, like bond0.hostname.fqdn, bond1.300.hostname.fqdn. Without this patch vrouters are provisioned with hostname.fqdn, but registering themselves as <vhost_physical_interface_name[.optional_vlan].hostname.fqdn
in case of non-maas environment I've also added a case when vhost ip will not be resolved to a name. in that case primary name will be used.