weizhouapache commented on PR #10458: URL: https://github.com/apache/cloudstack/pull/10458#issuecomment-2992414453
> Will need to verify this change: https://github.com/apache/cloudstack/pull/10458/files#diff-c38578af53165ce737dd589013a4790031bdb12f8121e3957ef140ae4d7e429dL147-L152 in an NSX env to validate no regression. some explanation of the code snippet ``` # Add localized "data-server" records in /etc/hosts for VPC routers if (self.config.is_vpc() and gn.is_vr_guest_gateway()) or self.config.is_router(): self.add_host(gateway, "%s data-server" % CsHelper.get_hostname()) elif self.config.is_dhcp() or (self.config.is_vpc() and not gn.is_vr_guest_gateway()): self.add_host(ip, "%s data-server" % CsHelper.get_hostname()) ``` gateway IP acts as data-server, in case of - VPC, and VPC VR as gateway of guest network (single VR). VR IP is same as gateway IP - VPC, and VPC VR as gateway of guest network (Redundant VRs). VR IP is different as gateway IP - Isolated network, and VR as Source NAT (single VR). VR IP is same as gateway IP - Isolated network, and VR as Source NAT (redundant VRs). VR IP is different as gateway IP VR IP acts as data-server, if cloudstack VR is not the gateway, for example - VPC, but VPC VR is not gateway - Isolated network, but VR is not gateway/Source NAT - Shared networks -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org