Juniper / contrail-charms

Juju charms for Contrail services.
Apache License 2.0
13 stars 22 forks source link

vrouter hostname should reflect MAAS vhost0 interface name #114

Closed kswia closed 5 years ago

kswia commented 5 years ago

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.